Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 11 — the potential bound ∑tut⊤Vt−1ut≤nlog⁡(r2T/ε+1)\sum_t u_t^\top V_t^{-1} u_t \le n \log(r^2 T/\varepsilon + 1)∑t​ut⊤​Vt−1​ut​≤nlog(r2T/ε+1)

Proved
LogRegretOCO.FTAL.elliptical_potential

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

determinantlinear-algebraonline-convex-optimizationp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let u1,…,uT∈Rnu_1, \dots, u_T \in \mathbb{R}^nu1​,…,uT​∈Rn satisfy ∥ut∥≤r\|u_t\| \le r∥ut​∥≤r for some r>0r > 0r>0, let ε>0\varepsilon > 0ε>0, and define

Vt=∑τ=1tuτuτ⊤+εIn(t=1,…,T).V_t = \sum_{\tau=1}^t u_\tau u_\tau^\top + \varepsilon I_n \qquad (t = 1, \dots, T).Vt​=τ=1∑t​uτ​uτ⊤​+εIn​(t=1,…,T).

Then

∑t=1Tut⊤Vt−1ut≤nlog⁡(r2Tε+1).\sum_{t=1}^T u_t^\top V_t^{-1} u_t \le n \log\left(\frac{r^2 T}{\varepsilon} + 1\right).t=1∑T​ut⊤​Vt−1​ut​≤nlog(εr2T​+1).

Each VtV_tVt​ includes the current vector utu_tut​. The bound controls the sum of squared lengths of the vectors measured in the metric of the accumulated matrix, and grows only logarithmically in TTT; in the analysis of Follow the Leader it bounds the second term of the regret decomposition (Claim 2 of the paper).

Formalization Note The paper prints Vt=∑τ=1tutut⊤+εInV_t = \sum_{\tau=1}^t u_t u_t^\top + \varepsilon I_nVt​=∑τ=1t​ut​ut⊤​+εIn​, a typo for uτuτ⊤u_\tau u_\tau^\topuτ​uτ⊤​ (its proof uses Vt−Vt−1=utut⊤V_t - V_{t-1} = u_t u_t^\topVt​−Vt−1​=ut​ut⊤​); the Lean uses uτu_\tauuτ​. The hypothesis ε>0\varepsilon > 0ε>0, implicit in the paper, is stated (at ε=0\varepsilon = 0ε=0 the matrix can be singular and r2T/εr^2T/\varepsilonr2T/ε is 000 in Lean). Vectors are in EuclideanSpace ℝ (Fin n) so that ∥⋅∥\|\cdot\|∥⋅∥ is the Euclidean norm; matrices act on their coordinate vectors (WithLp.ofLp), and uτuτ⊤u_\tau u_\tau^\topuτ​uτ⊤​ is Matrix.vecMulVec.

Preamble
import Mathlib
Formal statement
namespace LogRegretOCO.FTAL
theorem elliptical_potential {n : ℕ} (u : ℕ → EuclideanSpace ℝ (Fin n)) (r ε : ℝ) (T : ℕ)
    (hr : 0 < r) (hε : 0 < ε) (hu : ∀ t ∈ Finset.Icc 1 T, ‖u t‖ ≤ r) :
    let V : ℕ → Matrix (Fin n) (Fin n) ℝ := fun t =>
      ∑ τ ∈ Finset.Icc 1 t, Matrix.vecMulVec (WithLp.ofLp (u τ)) (WithLp.ofLp (u τ))
        + ε • (1 : Matrix (Fin n) (Fin n) ℝ)
    ∑ t ∈ Finset.Icc 1 T, dotProduct (WithLp.ofLp (u t)) (Matrix.mulVec (V t)⁻¹ (WithLp.ofLp (u t)))
      ≤ n * Real.log (r ^ 2 * T / ε + 1) := by sorry
end LogRegretOCO.FTAL
Source
Hazan, Agarwal, Kale, Logarithmic regret algorithms for online convex optimization, Mach Learn 69 (2007), p. 190, Lemma 11 (Appendix 2)
Read-back

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

Setting. Let n∈Nn \in \mathbb{N}n∈N, let ut∈Rnu_t \in \mathbb{R}^nut​∈Rn for t∈Nt \in \mathbb{N}t∈N (with the Euclidean norm), let r,εr, \varepsilonr,ε be real numbers, and let T∈NT \in \mathbb{N}T∈N.

Hypotheses.

  1. r>0r > 0r>0 and ε>0\varepsilon > 0ε>0.
  2. ∥ut∥≤r\|u_t\| \le r∥ut​∥≤r for every t∈{1,…,T}t \in \{1, \dots, T\}t∈{1,…,T}.

Matrices. For each t∈Nt \in \mathbb{N}t∈N, define the n×nn \times nn×n matrix

Vt=∑τ=1tuτuτ⊤+εIn.V_t = \sum_{\tau=1}^{t} u_\tau u_\tau^\top + \varepsilon I_n .Vt​=τ=1∑t​uτ​uτ⊤​+εIn​.

Note that VtV_tVt​ includes the current term utut⊤u_t u_t^\toput​ut⊤​. Since ε>0\varepsilon > 0ε>0, every VtV_tVt​ is symmetric positive definite, so Vt−1V_t^{-1}Vt−1​ is the genuine inverse.

Conclusion.

∑t=1Tut⊤Vt−1ut  ≤  n log⁡ ⁣(r2Tε+1),\sum_{t=1}^{T} u_t^\top V_t^{-1} u_t \;\le\; n \,\log\!\Big(\frac{r^2 T}{\varepsilon} + 1\Big),t=1∑T​ut⊤​Vt−1​ut​≤nlog(εr2T​+1),

where log⁡\loglog is the natural logarithm and TTT and nnn are treated as real numbers.

Degenerate cases.

  • T=0T = 0T=0. The left side is an empty sum, and the right side is nlog⁡1=0n \log 1 = 0nlog1=0, so the statement is 0≤00 \le 00≤0.
  • n=0n = 0n=0. Both sides are 000.
  • Zero vectors. Some or all of the utu_tut​ may be 000; those terms contribute 000 to the left side.
  • Indices beyond TTT. Values of utu_tut​ for t>Tt > Tt>T are unconstrained and do not enter the statement.
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