Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 13 — almost-sure upper bound on the sample complexity of Chernoff's rule

Proved
OptimalBAI.TrackStop.almost_sure_upper_bound

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

almost-surebest-arm-identificationp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1sample-complexity

Let μ∈S\boldsymbol\mu\in\mathcal Sμ∈S be an exponential family bandit model with K≥2K\ge2K≥2 arms, let α∈[1,e/2]\alpha\in[1,e/2]α∈[1,e/2], and let r:N→(0,∞)r:\mathbb N\to(0,\infty)r:N→(0,∞) satisfy r(t)=O(tα)r(t)=O(t^\alpha)r(t)=O(tα). Let τδ\tau_\deltaτδ​ be Chernoff's stopping rule with β(t,δ)=log⁡(r(t)/δ)\beta(t,\delta)=\log(r(t)/\delta)β(t,δ)=log(r(t)/δ), and let the sampling rule be any rule ensuring that for every arm aaa, Na(t)/tN_a(t)/tNa​(t)/t converges almost surely to wa∗(μ)w^*_a(\boldsymbol\mu)wa∗​(μ). Then for all δ∈(0,1)\delta\in(0,1)δ∈(0,1), Pμ(τδ<+∞)=1\mathbb P_{\boldsymbol\mu}(\tau_\delta<+\infty)=1Pμ​(τδ​<+∞)=1, and

Pμ(lim sup⁡δ→0τδlog⁡(1/δ)≤α T∗(μ))=1,\mathbb P_{\boldsymbol\mu}\left(\limsup_{\delta\to0}\frac{\tau_\delta}{\log(1/\delta)}\le\alpha\,T^*(\boldsymbol\mu)\right)=1,Pμ​(δ→0limsup​log(1/δ)τδ​​≤αT∗(μ))=1,

where T∗(μ)T^*(\boldsymbol\mu)T∗(μ) is the characteristic time of eq. (1).

This is the almost-sure counterpart of Theorem 14: it needs only the almost-sure convergence of the proportions, not a tracking rule.

Formalization Note T∗(μ)T^*(\boldsymbol\mu)T∗(μ) is the platform's characteristic time of the class of exponential family models with a unique optimal arm (Kullback–Leibler divergences of the arm laws, values in [0,∞][0,\infty][0,∞]). The ratio τδ/log⁡(1/δ)\tau_\delta/\log(1/\delta)τδ​/log(1/δ) is taken in [0,∞][0,\infty][0,∞], with τδ=∞\tau_\delta=\inftyτδ​=∞ allowed. "r(t)=O(tα)r(t)=O(t^\alpha)r(t)=O(tα)" is written as r(t)≤Dtαr(t)\le Dt^\alphar(t)≤Dtα for all t≥1t\ge1t≥1 and some constant DDD; positivity of rrr is added so that log⁡(r(t)/δ)\log(r(t)/\delta)log(r(t)/δ) is defined. Arm aaa of the paper is index a−1a-1a−1.

Preamble
import Mathlib
import Definitions.Def_OptimalBAI_TrackStop_OptimalProportions
import Definitions.Def_OptimalBAI_TrackStop_ChernoffRule

open BanditAlgorithm Filter Topology ENNReal
Formal statement
namespace OptimalBAI.TrackStop

/-- Proposition 13 (Garivier–Kaufmann, arXiv:1602.04589v2, p. 11). Let `μ` be an exponential
family bandit model in `𝒮` (parameters `θ ∈ 𝒮`), `α ∈ [1, e/2]` and `r(t) = O(t^α)`. Use Chernoff's
stopping rule `τ_δ` with `β(t, δ) = log(r(t)/δ)`, and any sampling rule `π` under which, almost
surely, `N_a(t)/t → w*_a(μ)` for every arm `a`. Then for all `δ ∈ (0, 1)`, `ℙ_μ(τ_δ < +∞) = 1`, and
almost surely `limsup_{δ → 0} τ_δ / log(1/δ) ≤ α T*(μ)`. -/
theorem almost_sure_upper_bound (F : ExpFamily) {K : ℕ} (hK : 2 ≤ K)
    (θ : Fin K → F.Θ) (hθ : θ ∈ Sθ F K)
    (α : ℝ) (hα : α ∈ Set.Icc (1 : ℝ) (Real.exp 1 / 2))
    (r : ℕ → ℝ) (hr_pos : ∀ t, 0 < r t)
    (hr : ∃ D : ℝ, ∀ t : ℕ, 1 ≤ t → r t ≤ D * (t : ℝ) ^ α)
    (w : Fin K → ℝ) (hw : IsOptimalProportion F (meanVec F θ) w)
    (π : BanditPolicy K)
    (hconv : ∀ᵐ ω ∂banditTrajMeasure (expFamilyBandit F θ) π, ∀ a : Fin K,
      Tendsto (fun t : ℕ => (trajPullCount a t ω : ℝ) / (t : ℝ)) atTop (𝓝 (w a))) :
    (∀ δ ∈ Set.Ioo (0 : ℝ) 1, ∀ᵐ ω ∂banditTrajMeasure (expFamilyBandit F θ) π,
      chernoffTime F (rateThreshold r δ) ω < ⊤) ∧
    ∀ᵐ ω ∂banditTrajMeasure (expFamilyBandit F θ) π,
      limsup (fun δ : ℝ => ((chernoffTime F (rateThreshold r δ) ω : ℝ≥0∞)) /
          ENNReal.ofReal (Real.log (1 / δ))) (𝓝[>] (0 : ℝ)) ≤
        ENNReal.ofReal α * baiComplexity (expFamilyBandit F θ) (modelClass F K) := by sorry

end OptimalBAI.TrackStop
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, p. 11, Proposition 13 (§5.1)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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