Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.6), p. 631 — either f(x_t) → −∞, or f(x_t) converges and Σ γ_t‖∇f(x_t)‖² < ∞

Proved
GradErrors.Deterministic.sum_gamma_grad_sq_finite

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

diminishing-stepsizegradient-methodnonconvex-optimizationp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R be continuously differentiable with LLL-Lipschitz gradient, ∥∇f(x)−∇f(xˉ)∥≤L∥x−xˉ∥\|\nabla f(x)-\nabla f(\bar x)\|\le L\|x-\bar x\|∥∇f(x)−∇f(xˉ)∥≤L∥x−xˉ∥ for all x,xˉx,\bar xx,xˉ (standing assumption (2.1) of the paper). Let xt,st,wt∈Rnx_t, s_t, w_t\in\mathbb R^nxt​,st​,wt​∈Rn and γt∈R\gamma_t\in\mathbb Rγt​∈R (t=0,1,…t=0,1,\dotst=0,1,…) satisfy the recursion

xt+1=xt+γt(st+wt),x_{t+1}=x_t+\gamma_t(s_t+w_t),xt+1​=xt​+γt​(st​+wt​),

where, for positive constants c1,c2,p,qc_1,c_2,p,qc1​,c2​,p,q and every ttt,

  1. (descent direction, (2.2)) c1∥∇f(xt)∥2≤−∇f(xt)′stc_1\|\nabla f(x_t)\|^2\le-\nabla f(x_t)'s_tc1​∥∇f(xt​)∥2≤−∇f(xt​)′st​ and ∥st∥≤c2(1+∥∇f(xt)∥)\|s_t\|\le c_2\bigl(1+\|\nabla f(x_t)\|\bigr)∥st​∥≤c2​(1+∥∇f(xt​)∥);
  2. (error bound, (2.3)) ∥wt∥≤γt(q+p∥∇f(xt)∥)\|w_t\|\le\gamma_t\bigl(q+p\|\nabla f(x_t)\|\bigr)∥wt​∥≤γt​(q+p∥∇f(xt​)∥);
  3. (stepsizes) γt>0\gamma_t>0γt​>0, ∑t=0∞γt=∞\sum_{t=0}^\infty\gamma_t=\infty∑t=0∞​γt​=∞, and ∑t=0∞γt2<∞\sum_{t=0}^\infty\gamma_t^2<\infty∑t=0∞​γt2​<∞.

Then either f(xt)→−∞f(x_t)\to-\inftyf(xt​)→−∞, or else f(xt)f(x_t)f(xt​) converges to a finite value and

∑t=0∞γt∥∇f(xt)∥2<∞.\sum_{t=0}^\infty\gamma_t\|\nabla f(x_t)\|^2<\infty.t=0∑∞​γt​∥∇f(xt​)∥2<∞.

This is the summability statement (2.6) of the proof of Proposition 1, from which the convergence of the gradients is derived.

Formalization Note Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n), x′yx'yx′y is the real inner product and ∇f\nabla f∇f is Mathlib's gradient f (the true gradient, since ContDiff ℝ 1 f is assumed). The Lipschitz constant is taken as L : ℝ≥0 with LipschitzWith L (gradient f); this is equivalent to (2.1) for some real constant LLL. xt,st,wtx_t, s_t, w_txt​,st​,wt​ are arbitrary sequences: nothing about how they are produced is assumed beyond (2.2)–(2.3). The divergent stepsize sum is retained from Proposition 1's setting, although this estimate itself does not use it. The terms γt∥∇f(xt)∥2\gamma_t\|\nabla f(x_t)\|^2γt​∥∇f(xt​)∥2 are nonnegative, so Summable is exactly finiteness of the series.

Preamble
import Mathlib

open Filter Topology NNReal InnerProductSpace
Formal statement
namespace GradErrors.Deterministic

theorem sum_gamma_grad_sq_finite {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : ContDiff ℝ 1 f)
    (L : ℝ≥0) (hL : LipschitzWith L (gradient f))
    (x s w : ℕ → EuclideanSpace ℝ (Fin n)) (γ : ℕ → ℝ)
    (c₁ c₂ p q : ℝ) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) (hp : 0 < p) (hq : 0 < q)
    (hx : ∀ t, x (t + 1) = x t + γ t • (s t + w t))
    (h22a : ∀ t, c₁ * ‖gradient f (x t)‖ ^ 2 ≤ -⟪gradient f (x t), s t⟫_ℝ)
    (h22b : ∀ t, ‖s t‖ ≤ c₂ * (1 + ‖gradient f (x t)‖))
    (h23 : ∀ t, ‖w t‖ ≤ γ t * (q + p * ‖gradient f (x t)‖))
    (hγ : ∀ t, 0 < γ t)
    (hsum : Tendsto (fun T => ∑ t ∈ Finset.range T, γ t) atTop atTop)
    (hsq : Summable (fun t => γ t ^ 2)) :
    Tendsto (fun t => f (x t)) atTop atBot ∨
      ((∃ l : ℝ, Tendsto (fun t => f (x t)) atTop (𝓝 l)) ∧
        Summable (fun t => γ t * ‖gradient f (x t)‖ ^ 2)) := by sorry

end GradErrors.Deterministic
Source
Bertsekas and Tsitsiklis, Gradient Convergence in Gradient Methods with Errors, SIAM J. Optim. 10 (2000), https://doi.org/10.1137/S1052623497331063, p. 631, §2, proof of Proposition 1, display (2.6) and the sentence introducing it
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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