Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

KL-UCB optimal-index underestimation count bound

Disproved
BanditAlgorithm.klucb_optimal_underestimation_count_bound

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

banditsconcentrationprobability

⚠️ Retired — specification defect

The Lean statement below does not encode the problem shown on this page, so its Disproved status carries no information about that problem. Do not import this node or use it as a dependency.

This is the optimal-arm index-underestimation estimate used in the KL-UCB analysis.

Consider a finite Bernoulli bandit and fix an optimal arm aaa, a comparison arm iii, a horizon nnn, and a tolerance 0<ε<Δi0<\varepsilon<\Delta_i0<ε<Δi​. Let La,i,ε(n)L_{a,i,\varepsilon}(n)La,i,ε​(n) count selections of iii made during initialization or while the KL-UCB index of aaa is at most μ⋆−ε\mu^\star-\varepsilonμ⋆−ε. Then

Eν,π[La,i,ε(n)]≤2ε2.\mathbb E_{\nu,\pi}[L_{a,i,\varepsilon}(n)] \le \frac{2}{\varepsilon^2}.Eν,π​[La,i,ε​(n)]≤ε22​.

The bound is the canonical-bandit count form of the stopping-time estimate in Lemma 10.7 and controls how long the optimal arm can have an index substantially below its true mean.

Formalization Note The hypothesis ε<Δi\varepsilon<\Delta_iε<Δi​ is the regime used in Theorem 10.6; for Bernoulli means it ensures that the index threshold lies strictly inside the relevant parameter interval. The first count also absorbs the selected initialization round.

Why this node was retired

The posted statement is

theorem BanditAlgorithm.klucb_optimal_underestimation_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 ν)
    (hε : 0 < ε)
    (hεlt : ε < BanditAlgorithm.banditGap ν i) :
    MeasureTheory.integral (BanditAlgorithm.banditMeasure ν π n)
        (fun h ↦
          (BanditAlgorithm.klucbFailureCount ν a i ε h).1) ≤
      2 / ε ^ 2 := by
  sorry

The underestimation count is bounded for an arbitrary policy, allowing one that never initializes the optimal arm.

The recorded counterexample refutes the statement as encoded. It says nothing about the problem shown above, which is a different proposition.

Proposed corrected statement

Require IsKLUCBPolicy k n π with the source initialization rule, in addition to the stated distribution and gap hypotheses.

Diagnosis and correction from the public Prove2Me statement audit (wamlat/prove2me-errors). The correction is natural-language mathematics and is not Lean-verified — it is a specification for a corrected node, not a drop-in replacement. No corrected replacement node exists yet.

Preamble
import Definitions.Def_klucbFailureCount

open MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.klucb_optimal_underestimation_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 ν)
    (hε : 0 < ε)
    (hεlt : ε < BanditAlgorithm.banditGap ν i) :
    MeasureTheory.integral (BanditAlgorithm.banditMeasure ν π n)
        (fun h ↦
          (BanditAlgorithm.klucbFailureCount ν a i ε h).1) ≤
      2 / ε ^ 2 := by
  sorry
Source
Tor Lattimore and Csaba Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Lemma 10.7, printed p. 138, as used 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