Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(13) — Σₜ‖gₜ‖²_{ψₜ*} ≤ 2 Σᵢ‖g_{1:T,i}‖₂ for every δ ≥ 0

Proved
AdaGrad.Diag.eq_13

by mikedeng1 · Oct 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

adaptive-methodsonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let g1,g2,⋯∈Rdg_1,g_2,\dots\in\mathbb R^dg1​,g2​,⋯∈Rd be any sequence, st,i=∥g1:t,i∥2s_{t,i}=\|g_{1:t,i}\|_2st,i​=∥g1:t,i​∥2​, and δ≥0\delta\ge0δ≥0. For AdaGrad's proximal functions ψt(x)=12⟨x,(δI+diag(st))x⟩\psi_t(x)=\frac12\langle x,(\delta I+\mathrm{diag}(s_t))x\rangleψt​(x)=21​⟨x,(δI+diag(st​))x⟩ the squared dual norm is ∥g∥ψt∗2=∑igi2/(δ+st,i)\|g\|^2_{\psi_t^*}=\sum_ig_i^2/(\delta+s_{t,i})∥g∥ψt∗​2​=∑i​gi2​/(δ+st,i​), and for every TTT

∑t=1T∥gt∥ψt∗2≤2∑i=1d∥g1:T,i∥2.\sum_{t=1}^T\|g_t\|^2_{\psi_t^*}\le2\sum_{i=1}^d\|g_{1:T,i}\|_2 .t=1∑T​∥gt​∥ψt∗​2​≤2i=1∑d​∥g1:T,i​∥2​.

This bounds the gradient term of the composite mirror descent regret bound (Proposition 3) for diagonal AdaGrad.

Formalization Note The dual norm uses Lean's division with 0/0=00/0=00/0=0; a zero weight δ+st,i=0\delta+s_{t,i}=0δ+st,i​=0 occurs only when δ=0\delta=0δ=0 and st,i=0s_{t,i}=0st,i​=0, in which case gt,i=0g_{t,i}=0gt,i​=0, matching the paper's remark that "if st,i=0s_{t,i}=0st,i​=0 then gt,i=0g_{t,i}=0gt,i​=0".

Preamble
import Mathlib
import Definitions.Def_AdaGrad_Diag_Setup
Formal statement
namespace AdaGrad.Diag

/-- Duchi, Hazan, Singer, JMLR 12 (2011), §3, inequality (13), p. 2131: for any `δ ≥ 0`, the
squared dual norms of the subgradients for AdaGrad's proximal functions
`ψ_t(x) = ½⟨x, (δI + diag(s_t)) x⟩` satisfy
`∑_{t=1}^T ‖g_t‖²_{ψ_t*} = ∑_{t=1}^T ∑_i g_{t,i}² / (δ + s_{t,i}) ≤ 2 ∑_{i=1}^d ‖g_{1:T,i}‖₂`. -/
theorem eq_13 {d : ℕ} (g : ℕ → EuclideanSpace ℝ (Fin d)) (δ : ℝ) (hδ : 0 ≤ δ) (T : ℕ) :
    ∑ t ∈ Finset.Icc 1 T, dualNormSq (adaWeights δ g t) (g t) ≤ 2 * ∑ i, s g T i := by sorry

end AdaGrad.Diag
Source
Duchi, Hazan, Singer, Adaptive Subgradient Methods for Online Learning and Stochastic Optimization, JMLR 12 (2011), p. 2131, §3, (13)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me