BanditAlgorithm.bandit_ucb_index_count_bound
Proved(Core counting lemma) Let be independent 1-subgaussian random variables (Mathlib's HasSubgaussianMGF with variance proxy 1) on a probability space, and let be the sample mean of the first of them. For , and the real-valued sum of indicators
the expectation satisfies
import Mathlib.Probability.Moments.SubGaussian import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic open MeasureTheory ProbabilityTheory Real
theorem BanditAlgorithm.bandit_ucb_index_count_bound
{Ω : Type} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P]
{X : ℕ → Ω → ℝ}
(h_indep : iIndepFun X P)
(h_subG : ∀ i, HasSubgaussianMGF (X i) 1 P)
{n : ℕ} {ε a : ℝ} (hε : 0 < ε) (ha : 0 < a) :
∫ ω, (∑ t ∈ Finset.Icc 1 n,
if ε ≤ (∑ s ∈ Finset.range t, X s ω) / t + Real.sqrt (2 * a / t)
then (1 : ℝ) else 0) ∂P ≤
1 + 2 / ε ^ 2 * (a + Real.sqrt (Real.pi * a) + 1) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. Let be a measurable space equipped with a probability measure and let be a sequence of functions. Say a function is -sub-Gaussian in MGF form under if for every the function is -integrable and .
Assertion.
i.e. the expected number of indices at which the average of the first variables plus the bonus reaches (non-strictly) the level is at most the right-hand side. The indicator takes the value when the bracketed inequality holds and otherwise.
Hypotheses.
- is a probability measure on .
- The entire infinite family is mutually independent under .
- Every is -sub-Gaussian in MGF form.
- is arbitrary (including ); and are real.
Edge cases.
- For the sum is empty, the left side is , and the claim reduces to nonnegativity of the right side.
- Within the summation range no division by zero occurs.
- Nothing is assumed about centering or identical distribution of the ; only independence and the individual MGF bounds appear (integrability of each is part of the sub-Gaussian property, and no other measurability hypothesis is stated).
- Both the inequality inside the indicator and the final bound are non-strict.
Confirmed by the mission captain (proposal self-audit).