Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — SAGA's 4n/k4n/k4n/k rate for the averaged iterate without strong convexity

Proved
SAGA.Convex.saga_averaged_iterate_rate

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

convex-optimizationp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-gradientvariance-reduction

Let n≥1n\ge1n≥1 and L>0L>0L>0. Let f1,…,fn:Rd→Rf_1,\dots,f_n:\mathbb R^d\to\mathbb Rf1​,…,fn​:Rd→R be convex and differentiable with LLL-Lipschitz gradients fi′f_i'fi′​, 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, F=f+hF=f+hF=f+h, and let x∗x^*x∗ be a minimizer of FFF. Run SAGA from x0x^0x0 (table ϕi0=x0\phi_i^0=x^0ϕi0​=x0) with step size γ=13L\gamma=\frac1{3L}γ=3L1​ and proximal map proxγh\mathrm{prox}^h_\gammaproxγh​, the indices j1,j2,…j^1,j^2,\dotsj1,j2,… being independent and uniform on {1,…,n}\{1,\dots,n\}{1,…,n}. Then for every k≥1k\ge1k≥1, with xˉk=1k∑t=1kxt\bar x^k=\frac1k\sum_{t=1}^k x^txˉk=k1​∑t=1k​xt,

E[F(xˉk)]−F(x∗)≤4nk[2Ln∥x0−x∗∥2+f(x0)−⟨f′(x∗),x0−x∗⟩−f(x∗)],\mathbb E\big[F(\bar x^k)\big]-F(x^*)\le\frac{4n}{k}\Big[\frac{2L}{n}\|x^0-x^*\|^2+f(x^0)-\langle f'(x^*),x^0-x^*\rangle-f(x^*)\Big],E[F(xˉk)]−F(x∗)≤k4n​[n2L​∥x0−x∗∥2+f(x0)−⟨f′(x∗),x0−x∗⟩−f(x∗)],

where the expectation is over the indices j1,…,jkj^1,\dots,j^kj1,…,jk.

This is the sublinear O(n/k)O(n/k)O(n/k) guarantee of SAGA for composite problems that are convex but not strongly convex: the same method, without knowledge of a strong convexity constant, converges in function value of the averaged iterate.

Formalization Note The proximal operator enters as a map PPP with P(y)P(y)P(y) a minimizer of h(z)+3L∥z−y∥2/2h(z)+3L\|z-y\|^2/2h(z)+3L∥z−y∥2/2 for every yyy. The expectation is the uniform average over the nkn^knk index sequences Fin k → Fin n; xtx^txt uses the first ttt indices. The bracket on the right uses fff and f′f'f′, not FFF, as printed. hhh is real-valued (no indicator functions).

Preamble
import Mathlib
import Definitions.Def_SAGA_Convex_finiteSum
import Definitions.Def_SAGA_Convex_IsProxPoint
import Definitions.Def_SAGA_Convex_sagaStep
import Definitions.Def_SAGA_Convex_sagaRun

open scoped RealInnerProductSpace
Formal statement
namespace SAGA.Convex

/-- Theorem 2 (Appendix C, p. 11): each `fᵢ` convex with `L`-Lipschitz gradient, `h` convex,
`x*` a minimizer of `F = f + h`, SAGA run with `γ = 1/(3L)` and `P = prox_γ^h` from `x^0`
(with `φᵢ^0 = x^0`). For every `k ≥ 1`, with `x̄^k = (1/k) ∑_{t=1}^k x^t` and `E` over the `k`
independent uniform indices,
`E[F(x̄^k)] - F(x*) ≤ (4n/k) [(2L/n)‖x^0 - x*‖² + f(x^0) - ⟨f′(x*), x^0 - x*⟩ - f(x*)]`. -/
theorem saga_averaged_iterate_rate {d n : ℕ} (hn : 0 < n) {L : ℝ} (hL : 0 < L)
    (f : Fin n → EuclideanSpace ℝ (Fin d) → ℝ)
    (f' : Fin n → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d))
    (hgrad : ∀ i x, HasGradientAt (f i) (f' i x) x)
    (hLip : ∀ i x y, ‖f' i x - f' i y‖ ≤ L * ‖x - y‖)
    (hconv : ∀ i, ConvexOn ℝ Set.univ (f i))
    (h : EuclideanSpace ℝ (Fin d) → ℝ) (hh : ConvexOn ℝ Set.univ h)
    (P : EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d))
    (hP : ∀ y, IsProxPoint h (1 / (3 * L)) y (P y))
    (xs : EuclideanSpace ℝ (Fin d)) (hopt : ∀ y, fAvg f xs + h xs ≤ fAvg f y + h y)
    (x0 : EuclideanSpace ℝ (Fin d)) (k : ℕ) (hk : 1 ≤ k) :
    expectIdx n k (fun js => fAvg f (avgIterate f' P (1 / (3 * L)) x0 js)
        + h (avgIterate f' P (1 / (3 * L)) x0 js))
      - (fAvg f xs + h xs) ≤
      4 * n / k * (2 * L / n * ‖x0 - xs‖ ^ 2 + fAvg f x0 - ⟪gradAvg f' xs, x0 - xs⟫
        - fAvg f xs) := by sorry

end SAGA.Convex
Source
Defazio, Bach & Lacoste-Julien, SAGA, arXiv:1407.0202v3, Appendix C, p. 11, Theorem 2 (announced on p. 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