Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Property 3.1 — a bijection π\piπ of NO(o)N_O(o)NO​(o) moving every non-capturing block NsoN^o_sNso​ off itself

Proved
LocalSearchFL.KMedian.exists_pi_property_3_1

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

combinatoricsk-medianlocal-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 assignments of the clients to facilities, with NO(o)N_O(o)NO​(o), NS(s)N_S(s)NS​(s) and Nso=NO(o)∩NS(s)N^o_s = N_O(o) \cap N_S(s)Nso​=NO​(o)∩NS​(s) as in Definition 3.1, and fix a facility ooo. Then there is a one-to-one and onto map π:NO(o)→NO(o)\pi : N_O(o) \to N_O(o)π:NO​(o)→NO​(o) such that for every facility sss that does not capture ooo, that is ∣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​=∅.

This mapping lets each client jjj served by a non-capturing facility sss be rerouted, when sss is closed, through its OOO-facility to the SSS-facility of π(j)\pi(j)π(j), which differs from sss.

Formalization Note The bijection of NO(o)N_O(o)NO​(o) is a permutation of all clients that maps NO(o)N_O(o)NO​(o) onto itself and fixes every client outside NO(o)N_O(o)NO​(o). The statement holds for arbitrary assignments, in particular for the nearest-facility assignments of the paper.

Preamble
import Mathlib
import Definitions.Def_LocalSearchFL_KMedian_captures
Formal statement
namespace LocalSearchFL.KMedian

/-- Property 3.1 (p. 549): for a facility `o`, there is a bijection `π` of `N_O(o)` (a
permutation of the clients that fixes every client outside `N_O(o)`) such that, for every
facility `s` that does not capture `o`, `π(N^o_s) ∩ N^o_s = ∅`. -/
theorem exists_pi_property_3_1 {Cl Fa : Type} [Fintype Cl] [DecidableEq Cl] [DecidableEq Fa]
    (σS σO : Cl → Fa) (o : Fa) :
    ∃ π : Equiv.Perm Cl,
      (∀ j, π j ∈ nbhd σO o ↔ j ∈ nbhd σO o) ∧
      (∀ j, j ∉ nbhd σO o → π j = j) ∧
      ∀ s : Fa, ¬ captures σS σO s o →
        ∀ j ∈ nbhd σO o ∩ nbhd σS s, π j ∉ nbhd σO o ∩ nbhd σS s := by sorry

end LocalSearchFL.KMedian
Source
Arya, Garg, Khandekar, Meyerson, Munagala, Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3), 2004, p. 549, Property 3.1 and the construction of π that follows it
Read-back

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

Setting.

  • CCC is a finite type of clients with decidable equality.
  • FFF is a type of facilities with decidable equality.
  • σS,σO:C→F\sigma_S, \sigma_O : C \to FσS​,σO​:C→F are arbitrary maps.
  • o∈Fo \in Fo∈F is an arbitrary facility.
  • 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}.
  • "sss captures ooo" means ∣NO(o)∣<2 ∣NO(o)∩NS(s)∣|N_O(o)| < 2\,|N_O(o) \cap N_S(s)|∣NO​(o)∣<2∣NO​(o)∩NS​(s)∣.

No cost function appears, and there are no hypotheses.

Claim. There exists a permutation (bijection) π:C→C\pi : C \to Cπ:C→C with all three of the following properties:

  1. For every client jjj: π(j)∈NO(o)\pi(j) \in N_O(o)π(j)∈NO​(o) if and only if j∈NO(o)j \in N_O(o)j∈NO​(o). So π\piπ maps NO(o)N_O(o)NO​(o) onto itself.
  2. For every client j∉NO(o)j \notin N_O(o)j∈/NO​(o), π(j)=j\pi(j) = jπ(j)=j.
  3. For every facility s∈Fs \in Fs∈F (any facility, not restricted to a set) that does not capture ooo, and for every j∈NO(o)∩NS(s)j \in N_O(o) \cap N_S(s)j∈NO​(o)∩NS​(s):
π(j)∉NO(o)∩NS(s).\pi(j) \notin N_O(o) \cap N_S(s).π(j)∈/NO​(o)∩NS​(s).

"Does not capture" means ∣NO(o)∩NS(s)∣≤12∣NO(o)∣|N_O(o) \cap N_S(s)| \le \tfrac12 |N_O(o)|∣NO​(o)∩NS​(s)∣≤21​∣NO​(o)∣.

Degenerate cases.

  • If NO(o)=∅N_O(o) = \emptysetNO​(o)=∅ (for instance when CCC is empty, or ooo is not a value of σO\sigma_OσO​), the identity permutation satisfies all three conditions.
  • If ∣NO(o)∣=1|N_O(o)| = 1∣NO​(o)∣=1, the unique client jjj lies in NO(o)∩NS(σS(j))N_O(o) \cap N_S(\sigma_S(j))NO​(o)∩NS​(σS​(j)). That facility σS(j)\sigma_S(j)σS​(j) captures ooo, and no other facility meets NO(o)N_O(o)NO​(o), so condition 3 concerns only facilities sss with empty intersection and holds trivially. The identity works.
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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me