Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — inner-product bound for averages of strongly convex smooth functions

Proved
SAGA.Convex.lemma1_inner_bound

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

convex-analysisp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1smooth-optimization

Let n≥1n\ge1n≥1, L>0L>0L>0 and μ≥0\mu\ge0μ≥0. 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 fif_ifi​ μ\muμ-strongly convex (convex when μ=0\mu=0μ=0) with LLL-Lipschitz gradient, and let f=1n∑ifif=\frac1n\sum_i f_if=n1​∑i​fi​, f′=1n∑ifi′f'=\frac1n\sum_i f_i'f′=n1​∑i​fi′​. Then for all x,x∗∈Rdx,x^*\in\mathbb R^dx,x∗∈Rd,

⟨f′(x),x∗−x⟩≤L−μL[f(x∗)−f(x)]−μ2∥x∗−x∥2−12Ln∑i=1n∥fi′(x∗)−fi′(x)∥2−μL⟨f′(x∗),x−x∗⟩.\langle f'(x),x^*-x\rangle\le\frac{L-\mu}{L}\big[f(x^*)-f(x)\big]-\frac\mu2\|x^*-x\|^2-\frac1{2Ln}\sum_{i=1}^n\|f_i'(x^*)-f_i'(x)\|^2-\frac\mu L\langle f'(x^*),x-x^*\rangle .⟨f′(x),x∗−x⟩≤LL−μ​[f(x∗)−f(x)]−2μ​∥x∗−x∥2−2Ln1​i=1∑n​∥fi′​(x∗)−fi′​(x)∥2−Lμ​⟨f′(x∗),x−x∗⟩.

The proof of Theorem 2 uses it with μ=0\mu=0μ=0, where it reads ⟨f′(x),x∗−x⟩≤f(x∗)−f(x)−12Ln∑i∥fi′(x∗)−fi′(x)∥2\langle f'(x),x^*-x\rangle\le f(x^*)-f(x)-\frac1{2Ln}\sum_i\|f_i'(x^*)-f_i'(x)\|^2⟨f′(x),x∗−x⟩≤f(x∗)−f(x)−2Ln1​∑i​∥fi′​(x∗)−fi′​(x)∥2; it controls the cross term produced by the c∥x−x∗∥2c\|x-x^*\|^2c∥x−x∗∥2 part of the Lyapunov function.

Formalization Note μ\muμ-strong convexity is Mathlib's StrongConvexOn Set.univ μ, whose modulus is μ2∥x−y∥2\frac\mu2\|x-y\|^22μ​∥x−y∥2, the paper's convention. The gradients are given maps with HasGradientAt (f i) (f' i x) x.

Preamble
import Mathlib
import Definitions.Def_SAGA_Convex_finiteSum

open scoped RealInnerProductSpace
Formal statement
namespace SAGA.Convex

/-- Lemma 1 (= Lemma 5), pp. 6–7 and 10: for `f = (1/n) ∑ fᵢ` with each `fᵢ` `μ`-strongly convex
(`μ ≥ 0`; `μ = 0` is plain convexity, the case used for Theorem 2) and with `L`-Lipschitz
gradients, for all `x` and `x*`,
`⟨f′(x), x* - x⟩ ≤ ((L - μ)/L)[f(x*) - f(x)] - (μ/2)‖x* - x‖²
  - (1/(2Ln)) ∑ᵢ ‖f′ᵢ(x*) - f′ᵢ(x)‖² - (μ/L)⟨f′(x*), x - x*⟩`. -/
theorem lemma1_inner_bound {d n : ℕ} (hn : 0 < n) {L μ : ℝ} (hL : 0 < L) (hμ : 0 ≤ μ)
    (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, StrongConvexOn Set.univ μ (f i))
    (x xs : EuclideanSpace ℝ (Fin d)) :
    ⟪gradAvg f' x, xs - x⟫ ≤
      (L - μ) / L * (fAvg f xs - fAvg f x) - μ / 2 * ‖xs - x‖ ^ 2
        - 1 / (2 * L * n) * ∑ i, ‖f' i xs - f' i x‖ ^ 2
        - μ / L * ⟪gradAvg f' xs, x - xs⟫ := by sorry

end SAGA.Convex
Source
Defazio, Bach & Lacoste-Julien, SAGA, arXiv:1407.0202v3, pp. 6-7, Lemma 1 (= Lemma 5, p. 10)
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