Lemma 5.2 — the drop-add inequality ⌈|N_S(U)|/u_{s'}⌉ f_{s'} + Σ |N_S(s)| c_{ss'} ≥ Σ f_s
ProvedLocalSearchFL.CFL.drop_add_inequality_lemma_5_2Let be a nonempty finite set of clients and a set of facilities in a metric instance with distances , integer capacities and facility costs . Let be a locally optimum CFL solution for the neighbourhood (9), with open copies located at facilities and client sets . Then for every set of copies of and every facility ,
where , and is the distance between the facility and .
The inequality records that closing the copies in and opening enough copies of to absorb their clients does not decrease the cost. It is applied in the proof of Lemma 5.3 to the sets defined by a shortest-path flow.
Formalization Note The ceiling is Nat.ceil of the real quotient. 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 or ), and that copy gives .
import Mathlib import Definitions.Def_LocalSearchFL_CFL_IsCFLLocalOpt
namespace LocalSearchFL.CFL
/-- **Lemma 5.2**, p. 559: in a locally optimum CFL solution `X` (at least one client), for
every set `U` of copies of `X` and every facility `s'`,
`⌈|N_X(U)| / u_{s'}⌉ · f_{s'} + ∑_{s ∈ U} |N_X(s)| · c_{s s'} ≥ ∑_{s ∈ U} f_s`,
where `c_{s s'}` is the distance between the facility of copy `s` and `s'`. -/
theorem drop_add_inequality_lemma_5_2 {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) (U : Finset (Fin X.n)) (s' : Fa) :
∑ s ∈ U, f (X.loc s) ≤
(⌈((X.nbhdSet U).card : ℝ) / (u s' : ℝ)⌉₊ : ℝ) * f s' +
∑ s ∈ U, ((X.nbhd s).card : ℝ) * I.cf (X.loc s) s' := by sorry
end LocalSearchFL.CFL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting:
- Clients and facilities. A finite, nonempty type of clients and an arbitrary type of facilities.
- Metric instance . A real distance on that is nonnegative, symmetric and satisfies the triangle inequality, with not required. Write and for facilities.
- Capacities. with for all .
- Facility costs. with for all .
Solutions. A solution consists of:
- copies , each a copy of facility ;
- an assignment copies, with , where .
For a set of copies, . The cost is
Hypothesis on . is locally optimal for : for every solution whose multiset of facilities is one of the following:
- 's multiset plus one copy of some facility; or
- plus copies of some , for some set of copies with .
In both cases may use any capacity-feasible assignment.
Conclusion. For every set of copies of and every facility :
The ceiling is the least natural number at least the real quotient. The divisor is positive by hypothesis.
Degenerate cases:
- Empty . Both sides are .
- serves no clients. If no client is served by a copy in , the ceiling is and every with is . The claim then becomes : every copy in that serves no client has facility cost .
- equal to . may equal for copies in . In that case , which need not be .
- Consequence of nonempty . Because is nonempty, has at least one copy.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.