Lemma 4.2 (facility cost):
ProvedLocalSearchFL.UFL.facility_cost_lemma_4_2Let and be the clients and facilities of a metric instance, and let be the opening cost of facility . Let be a nonempty set of facilities that is locally optimum for the add/drop/swap neighbourhood (4). Then for every nonempty set ,
Together with Lemma 4.1 this gives the locality gap 3 of Theorem 4.3; the asymmetry between the coefficients of the two lemmas is what the scaling argument of Theorem 4.4 exploits.
Formalization Note No assumption that clients exist is made: with no clients the statement reduces to , which the drop and swap moves still give.
import Mathlib import Definitions.Def_LocalSearchFL_UFL_captures
namespace LocalSearchFL.UFL
/-- Lemma 4.2 (facility cost), p. 555. If `S` is a locally optimum solution for the
add/drop/swap neighbourhood (4), then for every solution `O`:
`cost_f(S) ≤ cost_f(O) + 2 · cost_s(O)`. -/
theorem facility_cost_lemma_4_2 {Cl Fa : Type} [Fintype Cl] [DecidableEq Cl]
[Fintype Fa] [DecidableEq Fa]
(I : MetricInstance Cl Fa) (f : Fa → ℝ) (hf : ∀ i, 0 ≤ f i)
(S : Finset Fa) (hS : S.Nonempty) (hloc : IsUFLLocalOpt I f S hS)
(O : Finset Fa) (hO : O.Nonempty) :
costF f S ≤ costF f O + 2 * costS I O hO := by sorry
end LocalSearchFL.UFL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let (clients) and (facilities) be finite types with decidable equality. Let be a metric instance: on pairs of points of , nonnegative, symmetric, triangle inequality, self-distance not assumed zero. Write . Let satisfy for all . For finite , write . For nonempty , write
Hypotheses. is a nonempty set of facilities that is locally optimal:
- for every facility ;
- for every with ;
- for all and all facilities .
Conclusion. For every nonempty set of facilities:
Degenerate cases.
- If , all service costs are . The claim becomes for every nonempty , whenever is locally optimal for the facility costs alone.
- If has one element, and the claim is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.