Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 2.2.3 — ∫etf(A,x)dP≤P(A)−αexp⁡Nt28(1+1α)\int e^{tf(A,x)}dP\le P(A)^{-\alpha}\exp N\frac{t^2}{8}(1+\frac1\alpha)∫etf(A,x)dP≤P(A)−αexpN8t2​(1+α1​) and the Gaussian tail (2.2.7)

Proved
TalagrandConc.OnePoint.cor_2_2_3

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

concentration-of-measurehamming-distancep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1probability

Let (Ω,Σ,μ)(\Omega,\Sigma,\mu)(Ω,Σ,μ) be a probability space, N≥0N\ge0N≥0, P=μNP=\mu^NP=μN the product probability on ΩN\Omega^NΩN, and let A⊆ΩNA\subseteq\Omega^NA⊆ΩN be measurable. Let

f(A,x)=min⁡{card⁡{i≤N: xi≠yi}: y∈A}f(A,x)=\min\big\{\operatorname{card}\{i\le N:\ x_i\ne y_i\}:\ y\in A\big\}f(A,x)=min{card{i≤N: xi​=yi​}: y∈A}

be the Hamming distance from xxx to AAA, and assume x↦f(A,x)x\mapsto f(A,x)x↦f(A,x) is measurable. Then:

  1. for every α>0\alpha>0α>0 and every t≥0t\ge0t≥0,
∫etf(A,x) dP(x) ≤ 1P(A)αexp⁡(N t28(1+1α));\int e^{t f(A,x)}\,dP(x)\ \le\ \frac{1}{P(A)^{\alpha}}\exp\Big(N\,\frac{t^2}{8}\Big(1+\frac1\alpha\Big)\Big);∫etf(A,x)dP(x) ≤ P(A)α1​exp(N8t2​(1+α1​));
  1. if P(A)>0P(A)>0P(A)>0, then for every k≥N2log⁡1P(A)k\ge\sqrt{\frac N2\log\frac1{P(A)}}k≥2N​logP(A)1​​,
P({f(A,⋅)≥k}) ≤ exp⁡(−2N(k−N2log⁡1P(A))2).P\big(\{f(A,\cdot)\ge k\}\big)\ \le\ \exp\Big(-\frac2N\Big(k-\sqrt{\frac N2\log\frac1{P(A)}}\Big)^2\Big).P({f(A,⋅)≥k}) ≤ exp(−N2​(k−2N​logP(A)1​​)2).

The tail bound (2.2.7) has the optimal Gaussian constant 2/N2/N2/N in the exponent, the same as the best bound obtained by martingale methods, and it holds for an arbitrary probability space Ω\OmegaΩ and arbitrary measurable AAA.

Formalization Note The paper treats all sets and functions as measurable; the Lean statement makes this an explicit measurability hypothesis on f(A,⋅)f(A,\cdot)f(A,⋅). Distances and integrals are in [0,∞][0,\infty][0,∞], P(A)αP(A)^{\alpha}P(A)α is computed in [0,∞][0,\infty][0,∞] (so P(A)=0P(A)=0P(A)=0 gives +∞+\infty+∞ on the right of (2.2.6)), and (2.2.7) assumes P(A)>0P(A)>0P(A)>0, which the paper's log⁡(1/P(A))\log(1/P(A))log(1/P(A)) requires. At N=0N=0N=0 Lean reads 2/N2/N2/N as 000, which leaves a true statement.

Preamble
import Mathlib
import Definitions.Def_TalagrandConc_OnePoint_Basic

open MeasureTheory
open scoped ENNReal
Formal statement
namespace TalagrandConc.OnePoint

theorem cor_2_2_3 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (N : ℕ) (A : Set (Fin N → Ω)) (hA : MeasurableSet A)
    (hf : Measurable (hammingDistToSet A)) :
    (∀ α : ℝ, 0 < α → ∀ t : ℝ, 0 ≤ t →
      (∫⁻ x, expMul t (hammingDistToSet A x) ∂(Measure.pi fun _ : Fin N => μ))
        ≤ ENNReal.ofReal (Real.exp (N * (t ^ 2 / 8) * (1 + 1 / α)))
            / (Measure.pi fun _ : Fin N => μ) A ^ α) ∧
    (0 < (Measure.pi fun _ : Fin N => μ) A → ∀ k : ℝ,
      Real.sqrt (N / 2 * Real.log (1 / ((Measure.pi fun _ : Fin N => μ) A).toReal)) ≤ k →
      (Measure.pi fun _ : Fin N => μ) {x | ENNReal.ofReal k ≤ hammingDistToSet A x}
        ≤ ENNReal.ofReal (Real.exp (-(2 / N) *
            (k - Real.sqrt (N / 2 * Real.log (1 / ((Measure.pi fun _ : Fin N => μ) A).toReal))) ^ 2))) := by sorry

end TalagrandConc.OnePoint
Source
Talagrand, Concentration of measure and isoperimetric inequalities in product spaces, Publ. Math. IHÉS 81 (1995), p. 86, Corollary 2.2.3, Eqs. (2.2.6)–(2.2.7)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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