Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
LubyMIS.MonteCarlo.lemmaA

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, let n≥1n \ge 1n≥1 with ∣V′∣≤n|V'| \le n∣V′∣≤n (the number of vertices of the input graph), and run one select step of Algorithm A on G′G'G′: each vertex draws an independent uniform priority π(i)∈{1,…,n4}\pi(i) \in \{1, \dots, n^4\}π(i)∈{1,…,n4}, and I′I'I′ is the set of vertices whose priority is strictly smaller than that of each of their neighbours. Then for every vertex iii with d(i)≥1d(i) \ge 1d(i)≥1,

Pr⁡A[i∈N(I′)]  ≥  [14min⁡{sum(i),1}]⋅(1−12n2),sum(i)=∑j∈adj(i)1d(j).\Pr_A\big[i \in N(I')\big] \;\ge\; \Big[\tfrac14 \min\{\mathrm{sum}(i), 1\}\Big] \cdot \Big(1 - \frac{1}{2n^2}\Big), \qquad \mathrm{sum}(i) = \sum_{j \in \mathrm{adj}(i)} \frac{1}{d(j)} .APr​[i∈N(I′)]≥[41​min{sum(i),1}]⋅(1−2n21​),sum(i)=j∈adj(i)∑​d(j)1​.

Summed against the degrees, this bound yields part (1) of Theorem 1: a single round of Algorithm A eliminates in expectation at least 18∣E′∣−116\frac18 |E'| - \frac1{16}81​∣E′∣−161​ edges.

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

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

Let VVV be a finite type and nnn a natural number. Let HHH be a simple graph on VVV with degree function ddd, and let iii be a vertex. Assume:

  • n≥1n \ge 1n≥1;
  • ∣V∣≤n|V| \le n∣V∣≤n;
  • d(i)≥1d(i) \ge 1d(i)≥1.

Consider Algorithm A's law: π=π0+1\pi = \pi_0 + 1π=π0​+1, with π0\pi_0π0​ uniform over all maps V→{0,…,n4−1}V \to \{0,\dots,n^4-1\}V→{0,…,n4−1}. The event is that i∈NH(selA(π))i \in N_H(\mathrm{sel}_A(\pi))i∈NH​(selA​(π)). Spelled out: some neighbour jjj of iii satisfies π(j)<π(k)\pi(j) < \pi(k)π(j)<π(k) for every neighbour kkk of jjj, with strict inequality.

The statement asserts that this event has probability

Pr⁡An[i∈NH(selA(π))]  ≥  (14min⁡(sum(i), 1))(1−12n2),\Pr\nolimits_A^n\bigl[i \in N_H(\mathrm{sel}_A(\pi))\bigr] \;\ge\; \Bigl(\frac14 \min\bigl(\mathrm{sum}(i),\, 1\bigr)\Bigr)\Bigl(1 - \frac{1}{2n^2}\Bigr),PrAn​[i∈NH​(selA​(π))]≥(41​min(sum(i),1))(1−2n21​),

where sum(i)=∑j adjacent to i1/d(j)\mathrm{sum}(i) = \sum_{j \text{ adjacent to } i} 1/d(j)sum(i)=∑j adjacent to i​1/d(j). The probability is the number of qualifying π0\pi_0π0​ divided by (n4)∣V∣(n^4)^{|V|}(n4)∣V∣. The selection and the neighbourhood are both computed in the full graph HHH on all of VVV.

Degenerate cases.

  • The condition d(i)≥1d(i) \ge 1d(i)≥1 forces ∣V∣≥2|V| \ge 2∣V∣≥2, and therefore n≥2n \ge 2n≥2.
  • The zero-denominator case n=0n = 0n=0 is excluded.
  • An empty VVV or a one-element VVV cannot occur.
  • Because iii has a neighbour, sum(i)>0\mathrm{sum}(i) > 0sum(i)>0, so the right-hand side is strictly positive.
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