Property 3.2 — a bijection of N_O(o) moving every small class of a partition off itself
ProvedLocalSearchFL.MultiSwap.exists_pi_property_3_2Let be a finite set, partitioned into classes: for let be the class of under a labelling . Then there is a one-to-one and onto map such that for every class with ,
In the analysis for a facility , and the classes are the sets for the blocks with and for the facilities of the blocks with . The map is used to reassign the clients of the deleted facilities in each swap.
Formalization Note The statement is abstract (any type, any finite set , any labelling ). The bijection of is a permutation of the ambient type that maps onto itself and fixes every point outside . "" is written , and as for every . This is the same abstract lemma as Property 3.1 of the single-swap mission of this series.
import Mathlib
namespace LocalSearchFL.MultiSwap
/-- Property 3.2 (p. 553), in abstract form. Let `N` be a finite set (the clients `N_O(o)` of a
facility `o`) partitioned into the classes of a labelling `g` (the class of `j` is
`P_j = {x ∈ N | g x = g j}`). There is a bijection `π` of `N` (a permutation fixing every point
outside `N`) such that `π(P) ∩ P = ∅` for every class `P` with `|P| ≤ ½ |N|`. -/
theorem exists_pi_property_3_2 {α β : Type} [DecidableEq β] (N : Finset α) (g : α → β) :
∃ π : Equiv.Perm α,
(∀ j, π j ∈ N ↔ j ∈ N) ∧
(∀ j, j ∉ N → π j = j) ∧
∀ j ∈ N, 2 * (N.filter (fun x => g x = g j)).card ≤ N.card → g (π j) ≠ g j := by sorry
end LocalSearchFL.MultiSwap
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Data.
- and are arbitrary types, and has decidable equality.
- is a finite subset of .
- is an arbitrary function (a labelling).
- For , the class of is
There are no hypotheses.
Claim. There is a bijection such that:
- For every : . So maps onto .
- For every : .
- For every with , that is with non-strict inequality: .
Condition 3 means that every element of a class holding at most half of is sent to an element of a different class. Elements of a class holding more than half of carry no requirement.
Degenerate cases.
- If , the identity permutation works.
- If has one element, its class has size and , so no constraint applies.
- If all of is one class, then only when , so again there is no constraint.
- If is empty, the claim is trivial.
- All counts are natural numbers and there is no subtraction or division, so no default values arise.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.