Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of (4.1) — P{S_n ≥ a and T_n ≤ b for some n} ≤ exp[−λa + e(λ)b] for every λ ≥ 0

Proved
FreedmanTail.Bernstein.tail_le_exp

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

concentrationfreedman-inequalitymartingalep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

In the setting of Proposition (3.3), with condition (3.4) (increments Xn≤1X_n\le1Xn​≤1 a.e., square integrable and Fn\mathcal F_nFn​-measurable, with E{Xn∣Fn−1}≤0E\{X_n\mid\mathcal F_{n-1}\}\le0E{Xn​∣Fn−1​}≤0 a.e.), let a>0a>0a>0 and b>0b>0b>0, and let

A={Sn≥a and Tn≤b for some n=1,2,… }.A=\{S_n\ge a\ \text{and}\ T_n\le b\ \text{for some } n=1,2,\dots\}.A={Sn​≥a and Tn​≤b for some n=1,2,…}.

Then for every λ≥0\lambda\ge0λ≥0, with e(λ)=eλ−1−λe(\lambda)=e^\lambda-1-\lambdae(λ)=eλ−1−λ,

P{A}≤exp⁡[−λa+e(λ)b].P\{A\}\le\exp[-\lambda a+e(\lambda)b].P{A}≤exp[−λa+e(λ)b].

The event AAA is a union over all times n≥1n\ge1n≥1, so the bound is uniform in time. Optimizing over λ\lambdaλ gives Theorem (4.1).

Formalization Note P{A}P\{A\}P{A} is the measure of the set AAA (Mathlib's outer measure; AAA is measurable under the hypotheses). Square integrability of the XnX_nXn​ is assumed for the reason given in Definition (1.2).

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), proof of (4.1) Theorem, pp. 107–108: under (3.4), for positive `a, b`
and every `λ ≥ 0`, `P{S_n ≥ a and T_n ≤ b for some n} ≤ exp[−λa + e(λ)b]`. -/
theorem tail_le_exp {Ω : 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) (lam : ℝ) (hlam : 0 ≤ lam) :
    P {ω | ∃ n, 1 ≤ n ∧ a ≤ S X n ω ∧ T ℱ X P n ω ≤ b}
      ≤ ENNReal.ofReal (Real.exp (-lam * a + e lam * b)) := by sorry

end FreedmanTail.Bernstein
Source
Freedman, On Tail Probabilities for Martingales, Ann. Probab. 3 (1975), pp. 107–108 (PDF pp. 8–9), proof of (4.1) Theorem, last display of p. 107 and the first words of p. 108
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