Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C.1 — P(T_{a,b} < ∞) ≤ δ/(K−1) for μ_a < μ_b

Proved
OptimalBAI.ChernoffPAC.pairwise_crossing_prob

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 δ∈(0,1)\delta \in (0,1)δ∈(0,1), let KKK be the number of arms, and let β(t,δ)=log⁡(2t(K−1)/δ)\beta(t,\delta) = \log\big(2t(K-1)/\delta\big)β(t,δ)=log(2t(K−1)/δ) be the informational threshold. Let μ∈[0,1]K\boldsymbol\mu \in [0,1]^Kμ∈[0,1]K be a Bernoulli bandit model with a unique optimal arm, and let the arms be sampled by an arbitrary (possibly randomized) sampling strategy; Pμ\mathbb P_{\boldsymbol\mu}Pμ​ denotes the law of the resulting infinite trajectory. For arms a,ba, ba,b put

Ta,b:=inf⁡{t∈N:Za,b(t)>β(t,δ)},T_{a,b} := \inf\{t \in \mathbb N : Z_{a,b}(t) > \beta(t,\delta)\},Ta,b​:=inf{t∈N:Za,b​(t)>β(t,δ)},

where Za,b(t)Z_{a,b}(t)Za,b​(t) is the Bernoulli generalized likelihood ratio statistic. Then for any arms a,ba, ba,b with μa<μb\mu_a < \mu_bμa​<μb​,

Pμ(Ta,b<∞)≤δK−1.\mathbb P_{\boldsymbol\mu}(T_{a,b} < \infty) \le \frac{\delta}{K-1}.Pμ​(Ta,b​<∞)≤K−1δ​.

In words: the probability that the GLR statistic ever gathers evidence above the threshold for the wrong ordering "aaa at least as good as bbb" is at most δ/(K−1)\delta/(K-1)δ/(K−1), whatever the sampling strategy. Applied to each suboptimal arm aaa against b=a∗b = a^*b=a∗ and combined by a union bound over the K−1K-1K−1 suboptimal arms, this yields Theorem 10.

The appendix refers to the threshold of "Proposition 10"; this is a printed slip for Theorem 10.

Formalization Note The event {Ta,b<∞}\{T_{a,b} < \infty\}{Ta,b​<∞} is written as {∃t≥1:Za,b(t)>β(t,δ)}\{\exists t \ge 1 : Z_{a,b}(t) > \beta(t,\delta)\}{∃t≥1:Za,b​(t)>β(t,δ)}; t=0t = 0t=0 is excluded, which changes nothing since Za,b(0)=0Z_{a,b}(0) = 0Za,b​(0)=0. The probability is the outer measure of this event under the trajectory law, and no measurability is assumed. Since μa<μb\mu_a < \mu_bμa​<μb​ forces a≠ba \ne ba=b, hence K≥2K \ge 2K≥2, the division by K−1K-1K−1 is by a positive number. The sampling strategy is any policy of the platform's canonical bandit model (a Markov kernel per round from the observed history to the next arm).

Preamble
import Mathlib
import Definitions.Def_OptimalBAI_ChernoffPAC_ChernoffRule

open MeasureTheory BanditAlgorithm
Formal statement
namespace OptimalBAI.ChernoffPAC

theorem pairwise_crossing_prob {K : ℕ} (δ : ℝ) (hδ : δ ∈ Set.Ioo (0 : ℝ) 1)
    (π : BanditPolicy K) (μ : Fin K → ℝ) (hμ : ∀ i, μ i ∈ Set.Icc (0 : ℝ) 1)
    (hS : ∃ a₀, ∀ i, i ≠ a₀ → μ i < μ a₀) (a b : Fin K) (hab : μ a < μ b) :
    banditTrajMeasure (bernoulliBandit μ hμ) π
        {ω | ∃ t : ℕ, 1 ≤ t ∧ informationalThreshold K δ t < glrStat a b t ω} ≤
      ENNReal.ofReal (δ / ((K : ℝ) - 1)) := by sorry

end OptimalBAI.ChernoffPAC
Source
Garivier, Kaufmann, Optimal Best Arm Identification with Fixed Confidence, arXiv:1602.04589v2, p. 25, Appendix C.1 (displayed claim P_µ(T_{a,b} < ∞) ≤ δ/(K−1)); main-text sketch p. 10
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