Theorem 5.5 — multi-copy local search for metric capacitated facility location has locality gap at most 4
ProvedLocalSearchFL.CFL.cfl_locality_gapConsider the metric capacitated facility location problem in which several copies of a facility may be opened: is a nonempty finite set of clients, a set of facilities, a distance on that is nonnegative, symmetric and satisfies the triangle inequality, and every facility has an opening cost per copy and an integer capacity per copy. A solution opens a multiset of copies and assigns every client to a copy, each copy of serving at most clients; its cost is the total opening cost plus the total distance from clients to their copies.
Local search moves either add one copy of a facility , or close a set of open copies and open copies of a facility with , the number of clients served by . If is locally optimum for these moves, then for every solution ,
This is Theorem 5.5: the locality gap of this local search procedure is at most 4. It is obtained by adding the service-cost bound of Lemma 5.1 and the facility-cost bound of Lemma 5.3.
Formalization Note The hypothesis that there is at least one client is added: without clients, a single idle copy of a facility with , is locally optimum (its neighbours cost and ) and has cost , while the solution with no copies has cost . ranges over all solutions with all feasible assignments, so the bound holds in particular against an optimum. The bound is stated multiplied out, since may be .
import Mathlib import Definitions.Def_LocalSearchFL_CFL_IsCFLLocalOpt
namespace LocalSearchFL.CFL
/-- **Theorem 5.5**, p. 560: local search for the metric capacitated facility location problem
(with multiple copies of a facility allowed), where each step either adds a copy of a facility
or deletes a subset of the open copies and adds multiple copies of one facility (neighbourhood
(9)), has locality gap at most 4: for every instance with at least one client, every locally
optimum solution `X` and every solution `O`, `cost(X) ≤ 4 · cost(O)`. -/
theorem cfl_locality_gap {Cl Fa : Type} [Fintype Cl] [Nonempty Cl]
(I : MetricInstance Cl Fa) (u : Fa → ℕ) (hu : ∀ i, 0 < u i) (f : Fa → ℝ) (hf : ∀ i, 0 ≤ f i)
(X : CFLSol Cl Fa u) (hX : IsCFLLocalOpt I f X) (O : CFLSol Cl Fa u) :
cost I f X ≤ 4 * cost I f O := by sorry
end LocalSearchFL.CFL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns two arbitrary types:
- a type of clients, which must be finite and nonempty;
- a type of facilities, with no assumptions at all. may be empty or infinite.
The inputs are:
- , an object of type
MetricInstancebuilt on and . This type comes from the imported definitions file, whose contents are not shown here. Its name suggests an instance with some metric on clients and facilities, but what it actually contains or requires cannot be read from this code. - , a natural number for each facility , with the hypothesis
so everywhere.
- , a real number for each facility, with the hypothesis
is passed separately from ; it is not part of the instance.
- and , two objects of type
CFLSolbuilt on , and . This type also comes from the unseen definitions file. Its name suggests a capacitated facility location solution that respects the numbers , but its actual constraints cannot be checked here. - A hypothesis that satisfies the predicate
IsCFLLocalOptfor and . This predicate is also defined in the unseen file, so what kind of local optimality it demands, and against which moves, is not visible here. The predicate takes , and as arguments, and enters only through the type of .
No hypothesis is placed on beyond its type. The conclusion is
where is the imported function cost, applied to the instance , the numbers and a solution. It is being multiplied by the number 4, but how it combines , and the solution is not visible here.
The theorem's comment calls this Theorem 5.5 (p. 560) and describes a specific neighbourhood, open copies of facilities, and a metric instance. None of that is stated by the code shown; it holds only to the extent the four imported definitions encode it.
Edge cases:
- Client type: there is always at least one client.
- Facility type: may be empty or infinite, since it carries no finiteness or nonemptiness assumption.
- If is empty, the hypotheses on and hold vacuously. Whether any
CFLSolexists then depends on the unseen definition. If none exists, the theorem is vacuously true. - If is infinite, any sum over facilities inside
costcould be an infinite sum, which Lean treats as when the sum does not converge. Whether this happens depends on the unseen definitions.
- If is empty, the hypotheses on and hold vacuously. Whether any
- The numbers : a zero value is excluded by hypothesis.
- The numbers : zero values are allowed, including .
- Possibly vacuous: if
IsCFLLocalOptcannot be satisfied for some or all instances, the statement is vacuous there. Its satisfiability cannot be judged from the code shown. - Negative costs: nothing in the displayed hypotheses guarantees that is nonnegative. If it could be negative, the inequality with the factor 4 would mean something different, and that also depends on the unseen definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.