Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.1) Theorem — under (3.4), P{S_n ≥ a and T_n ≤ b for some n} ≤ (b/(a+b))^{a+b} e^a ≤ exp[−a²/(2(a+b))]

Proved
FreedmanTail.Bernstein.theorem_4_1

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

bernstein-inequalityconcentrationfreedman-inequalitymartingalep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability triple, F0⊂F1⊂⋯\mathcal F_0\subset\mathcal F_1\subset\cdotsF0​⊂F1​⊂⋯ an increasing sequence of sub-σ\sigmaσ-fields of F\mathcal FF, and X1,X2,…X_1,X_2,\dotsX1​,X2​,… square-integrable random variables with XnX_nXn​ Fn\mathcal F_nFn​-measurable. Let Sn=X1+⋯+XnS_n=X_1+\cdots+X_nSn​=X1​+⋯+Xn​ and Tn=V1+⋯+VnT_n=V_1+\cdots+V_nTn​=V1​+⋯+Vn​ with Vn=Var⁡{Xn∣Fn−1}V_n=\operatorname{Var}\{X_n\mid\mathcal F_{n-1}\}Vn​=Var{Xn​∣Fn−1​}. Suppose (3.4):

Xn≤1 a.e.andE{Xn∣Fn−1}≤0 a.e.for all n≥1X_n\le1\ \text{a.e.}\quad\text{and}\quad E\{X_n\mid\mathcal F_{n-1}\}\le0\ \text{a.e.}\qquad\text{for all }n\ge1Xn​≤1 a.e.andE{Xn​∣Fn−1​}≤0 a.e.for all n≥1

(no lower bound on XnX_nXn​). Then for any positive numbers aaa and bbb,

P{Sn≥a and Tn≤b for some n=1,2,… }≤(ba+b)a+bea≤exp⁡[−a22(a+b)].P\{S_n\ge a\ \text{and}\ T_n\le b\ \text{for some } n=1,2,\dots\}\le\Bigl(\frac{b}{a+b}\Bigr)^{a+b}e^{a}\le\exp\Bigl[-\frac{a^{2}}{2(a+b)}\Bigr].P{Sn​≥a and Tn​≤b for some n=1,2,…}≤(a+bb​)a+bea≤exp[−2(a+b)a2​].

This is Freedman's inequality: a Bennett–Bernstein tail bound for supermartingales with increments bounded above, in which the deterministic variance of the independent case is replaced by the random intrinsic time TnT_nTn​, and which holds simultaneously for all times nnn.

Formalization Note The event is the union over all n≥1n\ge1n≥1 (infinite horizon), and its probability is the measure of that set. (b/(a+b))a+b(b/(a+b))^{a+b}(b/(a+b))a+b is a real power. Square integrability of each XnX_nXn​ is assumed because VnV_nVn​ is a conditional expectation, which Mathlib sets to 000 for non-integrable arguments, and without it TnT_nTn​ would silently be too small. This is the one hypothesis added to the page: (3.4) alone also allows increments of infinite (conditional) variance, for which the paper's TnT_nTn​ is +∞+\infty+∞ on part of Ω\OmegaΩ and those points leave the event. The assumption narrows the class of processes; the conclusion is the page's, unchanged.


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

Preamble
import Mathlib
import Definitions.Def_FreedmanTail_Bernstein_Exponents
import Definitions.Def_FreedmanTail_Bernstein_PartialSums

open MeasureTheory ProbabilityTheory
Formal statement
namespace FreedmanTail.Bernstein

/-- Freedman (1975), (4.1) Theorem, p. 107: suppose (3.4). For any positive numbers `a`, `b`,
`P{S_n ≥ a and T_n ≤ b for some n = 1, 2, ⋯} ≤ (b/(a+b))^{a+b} e^a ≤ exp[−a²/(2(a+b))]`. -/
theorem theorem_4_1 {Ω : Type*} {m : MeasurableSpace Ω}
    (P : Measure Ω) [IsProbabilityMeasure P] (ℱ : Filtration ℕ m) (X : ℕ → Ω → ℝ)
    (hmeas : ∀ n, 1 ≤ n → StronglyMeasurable[ℱ n] (X n))
    (hL2 : ∀ n, 1 ≤ n → MemLp (X n) 2 P)
    (hle : ∀ n, 1 ≤ n → X n ≤ᵐ[P] 1)
    (hdrift : ∀ n, 1 ≤ n → P[X n | ℱ (n - 1)] ≤ᵐ[P] 0)
    (a b : ℝ) (ha : 0 < a) (hb : 0 < b) :
    P {ω | ∃ n, 1 ≤ n ∧ a ≤ S X n ω ∧ T ℱ X P n ω ≤ b}
        ≤ ENNReal.ofReal ((b / (a + b)) ^ (a + b) * Real.exp a) ∧
      (b / (a + b)) ^ (a + b) * Real.exp a ≤ Real.exp (-(a ^ 2) / (2 * (a + b))) := by sorry

end FreedmanTail.Bernstein
Source
Freedman, On Tail Probabilities for Martingales, Ann. Probab. 3 (1975), p. 107 (PDF p. 8), (4.1) Theorem
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