Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
LubyMIS.Derandomized.technical_lemma

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

inclusion-exclusioninequalitiesp2o-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,1/c}.\max\{\gamma_l : 1 \le l \le n\} \ \ge\ \tfrac12 \min\{\alpha_n, 1/c\}.max{γl​:1≤l≤n} ≥ 21​min{αn​,1/c}.

This inequality is what turns the second-order inclusion–exclusion bound in the proofs of Lemmas C and D into a bound in terms of sum(i)\mathrm{sum}(i)sum(i).

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; monotonicity is assumed 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. The statement is identical to the one in the companion mission on Algorithms A and B.

Preamble
import Mathlib
Formal statement
namespace LubyMIS.Derandomized

/-- 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.Derandomized
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 n≥1n \ge 1n≥1 be a natural number and c>0c > 0c>0 a real number. Let p:N→Rp : \mathbb{N} \to \mathbb{R}p:N→R be any real sequence such that:

  • pk≤pjp_k \le p_jpk​≤pj​ whenever 1≤j≤k≤n1 \le j \le k \le n1≤j≤k≤n, so ppp is non-increasing on {1,…,n}\{1, \dots, n\}{1,…,n};
  • pn≥0p_n \ge 0pn​≥0, which makes p1,…,pnp_1, \dots, p_np1​,…,pn​ all nonnegative.

The statement asserts that there exists 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\Big( \sum_{j=1}^{n} p_j,\ \frac1c \Big).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 pkp_kpk​ for k>nk > nk>n play no role.

Degenerate cases:

  • For n=1n = 1n=1, the claim is p1≥12min⁡(p1,1/c)p_1 \ge \tfrac12 \min(p_1, 1/c)p1​≥21​min(p1​,1/c) with l=1l = 1l=1. The inner double sum is empty.
  • If p1=⋯=pn=0p_1 = \dots = p_n = 0p1​=⋯=pn​=0, both sides are 000.
  • There is no division by zero, since c>0c > 0c>0.
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