Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bernstein's inequality for independent Hilbert-space-valued random variables

Proved
SupportVectorMachines.Concentration.theorem_6_14_bernstein_hilbert_space

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

machine-learningprobabilitystatistics

This is Theorem 6.14 of Steinwart & Christmann, Support Vector Machines (Springer 2008, p. 216), a clean, self-contained generalization of the classical scalar Bernstein inequality (Theorem 6.12) to Hilbert-space-valued random variables.

Let (Ω,A,P)(\Omega,\mathcal A,P)(Ω,A,P) be a probability space, HHH a separable Hilbert space, B,σ>0B,\sigma>0B,σ>0, and let ξ1,…,ξn:Ω→H\xi_1,\dots,\xi_n : \Omega \to Hξ1​,…,ξn​:Ω→H be independent random variables with E ξi=0\mathbb E\,\xi_i = 0Eξi​=0, ∥ξi∥∞≤B\|\xi_i\|_\infty \le B∥ξi​∥∞​≤B, and E ∥ξi∥H2≤σ2\mathbb E\,\|\xi_i\|_H^2 \le \sigma^2E∥ξi​∥H2​≤σ2 for every iii. Then, for every τ>0\tau > 0τ>0,

P ⁣(∥1n∑i=1nξi∥H≥2σ2τn+σ2n+2Bτ3n)≤e−τ.P\!\left(\Big\|\frac1n\sum_{i=1}^n \xi_i\Big\|_H \ge \sqrt{\frac{2\sigma^2\tau}{n}} + \sqrt{\frac{\sigma^2}{n}} + \frac{2B\tau}{3n}\right) \le e^{-\tau}.P(​n1​i=1∑n​ξi​​H​≥n2σ2τ​​+nσ2​​+3n2Bτ​)≤e−τ.

The tail bound has three terms, unlike the scalar Theorem 6.12's two: the middle term σ2/n\sqrt{\sigma^2/n}σ2/n​ is the dimension-independent price of concentrating a vector-valued average, absent from the real-valued case. This inequality is used throughout the rest of the book (directly, and via its Hilbert-space-Hoeffding corollary, Corollary 6.15) to control the deviation of an empirical mean of Hilbert-space-valued quantities — such as the values Φ(xi)yi\Phi(x_i)y_iΦ(xi​)yi​ occurring in the analysis of SVMs — around its expectation, which is exactly the kind of vector-valued concentration a scalar inequality applied only to ∥ξi∥\|\xi_i\|∥ξi​∥ could not deliver.

Formalization Note The norm in the conclusion, ∥⋅∥H\|\cdot\|_H∥⋅∥H​, is the Hilbert space norm of the average of the random variables themselves, not a scalar reduction via ∥ξi∥H\|\xi_i\|_H∥ξi​∥H​: the goal genuinely concentrates a vector-valued quantity. ∥ξi∥∞≤B\|\xi_i\|_\infty\le B∥ξi​∥∞​≤B is the almost-sure bound ∀ᵐ ω ∂P, ‖ξ i ω‖ ≤ B. HHH's separability (TopologicalSpace.SeparableSpace H) is a real hypothesis reused from Theorem 6.13's proof, not boilerplate. Independence is of the HHH-valued random variables themselves (iIndepFun), matching the book's use of mutual independence of the whole family in Theorem 6.13's proof, which this theorem's own proof invokes.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace SupportVectorMachines.Concentration

/-- Theorem 6.14 (Bernstein's inequality in Hilbert spaces), p. 216: let `(Ω, A, P)` be a
probability space, `H` be a separable Hilbert space, `B > 0`, and `σ > 0`. Let
`ξ₁,…,ξₙ : Ω → H` be independent random variables satisfying `E ξᵢ = 0`, `‖ξᵢ‖_∞ ≤ B`, and
`E ‖ξᵢ‖²_H ≤ σ²` for all `i = 1,…,n`. Then, for all `τ > 0`,
`P(‖(1/n) ∑ᵢ ξᵢ‖_H ≥ √(2σ²τ/n) + √(σ²/n) + 2Bτ/(3n)) ≤ e^{-τ}`. -/
theorem theorem_6_14_bernstein_hilbert_space {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H]
    [CompleteSpace H] [MeasurableSpace H] [BorelSpace H] [TopologicalSpace.SeparableSpace H]
    (B σ : ℝ) (hB : 0 < B) (hσ : 0 < σ) (n : ℕ) (hn : 0 < n) (ξ : Fin n → Ω → H)
    (hmeas : ∀ i, Measurable (ξ i)) (hindep : iIndepFun ξ P)
    (hmean : ∀ i, ∫ ω, ξ i ω ∂P = 0) (hbound : ∀ i, ∀ᵐ ω ∂P, ‖ξ i ω‖ ≤ B)
    (hvar : ∀ i, ∫ ω, ‖ξ i ω‖ ^ 2 ∂P ≤ σ ^ 2) (τ : ℝ) (hτ : 0 < τ) :
    P.real {ω | Real.sqrt (2 * σ ^ 2 * τ / n) + Real.sqrt (σ ^ 2 / n) + 2 * B * τ / (3 * n) ≤
        ‖(1 / (n : ℝ)) • ∑ i, ξ i ω‖} ≤ Real.exp (-τ) := by sorry

end SupportVectorMachines.Concentration
Source
Steinwart & Christmann, Support Vector Machines, Springer 2008, p. 216, Theorem 6.14
Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 24, 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