Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

BanditAlgorithm.linear_bandit_linucb_expected_regret

Proved

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

banditslinearregret

(Expected regret — Corollary 19.3) There is a universal constant C>0C > 0C>0 such that for every fixed finite action set arms:Fin k→Rd\mathrm{arms} : \mathrm{Fin}\,k \to \mathbb{R}^darms:Fink→Rd with ∥armsj∥2≤L\|\mathrm{arms}_j\|_2 \le L∥armsj​∥2​≤L (with L≥1L \ge 1L≥1, n≥2n \ge 2n≥2) there is a policy π\piπ (LinUCB with δ=1/n\delta = 1/nδ=1/n and βt\beta_tβt​ from Eq. (19.8)/Theorem 20.5) such that for every linear bandit instance with

  • ∥θ∗∥2≤1\|\theta_*\|_2 \le 1∥θ∗​∥2​≤1 (i.e. m2=1m_2 = 1m2​=1 in Eq. (19.8)), and
  • sup⁡a,b⟨θ∗,a−b⟩≤1\sup_{a,b}\langle\theta_*,a-b\rangle \le 1supa,b​⟨θ∗​,a−b⟩≤1 (= Assumption 19.1(b)),

the expected regret satisfies

Rn≤Cdnlog⁡(nL).R_n \le C d\sqrt{n}\log(nL).Rn​≤Cdn​log(nL).
Preamble
import Definitions.Def_StochasticLinearBandit
import Definitions.Def_banditRegret


open Matrix MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.linear_bandit_linucb_expected_regret :
    ∃ C : ℝ, 0 < C ∧
      ∀ (d k n : ℕ) (L : ℝ), 0 < d → 0 < k → 2 ≤ n → 1 ≤ L →
        ∀ arms : Fin k → Fin d → ℝ,
          (∀ j, Real.sqrt (arms j ⬝ᵥ arms j) ≤ L) →
          ∃ π : BanditPolicy k,
            ∀ (θstar : Fin d → ℝ) (ν : StochasticBandit k),
              IsLinearBandit arms θstar ν →
              Real.sqrt (θstar ⬝ᵥ θstar) ≤ 1 →
              (∀ j j' : Fin k, θstar ⬝ᵥ (arms j - arms j') ≤ 1) →
              banditRegret ν π n ≤
                C * d * Real.sqrt n * Real.log (n * L) := by
  sorry
Source
L&S Corollary 19.3, p.243

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