Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Lemma 4.2, p. 555 — existence of the refined mapping π on each NO(o)N_O(o)NO​(o)

Proved
LocalSearchFL.UFL.exists_refined_pi

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricslocal-searchp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let σS,σO:C→F\sigma_S, \sigma_O : C \to FσS​,σO​:C→F be any two assignments of the clients to facilities, with NS(s)=σS−1(s)N_S(s) = \sigma_S^{-1}(s)NS​(s)=σS−1​(s), NO(o)=σO−1(o)N_O(o) = \sigma_O^{-1}(o)NO​(o)=σO−1​(o) and Nso=NO(o)∩NS(s)N^o_s = N_O(o) \cap N_S(s)Nso​=NO​(o)∩NS​(s). Then there is a permutation π\piπ of CCC such that

  1. π\piπ maps every NO(o)N_O(o)NO​(o) onto itself;
  2. (Property 3.1) whenever ∣Nso∣≤12∣NO(o)∣|N^o_s| \le \tfrac12 |N_O(o)|∣Nso​∣≤21​∣NO​(o)∣, π(Nso)∩Nso=∅\pi(N^o_s) \cap N^o_s = \emptysetπ(Nso​)∩Nso​=∅;
  3. whenever ∣Nso∣>12∣NO(o)∣|N^o_s| > \tfrac12 |N_O(o)|∣Nso​∣>21​∣NO​(o)∣, every j∈Nsoj \in N^o_sj∈Nso​ with π(j)∈Nso\pi(j) \in N^o_sπ(j)∈Nso​ satisfies π(j)=j\pi(j) = jπ(j)=j.

This is the mapping on which the facility cost bound of Lemma 4.2 is built: a client whose serving facility in SSS is closed is reassigned through π\piπ, and the fixed points of π\piπ are exactly the clients of a captured block that cannot be moved to another block.

Formalization Note The family of bijections π:NO(o)→NO(o)\pi : N_O(o) \to N_O(o)π:NO​(o)→NO​(o), one for each ooo, is encoded as a single permutation of all clients with σO∘π=σO\sigma_O \circ \pi = \sigma_OσO​∘π=σO​. The assignments are arbitrary maps: the statement is purely combinatorial.

Preamble
import Mathlib
import Definitions.Def_LocalSearchFL_UFL_captures
Formal statement
namespace LocalSearchFL.UFL

/-- The mapping π of the proof of Lemma 4.2 (p. 555, first paragraph of the proof): for any
assignments `σS`, `σO` of the clients, there is a permutation `π` of the clients that maps each
`N_O(o)` onto itself, satisfies Property 3.1 (if `s` does not capture `o` then
`π(N^o_s) ∩ N^o_s = ∅`), and, when `s` captures `o`, fixes every `j ∈ N^o_s` with
`π(j) ∈ N^o_s`. -/
theorem exists_refined_pi {Cl Fa : Type} [Fintype Cl] [DecidableEq Cl] [DecidableEq Fa]
    (σS σO : Cl → Fa) :
    ∃ π : Equiv.Perm Cl, IsRefinedPi σS σO π := by sorry

end LocalSearchFL.UFL
Source
Arya, Garg, Khandekar, Meyerson, Munagala, Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3), 2004, p. 555, proof of Lemma 4.2, first paragraph (with Property 3.1 and its construction, p. 549)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let C\mathcal CC be a finite type of clients with decidable equality. Let F\mathcal FF be any type of facilities with decidable equality; it need not be finite. Let σS,σO:C→F\sigma_S,\sigma_O:\mathcal C\to\mathcal FσS​,σO​:C→F be arbitrary maps. Write:

  • NO(o)={j:σO(j)=o}N_O(o)=\{j:\sigma_O(j)=o\}NO​(o)={j:σO​(j)=o} and NS(s)={j:σS(j)=s}N_S(s)=\{j:\sigma_S(j)=s\}NS​(s)={j:σS​(j)=s};
  • Nso=NO(o)∩NS(s)N^o_s=N_O(o)\cap N_S(s)Nso​=NO​(o)∩NS​(s).

Say that sss captures ooo when ∣NO(o)∣<2∣Nso∣|N_O(o)|<2|N^o_s|∣NO​(o)∣<2∣Nso​∣, as a strict inequality of natural numbers.

Conclusion. For every such pair of maps, there exists a bijection π:C→C\pi:\mathcal C\to\mathcal Cπ:C→C satisfying all three of:

  • (i) σO(π(j))=σO(j)\sigma_O(\pi(j))=\sigma_O(j)σO​(π(j))=σO​(j) for every client jjj;
  • (ii) for all facilities s,os,os,o such that sss does not capture ooo, and every j∈Nsoj\in N^o_sj∈Nso​: π(j)∉Nso\pi(j)\notin N^o_sπ(j)∈/Nso​;
  • (iii) for all facilities s,os,os,o such that sss captures ooo, and every j∈Nsoj\in N^o_sj∈Nso​ with π(j)∈Nso\pi(j)\in N^o_sπ(j)∈Nso​: π(j)=j\pi(j)=jπ(j)=j.

No distances, costs or sets of open facilities appear in the statement. The maps σS,σO\sigma_S,\sigma_OσS​,σO​ are completely unrestricted.

Degenerate cases.

  • If C=∅\mathcal C=\emptysetC=∅, the empty permutation witnesses the claim.
  • If C\mathcal CC has one client jjj, then NO(σO(j))={j}N_O(\sigma_O(j))=\{j\}NO​(σO​(j))={j} is captured by σS(j)\sigma_S(j)σS​(j), and the identity satisfies (i)–(iii).
  • In general, the claim includes every client jjj whose own pair (σS(j),σO(j))(\sigma_S(j),\sigma_O(j))(σS​(j),σO​(j)) is uncaptured. For each such jjj, it asserts that π\piπ moves jjj to a client with the same σO\sigma_OσO​-value but a different σS\sigma_SσS​-value.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me