Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LEMMA B — Pr[i ∈ N(I′)] ≥ ¼·min{sum(i)/2, 1} for Algorithm B

Proved
LubyMIS.MonteCarlo.lemmaB

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

maximal-independent-setp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithms

Let G′=(V′,E′)G' = (V', E')G′=(V′,E′) be a finite simple graph and run one select step of Algorithm B on G′G'G′: each vertex iii independently puts itself into XXX with probability 1/(2d(i))1/(2d(i))1/(2d(i)) (with probability 111 if d(i)=0d(i) = 0d(i)=0), and I′I'I′ consists of those i∈Xi \in Xi∈X all of whose neighbours in XXX have degree strictly smaller than d(i)d(i)d(i). Then for every vertex iii with d(i)≥1d(i) \ge 1d(i)≥1,

Pr⁡B[i∈N(I′)]  ≥  14min⁡{sum(i)2,1},sum(i)=∑j∈adj(i)1d(j).\Pr_B\big[i \in N(I')\big] \;\ge\; \tfrac14 \min\Big\{\frac{\mathrm{sum}(i)}{2}, 1\Big\}, \qquad \mathrm{sum}(i) = \sum_{j \in \mathrm{adj}(i)} \frac{1}{d(j)} .BPr​[i∈N(I′)]≥41​min{2sum(i)​,1},sum(i)=j∈adj(i)∑​d(j)1​.

Summed against the degrees, this bound yields part (2) of Theorem 1: a single round of Algorithm B eliminates in expectation at least 18∣E′∣\frac18 |E'|81​∣E′∣ edges.

Preamble
import Mathlib
import Definitions.Def_LubyMIS_MonteCarlo_Basic
Formal statement
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
Source
Luby, A Simple Parallel Algorithm for the Maximal Independent Set Problem, SIAM J. Comput. 15(4), 1986, p. 1042, LEMMA B
Read-back

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

Let VVV be a finite type, HHH a simple graph on VVV with degree function ddd, and iii a vertex with d(i)≥1d(i) \ge 1d(i)≥1.

Consider Algorithm B's law on coin vectors c:V→{true,false}c : V \to \{\text{true},\text{false}\}c:V→{true,false}. The coins are independent, and c(v)=truec(v) = \text{true}c(v)=true with probability 12d(v)\frac{1}{2d(v)}2d(v)1​ if d(v)≥1d(v) \ge 1d(v)≥1, or with probability 111 if d(v)=0d(v) = 0d(v)=0.

The event is that i∈NH(selB(c))i \in N_H(\mathrm{sel}_B(c))i∈NH​(selB​(c)). Spelled out: some neighbour jjj of iii has c(j)=truec(j) = \text{true}c(j)=true, and every neighbour kkk of jjj with c(k)=truec(k) = \text{true}c(k)=true has d(k)<d(j)d(k) < d(j)d(k)<d(j), with strict inequality.

The statement asserts

Pr⁡BH[i∈NH(selB(c))]  ≥  14min⁡(sum(i)2, 1),sum(i)=∑j adjacent to i1d(j).\Pr\nolimits_B^H\bigl[i \in N_H(\mathrm{sel}_B(c))\bigr] \;\ge\; \frac14 \min\Bigl(\frac{\mathrm{sum}(i)}{2},\, 1\Bigr), \qquad \mathrm{sum}(i) = \sum_{j \text{ adjacent to } i} \frac{1}{d(j)}.PrBH​[i∈NH​(selB​(c))]≥41​min(2sum(i)​,1),sum(i)=j adjacent to i∑​d(j)1​.

No parameter nnn and no bound on ∣V∣|V|∣V∣ appear.

Degenerate cases.

  • d(i)≥1d(i) \ge 1d(i)≥1 forces ∣V∣≥2|V| \ge 2∣V∣≥2, so empty and one-element vertex types are excluded.
  • sum(i)>0\mathrm{sum}(i) > 0sum(i)>0, so the bound is strictly positive.
  • Isolated vertices elsewhere in HHH have coin probability 111. They are always "true", and since they have no neighbours they never affect whether iii's neighbours are selected.
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