Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

BanditAlgorithm.bandit_moss_minimax_regret_bound

Proved

by Shuze Chen · Jul 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

banditsminimaxregret

(MOSS minimax optimality) Consider any 1-subgaussian kkk-armed bandit and any policy that is an instance of MOSS at horizon nnn (Algorithm 7: play each arm once, then

At=arg⁡max⁡i μ^i(t−1)+4Ti(t−1)log⁡+ ⁣(nk Ti(t−1))A_t = \arg\max_i\ \hat\mu_i(t-1) + \sqrt{\frac{4}{T_i(t-1)}\log^+\!\left(\frac{n}{k\,T_i(t-1)}\right)}At​=argimax​ μ^​i​(t−1)+Ti​(t−1)4​log+(kTi​(t−1)n​)​

with log⁡+(x)=log⁡max⁡{1,x}\log^+(x) = \log\max\{1, x\}log+(x)=logmax{1,x}). If k≤nk \le nk≤n (implicit in the book: the algorithm plays each arm once before using the index) then

Rn≤39kn+∑i=1kΔi.R_n \le 39\sqrt{kn} + \sum_{i=1}^k \Delta_i.Rn​≤39kn​+i=1∑k​Δi​.
Preamble
import Definitions.Def_banditRegret
import Definitions.Def_mossPolicy


open MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.bandit_moss_minimax_regret_bound {k : ℕ}
    {ν : StochasticBandit k} (hν : IsSubgaussianBandit 1 ν)
    {n : ℕ} {π : BanditPolicy k} (hπ : IsMOSSPolicy n π) (hkn : k ≤ n) :
    banditRegret ν π n ≤
      39 * Real.sqrt ((k : ℝ) * n) + ∑ i, banditGap ν i := by
  sorry
Source
L&S Theorem 9.1, p.124

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