§3.2 — π is a random reordering with probability at least 1 − 1/2n²
ProvedLubyMIS.MonteCarlo.pi_injective_probLet be the number of vertices of the input graph, and let be a vertex set with . In Algorithm A every vertex draws a priority uniformly from , independently of the others. Then the priorities are pairwise distinct with probability at least :
When the priorities are distinct they induce a total order on , and by symmetry this order is a uniformly random permutation; this is what the paper means by " is a random reordering of the vertices". The bound lets the analysis of Algorithm A (Lemma A) work with a uniform random permutation at the cost of the factor .
Formalization Note The formal statement asserts only the probability bound for injectivity; the fact that, conditioned on injectivity, the induced order is uniform is a symmetry fact that the statement does not include.
import Mathlib import Definitions.Def_LubyMIS_MonteCarlo_Basic
namespace LubyMIS.MonteCarlo
/-- Luby 1986, §3.2, p. 1040: under Algorithm A's law (priorities mutually independent and uniform on
`{1, …, n⁴}`), the priorities are pairwise distinct with probability at least `1 − 1/(2n²)`, where
`n ≥ max(1, |V′|)` is the number of vertices of the input graph. -/
theorem pi_injective_prob {V : Type*} [Fintype V] [DecidableEq V] (n : ℕ) (hn : 1 ≤ n)
(hV : Fintype.card V ≤ n) :
probA (V := V) n (fun π => Function.Injective π) ≥ 1 - 1 / (2 * (n : ℝ) ^ 2) := by sorry
end LubyMIS.MonteCarlo
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any finite type and a natural number. Assume:
- ;
- .
Draw uniformly from all maps and set . The statement asserts that is injective (the values , , are pairwise distinct) with probability at least
In symbols, , where counts the injective vectors and divides by . No graph appears in this statement. is only an upper bound on .
Degenerate cases.
- The hypothesis rules out the zero-denominator case.
- If is empty, the only vector is the empty one, which is injective, so the probability is .
- If , every vector is injective and the probability is .
- When , we have and , so the probability is and the bound is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.