Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 10 — Chernoff's stopping rule with β(t,δ) = log(2t(K−1)/δ) is δ-PAC on Bernoulli bandits

Proved
OptimalBAI.ChernoffPAC.chernoff_informational_threshold_pac

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

best-arm-identificationchernoff-stopping-ruledelta-pacp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let K≥1K \ge 1K≥1 be the number of arms and δ∈(0,1)\delta \in (0,1)δ∈(0,1). Consider Bernoulli bandits: each model μ=(μ1,…,μK)∈[0,1]K\boldsymbol\mu = (\mu_1,\dots,\mu_K) \in [0,1]^Kμ=(μ1​,…,μK​)∈[0,1]K with a unique optimal arm a∗(μ)a^*(\boldsymbol\mu)a∗(μ) (the class S\mathcal SS). Arms are sampled by an arbitrary, possibly randomized, sampling strategy. The learner stops according to Chernoff's stopping rule (8),

τδ=inf⁡{t≥1:∃a∈A, ∀b∈A∖{a}, Za,b(t)>β(t,δ)},\tau_\delta = \inf\{t \ge 1 : \exists a \in \mathcal A,\ \forall b \in \mathcal A\setminus\{a\},\ Z_{a,b}(t) > \beta(t,\delta)\},τδ​=inf{t≥1:∃a∈A, ∀b∈A∖{a}, Za,b​(t)>β(t,δ)},

where Za,b(t)Z_{a,b}(t)Za,b​(t) is the Bernoulli generalized likelihood ratio statistic, with the threshold

β(t,δ)=log⁡(2t(K−1)δ),\beta(t,\delta) = \log\left(\frac{2t(K-1)}{\delta}\right),β(t,δ)=log(δ2t(K−1)​),

and recommends the empirically best arm a^τδ∈argmax⁡aμ^a(τδ)\hat a_{\tau_\delta} \in \operatorname{argmax}_{a} \hat\mu_a(\tau_\delta)a^τδ​​∈argmaxa​μ^​a​(τδ​), where μ^a(t)\hat\mu_a(t)μ^​a​(t) is the empirical mean of arm aaa after ttt rounds. Then for every μ∈S\boldsymbol\mu \in \mathcal Sμ∈S,

Pμ(τδ<∞, a^τδ≠a∗)≤δ.\mathbb P_{\boldsymbol\mu}\big(\tau_\delta < \infty,\ \hat a_{\tau_\delta} \ne a^*\big) \le \delta .Pμ​(τδ​<∞, a^τδ​​=a∗)≤δ.

This is the error half of the δ\deltaδ-PAC property, and it holds whatever the sampling rule, so Chernoff's stopping rule can be combined with any sampling strategy (in particular the Track-and-Stop tracking rules) without compromising the confidence guarantee.

Formalization Note The conclusion is IsSoundBAI of the platform's BanditTrajectory definition: for every model of the class, the outer measure of {τδ<∞, Δa^>0}\{\tau_\delta < \infty,\ \Delta_{\hat a} > 0\}{τδ​<∞, Δa^​>0} is at most δ\deltaδ, where Δa^\Delta_{\hat a}Δa^​ is the gap of the recommended arm. With a unique optimal arm, Δa^>0\Delta_{\hat a} > 0Δa^​>0 iff a^≠a∗\hat a \ne a^*a^=a∗, so this is exactly the paper's event. The sampling strategy is any BanditPolicy. The decision rule is not fixed: the theorem holds for every recommendation ψ\psiψ that, whenever τδ=n\tau_\delta = nτδ​=n is finite, maximizes the empirical mean after nnn rounds, so every tie-breaking is covered. The stopping rule is taken over t≥1t \ge 1t≥1 (round 000 has no observations). Nothing requires K≥2K \ge 2K≥2: for K=1K = 1K=1 there is no suboptimal arm and the statement holds trivially. Means 000 and 111 are allowed (see the definition). The paper's other half of δ\deltaδ-PAC, Pμ(τδ<∞)=1\mathbb P_{\boldsymbol\mu}(\tau_\delta < \infty) = 1Pμ​(τδ​<∞)=1, is not part of Theorem 10 and is not claimed.

Preamble
import Mathlib
import Definitions.Def_OptimalBAI_ChernoffPAC_ChernoffRule

open MeasureTheory BanditAlgorithm
Formal statement
namespace OptimalBAI.ChernoffPAC

theorem chernoff_informational_threshold_pac {K : ℕ} [NeZero K] (δ : ℝ)
    (hδ : δ ∈ Set.Ioo (0 : ℝ) 1) (π : BanditPolicy K)
    (ψ : (ℕ → Fin K × ℝ) → Fin K)
    (hψ : ∀ (ω : ℕ → Fin K × ℝ) (n : ℕ),
      chernoffStop (informationalThreshold K δ) ω = n →
        ∀ b : Fin K, trajEmpiricalMean b n ω ≤ trajEmpiricalMean (ψ ω) n ω) :
    IsSoundBAI δ π (chernoffStop (informationalThreshold K δ)) ψ (bernoulliClass K) := by sorry

end OptimalBAI.ChernoffPAC
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, p. 10, Theorem 10 (decision rule p. 7; stopping rule eq. (8), p. 8; proof Appendix C.1, pp. 25–26)
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