Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2.1.1 — ∫etf(A,x)dP≤a(t)N/P(A)≤et2N/4/P(A)\int e^{tf(A,x)}dP\le a(t)^N/P(A)\le e^{t^2N/4}/P(A)∫etf(A,x)dP≤a(t)N/P(A)≤et2N/4/P(A) and P(f(A,⋅)≥k)≤e−k2/N/P(A)P(f(A,\cdot)\ge k)\le e^{-k^2/N}/P(A)P(f(A,⋅)≥k)≤e−k2/N/P(A)

Proved
TalagrandConc.OnePoint.prop_2_1_1

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^{N}P=μN the product probability on ΩN\Omega^NΩN, and let A⊆ΩNA\subseteq\Omega^NA⊆ΩN be measurable. Let f(A,x)f(A,x)f(A,x) 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 t>0t>0t>0,
∫etf(A,x) dP(x) ≤ 1P(A)(12+et+e−t4)N ≤ 1P(A) et2N/4;\int e^{t f(A,x)}\,dP(x)\ \le\ \frac{1}{P(A)}\Big(\frac12+\frac{e^t+e^{-t}}{4}\Big)^N\ \le\ \frac{1}{P(A)}\,e^{t^2N/4};∫etf(A,x)dP(x) ≤ P(A)1​(21​+4et+e−t​)N ≤ P(A)1​et2N/4;
  1. for every k≥0k\ge 0k≥0,
P({f(A,⋅)≥k}) ≤ 1P(A) e−k2/N.P\big(\{f(A,\cdot)\ge k\}\big)\ \le\ \frac{1}{P(A)}\,e^{-k^2/N}.P({f(A,⋅)≥k}) ≤ P(A)1​e−k2/N.

This is the basic concentration principle for product measures: a set of not-too-small measure has most of the space within Hamming distance O(N)O(\sqrt N)O(N​), with a Gaussian tail.

Formalization Note The paper states (2.1.2) with an upper integral and (2.1.3) with an outer probability, then adopts the convention of treating all sets and functions as measurable; the Lean statement makes this convention an explicit measurability hypothesis on f(A,⋅)f(A,\cdot)f(A,⋅), and integrates in [0,∞][0,\infty][0,∞]. When P(A)=0P(A)=0P(A)=0 the right-hand sides are +∞+\infty+∞. The tail bound is stated for real k≥0k\ge0k≥0 (the paper's choice t=2k/Nt=2k/Nt=2k/N needs k>0k>0k>0; k=0k=0k=0 is trivial). At N=0N=0N=0 Lean reads k2/0k^2/0k2/0 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 prop_2_1_1 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (N : ℕ) (A : Set (Fin N → Ω)) (hA : MeasurableSet A)
    (hf : Measurable (hammingDistToSet A)) :
    (∀ t : ℝ, 0 < t →
      (∫⁻ x, expMul t (hammingDistToSet A x) ∂(Measure.pi fun _ : Fin N => μ))
          ≤ ENNReal.ofReal (aOne t) ^ N / (Measure.pi fun _ : Fin N => μ) A ∧
      ENNReal.ofReal (aOne t) ^ N / (Measure.pi fun _ : Fin N => μ) A
          ≤ ENNReal.ofReal (Real.exp (t ^ 2 * N / 4)) / (Measure.pi fun _ : Fin N => μ) A) ∧
    (∀ k : ℝ, 0 ≤ k →
      (Measure.pi fun _ : Fin N => μ) {x | ENNReal.ofReal k ≤ hammingDistToSet A x}
          ≤ ENNReal.ofReal (Real.exp (-k ^ 2 / N)) / (Measure.pi fun _ : Fin N => μ) A) := by sorry

end TalagrandConc.OnePoint
Source
Talagrand, Concentration of measure and isoperimetric inequalities in product spaces, Publ. Math. IHÉS 81 (1995), p. 82, Proposition 2.1.1, Eqs. (2.1.2)–(2.1.3)
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