Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 5.6, p. 20 — Hoeffding for the empirical mean of a [−b, b]-valued query

Proved
PrivLearn.LocalSim.hoeffding_display

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

concentrationhoeffdingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let PPP be a probability distribution on DDD, let g:D→[−b,b]g:D\to[-b,b]g:D→[−b,b] be measurable with b>0b>0b>0, write v=Eu∼P[g(u)]v=\mathbb E_{u\sim P}[g(u)]v=Eu∼P​[g(u)], and let τ>0\tau>0τ>0. If u1,…,unu_1,\dots,u_nu1​,…,un​ are i.i.d. from PPP, then

Pr⁡[∣1n∑i=1ng(ui)−v∣≥τ2]≤2exp⁡(−τ2n8b2).\Pr\Bigl[\Bigl|\frac1n\sum_{i=1}^n g(u_i)-v\Bigr|\ge\frac\tau2\Bigr]\le 2\exp\Bigl(-\frac{\tau^2n}{8b^2}\Bigr).Pr[​n1​i=1∑n​g(ui​)−v​≥2τ​]≤2exp(−8b2τ2n​).

This is the Chernoff–Hoeffding bound (Theorem A.2) with range [−b,b][-b,b][−b,b] and deviation τ/2\tau/2τ/2; it controls the sampling error of Ag\mathcal A_gAg​ in the proof of Lemma 5.6.

Formalization Note. The statement is for every n∈Nn\in\mathbb Nn∈N; at n=0n=0n=0 the right-hand side is 222 and the bound is trivial.

Preamble
import Mathlib
Formal statement
namespace PrivLearn.LocalSim

open MeasureTheory

/-- Proof of Lemma 5.6 (p. 20), first display: for i.i.d. `u_1, …, u_n ∼ P` and a measurable
`g : Dom → [−b, b]` with mean `v = E_{u∼P}[g(u)]`,
`Pr[|(1/n) ∑ g(u_i) − v| ≥ τ/2] ≤ 2 exp(−τ² n / (8 b²))`. -/
theorem hoeffding_display {Dom : Type*} [MeasurableSpace Dom] (P : Measure Dom)
    [IsProbabilityMeasure P] (g : Dom → ℝ) (hgm : Measurable g) (b τ : ℝ) (hb : 0 < b)
    (hτ : 0 < τ) (hg : ∀ u, |g u| ≤ b) (n : ℕ) :
    (Measure.pi fun _ : Fin n => P)
        {u | τ / 2 ≤ |(1 / (n : ℝ)) * ∑ i, g (u i) - ∫ x, g x ∂P|}
      ≤ ENNReal.ofReal (2 * Real.exp (-(τ ^ 2 * n) / (8 * b ^ 2))) := by sorry

end PrivLearn.LocalSim
Source
Kasiviswanathan, Lee, Nissim, Raskhodnikova and Smith, What Can We Learn Privately?, arXiv:0803.0924v3, p. 20, proof of Lemma 5.6, first display (instance of Theorem A.2, p. 35)
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