Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

BanditAlgorithm.ftrl_simplex_exp_weights_regret

Proved

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

exponential-weightsonline-learningregret

(Regret on the simplex, Proposition 28.7) Let A=Pd−1\mathcal{A} = \mathcal{P}_{d-1}A=Pd−1​ be the probability simplex and yt∈[0,1]dy_t \in [0,1]^dyt​∈[0,1]d for all ttt. FTRL (= mirror descent = exponential weights here, Example 28.3/Eq. (28.5); the book states the proposition for mirror descent and notes the identical FTRL bound via Theorem 28.5) with the unnormalised negentropy potential

F(a)=∑i(ailog⁡ai−ai)F(a) = \sum_i (a_i \log a_i - a_i)F(a)=i∑​(ai​logai​−ai​)

on domain [0,∞)d[0,\infty)^d[0,∞)d and learning rate η=2log⁡(d)/n\eta = \sqrt{2\log(d)/n}η=2log(d)/n​ satisfies

Rn(a0)≤2nlog⁡dR_n(a_0) \le \sqrt{2 n \log d}Rn​(a0​)≤2nlogd​

for every simplex comparator a0a_0a0​.

Preamble
import Definitions.Def_OnlineLinearOptimization


open RealInnerProductSpace
Formal statement
theorem BanditAlgorithm.ftrl_simplex_exp_weights_regret
    (d n : ℕ) (y a : ℕ → EuclideanSpace ℝ (Fin d))
    (hy : ∀ t, ∀ i, y t i ∈ Set.Icc (0 : ℝ) 1)
    (hiter : IsFTRLIterates (Real.sqrt (2 * Real.log d / n))
      (fun v : EuclideanSpace ℝ (Fin d) => ∑ i, (v i * Real.log (v i) - v i))
      {v : EuclideanSpace ℝ (Fin d) | ∀ i, 0 ≤ v i}
      {v : EuclideanSpace ℝ (Fin d) | (∀ i, 0 ≤ v i) ∧ ∑ i, v i = 1}
      y a) :
    ∀ a₀ ∈ {v : EuclideanSpace ℝ (Fin d) | (∀ i, 0 ≤ v i) ∧ ∑ i, v i = 1},
      oloRegret a y n a₀ ≤ Real.sqrt (2 * n * Real.log d) := by
  sorry
Source
L&S Proposition 28.7, p.335

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