Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

TECHNICAL LEMMA — max{γ_l : 1 ≤ l ≤ n} ≥ ½·min{α_n, 1/c}

Proved
LubyMIS.MonteCarlo.technical_lemma

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

bonferroniinequalitiesp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let n≥1n \ge 1n≥1, let p1≥p2≥⋯≥pn≥0p_1 \ge p_2 \ge \dots \ge p_n \ge 0p1​≥p2​≥⋯≥pn​≥0 be real numbers and let c>0c > 0c>0. For 1≤l≤n1 \le l \le n1≤l≤n put

αl=∑j=1lpj,βl=∑j=1l∑k=j+1lpjpk,γl=αl−c βl.\alpha_l = \sum_{j=1}^{l} p_j, \qquad \beta_l = \sum_{j=1}^{l} \sum_{k=j+1}^{l} p_j p_k, \qquad \gamma_l = \alpha_l - c\,\beta_l .αl​=j=1∑l​pj​,βl​=j=1∑l​k=j+1∑l​pj​pk​,γl​=αl​−cβl​.

Then

max⁡{γl:1≤l≤n}  ≥  12min⁡{αn,1c}.\max\{\gamma_l : 1 \le l \le n\} \;\ge\; \tfrac12 \min\Big\{\alpha_n, \frac1c\Big\}.max{γl​:1≤l≤n}≥21​min{αn​,c1​}.

The quantity γl\gamma_lγl​ is the second Bonferroni lower bound for the probability of a union of lll events with probabilities p1,…,plp_1, \dots, p_lp1​,…,pl​ whose pairwise intersections have probability at most c pjpkc\,p_jp_kcpj​pk​. The lemma turns that bound into a lower bound for the union in terms of the total mass αn\alpha_nαn​; it is used with c=2c = 2c=2 in Lemma A and c=1c = 1c=1 in Lemma B.

Formalization Note The sequence is a function p:N→Rp : \mathbb{N} \to \mathbb{R}p:N→R of which only p1,…,pnp_1, \dots, p_np1​,…,pn​ matter; "p1≥⋯≥pn≥0p_1 \ge \dots \ge p_n \ge 0p1​≥⋯≥pn​≥0" is stated as antitonicity on {1,…,n}\{1, \dots, n\}{1,…,n} together with pn≥0p_n \ge 0pn​≥0. The maximum over 1≤l≤n1 \le l \le n1≤l≤n is expressed as the existence of such an lll.

Preamble
import Mathlib
Formal statement
namespace LubyMIS.MonteCarlo

/-- TECHNICAL LEMMA (Luby 1986, §3.4, p. 1043). Let `p₁ ≥ ⋯ ≥ pₙ ≥ 0` and `c > 0`. With
`α_l = ∑_{j=1}^{l} p_j`, `β_l = ∑_{j=1}^{l} ∑_{k=j+1}^{l} p_j p_k`, `γ_l = α_l − c β_l`, some
`1 ≤ l ≤ n` has `γ_l ≥ ½ · min {α_n, 1/c}`. -/
theorem technical_lemma (n : ℕ) (hn : 1 ≤ n) (p : ℕ → ℝ)
    (hanti : ∀ j k : ℕ, 1 ≤ j → j ≤ k → k ≤ n → p k ≤ p j) (hpn : 0 ≤ p n)
    (c : ℝ) (hc : 0 < c) :
    ∃ l : ℕ, 1 ≤ l ∧ l ≤ n ∧
      (∑ j ∈ Finset.Icc 1 l, p j) - c * (∑ j ∈ Finset.Icc 1 l, ∑ k ∈ Finset.Ioc j l, p j * p k)
        ≥ 1 / 2 * min (∑ j ∈ Finset.Icc 1 n, p j) (1 / c) := by sorry

end LubyMIS.MonteCarlo
Source
Luby, A Simple Parallel Algorithm for the Maximal Independent Set Problem, SIAM J. Comput. 15(4), 1986, p. 1043, TECHNICAL LEMMA
Read-back

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

Let nnn be a natural number and p:N→Rp : \mathbb{N} \to \mathbb{R}p:N→R a real sequence (write pjp_jpj​ for p(j)p(j)p(j)). Let ccc be a real number. Assume:

  • n≥1n \ge 1n≥1;
  • ppp is non-increasing on {1,…,n}\{1,\dots,n\}{1,…,n}: for all 1≤j≤k≤n1 \le j \le k \le n1≤j≤k≤n, pk≤pjp_k \le p_jpk​≤pj​;
  • pn≥0p_n \ge 0pn​≥0, so p1≥⋯≥pn≥0p_1 \ge \dots \ge p_n \ge 0p1​≥⋯≥pn​≥0;
  • c>0c > 0c>0.

Then there exists an integer lll with 1≤l≤n1 \le l \le n1≤l≤n such that

∑j=1lpj  −  c∑j=1l∑k=j+1lpjpk  ≥  12min⁡(∑j=1npj, 1c).\sum_{j=1}^{l} p_j \;-\; c \sum_{j=1}^{l} \sum_{k=j+1}^{l} p_j p_k \;\ge\; \frac12 \min\Bigl( \sum_{j=1}^{n} p_j,\ \frac{1}{c} \Bigr).j=1∑l​pj​−cj=1∑l​k=j+1∑l​pj​pk​≥21​min(j=1∑n​pj​, c1​).

The values p0p_0p0​ and pjp_jpj​ for j>nj > nj>n play no role.

Degenerate cases.

  • n=0n = 0n=0 is excluded.
  • For n=1n = 1n=1, the only choice is l=1l = 1l=1. The double sum is empty, so the claim is p1≥12min⁡(p1,1/c)p_1 \ge \tfrac12 \min(p_1, 1/c)p1​≥21​min(p1​,1/c).
  • If every pjp_jpj​ is zero, the claim is 0≥00 \ge 00≥0.
  • The hypotheses are satisfiable, so the statement is not vacuous.
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