Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(3.5) — E exp(λX) ≤ 1 + e(λ) Var X ≤ exp[e(λ) Var X] for X ≤ 1, E X ≤ 0, λ ≥ 0

Proved
FreedmanTail.Bernstein.ineq_3_5

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

bernstein-inequalityconcentrationmoment-generating-functionp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let XXX be a real random variable on a probability space with X≤1X\le1X≤1 almost surely and E(X)≤0E(X)\le0E(X)≤0, and let λ≥0\lambda\ge0λ≥0. With e(λ)=eλ−1−λe(\lambda)=e^{\lambda}-1-\lambdae(λ)=eλ−1−λ,

E{exp⁡(λX)}≤1+e(λ)Var⁡X≤exp⁡[e(λ)Var⁡X].E\{\exp(\lambda X)\}\le 1+e(\lambda)\operatorname{Var}X\le\exp[e(\lambda)\operatorname{Var}X].E{exp(λX)}≤1+e(λ)VarX≤exp[e(λ)VarX].

The bound involves the variance, not the second moment E(X2)E(X^2)E(X2); when E(X)<0E(X)<0E(X)<0 this is the sharper form. Applied conditionally to the increments of a supermartingale, it shows that exp⁡{λSn−e(λ)Tn}\exp\{\lambda S_n-e(\lambda)T_n\}exp{λSn​−e(λ)Tn​} is a supermartingale.

Formalization Note XXX is assumed square integrable. The page states (3.5) for all XXX with X≤1X\le1X≤1 and E(X)≤0E(X)\le0E(X)≤0 and adds "It is enough to prove (3.5) when E(X2)<∞E(X^2)<\inftyE(X2)<∞": when Var⁡X=∞\operatorname{Var}X=\inftyVarX=∞ the right-hand sides are +∞+\infty+∞ and there is nothing to prove, so the restriction loses no content. Under it, exp⁡(λX)≤eλ\exp(\lambda X)\le e^{\lambda}exp(λX)≤eλ almost surely, so the expectation is a genuine finite integral.

Preamble
import Mathlib
import Definitions.Def_FreedmanTail_Bernstein_Exponents

open MeasureTheory ProbabilityTheory
Formal statement
namespace FreedmanTail.Bernstein

/-- Freedman (1975), display (3.5), p. 106: for `λ ≥ 0` and a random variable `X` with
`X ≤ 1` and `E X ≤ 0`, `E exp(λX) ≤ 1 + e(λ) Var X ≤ exp[e(λ) Var X]`.
`X` is square integrable (the page reduces to that case: "It is enough to prove (3.5)
when E(X²) < ∞"). -/
theorem ineq_3_5 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (X : Ω → ℝ) (lam : ℝ) (hlam : 0 ≤ lam)
    (hX2 : MemLp X 2 P) (hX1 : X ≤ᵐ[P] 1) (hmean : ∫ ω, X ω ∂P ≤ 0) :
    ∫ ω, Real.exp (lam * X ω) ∂P ≤ 1 + e lam * variance X P ∧
      1 + e lam * variance X P ≤ Real.exp (e lam * variance X P) := by sorry

end FreedmanTail.Bernstein
Source
Freedman, On Tail Probabilities for Martingales, Ann. Probab. 3 (1975), p. 106 (PDF p. 7), display (3.5) in the proof of (3.3) Proposition
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