Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — the SAGA Lyapunov function contracts by 1−1/κ1-1/\kappa1−1/κ in expectation

Proved
SAGA.StronglyConvex.theorem1_lyapunov_contraction

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

lyapunov-functionoptimizationp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-gradientvariance-reduction

Let n≥1n\ge1n≥1 and let f1,…,fn:Rd→Rf_1,\dots,f_n:\mathbb R^d\to\mathbb Rf1​,…,fn​:Rd→R be differentiable with gradients fi′f_i'fi′​, each μ\muμ-strongly convex (μ>0\mu>0μ>0) with LLL-Lipschitz gradient (L>0L>0L>0). Let f=1n∑ifif=\frac1n\sum_i f_if=n1​∑i​fi​, let h:Rd→Rh:\mathbb R^d\to\mathbb Rh:Rd→R be convex, and let x∗x^*x∗ be a minimizer of F=f+hF=f+hF=f+h. Set

γ=12(μn+L),c=12γ(1−γμ)n,κ=1γμ,\gamma=\frac{1}{2(\mu n+L)},\qquad c=\frac{1}{2\gamma(1-\gamma\mu)n},\qquad \kappa=\frac{1}{\gamma\mu},γ=2(μn+L)1​,c=2γ(1−γμ)n1​,κ=γμ1​,

and let P=prox⁡γhP=\operatorname{prox}^h_\gammaP=proxγh​, i.e. P(y)P(y)P(y) minimizes h(x)+12γ∥x−y∥2h(x)+\frac1{2\gamma}\|x-y\|^2h(x)+2γ1​∥x−y∥2 for every yyy. Let TTT be the Lyapunov function

T(x,{ϕi})=1n∑ifi(ϕi)−f(x∗)−1n∑i⟨fi′(x∗),ϕi−x∗⟩+c∥x−x∗∥2.T(x,\{\phi_i\})=\frac1n\sum_i f_i(\phi_i)-f(x^*)-\frac1n\sum_i\langle f_i'(x^*),\phi_i-x^*\rangle+c\|x-x^*\|^2 .T(x,{ϕi​})=n1​i∑​fi​(ϕi​)−f(x∗)−n1​i∑​⟨fi′​(x∗),ϕi​−x∗⟩+c∥x−x∗∥2.

Then for every state (xk,{ϕik})(x^k,\{\phi_i^k\})(xk,{ϕik​}), if (xk+1,{ϕik+1})(x^{k+1},\{\phi_i^{k+1}\})(xk+1,{ϕik+1​}) is the result of one SAGA iteration with index jjj drawn uniformly from {1,…,n}\{1,\dots,n\}{1,…,n},

E[Tk+1]  ≤  (1−1κ)Tk.\mathbb E\big[T^{k+1}\big]\;\le\;\Big(1-\frac1\kappa\Big)T^k .E[Tk+1]≤(1−κ1​)Tk.

This one-step contraction is the core of the linear convergence of SAGA; Corollary 1 follows by iterating it.

Formalization Note The inequality is stated for every state (x,ϕ)(x,\phi)(x,ϕ), not only for states reachable by SAGA. The expectation is the average 1n∑j\frac1n\sum_jn1​∑j​ of TTT at the successor state computed with index jjj (Fin n, 0-based). The constants are hypotheses of the form γ = 1 / (2 * (μ * n + L)), c = 1 / (2 * γ * (1 - γ * μ) * n), κ = 1 / (γ * μ), exactly as printed. The proximal operator is any map PPP with P(y)P(y)P(y) a minimizer of (3) for all yyy; since that minimizer is unique, PPP is prox⁡γh\operatorname{prox}^h_\gammaproxγh​. hhh is real-valued, as in the paper.

Preamble
import Mathlib
import Definitions.Def_SAGA_StronglyConvex_IsProxPoint
import Definitions.Def_SAGA_StronglyConvex_sagaStep
import Definitions.Def_SAGA_StronglyConvex_lyapunov
Formal statement
namespace SAGA.StronglyConvex

/-- Theorem 1 (p. 7). Each `f_i` is `μ`-strongly convex with `L`-Lipschitz gradient `f'_i`, `h` is
convex and real-valued, `P` is the proximal map `prox_γ^h` (every `P y` minimizes (3)), and `x*`
(here `xs`) minimizes `F = (1/n) Σ_i f_i + h`. With `γ = 1/(2(μn+L))`, `c = 1/(2γ(1-γμ)n)` and
`κ = 1/(γμ)`, for every state `(x, φ)` the average of the Lyapunov function `T` over the next
SAGA state (index `j` uniform on the `n` components) is at most `(1 - 1/κ) T(x, φ)`. -/
theorem theorem1_lyapunov_contraction {d n : ℕ} (hn : 0 < n)
    (f : Fin n → EuclideanSpace ℝ (Fin d) → ℝ)
    (f' : Fin n → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d))
    (h : EuclideanSpace ℝ (Fin d) → ℝ)
    (μ L : ℝ) (hμ : 0 < μ) (hL : 0 < L)
    (hgrad : ∀ i x, HasGradientAt (f i) (f' i x) x)
    (hsc : ∀ i, StrongConvexOn Set.univ μ (f i))
    (hlip : ∀ i x y, ‖f' i x - f' i y‖ ≤ L * ‖x - y‖)
    (hh : ConvexOn ℝ Set.univ h)
    (xs : EuclideanSpace ℝ (Fin d))
    (hxs : ∀ y, (1 / (n : ℝ)) * ∑ i, f i xs + h xs ≤ (1 / (n : ℝ)) * ∑ i, f i y + h y)
    (γ c κ : ℝ) (hγ : γ = 1 / (2 * (μ * n + L))) (hc : c = 1 / (2 * γ * (1 - γ * μ) * n))
    (hκ : κ = 1 / (γ * μ))
    (P : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d))
    (hP : ∀ y, IsProxPoint h γ y (P y))
    (x : EuclideanSpace ℝ (Fin d)) (φ : Fin n → EuclideanSpace ℝ (Fin d)) :
    (1 / (n : ℝ)) * ∑ j, lyapunov f f' c xs (sagaStep f' P γ (x, φ) j) ≤
      (1 - 1 / κ) * lyapunov f f' c xs (x, φ) := by sorry

end SAGA.StronglyConvex
Source
Defazio, Bach & Lacoste-Julien, SAGA, arXiv:1407.0202v3, p. 7, Theorem 1 (proof pp. 7-8)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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