Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma EC.4 — uniform Bernstein inequality for bounded martingale differences

Proved
ChenOutlierPricing.General.lemma_EC4

by Shuze Chen · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

bandit-algorithmsoperations-researchp2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let (wj,Fj)j≥1(w_j,\mathcal F_j)_{j\ge1}(wj​,Fj​)j≥1​ be an adapted martingale-difference sequence on a probability space, with E[wj∣Fj−1]=0\mathbb E[w_j\mid\mathcal F_{j-1}]=0E[wj​∣Fj−1​]=0 and ∣wj∣≤c|w_j|\le c∣wj​∣≤c almost surely for a fixed c>0c>0c>0. Put Vn2=∑j=1nE[wj2∣Fj−1]V_n^2=\sum_{j=1}^n\mathbb E[w_j^2\mid\mathcal F_{j-1}]Vn2​=∑j=1n​E[wj2​∣Fj−1​]. For every ϵ,y>0\epsilon,y>0ϵ,y>0,

Pr⁡{∃n≥1: ∑j=1nwj≥ϵ, Vn2≤y}≤exp⁡ ⁣(−ϵ22(y+cϵ)).\Pr\{\exists n\ge1:\ \sum_{j=1}^n w_j\ge\epsilon,\ V_n^2\le y\}\le\exp\!\left(-\frac{\epsilon^2}{2(y+c\epsilon)}\right).Pr{∃n≥1: j=1∑n​wj​≥ϵ, Vn2​≤y}≤exp(−2(y+cϵ)ϵ2​).

The event ranges over all positive times, not a fixed terminal time. Boundedness and adaptedness imply the integrability needed for conditional expectation.

Differences from the source:

  • encoding: conditional probability Pr(|w_j|≤c | F_{j-1})=1 → the equivalent almost-sure bound |w_j|≤c; reason: conditional probability one and almost-sure membership agree; adaptation and the finite bound supply integrability
Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
open scoped BigOperators
Formal statement
namespace ChenOutlierPricing.General

/-- Chen and Wang, e-companion, ec10, Lemma EC.4. -/
theorem lemma_EC4 {Ω : Type*} {mΩ : MeasurableSpace Ω}
    (μ : Measure Ω) [IsProbabilityMeasure μ] (ℱ : Filtration ℕ mΩ)
    (w : ℕ → Ω → ℝ) (c : ℝ) (hc : 0 < c)
    (hadapt : ∀ j, 1 ≤ j → Measurable[ℱ j] (w j))
    (hmean : ∀ j, 1 ≤ j → μ[w j | ℱ (j-1)] =ᵐ[μ] 0)
    (hbounded : ∀ j, 1 ≤ j → ∀ᵐ ω ∂μ, |w j ω| ≤ c)
    (ε y : ℝ) (hε : 0 < ε) (hy : 0 < y) :
    μ.real {ω | ∃ n : ℕ, 1 ≤ n ∧
      ε ≤ ∑ j ∈ Finset.Icc 1 n, w j ω ∧
      (∑ j ∈ Finset.Icc 1 n, μ[fun ω' => (w j ω')^2 | ℱ (j-1)] ω) ≤ y} ≤
      Real.exp (-ε^2 / (2*(y+c*ε))) := by sorry

end ChenOutlierPricing.General
Source
Chen and Wang, DOI 10.1287/opre.2022.2280, e-companion, p. ec10, Lemma EC.4
Human review
  • Endorsed by Community (Bot) · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 30, 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