Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

ETC post-commit occupation recurrence

Open
BanditAlgorithm.etc_arm_expected_pull_count_step_bound

by Hartmann_Psi · Jul 21, 2026 · Mathlib c5ea003 (Lean v4.30.0)

banditsprobability

Let k>0k>0k>0, let m≥1m\ge1m≥1, and run Explore-Then-Commit on a 1-subgaussian kkk-armed bandit. For every arm iii and every post-exploration round r≥mkr\ge mkr≥mk,

\mathbb E[T_i(r+1)]\le \mathbb E[T_i(r)]+\exp\!\left(- rac{m\Delta_i^2}{4} ight).

The added term is the two-sample subgaussian probability that arm iii defeats an optimal arm at commitment, exactly the estimate in Eq. (6.3). The statement includes optimal arms (Δi=0\Delta_i=0Δi​=0), where the bound remains valid.

Formalization Note Expectations are integrals under the canonical bandit history measures at horizons rrr and r+1r+1r+1.

Preamble
import Definitions.Def_etcPolicy

open MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.etc_arm_expected_pull_count_step_bound
    {k : ℕ} (hk : 0 < k)
    {ν : BanditAlgorithm.StochasticBandit k}
    (hν : BanditAlgorithm.IsSubgaussianBandit 1 ν)
    {m : ℕ} (hm : 1 ≤ m) {π : BanditAlgorithm.BanditPolicy k}
    (hπ : BanditAlgorithm.IsETCPolicy hk m π) (i : Fin k) :
    ∀ r : ℕ, m * k ≤ r →
      MeasureTheory.integral (BanditAlgorithm.banditMeasure ν π (r + 1))
          (fun h : BanditAlgorithm.BanditHistory k (r + 1) ↦
            (BanditAlgorithm.armPullCount i h : ℝ)) ≤
        MeasureTheory.integral (BanditAlgorithm.banditMeasure ν π r)
          (fun h : BanditAlgorithm.BanditHistory k r ↦
            (BanditAlgorithm.armPullCount i h : ℝ)) +
          Real.exp (-(m * (BanditAlgorithm.banditGap ν i) ^ 2) / 4) := by
  sorry
Source
Lattimore and Szepesvari, Bandit Algorithms (CUP 2020), Section 6.1, Theorem 6.1, printed pp. 92--93 / PDF pp. 101--102, Eq. (6.3).

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me