BanditAlgorithm.bandit_subgaussian_maximal_inequality
Proved(Maximal concentration) Let be independent -subgaussian () random variables and . Then for any and ,
(via Doob's submartingale inequality applied to ).
import Mathlib.Probability.Moments.SubGaussian open MeasureTheory ProbabilityTheory Real NNReal
theorem BanditAlgorithm.bandit_subgaussian_maximal_inequality
{Ω : Type} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P]
{X : ℕ → Ω → ℝ} {σ : ℝ≥0} (hσ : 0 < σ)
(h_indep : iIndepFun X P)
(h_subG : ∀ i, HasSubgaussianMGF (X i) (σ ^ 2) P)
{n : ℕ} (hn : 0 < n) {ε : ℝ} (hε : 0 < ε) :
P.real {ω | ∃ t, 0 < t ∧ t ≤ n ∧ ε ≤ ∑ s ∈ Finset.range t, X s ω} ≤
exp (-ε ^ 2 / (2 * n * (σ : ℝ) ^ 2)) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. Let carry a probability measure and let be a sequence of functions. For , say is -sub-Gaussian in MGF form if for every , is -integrable and . For a set , below denotes the real number obtained from the measure of (the measure is applied to the set as given — as an outer measure if is not measurable — and its value in is converted to a real number, with ; for a probability measure the value is finite anyway).
Assertion.
i.e. the probability that some partial sum of the first variables () reaches the level is at most the stated Gaussian tail.
Hypotheses.
- is a probability measure.
- The entire family is mutually independent under .
- Each is -sub-Gaussian in MGF form.
- is a nonnegative real with ; with ; with .
Edge cases.
- The event involves the raw partial sums , not averages, and the threshold inequality is non-strict.
- The exponent divides by the full range , not by the individual time at which the sum crosses.
- No centering hypothesis is stated for the beyond what the MGF bound itself expresses, and no separate measurability of the event is hypothesized.
Confirmed by the mission captain (proposal self-audit).