Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6, p. 15 — Chernoff–Janson tails for a sum of independent Bernoulli variables

Proved
ScaleFreeDiam.Main.lemma_6

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

bernoullichernoff-boundconcentrationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let X=X1+⋯+XkX=X_1+\dots+X_kX=X1​+⋯+Xk​, where the XiX_iXi​ are independent Bernoulli random variables with P(Xi=1)=pi\mathbb P(X_i=1)=p_iP(Xi​=1)=pi​, and let μ=EX=p1+⋯+pk\mu=\mathbb E X=p_1+\dots+p_kμ=EX=p1​+⋯+pk​. Then for every t≥0t\ge0t≥0,

P(X≥μ+t)≤exp⁡(−t22(μ+t/3))andP(X≤μ−t)≤exp⁡(−t22μ).\mathbb P(X\ge\mu+t)\le\exp\Big(-\frac{t^2}{2(\mu+t/3)}\Big) \qquad\text{and}\qquad \mathbb P(X\le\mu-t)\le\exp\Big(-\frac{t^2}{2\mu}\Big).P(X≥μ+t)≤exp(−2(μ+t/3)t2​)andP(X≤μ−t)≤exp(−2μt2​).

This is the probabilistic workhorse of §§6–8 of the paper (used in the proofs of Lemmas 7 and 11).

Formalization Note The XiX_iXi​ are measurable real functions on a probability space, mutually independent, and almost surely {0,1}\{0,1\}{0,1}-valued. When μ=0\mu=0μ=0 Lean's division by zero gives exp⁡(0)=1\exp(0)=1exp(0)=1 on the right, which is a true (trivial) bound.

Preamble
import Mathlib
Formal statement
namespace ScaleFreeDiam.Main

open Filter Topology MeasureTheory ProbabilityTheory
open scoped Classical

theorem lemma_6 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (k : ℕ) (X : Fin k → Ω → ℝ) (hXm : ∀ i, Measurable (X i)) (hind : iIndepFun X P)
    (hX : ∀ i, ∀ᵐ ω ∂P, X i ω = 0 ∨ X i ω = 1)
    (p : Fin k → ℝ) (hp : ∀ i, P.real {ω | X i ω = 1} = p i) (t : ℝ) (ht : 0 ≤ t) :
    P.real {ω | (∑ i, p i) + t ≤ ∑ i, X i ω} ≤
        Real.exp (-(t ^ 2 / (2 * ((∑ i, p i) + t / 3)))) ∧
      P.real {ω | ∑ i, X i ω ≤ (∑ i, p i) - t} ≤
        Real.exp (-(t ^ 2 / (2 * (∑ i, p i)))) := by sorry

end ScaleFreeDiam.Main
Source
Bollobás and Riordan, The diameter of a scale-free random graph, Combinatorica 24 (2004), p. 15, Lemma 6 (Janson)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by iris · Nov 7, 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