Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, first display — E[Y_k − Y_{k+1}] ≥ ½·Σ d(i)·Pr[i ∈ I′ ∪ N(I′)] ≥ ½·Σ d(i)·Pr[i ∈ N(I′)]

Proved
LubyMIS.MonteCarlo.eliminated_ge_half_degree_sum

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 let I′I'I′ be a random subset of V′V'V′ with an arbitrary finite distribution: I′=S(ω)I' = S(\omega)I′=S(ω) with probability w(ω)w(\omega)w(ω), where w≥0w \ge 0w≥0 and ∑ωw(ω)=1\sum_\omega w(\omega) = 1∑ω​w(ω)=1. Let elim(I′)\mathrm{elim}(I')elim(I′) be the number of edges of G′G'G′ with at least one endpoint in I′∪N(I′)I' \cup N(I')I′∪N(I′). Then

E[elim(I′)]  ≥  12∑i∈V′d(i) Pr⁡[i∈I′∪N(I′)]  ≥  12∑i∈V′d(i) Pr⁡[i∈N(I′)].E\big[\mathrm{elim}(I')\big] \;\ge\; \frac12 \sum_{i \in V'} d(i)\, \Pr\big[i \in I' \cup N(I')\big] \;\ge\; \frac12 \sum_{i \in V'} d(i)\, \Pr\big[i \in N(I')\big].E[elim(I′)]≥21​i∈V′∑​d(i)Pr[i∈I′∪N(I′)]≥21​i∈V′∑​d(i)Pr[i∈N(I′)].

This is the first step of the proof of Theorem 1: it reduces the expected number of eliminated edges to per-vertex probabilities, which Lemmas A and B bound. It uses nothing about how I′I'I′ is chosen, so it applies to Algorithm A, Algorithm B and the derandomized Algorithm D alike.

Formalization Note The paper states the display for Algorithm B's I′I'I′. It is formalized for an arbitrary finite random choice of I′I'I′, which contains both Algorithm A's and Algorithm B's laws as instances. Probabilities are written as Pr⁡[i∈⋅ ]=∑ωw(ω) [i∈S(ω)]\Pr[i \in \cdot\,] = \sum_\omega w(\omega)\,[i \in S(\omega)]Pr[i∈⋅]=∑ω​w(ω)[i∈S(ω)]. The two inequalities of the display are the two conjuncts.

Preamble
import Mathlib
import Definitions.Def_LubyMIS_MonteCarlo_Basic
Formal statement
namespace LubyMIS.MonteCarlo

/-- First display of the proof of Theorem 1 (Luby 1986, §3.4, p. 1041), for an arbitrary random
selection `I′ = S ω` drawn with probabilities `w ω`:
`E[Y_k − Y_{k+1}] ≥ ½ ∑_i d(i) Pr[i ∈ I′ ∪ N(I′)] ≥ ½ ∑_i d(i) Pr[i ∈ N(I′)]`. -/
theorem eliminated_ge_half_degree_sum {V : Type*} [Fintype V] [DecidableEq V]
    (H : SimpleGraph V) [DecidableRel H.Adj] {Ω : Type*} [Fintype Ω] (w : Ω → ℝ)
    (hw0 : ∀ ω, 0 ≤ w ω) (hw1 : ∑ ω, w ω = 1) (S : Ω → Finset V) :
    (∑ ω, w ω * (eliminated H (S ω) : ℝ)) ≥
        1 / 2 * ∑ i, (H.degree i : ℝ) * (∑ ω, if i ∈ S ω ∪ nbhd H (S ω) then w ω else 0) ∧
      1 / 2 * ∑ i, (H.degree i : ℝ) * (∑ ω, if i ∈ S ω ∪ nbhd H (S ω) then w ω else 0) ≥
        1 / 2 * ∑ i, (H.degree i : ℝ) * (∑ ω, if i ∈ nbhd H (S ω) then w ω else 0) := by sorry

end LubyMIS.MonteCarlo
Source
Luby, A Simple Parallel Algorithm for the Maximal Independent Set Problem, SIAM J. Comput. 15(4), 1986, p. 1041, §3.4, proof of Theorem 1, first display
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 Ω\OmegaΩ a finite type. Let w:Ω→Rw : \Omega \to \mathbb{R}w:Ω→R be weights with:

  • w(ω)≥0w(\omega) \ge 0w(ω)≥0 for every ω\omegaω;
  • ∑ωw(ω)=1\sum_\omega w(\omega) = 1∑ω​w(ω)=1.

Let S:Ω→{finite subsets of V}S : \Omega \to \{\text{finite subsets of } V\}S:Ω→{finite subsets of V} be arbitrary; the sets S(ω)S(\omega)S(ω) need not be independent. Write

Pr⁡w[event]=∑ω: event holdsw(ω),\Pr\nolimits_w[\text{event}] = \sum_{\omega :\, \text{event holds}} w(\omega),Prw​[event]=ω:event holds∑​w(ω),

and let NHN_HNH​ be the neighbourhood (vertices adjacent to some member of the set).

The statement asserts both of the following:

∑ωw(ω) elimH(S(ω))  ≥  12∑i∈Vd(i) Pr⁡w[i∈S(ω)∪NH(S(ω))]\sum_{\omega} w(\omega)\, \mathrm{elim}_H(S(\omega)) \;\ge\; \frac12 \sum_{i \in V} d(i)\, \Pr\nolimits_w\bigl[i \in S(\omega) \cup N_H(S(\omega))\bigr]ω∑​w(ω)elimH​(S(ω))≥21​i∈V∑​d(i)Prw​[i∈S(ω)∪NH​(S(ω))]

and

12∑i∈Vd(i) Pr⁡w[i∈S(ω)∪NH(S(ω))]  ≥  12∑i∈Vd(i) Pr⁡w[i∈NH(S(ω))].\frac12 \sum_{i \in V} d(i)\, \Pr\nolimits_w\bigl[i \in S(\omega) \cup N_H(S(\omega))\bigr] \;\ge\; \frac12 \sum_{i \in V} d(i)\, \Pr\nolimits_w\bigl[i \in N_H(S(\omega))\bigr].21​i∈V∑​d(i)Prw​[i∈S(ω)∪NH​(S(ω))]≥21​i∈V∑​d(i)Prw​[i∈NH​(S(ω))].

Here elimH(I)\mathrm{elim}_H(I)elimH​(I) is the number of edges of HHH with at least one endpoint in I∪NH(I)I \cup N_H(I)I∪NH​(I).

Degenerate cases.

  • Ω\OmegaΩ cannot be empty, because the weights must sum to 111.
  • If VVV is empty or HHH has no edges, every term is 000 and both inequalities read 0≥00 \ge 00≥0.
  • If S(ω)=∅S(\omega) = \varnothingS(ω)=∅ for all ω\omegaω, every term is again 000.
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