Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 1 — linear convergence of SAGA under strong convexity: E∥xk−x∗∥2≤(1−μ2(μn+L))k[… ]\mathbb E\|x^k-x^*\|^2\le(1-\frac{\mu}{2(\mu n+L)})^k[\dots]E∥xk−x∗∥2≤(1−2(μn+L)μ​)k[…]

Proved
SAGA.StronglyConvex.corollary1_linear_convergence

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

linear-convergenceoptimizationp2o-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​ with gradient f′=1n∑ifi′f'=\frac1n\sum_i f_i'f′=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 the composite objective F=f+hF=f+hF=f+h. Run SAGA with step size

γ=12(μn+L)\gamma=\frac{1}{2(\mu n+L)}γ=2(μn+L)1​

and proximal operator prox⁡γh\operatorname{prox}^h_\gammaproxγh​, starting from x0x^0x0 with ϕi0=x0\phi_i^0=x^0ϕi0​=x0 for all iii, the index at each iteration drawn independently and uniformly from {1,…,n}\{1,\dots,n\}{1,…,n}. Then for every k≥0k\ge0k≥0,

E ∥xk−x∗∥2  ≤  (1−μ2(μn+L))k[∥x0−x∗∥2+nμn+L(f(x0)−⟨f′(x∗),x0−x∗⟩−f(x∗))],\mathbb E\,\|x^k-x^*\|^2\;\le\;\Big(1-\frac{\mu}{2(\mu n+L)}\Big)^k\Big[\|x^0-x^*\|^2+\frac{n}{\mu n+L}\big(f(x^0)-\langle f'(x^*),x^0-x^*\rangle-f(x^*)\big)\Big],E∥xk−x∗∥2≤(1−2(μn+L)μ​)k[∥x0−x∗∥2+μn+Ln​(f(x0)−⟨f′(x∗),x0−x∗⟩−f(x∗))],

where the expectation is over all choices of the indices up to step kkk.

This is the linear convergence rate of SAGA in the strongly convex composite case, which contains the non-composite case h=0h=0h=0. Note that x∗x^*x∗ minimizes f+hf+hf+h, so f′(x∗)f'(x^*)f′(x∗) need not vanish; the bracket uses fff, not FFF.

Formalization Note The expectation is the average over all nkn^knk index sequences j1,…,jkj_1,\dots,j_kj1​,…,jk​ (functions Fin k → Fin n) of ∥xk−x∗∥2\|x^k-x^*\|^2∥xk−x∗∥2, where xkx^kxk is the deterministic SAGA run along that sequence; this is exactly the expectation under kkk independent uniform indices. The proximal operator is any map PPP with P(y)P(y)P(y) a minimizer of h(x)+12γ∥x−y∥2h(x)+\frac1{2\gamma}\|x-y\|^2h(x)+2γ1​∥x−y∥2 for every yyy, which by uniqueness is prox⁡γh\operatorname{prox}^h_\gammaproxγh​. hhh is real-valued, as the paper types it; a minimizer x∗x^*x∗ of FFF is assumed to exist. Indices are 0-based.

Preamble
import Mathlib
import Definitions.Def_SAGA_StronglyConvex_IsProxPoint
import Definitions.Def_SAGA_StronglyConvex_sagaRun

open scoped InnerProductSpace
Formal statement
namespace SAGA.StronglyConvex

/-- Corollary 1 (p. 8; announced on p. 2): linear convergence of SAGA in the strongly convex
composite case. 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`, `x*` (here `xs`) minimizes
`F = f + h` with `f = (1/n) Σ_i f_i`, and `γ = 1/(2(μn+L))`. SAGA starts at `x^0` with
`φ_i^0 = x^0`. The expectation over the `k` indices, drawn independently and uniformly from the
`n` components, is the average over all `n^k` index sequences. -/
theorem corollary1_linear_convergence {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)
    (γ : ℝ) (hγ : γ = 1 / (2 * (μ * n + L)))
    (P : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d))
    (hP : ∀ y, IsProxPoint h γ y (P y))
    (x0 : EuclideanSpace ℝ (Fin d)) (k : ℕ) :
    (1 / (n : ℝ) ^ k) * ∑ js : Fin k → Fin n, ‖(sagaRun f' P γ x0 k js).1 - xs‖ ^ 2 ≤
      (1 - μ / (2 * (μ * n + L))) ^ k *
        (‖x0 - xs‖ ^ 2 + n / (μ * n + L) *
          ((1 / (n : ℝ)) * ∑ i, f i x0 - ⟪(1 / (n : ℝ)) • ∑ i, f' i xs, x0 - xs⟫_ℝ
            - (1 / (n : ℝ)) * ∑ i, f i xs)) := by sorry

end SAGA.StronglyConvex
Source
Defazio, Bach & Lacoste-Julien, SAGA, arXiv:1407.0202v3, p. 8, Corollary 1 (announced on p. 2, Section 2)
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