LEMMA B — Pr[i ∈ N(I′)] ≥ ¼·min{sum(i)/2, 1} for Algorithm B
ProvedLubyMIS.MonteCarlo.lemmaBLet be a finite simple graph and run one select step of Algorithm B on : each vertex independently puts itself into with probability (with probability if ), and consists of those all of whose neighbours in have degree strictly smaller than . Then for every vertex with ,
Summed against the degrees, this bound yields part (2) of Theorem 1: a single round of Algorithm B eliminates in expectation at least edges.
import Mathlib import Definitions.Def_LubyMIS_MonteCarlo_Basic
namespace LubyMIS.MonteCarlo
/-- LEMMA B (Luby 1986, §3.4, p. 1042). For Algorithm B and every vertex `i` with `d(i) ≥ 1`,
`Pr[i ∈ N(I′)] ≥ ¼ · min {sum(i)/2, 1}`. -/
theorem lemmaB {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj]
(i : V) (hi : 1 ≤ H.degree i) :
probB H (fun c => i ∈ nbhd H (selectB H c)) ≥ 1 / 4 * min (sumInv H i / 2) 1 := 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, a simple graph on with degree function , and a vertex with .
Consider Algorithm B's law on coin vectors . The coins are independent, and with probability if , or with probability if .
The event is that . Spelled out: some neighbour of has , and every neighbour of with has , with strict inequality.
The statement asserts
No parameter and no bound on appear.
Degenerate cases.
- forces , so empty and one-element vertex types are excluded.
- , so the bound is strictly positive.
- Isolated vertices elsewhere in have coin probability . They are always "true", and since they have no neighbours they never affect whether 's neighbours are selected.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.