Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 5.12 — per-component gradient-variation bound

Disproved
FirstOrderOpt.FiniteSum.gradient_variation_bound

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-optimizationfinite-sum-optimizationstochastic-optimizationvariance-reduction

Consider the finite-sum composite problem min⁡x∈X{Ψ(x):=f(x)+h(x)}\min_{x\in X}\{\Psi(x):=f(x)+h(x)\}minx∈X​{Ψ(x):=f(x)+h(x)} (Eq. (5.3.1)), where X⊆EX\subseteq EX⊆E is a closed convex set, f(x)=1m∑i=1mfi(x)f(x)=\frac{1}{m}\sum_{i=1}^m f_i(x)f(x)=m1​∑i=1m​fi​(x) is the average of mmm smooth convex component functions, each with LiL_iLi​-Lipschitz gradient ∇fi\nabla f_i∇fi​, and hhh is a simple, possibly nondifferentiable convex function. Let Q={q1,…,qm}Q=\{q_1,\dots,q_m\}Q={q1​,…,qm​} be a probability distribution on {1,…,m}\{1,\dots,m\}{1,…,m} (the sampling distribution used by the variance-reduced mirror-descent method, Algorithm 5.6), and set

LQ:=1mmax⁡i=1,…,mLiqi.L_Q := \frac{1}{m}\max_{i=1,\dots,m}\frac{L_i}{q_i}.LQ​:=m1​i=1,…,mmax​qi​Li​​.

Lemma 5.12. Let x∗x^*x∗ be an optimal solution of (5.3.1). Then for every x∈Xx\in Xx∈X,

1m∑i=1m1mqi∥∇fi(x)−∇fi(x∗)∥∗2≤2LQ [Ψ(x)−Ψ(x∗)].\frac{1}{m}\sum_{i=1}^m \frac{1}{mq_i}\|\nabla f_i(x)-\nabla f_i(x^*)\|_*^2 \le 2L_Q\,[\Psi(x)-\Psi(x^*)].m1​i=1∑m​mqi​1​∥∇fi​(x)−∇fi​(x∗)∥∗2​≤2LQ​[Ψ(x)−Ψ(x∗)].

This is the section's basic per-component consequence of LiL_iLi​-smoothness, obtained by summing the standard co-coercivity bound ∥∇fi(x)−∇fi(x∗)∥∗2≤2Li[fi(x)−fi(x∗)−⟨∇fi(x∗),x−x∗⟩]\|\nabla f_i(x)-\nabla f_i(x^*)\|_*^2\le 2L_i[f_i(x)-f_i(x^*) -\langle\nabla f_i(x^*),x-x^*\rangle]∥∇fi​(x)−∇fi​(x∗)∥∗2​≤2Li​[fi​(x)−fi​(x∗)−⟨∇fi​(x∗),x−x∗⟩] (Lemma 5.8) over i=1,…,mi=1,\dots,mi=1,…,m weighted by 1/(mqi)1/(mq_i)1/(mqi​), then using the optimality of x∗x^*x∗ and the convexity of hhh. It is the fact from which the variance-reduced estimator's bounded-variance property (Lemma 5.13) is derived.

Formalization Note. ∇fi(x)\nabla f_i(x)∇fi​(x) is modeled as a continuous linear functional gradf i x : E →L[ℝ] ℝ, matching this series' convention for gradients/subgradients; ‖·‖ on that space is the dual norm ∥⋅∥∗\|\cdot\|_*∥⋅∥∗​. The standing smoothness hypothesis on each ∇fi\nabla f_i∇fi​ and the probability-distribution hypotheses on qqq (both part of the section's setup rather than restated by Lemma 5.12 itself) are included explicitly so the statement is self-contained and LQL_QLQ​ is well-defined; hne supplies the nonemptiness Mathlib's Finset.sup' needs to express the max⁡i\max_imaxi​ in LQL_QLQ​'s definition.

Preamble
import Mathlib
Formal statement
namespace FirstOrderOpt.FiniteSum

/-- Lemma 5.12 (per-component gradient-variation bound). `X ⊆ E` is the closed convex feasible
set of (5.3.1), `Ψ = f + h` with `f = (1/m)Σ fi` the average of `m` component functions each with
`Li`-Lipschitz gradient `gradf i` (the standing smoothness assumption preceding (5.3.3)), `q` a
probability distribution on `{1,...,m}`, and `LQ := (1/m)·maxᵢ(Li/qi)` (5.3.4). If `xstar` is an
optimal solution of (5.3.1), then for every `x ∈ X`,
`(1/m)Σᵢ (1/(m·qi))‖gradf i x - gradf i xstar‖² ≤ 2·LQ·(Ψ x - Ψ xstar)`.

**Formalization Note.** `gradf i x : E →L[ℝ] ℝ` is `∇fi(x)` as a continuous linear functional
(matching this series' convention for gradients/subgradients, e.g. chunk `03-deterministic`'s
`g t : E →L[ℝ] ℝ`); `‖·‖` on that space is the dual norm `‖·‖_∗`. The `Li`-smoothness hypothesis
`hsmooth` and the probability-distribution hypotheses on `q` are the section's standing
assumptions (the paragraph after (5.3.1) and Algorithm 5.6's `Q = {q1,…,qm}`), not restated
inline by Lemma 5.12 itself but needed to make `LQ` and the bound meaningful; `hne` supplies the
nonemptiness Mathlib's `Finset.sup'` needs for the `maxᵢ` in (5.3.4). -/
theorem gradient_variation_bound {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    {m : ℕ} (hne : (Finset.univ : Finset (Fin m)).Nonempty)
    (X : Set E) (f h Ψ : E → ℝ) (hΨ : ∀ x, Ψ x = f x + h x)
    (fi : Fin m → E → ℝ) (hf : ∀ x, f x = (1 / (m : ℝ)) * ∑ i, fi i x)
    (gradf : Fin m → E → E →L[ℝ] ℝ)
    (L : Fin m → ℝ) (hL : ∀ i, 0 < L i)
    (hsmooth : ∀ i x y, ‖gradf i x - gradf i y‖ ≤ L i * ‖x - y‖)
    (q : Fin m → ℝ) (hq_pos : ∀ i, 0 < q i) (hq_sum : ∑ i, q i = 1)
    (LQ : ℝ) (hLQ : LQ = (1 / (m : ℝ)) * Finset.univ.sup' hne (fun i => L i / q i))
    (xstar : E) (hxstar : xstar ∈ X) (hxstar_opt : ∀ y ∈ X, Ψ xstar ≤ Ψ y) :
    ∀ x ∈ X, (1 / (m : ℝ)) * ∑ i, (1 / ((m : ℝ) * q i)) * ‖gradf i x - gradf i xstar‖ ^ 2 ≤
      2 * LQ * (Ψ x - Ψ xstar) := by sorry

end FirstOrderOpt.FiniteSum
Source
Lan, First-order and Stochastic Optimization Methods for Machine Learning, Springer 2020, p. 278, Lemma 5.12
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me