Eq. (24):
ProvedAdaGradDHS.Diag.eq_24_root_sum_boundadagradconvex-optimizationonline-learningregret-bounds
For every real sequence and every ,
with the convention .
This scalar inequality, due to Auer and Gentile, is the engine of Lemma 4: applied to each coordinate of the subgradients it bounds the accumulated dual-norm terms of AdaGrad by twice the final accumulated norms.
Formalization Note A zero denominator occurs only when , so the numerator is then too, and Lean's is the paper's convention.
Differences from the source:
- encoding: ‖a_{1:t}‖₂ with 0/0 = 0 → Real.sqrt (∑ τ ∈ Finset.Icc 1 t, a τ ^ 2) with Lean's x / 0 = 0; reason: same quantity; a zero denominator meets only a zero numerator
Preamble
import Mathlib
Formal statement
namespace AdaGradDHS.Diag
/-- **Eq. (24): `Σ_{t=1}^T a_t² / ‖a_{1:t}‖₂ ≤ 2‖a_{1:T}‖₂`.**
Duchi, Hazan, Singer, *Adaptive Subgradient Methods for Online Learning and Stochastic
Optimization*, JMLR 12 (2011), Appendix C (proof of Lemma 4), p. 2149, eq. (24): "Σ_{t=1}^T a_t² / ‖a1:t‖2 ≤ 2‖a1:T‖2 ,
where we define 0/0 = 0", for "an arbitrary real-valued sequence {ai}".
For every real sequence `a` and every `T`,
`Σ_{t=1}^T a_t² / √(Σ_{τ=1}^t a_τ²) ≤ 2 √(Σ_{τ=1}^T a_τ²)`.
**Formalization Note.** `‖a_{1:t}‖₂` is written `√(Σ_{τ=1}^t a_τ²)`. Lean's `x / 0 = 0` is the
paper's convention `0/0 = 0`; a zero denominator occurs only when `a_1 = ⋯ = a_t = 0`, so the
numerator is then `0` too. -/
theorem eq_24_root_sum_bound (a : ℕ → ℝ) (T : ℕ) :
∑ t ∈ Finset.Icc 1 T, a t ^ 2 / Real.sqrt (∑ τ ∈ Finset.Icc 1 t, a τ ^ 2) ≤
2 * Real.sqrt (∑ τ ∈ Finset.Icc 1 T, a τ ^ 2) := by sorry
end AdaGradDHS.Diag
Source
Duchi, Hazan, Singer, Adaptive Subgradient Methods for Online Learning and Stochastic Optimization, JMLR 12 (2011), Appendix C (proof of Lemma 4), p. 2149, eq. (24)