Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Remark 2.1.3 — weighted Hamming distance: ∫etfdP≤et2∑ai2/4/P(A)\int e^{tf}dP\le e^{t^2\sum a_i^2/4}/P(A)∫etfdP≤et2∑ai2​/4/P(A)

Proved
TalagrandConc.OnePoint.remark_2_1_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, P=μNP=\mu^NP=μN on ΩN\Omega^NΩN, and let (ai)i≤N(a_i)_{i\le N}(ai​)i≤N​ be positive numbers. For a measurable A⊆ΩNA\subseteq\Omega^NA⊆ΩN let

f(A,x)=inf⁡{∑{ai: i≤N, xi≠yi} : y∈A}f(A,x)=\inf\Big\{\sum\{a_i:\ i\le N,\ x_i\neq y_i\}\ :\ y\in A\Big\}f(A,x)=inf{∑{ai​: i≤N, xi​=yi​} : y∈A}

be the weighted Hamming distance, and assume x↦f(A,x)x\mapsto f(A,x)x↦f(A,x) is measurable. Then for every t>0t>0t>0,

∫etf(A,x) dP(x) ≤ 1P(A) et2∑i≤Nai2/4,\int e^{t f(A,x)}\,dP(x)\ \le\ \frac{1}{P(A)}\,e^{t^2\sum_{i\le N}a_i^2/4},∫etf(A,x)dP(x) ≤ P(A)1​et2∑i≤N​ai2​/4,

and for every u≥0u\ge0u≥0,

P({f(A,⋅)≥u}) ≤ 1P(A) e−u2/∑i≤Nai2.P\big(\{f(A,\cdot)\ge u\}\big)\ \le\ \frac{1}{P(A)}\,e^{-u^2/\sum_{i\le N}a_i^2}.P({f(A,⋅)≥u}) ≤ P(A)1​e−u2/∑i≤N​ai2​.

The weighted version is the form used when coordinates contribute unequally, and it is the model for the extensions that the paper leaves unstated in Chapters 2–5.

Formalization Note Same measurability convention as Proposition 2.1.1; the distance lives in [0,∞][0,\infty][0,∞], equal to +∞+\infty+∞ when A=∅A=\emptysetA=∅. The range t>0t>0t>0 is that of Proposition 2.1.1, whose proof the remark invokes.

Preamble
import Mathlib
import Definitions.Def_TalagrandConc_OnePoint_Basic

open MeasureTheory
open scoped ENNReal
Formal statement
namespace TalagrandConc.OnePoint

theorem remark_2_1_3 {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
    (N : ℕ) (a : Fin N → ℝ) (ha : ∀ i, 0 < a i) (A : Set (Fin N → Ω)) (hA : MeasurableSet A)
    (hf : Measurable (weightedHammingDistToSet a A)) :
    (∀ t : ℝ, 0 < t →
      (∫⁻ x, expMul t (weightedHammingDistToSet a A x) ∂(Measure.pi fun _ : Fin N => μ))
          ≤ ENNReal.ofReal (Real.exp (t ^ 2 * (∑ i, a i ^ 2) / 4))
              / (Measure.pi fun _ : Fin N => μ) A) ∧
    (∀ u : ℝ, 0 ≤ u →
      (Measure.pi fun _ : Fin N => μ) {x | ENNReal.ofReal u ≤ weightedHammingDistToSet a A x}
          ≤ ENNReal.ofReal (Real.exp (-u ^ 2 / ∑ i, a i ^ 2))
              / (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. 84, Remark 2.1.3, Eqs. (2.1.7)–(2.1.9)
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