Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

KL-UCB selected-arm overshoot count bound

Proved
BanditAlgorithm.klucb_selected_overshoot_count_bound

by Harry_Xu · Jul 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

banditsinformation-theoryprobability

This is the selected-suboptimal-index count estimate used in the KL-UCB analysis.

Consider a finite Bernoulli bandit, fix an optimal arm aaa and a suboptimal arm iii, and choose ε1,ε2>0\varepsilon_1,\varepsilon_2>0ε1​,ε2​>0 with ε1+ε2<Δi\varepsilon_1+\varepsilon_2<\Delta_iε1​+ε2​<Δi​. Let Ha,i,ε2(n)H_{a,i,\varepsilon_2}(n)Ha,i,ε2​​(n) count initialized rounds on which arm iii is selected and its KL-UCB index is at least μ⋆−ε2\mu^\star-\varepsilon_2μ⋆−ε2​. Then

Eν,π[Ha,i,ε2(n)]≤log⁡f(n)d(μi+ε1, μ⋆−ε2)+12ε12,\mathbb E_{\nu,\pi}[H_{a,i,\varepsilon_2}(n)] \le \frac{\log f(n)} {d(\mu_i+\varepsilon_1,\,\mu^\star-\varepsilon_2)} +\frac{1}{2\varepsilon_1^2},Eν,π​[Ha,i,ε2​​(n)]≤d(μi​+ε1​,μ⋆−ε2​)logf(n)​+2ε12​1​,

where f(n)=1+n(log⁡n)2f(n)=1+n(\log n)^2f(n)=1+n(logn)2 and ddd is the binary relative entropy.

This is the canonical-bandit selected-round form of Lemma 10.8 and supplies the information-theoretic term in the KL-UCB pull-count bound.

Formalization Note The expectation is an integral of the second KL-UCB failure count against the finite-history bandit measure. The optimal-arm witness is explicit to match the source proof.

Preamble
import Definitions.Def_klucbFailureCount

open MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.klucb_selected_overshoot_count_bound
    {k : ℕ} (μvec : Fin k → ℝ)
    (hμ : ∀ i, μvec i ∈ Set.Icc (0 : ℝ) 1)
    (ν : BanditAlgorithm.StochasticBandit k)
    (hν : ν = BanditAlgorithm.bernoulliBandit μvec hμ)
    {π : BanditAlgorithm.BanditPolicy k}
    (n : ℕ) (a i : Fin k) (ε₁ ε₂ : ℝ)
    (ha : BanditAlgorithm.banditArmMean ν a =
      BanditAlgorithm.banditOptimalMean ν)
    (hgap : 0 < BanditAlgorithm.banditGap ν i)
    (hε₁ : 0 < ε₁)
    (hε₂ : 0 < ε₂)
    (hεsum : ε₁ + ε₂ < BanditAlgorithm.banditGap ν i) :
    MeasureTheory.integral (BanditAlgorithm.banditMeasure ν π n)
        (fun h ↦
          (BanditAlgorithm.klucbFailureCount ν a i ε₂ h).2) ≤
      Real.log (BanditAlgorithm.klucbExploration n) /
          BanditAlgorithm.bernoulliRelativeEntropy
            (BanditAlgorithm.banditArmMean ν i + ε₁)
            (BanditAlgorithm.banditOptimalMean ν - ε₂) +
        1 / (2 * ε₁ ^ 2) := by
  sorry
Source
Tor Lattimore and Csaba Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Lemma 10.8, printed pp. 138–139, instantiated in the proof of Theorem 10.6 on printed p. 139.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me