Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Bound on ψT(x∗)\psi_T(x^*)ψT​(x∗) in the unhalved convention (p. 2132)

Proved
AdaGradDHS.Diag.psi_T_bound

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

adagradconvex-optimizationonline-learningregret-bounds

Let δ∈R\delta \in \mathbb{R}δ∈R, g1,g2,⋯∈Rdg_1, g_2, \dots \in \mathbb{R}^dg1​,g2​,⋯∈Rd, sT,i=∥g1:T,i∥2s_{T,i} = \|g_{1:T,i}\|_2sT,i​=∥g1:T,i​∥2​ and ψT(x)=12∑i(δ+sT,i)xi2\psi_T(x) = \tfrac12\sum_i(\delta + s_{T,i})x_i^2ψT​(x)=21​∑i​(δ+sT,i​)xi2​ (Figure 1). For every x∗∈Rdx^* \in \mathbb{R}^dx∗∈Rd,

2 ψT(x∗)=⟨x∗,HTx∗⟩=δ∥x∗∥22+⟨x∗,diag⁡(sT)x∗⟩≤δ∥x∗∥22+∥x∗∥∞2∑i=1d∥g1:T,i∥2.2\,\psi_T(x^*) = \langle x^*, H_T x^*\rangle = \delta\|x^*\|_2^2 + \langle x^*, \operatorname{diag}(s_T)x^*\rangle \le \delta\|x^*\|_2^2 + \|x^*\|_\infty^2 \sum_{i=1}^d \|g_{1:T,i}\|_2 .2ψT​(x∗)=⟨x∗,HT​x∗⟩=δ∥x∗∥22​+⟨x∗,diag(sT​)x∗⟩≤δ∥x∗∥22​+∥x∗∥∞2​i=1∑d​∥g1:T,i​∥2​.

This bounds the term 1ηψT(x∗)\tfrac1\eta\psi_T(x^*)η1​ψT​(x∗) of the primal-dual bound (10) for AdaGrad.

Formalization Note The display on p. 2132 writes ψT(x∗)=δ∥x∗∥22+…\psi_T(x^*) = \delta\|x^*\|_2^2 + \dotsψT​(x∗)=δ∥x∗∥22​+…, using the unhalved ψT(x)=⟨x,HTx⟩\psi_T(x) = \langle x, H_T x\rangleψT​(x)=⟨x,HT​x⟩ of p. 2123; Figure 1's ψT\psi_TψT​ is half of it. The statement makes the factor explicit: its first part is the identity, its second the display's inequality.

Differences from the source:

  • reading: ψ_T(x∗) = δ‖x∗‖₂² + ⟨x∗, diag(s_T)x∗⟩ (the unhalved ψ_T of p. 2123) → 2 * adagradPsi δ g T xstar = δ‖x*‖² + ∑ i, accNorm g T i * x*_i² (Figure 1's ψ_T is half of it); reason: the display holds for the unhalved ψ_T; stated for Figure 1's ψ_T it would be off by a factor 2
  • encoding: ‖x∗‖∞², ⟨x∗, diag(s_T)x∗⟩ → supNorm xstar ^ 2, ∑ i, accNorm g T i * (xstar i) ^ 2; reason: same quantities
Preamble
import Mathlib
import Definitions.Def_AdaGradDHS_Diag_accNorm
import Definitions.Def_AdaGradDHS_Diag_adagradPsi
import Definitions.Def_AdaGradDHS_Diag_supNorm
Formal statement
namespace AdaGradDHS.Diag

/-- **Bound on `ψ_T(x*)` (in the unhalved convention `⟨x, H_T x⟩ = 2 ψ_T(x)`).**
Duchi, Hazan, Singer, *Adaptive Subgradient Methods for Online Learning and Stochastic
Optimization*, JMLR 12 (2011), §3, p. 2132 (unnumbered display): "We also have ψT(x∗) = δ‖x∗‖2² + ⟨x∗, diag(sT)x∗⟩ ≤
δ‖x∗‖2² + ‖x∗‖∞² Σ_{i=1}^d ‖g1:T,i‖2."

For every `δ`, every sequence `g`, every `T` and every `x*`, with `ψ_T = adagradPsi δ g T`
(Figure 1's `½⟨x, H_T x⟩`) and `s_{T,i} = accNorm g T i`:
`2 ψ_T(x*) = δ‖x*‖₂² + Σ_i s_{T,i} x*_i²` and
`δ‖x*‖₂² + Σ_i s_{T,i} x*_i² ≤ δ‖x*‖₂² + ‖x*‖∞² Σ_i s_{T,i}`.

**Formalization Note.** The display's `ψ_T` is the unhalved `⟨x, H_T x⟩` of p. 2123, which is
twice Figure 1's `ψ_T` (`adagradPsi`); the first conjunct records this, the second is the display's
inequality. `‖·‖` on `EuclideanSpace` is the ℓ2 norm. -/
theorem psi_T_bound {d : ℕ} (δ : ℝ) (g : ℕ → EuclideanSpace ℝ (Fin d)) (T : ℕ) (xstar : EuclideanSpace ℝ (Fin d)) :
    2 * adagradPsi δ g T xstar = δ * ‖xstar‖ ^ 2 + ∑ i, accNorm g T i * (xstar i) ^ 2 ∧
      δ * ‖xstar‖ ^ 2 + ∑ i, accNorm g T i * (xstar i) ^ 2 ≤
        δ * ‖xstar‖ ^ 2 + supNorm xstar ^ 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. 2132 (unnumbered display "We also have ψT(x∗) = …")

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