Theorem 4 — Freedman's inequality for martingale differences
ProvedStochLinOpt.UpperBound.freedmanLet be a probability space with a filtration . Let be real random variables such that for each :
- is -measurable, integrable, with ;
- almost surely (a martingale difference sequence);
- almost surely.
Let be the sum of conditional variances. Then for every and ,
This Bernstein-type martingale inequality lets the step bound be large as long as the conditional variances are small; the paper uses it to prove Lemma 14.
Formalization Note The paper prints the variance sum up to ; this is a typo for . The paper conditions on ; the statement uses a general filtration in which is known at time and conditioned on time , which is Freedman's original form (Ann. Probab. 1975) and contains the natural filtration as a special case. Since , the conditional variance is . Square integrability is assumed so that this conditional expectation is not Lean's junk value .
import Mathlib open MeasureTheory
namespace StochLinOpt.UpperBound
theorem freedman {Ω : Type*} {mΩ : MeasurableSpace Ω} (P : Measure Ω) [IsProbabilityMeasure P]
(𝓕 : Filtration ℕ mΩ) (X : ℕ → Ω → ℝ) (T : ℕ) (b : ℝ)
(hmeas : ∀ i ∈ Finset.Icc 1 T, Measurable[𝓕 (i + 1)] (X i))
(hint : ∀ i ∈ Finset.Icc 1 T, Integrable (X i) P)
(hint_sq : ∀ i ∈ Finset.Icc 1 T, Integrable (fun ω => X i ω ^ 2) P)
(hmds : ∀ i ∈ Finset.Icc 1 T, P[X i | 𝓕 i] =ᵐ[P] 0)
(hb : ∀ i ∈ Finset.Icc 1 T, ∀ᵐ ω ∂P, X i ω ≤ b)
(a v : ℝ) (ha : 0 < a) (hv : 0 < v) :
P.real {ω | a ≤ ∑ i ∈ Finset.Icc 1 T, X i ω ∧
∑ i ∈ Finset.Icc 1 T, P[fun ω' => X i ω' ^ 2 | 𝓕 i] ω ≤ v} ≤
Real.exp (-a ^ 2 / (2 * v + 2 * a * b / 3)) := by sorry
end StochLinOpt.UpperBound
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a probability space.
- is a filtration of sub-σ-algebras.
- are real random variables.
- and .
Hypotheses (each for every with ).
- is -measurable.
- and are -integrable.
- almost surely.
- almost surely.
Further, and are reals. Variables with or are unconstrained and unused.
Conclusion.
In the event, the conditional expectations are evaluated pointwise, using one fixed version of each. of a set is its (outer) probability.
Degenerate cases.
- : both sums are and , so the event is empty and its probability is . The bound holds whatever is. In particular:
- if , the division by zero gives exponent and the bound is ;
- if , the bound exceeds .
- , : hypotheses 3 and 4 contradict each other, so the statement is vacuous.
- , : the hypotheses force almost surely, and the event has probability .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.