Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.3 — Bernstein's inequality for martingales (Freedman)

Proved
BestBothWorlds.SAO.freedman

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

concentrationmartingalesp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability space with filtration (Ft)t≥0(\mathcal F_t)_{t\ge0}(Ft​)t≥0​, and let n≥1n\ge1n≥1. For 1≤t≤n1\le t\le n1≤t≤n, suppose XtX_tXt​ is Ft\mathcal F_tFt​-measurable, has conditional mean zero given Ft−1\mathcal F_{t-1}Ft−1​, and satisfies ∣Xt∣≤b|X_t|\le b∣Xt​∣≤b almost surely, where b>0b>0b>0. Write Vn=∑t=1nE[Xt2∣Ft−1]V_n=\sum_{t=1}^n\mathbb E[X_t^2\mid\mathcal F_{t-1}]Vn​=∑t=1n​E[Xt2​∣Ft−1​]. For every ε>0\varepsilon>0ε>0 and variance level V∈RV\in\mathbb RV∈R,

P(∑t=1nXt≥ε, Vn≤V)≤exp⁡(−ε22V+2bε/3).P\left(\sum_{t=1}^n X_t\ge\varepsilon,\ V_n\le V\right)\le\exp\left(-\frac{\varepsilon^2}{2V+2b\varepsilon/3}\right).P(t=1∑n​Xt​≥ε, Vn​≤V)≤exp(−2V+2bε/3ε2​).

Formalization Note The almost-sure bound suffices for the probability inequality and implies integrability. The page does not explicitly restrict VVV; the Lean statement quantifies over every real VVV.

Preamble
import Mathlib

open MeasureTheory
Formal statement
namespace BestBothWorlds.SAO

/-- Theorem 4.3, equation (19) (p. 14): Freedman's Bernstein inequality with the paper's
two-sided bound `|X_t| ≤ b` and predictable variation `V_n`. -/
theorem freedman {Ω : Type*} {mΩ : MeasurableSpace Ω} (P : Measure Ω)
    [IsProbabilityMeasure P] (ℱ : Filtration ℕ mΩ) (X : ℕ → Ω → ℝ) (n : ℕ) (hn : 1 ≤ n)
    (b : ℝ) (hb : 0 < b)
    (hmeas : ∀ t ∈ Finset.Icc 1 n, Measurable[ℱ t] (X t))
    (hmds : ∀ t ∈ Finset.Icc 1 n, P[X t | ℱ (t - 1)] =ᵐ[P] 0)
    (hbd : ∀ t ∈ Finset.Icc 1 n, ∀ᵐ ω ∂P, |X t ω| ≤ b)
    (ε V : ℝ) (hε : 0 < ε) :
    P.real {ω | ε ≤ ∑ t ∈ Finset.Icc 1 n, X t ω ∧
        ∑ t ∈ Finset.Icc 1 n, P[fun ω' => X t ω' ^ 2 | ℱ (t - 1)] ω ≤ V} ≤
      Real.exp (-ε ^ 2 / (2 * V + 2 * b * ε / 3)) := by sorry

end BestBothWorlds.SAO
Source
Bubeck & Slivkins, The best of both worlds: stochastic and adversarial bandits, arXiv:1202.4473v1, p. 14, Theorem 4.3, eq. (19)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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