Theorem 4 (Freedman) — Bernstein-type tail bound for martingales
ProvedStochLinOpt.LowerBound.freedmanLet be a probability space with a filtration , and let be real random variables such that for each :
- is -measurable, integrable and square-integrable;
- almost surely (a martingale difference sequence);
- almost surely, for a constant .
Let be the sum of conditional variances. Then for every and ,
This is Freedman's Bernstein-type inequality (Freedman 1975; McDiarmid 1998, Theorem 3.15). In Section 6.1 it is applied to the stopped bias martingale and its negative to show that the bias rarely leaves while the accumulated conditional variance is small.
Formalization Note The paper writes the variance sum as and conditions on ; here the sum runs to (the paper's is a typo) and the conditioning is on a general filtration to which the are adapted, which contains the natural one and is the form used in Section 6.1 (the filtration of histories ). Because , the conditional variance equals the conditional second moment. Square-integrability is assumed so that Lean's conditional expectation of is not the junk value ; it holds in every application here (bounded steps).
import Mathlib open MeasureTheory
namespace StochLinOpt.LowerBound
theorem freedman {Ω : Type*} {mΩ : MeasurableSpace Ω} (P : Measure Ω) [IsProbabilityMeasure P]
(ℱ : Filtration ℕ mΩ) (X : ℕ → Ω → ℝ) (T : ℕ) (b : ℝ)
(hmeas : ∀ i ∈ Finset.Icc 1 T, Measurable[ℱ i] (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 - 1)] =ᵐ[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 - 1)] ω ≤ v} ≤
Real.exp (-a ^ 2 / (2 * v + 2 * a * b / 3)) := by sorry
end StochLinOpt.LowerBound
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. is not required to be trivial.
- are real random variables.
- , and is arbitrary: it may be zero or negative.
Hypotheses. For every with (nothing is assumed about or for ):
- is -measurable.
- is integrable.
- is integrable.
- -almost surely.
- -almost surely. This is a one-sided upper bound only.
Claim. For every and ,
The event is defined pointwise, using the one version of each conditional expectation that the library fixes.
Degenerate cases.
- Zero horizon. If , every hypothesis is vacuous. Both sums are , so the event requires and is empty; the claim reads .
- Negative . If and , hypotheses 4 and 5 contradict each other: a variable that is almost surely cannot have conditional mean . The statement is then vacuous.
- Zero . If , hypotheses 4 and 5 force almost surely for .
- Division by zero in the exponent. If , the quotient is by convention and the bound is . This can only happen when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.