Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.27 -- the Gaussian interpolation identity

Proved
HighDimStat.TailBounds.gaussian_interpolation_identity

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

high-dimensional-statisticsprobabilitystatistics

Lemma 2.27 (Gaussian interpolation identity). Suppose that f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R is differentiable. Then for any convex function φ:R→R\varphi:\mathbb R\to\mathbb Rφ:R→R,

E[φ(f(X)−E[f(X)])]  ≤  E[φ(π2⟨∇f(X),Y⟩)],\mathbb E\big[\varphi(f(X)-\mathbb E[f(X)])\big] \;\le\; \mathbb E\Big[\varphi\Big(\frac{\pi}{2}\langle\nabla f(X), Y\rangle\Big)\Big],E[φ(f(X)−E[f(X)])]≤E[φ(2π​⟨∇f(X),Y⟩)],

where X,Y∼N(0,In)X, Y \sim N(0,I_n)X,Y∼N(0,In​) are standard multivariate Gaussian and independent.

This is the classical interpolation identity, exploiting the rotation invariance of the Gaussian distribution, that Theorem 2.26's proof builds on: applying it to φ(t)=eλt\varphi(t)=e^{\lambda t}φ(t)=eλt converts a bound on f(X)−E[f(X)]f(X)-\mathbb E[f(X)]f(X)−E[f(X)] into a bound on the (explicitly Gaussian, hence directly computable) linear form ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩.

Formalization Note "X,Y∼N(0,In)X,Y\sim N(0,I_n)X,Y∼N(0,In​) independent" is realized via Mathlib's HasGaussianLaw together with explicit coordinatewise mean-zero and identity-covariance hypotheses (jointly pinning down the standard multivariate normal law) and IndepFun. The inner product ⟨∇f(X),Y⟩\langle\nabla f(X),Y\rangle⟨∇f(X),Y⟩ is realized as fderiv ℝ f (X ω) (Y ω) — the Fréchet derivative of fff at X(ω)X(\omega)X(ω) applied to Y(ω)Y(\omega)Y(ω), which equals ⟨∇f(X(ω)),Y(ω)⟩\langle\nabla f(X(\omega)),Y(\omega)\rangle⟨∇f(X(ω)),Y(ω)⟩ by the Riesz representation of the gradient on a Hilbert space, without needing to separately construct a gradient vector.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace HighDimStat.TailBounds

/-- **Lemma 2.27** (Gaussian interpolation identity), Wainwright, *High-Dimensional Statistics*
(2019), p. 41. If `f : ℝ^n → ℝ` is differentiable, then for any convex `φ : ℝ → ℝ`,
`E[φ(f(X)-E[f(X)])] ≤ E[φ((π/2)⟨∇f(X),Y⟩)]`, where `X, Y ~ N(0,Iₙ)` are standard multivariate
Gaussian and independent. -/
theorem gaussian_interpolation_identity {n : ℕ} {Ω : Type*} [MeasurableSpace Ω] {Prob : Measure Ω}
    [IsProbabilityMeasure Prob] (X Y : Ω → EuclideanSpace ℝ (Fin n))
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : Differentiable ℝ f)
    (hXGauss : HasGaussianLaw X Prob) (hYGauss : HasGaussianLaw Y Prob)
    (hIndep : IndepFun X Y Prob)
    (hXmean : ∀ i, ∫ ω, X ω i ∂Prob = 0) (hYmean : ∀ i, ∫ ω, Y ω i ∂Prob = 0)
    (hXcov : ∀ i j, ∫ ω, X ω i * X ω j ∂Prob = if i = j then 1 else 0)
    (hYcov : ∀ i j, ∫ ω, Y ω i * Y ω j ∂Prob = if i = j then 1 else 0)
    (φ : ℝ → ℝ) (hφ : ConvexOn ℝ Set.univ φ)
    (hInt1 : Integrable (fun ω => φ (f (X ω) - ∫ ω', f (X ω') ∂Prob)) Prob)
    (hInt2 : Integrable (fun ω => φ (Real.pi / 2 * fderiv ℝ f (X ω) (Y ω))) Prob) :
    ∫ ω, φ (f (X ω) - ∫ ω', f (X ω') ∂Prob) ∂Prob ≤
      ∫ ω, φ (Real.pi / 2 * fderiv ℝ f (X ω) (Y ω)) ∂Prob := by sorry

end HighDimStat.TailBounds
Source
Wainwright, High-Dimensional Statistics, CUP 2019, p. 41 (PDF p. 61), Lemma 2.27, Eq. (2.40)
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).

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