Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9.2 — concentration of Hilbert-space-valued sample means

Proved
SupportVectorMachines.Regression.lemma_9_2_concentration_of_hilbert_space_valued_means

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

machine-learningprobabilitystatistics

This is Lemma 9.2 of Steinwart & Christmann, Support Vector Machines (Springer 2008, p. 336), this mission's goal: the concentration inequality the book uses "to bound the probability of ∣RL,P(fD,λ)−RL,P(fP,λ)∣≤ε|R_{L,P}(f_{D,\lambda}) - R_{L,P}(f_{P,\lambda})| \le \varepsilon∣RL,P​(fD,λ​)−RL,P​(fP,λ​)∣≤ε for ∣D∣→∞|D| \to \infty∣D∣→∞" inside the proof of Theorem 9.1, the chapter's main SVM-regression consistency theorem.

Let ZZZ be a measurable space, PPP a distribution on ZZZ, HHH a separable Hilbert space, and g:Z→Hg : Z \to Hg:Z→H measurable with ∥g∥q:=(EP∥g∥Hq)1/q<∞\|g\|_q := (\mathbb E_P\|g\|_H^q)^{1/q} < \infty∥g∥q​:=(EP​∥g∥Hq​)1/q<∞ for some q∈(1,∞)q \in (1,\infty)q∈(1,∞). Write q∗:=min⁡{1/2,1/q′}q^* := \min\{1/2, 1/q'\}q∗:=min{1/2,1/q′} where 1/q+1/q′=11/q + 1/q' = 11/q+1/q′=1 (equivalently q∗=min⁡{1/2, 1−1/q}q^* = \min\{1/2,\, 1-1/q\}q∗=min{1/2,1−1/q}). Then there is a universal constant cq>0c_q > 0cq​>0 such that, for every ε>0\varepsilon > 0ε>0 and n≥1n \ge 1n≥1,

Pn ⁣({(z1,…,zn)∈Zn:∥1n∑i=1ng(zi)−EPg∥H≥ε})≤cq(∥g∥qε nq∗)q.P^n\!\left(\left\{(z_1,\dots,z_n) \in Z^n : \left\|\frac1n\sum_{i=1}^n g(z_i) - \mathbb E_P g\right\|_H \ge \varepsilon\right\}\right) \le c_q\left(\frac{\|g\|_q}{\varepsilon\, n^{q^*}}\right)^{q}.Pn({(z1​,…,zn​)∈Zn:​n1​i=1∑n​g(zi​)−EP​g​H​≥ε})≤cq​(εnq∗∥g∥q​​)q.

The lemma is a genuine generalization of the classical Chebyshev/Bernstein-type tail bound to Hilbert-space-valued sample means, phrased purely in terms of a single moment condition (no exponential-moment/sub-Gaussian assumption); its proof combines Markov's inequality with the two milestones of this mission (the symmetrization inequality, Theorem A.8.1, and Kahane's inequality, Theorem A.8.3) and an explicit second-moment computation for Rademacher sums (the book's Eq. (9.4), an unnumbered consequence of the two theorems, not separately formalized here per Hard Rule 5).

Formalization Note PnP^nPn (the book's nnn-fold product distribution on ZnZ^nZn) is MeasureTheory.Measure.pi (fun _ : Fin n => P) : Measure (Fin n → Z), and ZnZ^nZn is Fin n → Z. The quantifier for the universal constant is ∃ c, 0 < c ∧ ∀ ε, 0 < ε → ∀ n, 1 ≤ n → …, with ∃ c placed before both ∀ ε and ∀ n, matching the book's "there exists a universal constant cqc_qcq​... such that, for all ε>0\varepsilon>0ε>0 and all n≥1n\ge1n≥1" exactly (Trap 8 guard: cqc_qcq​ depends only on qqq, never on ε\varepsilonε or nnn). q∗q^*q∗ is substituted directly as min (1/2) (1 - 1/q) rather than introduced via a separate q' variable, since 1/q + 1/q' = 1 pins down q' = q/(q-1) uniquely and 1/q' = 1 - 1/q follows immediately — an algebraic simplification, not a change of content.

Preamble
import Mathlib

open MeasureTheory TopologicalSpace
Formal statement
namespace SupportVectorMachines.Regression

/-- Lemma 9.2, p. 336: let `Z` be a measurable space, `P` a distribution on `Z`, `H` a separable
Hilbert space, and `g : Z → H` measurable with `‖g‖_q := (E_P‖g‖^q_H)^{1/q} < ∞` for some
`q ∈ (1,∞)`. Write `q* := min{1/2, 1/q'}` where `1/q + 1/q' = 1`, i.e. `q* = min{1/2, 1 - 1/q}`.
Then there is a universal constant `c_q > 0` such that, for all `ε > 0` and `n ≥ 1`,
`P^n{(z₁,…,zₙ) : ‖(1/n)∑ᵢg(zᵢ) - E_Pg‖_H ≥ ε} ≤ c_q (‖g‖_q / (ε n^{q*}))^q`. -/
theorem lemma_9_2_concentration_of_hilbert_space_valued_means
    {Z : Type*} [MeasurableSpace Z] (P : Measure Z) [IsProbabilityMeasure P]
    {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H]
    [MeasurableSpace H] [BorelSpace H] [SeparableSpace H]
    (g : Z → H) (hg : Measurable g)
    (q : ℝ) (hq : 1 < q) (hgInt : Integrable (fun z => ‖g z‖ ^ q) P) :
    ∃ c : ℝ, 0 < c ∧ ∀ ε : ℝ, 0 < ε → ∀ n : ℕ, 1 ≤ n →
      (Measure.pi (fun _ : Fin n => P))
          {z : Fin n → Z | ε ≤ ‖(n : ℝ)⁻¹ • (∑ i, g (z i)) - ∫ z', g z' ∂P‖} ≤
        ENNReal.ofReal
          (c * ((∫ z, ‖g z‖ ^ q ∂P) ^ (1 / q) /
              (ε * (n : ℝ) ^ (min (1 / 2 : ℝ) (1 - 1 / q)))) ^ q) := by sorry

end SupportVectorMachines.Regression
Source
Steinwart & Christmann, Support Vector Machines, Springer 2008, p. 336, Lemma 9.2
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