Inequality (5) — dropping a good facility
ProvedLocalSearchFL.UFL.drop_good_inequality_5Let be facility opening costs on a metric instance with at least one client, let be a nonempty set of facilities that is locally optimum for the add/drop/swap neighbourhood (4), and let be any solution. Let , be nearest-facility assignments for and , write and , and let be a permutation of the clients satisfying the three conditions of the mapping of the proof of Lemma 4.2 (it preserves every , satisfies Property 3.1, and fixes the clients of a captured block that it maps into that block).
If is good, i.e. captures no facility of , then
The inequality records what the local optimum learns from the drop move that closes a good facility. Summed with inequality (8) for the bad facilities, it gives the facility cost bound of Lemma 4.2.
Formalization Note The instance is required to have at least one client. Then a good facility is never the only open facility, so dropping it is a legal move. With no clients and the inequality would read , which fails; the paper implicitly assumes clients exist.
import Mathlib import Definitions.Def_LocalSearchFL_UFL_captures
namespace LocalSearchFL.UFL
/-- Inequality (5), p. 555. Let `S` be a locally optimum solution for the neighbourhood (4), `O`
any solution, `σS`, `σO` nearest-facility assignments for `S` and `O` (so `S_j = c_{j σS(j)}`,
`O_j = c_{j σO(j)}`), and `π` the mapping of the proof of Lemma 4.2. If there is at least one
client and `s ∈ S` is good (captures no `o ∈ O`), then
`−f_s + ∑_{j ∈ N_S(s), π(j) ≠ j} (O_j + O_{π(j)} + S_{π(j)} − S_j)
+ 2 ∑_{j ∈ N_S(s), π(j) = j} O_j ≥ 0`. -/
theorem drop_good_inequality_5 {Cl Fa : Type} [Fintype Cl] [DecidableEq Cl] [Nonempty Cl]
[Fintype Fa] [DecidableEq Fa]
(I : MetricInstance Cl Fa) (f : Fa → ℝ) (hf : ∀ i, 0 ≤ f i)
(S O : Finset Fa) (hS : S.Nonempty) (hloc : IsUFLLocalOpt I f S hS)
(σS σO : Cl → Fa) (hσS : IsNearestAssignment I S σS) (hσO : IsNearestAssignment I O σO)
(π : Equiv.Perm Cl) (hπ : IsRefinedPi σS σO π)
(s : Fa) (hs : s ∈ S) (hgood : IsGood σS σO O s) :
0 ≤ -f s +
∑ j ∈ (nbhd σS s).filter (fun j => π j ≠ j),
(I.c j (σO j) + I.c (π j) (σO (π j)) + I.c (π j) (σS (π j)) - I.c j (σS j)) +
2 * ∑ j ∈ (nbhd σS s).filter (fun j => π j = j), I.c j (σO j) := by sorry
end LocalSearchFL.UFL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let (clients) be a finite, nonempty type and (facilities) a finite type, both 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 nonempty , write .
Hypotheses.
-
are finite sets of facilities, and is nonempty. is not explicitly required to be nonempty.
-
is locally optimal:
- for every facility ;
- for every with ;
- for all and all facilities .
-
are nearest-facility assignments:
- for every : and for all ;
- for every : and for all .
Write and .
-
Write , and . Say that captures when .
-
is a permutation of satisfying all three of:
- (i) for all ;
- (ii) for all facilities with not capturing : ;
- (iii) for all facilities with capturing : and imply .
-
is good: it captures no .
Conclusion.
where and .
Degenerate cases.
- Because is nonempty, the nearest-assignment hypothesis for forces .
- If (the facility serves no client), both sums are empty. The statement then asserts , hence .
- If , then .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.