LEMMA A (Beame) — Pr[i ∈ N(I′)] ≥ [¼·min{sum(i), 1}]·(1 − 1/2n²) for Algorithm A
ProvedLubyMIS.MonteCarlo.lemmaALet be a finite simple graph, let with (the number of vertices of the input graph), and run one select step of Algorithm A on : each vertex draws an independent uniform priority , and is the set of vertices whose priority is strictly smaller than that of each of their neighbours. Then for every vertex with ,
Summed against the degrees, this bound yields part (1) of Theorem 1: a single round of Algorithm A eliminates in expectation at least edges.
import Mathlib import Definitions.Def_LubyMIS_MonteCarlo_Basic
namespace LubyMIS.MonteCarlo
/-- LEMMA A (Beame) (Luby 1986, §3.4, p. 1041). For Algorithm A and every vertex `i` with
`d(i) ≥ 1`, `Pr[i ∈ N(I′)] ≥ [¼ · min {sum(i), 1}] · (1 − 1/(2n²))`. -/
theorem lemmaA {V : Type*} [Fintype V] [DecidableEq V] (n : ℕ) (hn : 1 ≤ n)
(hV : Fintype.card V ≤ n) (H : SimpleGraph V) [DecidableRel H.Adj] (i : V)
(hi : 1 ≤ H.degree i) :
probA n (fun π => i ∈ nbhd H (selectA H π)) ≥
(1 / 4 * min (sumInv H i) 1) * (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 a finite type and a natural number. Let be a simple graph on with degree function , and let be a vertex. Assume:
- ;
- ;
- .
Consider Algorithm A's law: , with uniform over all maps . The event is that . Spelled out: some neighbour of satisfies for every neighbour of , with strict inequality.
The statement asserts that this event has probability
where . The probability is the number of qualifying divided by . The selection and the neighbourhood are both computed in the full graph on all of .
Degenerate cases.
- The condition forces , and therefore .
- The zero-denominator case is excluded.
- An empty or a one-element cannot occur.
- Because has a neighbour, , so the right-hand side is strictly positive.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.