Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 9 (corrected) — ∑τ≤tmin⁡(wτ2,1)≤2nln⁡(t+1)\sum_{\tau\le t}\min(w_\tau^2,1)\le2n\ln(t+1)∑τ≤t​min(wτ2​,1)≤2nln(t+1)

Proved
StochLinOpt.UpperBound.sum_min_width_sq_le

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

banditslinear-banditsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let x1,x2,⋯∈[−1,1]nx_1,x_2,\dots\in[-1,1]^nx1​,x2​,⋯∈[−1,1]n, At=I+∑τ=1t−1xτxτ⊤A_t=I+\sum_{\tau=1}^{t-1}x_\tau x_\tau^\topAt​=I+∑τ=1t−1​xτ​xτ⊤​ and wτ=xτ⊤Aτ−1xτw_\tau=\sqrt{x_\tau^\top A_\tau^{-1}x_\tau}wτ​=xτ⊤​Aτ−1​xτ​​. Then for every t≥0t\ge0t≥0,

∑τ=1tmin⁡(wτ2,1)≤2nln⁡(t+1).\sum_{\tau=1}^{t}\min\big(w_\tau^2,1\big)\le2n\ln(t+1).τ=1∑t​min(wτ2​,1)≤2nln(t+1).

This is the elliptical potential bound: the sum of the squared widths cannot grow faster than logarithmically, which is what makes the regret sublinear.

Formalization Note The paper prints 2nln⁡t2n\ln t2nlnt; its proof gives 2nln⁡(t+1)2n\ln(t+1)2nln(t+1) (it bounds the sum by 2ln⁡det⁡At+1≤2nln⁡(t+1)2\ln\det A_{t+1}\le2n\ln(t+1)2lndetAt+1​≤2nln(t+1), using Lemma 11 at t+1t+1t+1). The printed bound is false at t=1t=1t=1: the left side is min⁡(w12,1)>0\min(w_1^2,1)>0min(w12​,1)>0 when x1≠0x_1\ne0x1​=0, while 2nln⁡1=02n\ln1=02nln1=0. The corrected bound is stated. The hypothesis xτ∈[−1,1]nx_\tau\in[-1,1]^nxτ​∈[−1,1]n is the paper's standing Section 5 coordinate choice (D⊆[−1,1]nD\subseteq[-1,1]^nD⊆[−1,1]n).

Preamble
import Mathlib
import Definitions.Def_StochLinOpt_UpperBound_confidenceBall2
import Definitions.Def_StochLinOpt_UpperBound_analysisQuantities

open Matrix
Formal statement
namespace StochLinOpt.UpperBound

theorem sum_min_width_sq_le {n : ℕ} (x : ℕ → Fin n → ℝ)
    (hx : ∀ τ : ℕ, 1 ≤ τ → ∀ i, |x τ i| ≤ 1) (t : ℕ) :
    ∑ τ ∈ Finset.Icc 1 t, min (width x τ ^ 2) 1 ≤ 2 * n * Real.log (t + 1) := by sorry

end StochLinOpt.UpperBound
Source
Dani, Hayes, Kakade, Stochastic Linear Optimization under Bandit Feedback, COLT 2008, PDF p. 8, Lemma 9 (with proof via Lemmas 10 and 11)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. n∈Nn \in \mathbb{N}n∈N and a sequence xxx in Rn\mathbb{R}^nRn such that ∣xτ,i∣≤1|x_{\tau,i}| \le 1∣xτ,i​∣≤1 for every τ≥1\tau \ge 1τ≥1 and every coordinate iii; x0x_0x0​ is unconstrained. Let t∈Nt \in \mathbb{N}t∈N. The notation is Aτ=I+∑1≤s<τxsxs⊤A_\tau = I + \sum_{1\le s<\tau} x_s x_s^\topAτ​=I+∑1≤s<τ​xs​xs⊤​ and wτ=xτ⊤Aτ−1xτw_\tau = \sqrt{x_\tau^\top A_\tau^{-1} x_\tau}wτ​=xτ⊤​Aτ−1​xτ​​.

Conclusion.

∑τ=1tmin⁡(wτ2, 1)  ≤  2 n ln⁡(t+1).\sum_{\tau=1}^{t} \min\big(w_\tau^2,\ 1\big) \;\le\; 2\,n\,\ln(t+1).τ=1∑t​min(wτ2​, 1)≤2nln(t+1).

Degenerate cases.

  • t=0t = 0t=0: the claim is 0≤00 \le 00≤0.
  • n=0n = 0n=0: every wτ=0w_\tau = 0wτ​=0, and the claim is 0≤00 \le 00≤0.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

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