Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem A.2 — real-valued additive Chernoff–Hoeffding bound

Proved
PrivLearn.Generic.theorem_A_2

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

concentration-inequalitiesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let X1,…,XnX_1,\dots,X_nX1​,…,Xn​ be independent, identically distributed real random variables on a probability space, with E[Xi]=μ\mathbb E[X_i]=\muE[Xi​]=μ and a≤Xi≤ba\le X_i\le ba≤Xi​≤b for all iii. Then for every δ>0\delta>0δ>0,

Pr⁡[ ∣∑iXin−μ∣≥δ]≤2exp⁡(−2δ2n(b−a)2).\Pr\left[\,\left|\frac{\sum_i X_i}{n}-\mu\right|\ge\delta\right]\le 2\exp\left(\frac{-2\delta^2 n}{(b-a)^2}\right).Pr[​n∑i​Xi​​−μ​≥δ]≤2exp((b−a)2−2δ2n​).

This is the concentration inequality behind the uniform convergence step in the proof of Theorem 3.4: applied to the indicators Xi=1[h(xi)≠yi]X_i=\mathbf 1[h(x_i)\neq y_i]Xi​=1[h(xi​)=yi​] it bounds the deviation of the training error of a fixed hypothesis from its true error.

Formalization Note. The variables are indexed by Fin n, assumed measurable, mutually independent and pairwise identically distributed, with values in [a,b][a,b][a,b] at every point. The statement makes no assumption n≥1n\ge1n≥1 or a<ba<ba<b: for n=0n=0n=0 the average is 000 by Lean's convention x/0=0x/0=0x/0=0 and the bound is 222; for a=ba=ba=b the exponent is 000 (division by zero is 000) and the bound is 222; in both cases the inequality is trivially true, as it is in the paper's reading.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace PrivLearn.Generic

/-- Theorem A.2 (p. 35, real-valued additive Chernoff–Hoeffding bound). Let `X_0, …, X_{n−1}` be
i.i.d. real random variables with mean `μ` and values in `[a, b]`. Then for every `δ > 0`,
`Pr[|(∑ᵢ Xᵢ)/n − μ| ≥ δ] ≤ 2 exp(−2δ²n/(b − a)²)`. -/
theorem theorem_A_2 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (n : ℕ) (X : Fin n → Ω → ℝ) (hmeas : ∀ i, Measurable (X i)) (hindep : iIndepFun X P)
    (hident : ∀ i j, IdentDistrib (X i) (X j) P P)
    (μ a b : ℝ) (hmean : ∀ i, ∫ ω, X i ω ∂P = μ) (hbdd : ∀ i ω, X i ω ∈ Set.Icc a b)
    (δ : ℝ) (hδ : 0 < δ) :
    P {ω | δ ≤ |(∑ i, X i ω) / n - μ|}
      ≤ ENNReal.ofReal (2 * Real.exp (-2 * δ ^ 2 * n / (b - a) ^ 2)) := by sorry

end PrivLearn.Generic
Source
Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately?, arXiv:0803.0924v3, p. 35, Appendix A, Theorem A.2
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).

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