Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 13 — EF(X,X′)≤sup⁡(x,x′)EσF((σ,x,x′),(−σ,x,x′))\mathbb EF(X,X') \le \sup_{(x,x')}\mathbb E_\sigma F((\sigma,x,x'),(-\sigma,x,x'))EF(X,X′)≤sup(x,x′)​Eσ​F((σ,x,x′),(−σ,x,x′))

Proved
EmpiricalBernstein.SVP.lemma_13

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

learning-theoryp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1symmetrization

Let X=(X1,…,Xn)X = (X_1,\dots,X_n)X=(X1​,…,Xn​) and X′=(X1′,…,Xn′)X' = (X'_1,\dots,X'_n)X′=(X1′​,…,Xn′​) be random vectors with values in Xn\mathcal X^nXn such that all the XiX_iXi​ and Xi′X'_iXi′​ are independent and identically distributed with law μ\muμ. Let G:X2n→[0,1]G : \mathcal X^{2n} \to [0,1]G:X2n→[0,1]. Then

E G(X,X′)≤sup⁡(x,x′)∈X2nEσ G((σ,x,x′),(−σ,x,x′)),\mathbb E\, G(X, X') \le \sup_{(x,x') \in \mathcal X^{2n}} \mathbb E_\sigma\, G\big((\sigma,x,x'), (-\sigma,x,x')\big),EG(X,X′)≤(x,x′)∈X2nsup​Eσ​G((σ,x,x′),(−σ,x,x′)),

where σ=(σ1,…,σn)\sigma = (\sigma_1,\dots,\sigma_n)σ=(σ1​,…,σn​) has independent coordinates uniform on {−1,1}\{-1,1\}{−1,1} and (σ,x,x′)(\sigma,x,x')(σ,x,x′) is the swapped vector.

This is the symmetrization step of the double-sample method: swapping XiX_iXi​ and Xi′X'_iXi′​ does not change the joint law, so the expectation can be bounded by a worst case over fixed double samples, where only the random signs remain.

Formalization Note The paper calls the function FFF; it is G here because F is the hypothesis class elsewhere in the mission. (X,X′)(X,X')(X,X′) has law μn⊗μn\mu^n \otimes \mu^nμn⊗μn on (Fin n → 𝒳) × (Fin n → 𝒳); Eσ\mathbb E_\sigmaEσ​ is the uniform average over the 2n2^n2n vectors σ : Fin n → Bool. Added hypothesis: GGG is measurable, making precise the paper's convention that measurability questions are ignored. The supremum is a real supremum of values in [0,1][0,1][0,1], hence bounded.

Preamble
import Mathlib
import Definitions.Def_EmpiricalBernstein_SVP_swap

open MeasureTheory
Formal statement
namespace EmpiricalBernstein.SVP

/-- Lemma 13 (arXiv:0907.3740v1, p. 5): `X, X′` independent i.i.d. samples of size `n` from `μ`;
`𝔼_σ` is the uniform average over the `2^n` sign vectors `σ`; `G` is the paper's `F`. -/
theorem lemma_13 {𝒳 : Type*} [MeasurableSpace 𝒳] (μ : Measure 𝒳) [IsProbabilityMeasure μ]
    {n : ℕ} (G : (Fin n → 𝒳) × (Fin n → 𝒳) → ℝ) (hGm : Measurable G)
    (hG : ∀ p, G p ∈ Set.Icc (0 : ℝ) 1) :
    ∫ p, G p ∂((Measure.pi fun _ : Fin n => μ).prod (Measure.pi fun _ : Fin n => μ))
      ≤ ⨆ p : (Fin n → 𝒳) × (Fin n → 𝒳),
          ((2 : ℝ) ^ n)⁻¹ * ∑ σ : Fin n → Bool,
            G (swap σ p.1 p.2, swap (fun i => !σ i) p.1 p.2) := by sorry

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