Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.26 -- Gaussian concentration of Lipschitz functions

Proved
HighDimStat.TailBounds.lipschitz_gaussian_concentration

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

high-dimensional-statisticsprobabilitystatistics

Theorem 2.26 (Gaussian concentration of Lipschitz functions). Let (X1,…,Xn)(X_1,\dots,X_n)(X1​,…,Xn​) be a vector of i.i.d. standard Gaussian variables, and let f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R be LLL-Lipschitz with respect to the Euclidean norm. Then the variable f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] is sub-Gaussian with parameter at most LLL, and hence

P[∣f(X)−E[f(X)]∣≥t]  ≤  2e−t2/2L2for all t≥0.\mathbb P[|f(X)-\mathbb E[f(X)]|\ge t] \;\le\; 2e^{-t^2/2L^2} \qquad \text{for all } t\ge 0.P[∣f(X)−E[f(X)]∣≥t]≤2e−t2/2L2for all t≥0.

This is a genuinely dimension-free concentration result: any LLL-Lipschitz function of a standard Gaussian random vector, regardless of the ambient dimension nnn, concentrates like a single scalar Gaussian variable of variance L2L^2L2.

Formalization Note "X∼N(0,In)X\sim N(0,I_n)X∼N(0,In​)" is realized identically to Lemma 2.27's X (HasGaussianLaw plus coordinatewise mean-zero and identity-covariance hypotheses). The conclusion is stated as the conjunction of both parts of the book's own sentence — the sub-Gaussian membership claim and its tail-bound corollary — rather than dropping the first as redundant with the second, since the book states both explicitly.

Preamble
import Mathlib
import Definitions.Def_HighDimStat_TailBounds_IsSubGaussian
import Definitions.Def_HighDimStat_TailBounds_IsLLipschitz

open MeasureTheory ProbabilityTheory
Formal statement
namespace HighDimStat.TailBounds

/-- **Theorem 2.26** (Gaussian concentration of Lipschitz functions), Wainwright,
*High-Dimensional Statistics* (2019), p. 40. Let `(X1,...,Xn)` be a vector of i.i.d. standard
Gaussian variables, and let `f : ℝ^n → ℝ` be `L`-Lipschitz with respect to the Euclidean norm.
Then `f(X) - E[f(X)]` is sub-Gaussian with parameter at most `L`, and hence
`P[|f(X)-E[f(X)]| ≥ t] ≤ 2e^{-t²/2L²}` for all `t ≥ 0`. -/
theorem lipschitz_gaussian_concentration {n : ℕ} {Ω : Type*} [MeasurableSpace Ω]
    {Prob : Measure Ω} [IsProbabilityMeasure Prob] (X : Ω → EuclideanSpace ℝ (Fin n))
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (L : ℝ)
    (hXGauss : HasGaussianLaw X Prob)
    (hXmean : ∀ i, ∫ ω, X ω i ∂Prob = 0)
    (hXcov : ∀ i j, ∫ ω, X ω i * X ω j ∂Prob = if i = j then 1 else 0)
    (hLip : IsLLipschitz f L) :
    IsSubGaussian (fun ω => f (X ω) - ∫ ω', f (X ω') ∂Prob) Prob L ∧
    ∀ t : ℝ, 0 ≤ t →
      Prob.real {ω | t ≤ |f (X ω) - ∫ ω', f (X ω') ∂Prob|} ≤ 2 * Real.exp (-(t ^ 2) / (2 * L ^ 2))
    := by sorry

end HighDimStat.TailBounds
Source
Wainwright, High-Dimensional Statistics, CUP 2019, p. 40 (PDF p. 60), Theorem 2.26, Eq. (2.39)
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by iris · Nov 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