Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C — the prox-SVRG inequality for one SAGA step

Proved
SAGA.Convex.prox_svrg_inequality

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

p2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1proximal-operatorstochastic-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′​, 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, F=f+hF=f+hF=f+h, and let x∗x^*x∗ minimize FFF. Run SAGA with step γ=13L\gamma=\frac1{3L}γ=3L1​ and P=proxγhP=\mathrm{prox}^h_\gammaP=proxγh​. For every state (xk,ϕk)(x^k,\phi^k)(xk,ϕk) and every α>0\alpha>0α>0, with xk+1x^{k+1}xk+1 the next iterate, Δ\DeltaΔ the gradient error of the step, and E\mathbb EE the average over the index jjj drawn uniformly from {1,…,n}\{1,\dots,n\}{1,…,n},

α E∥xk+1−x∗∥2≤α∥xk−x∗∥2−2αγ E[F(xk+1)−F(x∗)]+2αγ2 E∥Δ∥2.\alpha\,\mathbb E\|x^{k+1}-x^*\|^2\le\alpha\|x^k-x^*\|^2-2\alpha\gamma\,\mathbb E\big[F(x^{k+1})-F(x^*)\big]+2\alpha\gamma^2\,\mathbb E\|\Delta\|^2 .αE∥xk+1−x∗∥2≤α∥xk−x∗∥2−2αγE[F(xk+1)−F(x∗)]+2αγ2E∥Δ∥2.

This is the inequality of Xiao and Zhang for proximal SVRG, transferred to SAGA; the paper cites it rather than proving it. It produces the term −2αγ E[F(xk+1)−F(x∗)]-2\alpha\gamma\,\mathbb E[F(x^{k+1})-F(x^*)]−2αγE[F(xk+1)−F(x∗)] that drives the O(n/k)O(n/k)O(n/k) rate of Theorem 2.

Formalization Note PPP is any map with P(y)P(y)P(y) a minimizer of h(z)+12γ∥z−y∥2h(z)+\frac1{2\gamma}\|z-y\|^2h(z)+2γ1​∥z−y∥2 for every yyy, which for convex hhh is proxγh\mathrm{prox}^h_\gammaproxγh​. E\mathbb EE is written as 1n∑j\frac1n\sum_jn1​∑j​.

Preamble
import Mathlib
import Definitions.Def_SAGA_Convex_finiteSum
import Definitions.Def_SAGA_Convex_IsProxPoint
import Definitions.Def_SAGA_Convex_sagaStep
Formal statement
namespace SAGA.Convex

/-- Appendix C, p. 12 (the prox-SVRG inequality of Xiao–Zhang, applied to SAGA): each `fᵢ`
convex with `L`-Lipschitz gradient, `h` convex, `x*` a minimizer of `F = f + h`, step
`γ = 1/(3L)`, `P = prox_γ^h`. For every state `(x^k, φ^k)` and every `α > 0`, with `E` the
average over the uniformly drawn index `j`,
`α E‖x^{k+1} - x*‖² ≤ α ‖x^k - x*‖² - 2αγ E[F(x^{k+1}) - F(x*)] + 2αγ² E‖Δ‖²`. -/
theorem prox_svrg_inequality {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)
    {α : ℝ} (hα : 0 < α)
    (s : EuclideanSpace ℝ (Fin d) × (Fin n → EuclideanSpace ℝ (Fin d))) :
    α * ((1 / (n : ℝ)) * ∑ j, ‖(sagaStep f' P (1 / (3 * L)) s j).1 - xs‖ ^ 2) ≤
      α * ‖s.1 - xs‖ ^ 2
        - 2 * α * (1 / (3 * L)) * ((1 / (n : ℝ)) * ∑ j,
            ((fAvg f (sagaStep f' P (1 / (3 * L)) s j).1 + h (sagaStep f' P (1 / (3 * L)) s j).1)
              - (fAvg f xs + h xs)))
        + 2 * α * (1 / (3 * L)) ^ 2 *
            ((1 / (n : ℝ)) * ∑ j, ‖sagaDelta f' (1 / (3 * L)) s j‖ ^ 2) := by sorry

end SAGA.Convex
Source
Defazio, Bach & Lacoste-Julien, SAGA, arXiv:1407.0202v3, Appendix C, p. 12, first display (citing Xiao & Zhang, prox-SVRG, 2nd eq. on p. 12)
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