Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8 — EX[(EY(X−Y)2)2]≤12E(X−Y)2\mathbb E_X[(\mathbb E_Y(X-Y)^2)^2] \le \frac12\mathbb E(X-Y)^2EX​[(EY​(X−Y)2)2]≤21​E(X−Y)2 for i.i.d. X,YX,YX,Y in [a,a+1][a,a+1][a,a+1]

Proved
EmpiricalBernstein.SVP.lemma_8

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

concentrationmomentsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let X,YX, YX,Y be independent random variables with the same distribution ν\nuν, taking values in an interval [a,a+1][a, a+1][a,a+1] of length one. Then

EX[(EY(X−Y)2)2]≤12 E(X−Y)2.\mathbb E_X\Big[\big(\mathbb E_Y (X-Y)^2\big)^2\Big] \le \frac12\, \mathbb E (X-Y)^2 .EX​[(EY​(X−Y)2)2]≤21​E(X−Y)2.

Here EY(X−Y)2=∫(X−y)2 dν(y)\mathbb E_Y(X-Y)^2 = \int (X-y)^2\,d\nu(y)EY​(X−Y)2=∫(X−y)2dν(y) is the conditional second moment given XXX, and the right side is 12∬(x−y)2 dν(x) dν(y)=VX\frac12\iint (x-y)^2\,d\nu(x)\,d\nu(y) = \mathbb V X21​∬(x−y)2dν(x)dν(y)=VX.

This fourth-moment inequality is what makes the sample variance a self-bounding function, and so yields the concentration of the sample variance (Theorem 10).

Formalization Note ν\nuν is a probability measure on R\mathbb RR with ν(R∖[a,a+1])=0\nu(\mathbb R\setminus[a,a+1]) = 0ν(R∖[a,a+1])=0; both sides are written as iterated integrals against ν\nuν.

Preamble
import Mathlib

open MeasureTheory
Formal statement
namespace EmpiricalBernstein.SVP

/-- Lemma 8 (arXiv:0907.3740v1, p. 3). `X, Y` i.i.d. with law `ν` concentrated on `[a, a + 1]`. -/
theorem lemma_8 (ν : Measure ℝ) [IsProbabilityMeasure ν] (a : ℝ)
    (hν : ν (Set.Icc a (a + 1))ᶜ = 0) :
    ∫ x, (∫ y, (x - y) ^ 2 ∂ν) ^ 2 ∂ν ≤ (1 / 2) * ∫ x, ∫ y, (x - y) ^ 2 ∂ν ∂ν := by sorry

end EmpiricalBernstein.SVP
Source
Maurer, Pontil, Empirical Bernstein Bounds and Sample Variance Penalization, arXiv:0907.3740v1, Lemma 8, p. 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