Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (13): ∑t∥gt∥ψt∗2≤2∑i∥g1:T,i∥2\sum_t \|g_t\|^2_{\psi_t^*} \le 2\sum_i \|g_{1:T,i}\|_2∑t​∥gt​∥ψt∗​2​≤2∑i​∥g1:T,i​∥2​

Proved
AdaGradDHS.Diag.eq_13_dual_norm_sum

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

adagradconvex-optimizationonline-learningregret-bounds

Let δ≥0\delta \ge 0δ≥0, g1,g2,⋯∈Rdg_1, g_2, \dots \in \mathbb{R}^dg1​,g2​,⋯∈Rd, and st,i=∥g1:t,i∥2s_{t,i} = \|g_{1:t,i}\|_2st,i​=∥g1:t,i​∥2​. For the proximal function with matrix Ht=δI+diag⁡(st)H_t = \delta I + \operatorname{diag}(s_t)Ht​=δI+diag(st​), the squared dual norm is ∥g∥ψt∗2=⟨g,(δI+diag⁡(st))−1g⟩\|g\|^2_{\psi_t^*} = \langle g, (\delta I + \operatorname{diag}(s_t))^{-1} g\rangle∥g∥ψt∗​2​=⟨g,(δI+diag(st​))−1g⟩, and for every TTT

∑t=1T∑i=1dgt,i2δ+st,i≤2∑i=1d∥g1:T,i∥2.\sum_{t=1}^T \sum_{i=1}^d \frac{g_{t,i}^2}{\delta + s_{t,i}} \le 2 \sum_{i=1}^d \|g_{1:T,i}\|_2 .t=1∑T​i=1∑d​δ+st,i​gt,i2​​≤2i=1∑d​∥g1:T,i​∥2​.

This bounds the gradient term η2∑t∥ft′(xt)∥ψt∗2\tfrac{\eta}{2}\sum_t \|f'_t(x_t)\|^2_{\psi_t^*}2η​∑t​∥ft′​(xt​)∥ψt∗​2​ of the composite mirror-descent bound (11) for AdaGrad.

Formalization Note A zero denominator forces δ=0\delta = 0δ=0 and st,i=0s_{t,i} = 0st,i​=0, hence gt,i=0g_{t,i} = 0gt,i​=0; Lean's x/0=0x/0 = 0x/0=0 then gives the right value.

Differences from the source:

  • generalization: g_t = f′_t(x_t) from Algorithm 1 → an arbitrary sequence g of vectors; reason: the inequality never uses that g_t is a subgradient
  • encoding: ‖f′t(x_t)‖²{ψ*_t} → ∑ i, (g t i) ^ 2 / (δ + accNorm g t i), the paper's own formula ⟨g, (δI + diag(s_t))^{-1} g⟩ (p. 2131); reason: the paper identifies the two on the same page; x / 0 = 0 meets only zero numerators
Preamble
import Mathlib
import Definitions.Def_AdaGradDHS_Diag_accNorm
Formal statement
namespace AdaGradDHS.Diag

/-- **Eq. (13): `Σ_{t=1}^T ‖f′_t(x_t)‖²_{ψ*_t} ≤ 2 Σ_{i=1}^d ‖g_{1:T,i}‖₂` for every `δ ≥ 0`.**
Duchi, Hazan, Singer, *Adaptive Subgradient Methods for Online Learning and Stochastic
Optimization*, JMLR 12 (2011), §3, p. 2131: "it is easy to see that the associated dual-norm is ‖g‖²ψ∗t = ⟨g, (δI +
diag(st))−1 g⟩. … Thus, for any δ ≥ 0, Lemma 4 implies Σ_{t=1}^T ‖f′t(xt)‖²ψ∗t ≤ 2 Σ_{i=1}^d
‖g1:T,i‖2. (13)"

For `δ ≥ 0`, every sequence `g` and every `T`, with `s_{t,i} = accNorm g t i`,
`Σ_{t=1}^T Σ_i g_{t,i}² / (δ + s_{t,i}) ≤ 2 Σ_i s_{T,i}`.

**Formalization Note.** `‖g_t‖²_{ψ*_t}` is written as the paper's own formula
`⟨g_t, (δI + diag(s_t))⁻¹ g_t⟩ = Σ_i g_{t,i}² / (δ + s_{t,i})`, with `x / 0 = 0`; a zero
denominator forces `δ = 0` and `s_{t,i} = 0`, hence `g_{t,i} = 0`. `g` is arbitrary. -/
theorem eq_13_dual_norm_sum {d : ℕ} {δ : ℝ} (hδ : 0 ≤ δ) (g : ℕ → EuclideanSpace ℝ (Fin d)) (T : ℕ) :
    ∑ t ∈ Finset.Icc 1 T, ∑ i, (g t i) ^ 2 / (δ + accNorm g t i) ≤ 2 * ∑ i, accNorm g T i := by sorry

end AdaGradDHS.Diag
Source
Duchi, Hazan, Singer, Adaptive Subgradient Methods for Online Learning and Stochastic Optimization, JMLR 12 (2011), §3, p. 2131, eq. (13) and the display before it

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