Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — gradient descent under PL converges at rate (1 − μ/L)^k

Proved
KarimiPL.GD.theorem_1

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

gradient-descentlinear-convergencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1polyak-lojasiewicz

Let f:Rd→Rf:\mathbb R^d\to\mathbb Rf:Rd→R be differentiable with an LLL-Lipschitz gradient, where L>0L>0L>0. Suppose x∗x^*x∗ is a global minimizer and μ>0\mu>0μ>0 satisfies the Polyak–Łojasiewicz inequality 12∥∇f(z)∥2≥μ(f(z)−f(x∗))\frac12\|\nabla f(z)\|^2\ge\mu(f(z)-f(x^*))21​∥∇f(z)∥2≥μ(f(z)−f(x∗)) for every zzz. Starting from any x0x_0x0​, define xk+1=xk−L−1∇f(xk)x_{k+1}=x_k-L^{-1}\nabla f(x_k)xk+1​=xk​−L−1∇f(xk​). Then, for every k≥0k\ge0k≥0,

f(xk)−f(x∗)≤(1−μL)k(f(x0)−f(x∗)).f(x_k)-f(x^*)\le\left(1-\frac\mu L\right)^k\bigl(f(x_0)-f(x^*)\bigr).f(xk​)−f(x∗)≤(1−Lμ​)k(f(x0​)−f(x∗)).

This is the global function-value rate of Theorem 1. It applies without convexity and fixes the reference value to an attained global minimum.

Formalization Note The Lean statement permits d=0d=0d=0 and does not add μ≤L\mu\le Lμ≤L. Its gradient denotes the derivative because differentiability is explicit. The minimizer hypothesis prevents the PL reference value from being chosen freely.

Preamble
import Mathlib
import Definitions.Def_ShiOptrates_FunctionClass
open scoped InnerProductSpace
Formal statement
namespace KarimiPL.GD

theorem theorem_1 {d : ℕ}
    (f : EuclideanSpace ℝ (Fin d) → ℝ)
    (hdiff : Differentiable ℝ f)
    (L : ℝ) (hL : 0 < L)
    (hLip : ∀ x y, ‖gradient f x - gradient f y‖ ≤ L * ‖x - y‖)
    (xstar : EuclideanSpace ℝ (Fin d)) (hxstar : ∀ y, f xstar ≤ f y)
    (mu : ℝ) (hmu : 0 < mu)
    (hPL : ShiOptRates.PolyakLojasiewicz f (gradient f) mu (f xstar))
    (x : ℕ → EuclideanSpace ℝ (Fin d))
    (hx : ∀ k, x (k + 1) = x k - (1 / L) • gradient f (x k)) :
    ∀ k : ℕ, f (x k) - f xstar ≤ (1 - mu / L) ^ k * (f (x 0) - f xstar) := by sorry

end KarimiPL.GD
Source
Karimi, Nutini, Schmidt, arXiv:1608.04636v4, Theorem 1, equations (1)–(4), p. 2
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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