Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2): an LLL-Lipschitz gradient gives the quadratic upper bound

Proved
KarimiPL.ProxGrad.eq_2_descent_lemma

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

linear-convergenceoptimizationpolyak-lojasiewiczproximal-gradient

Let f:Rd→Rf : \mathbb{R}^d \to \mathbb{R}f:Rd→R be differentiable and suppose its gradient is LLL-Lipschitz continuous:

∥∇f(x)−∇f(y)∥≤L∥x−y∥for all x,y∈Rd.\|\nabla f(x) - \nabla f(y)\| \le L\|x - y\| \quad \text{for all } x, y \in \mathbb{R}^d.∥∇f(x)−∇f(y)∥≤L∥x−y∥for all x,y∈Rd.

Then for all x,y∈Rdx, y \in \mathbb{R}^dx,y∈Rd

f(y)≤f(x)+⟨∇f(x),y−x⟩+L2∥y−x∥2.f(y) \le f(x) + \langle \nabla f(x), y - x\rangle + \frac L2 \|y - x\|^2.f(y)≤f(x)+⟨∇f(x),y−x⟩+2L​∥y−x∥2.

This is inequality (2) of Karimi, Nutini and Schmidt, the standing smoothness assumption of the paper. It is the first step of the proof of Theorem 5, and it connects the literal hypothesis "L-Lipschitz continuous gradient" of Theorem 5 to the form (2) in which the other items of this mission assume it.

Formalization Note Rd\mathbb{R}^dRd is EuclideanSpace ℝ (Fin d) and ∇\nabla∇ is Mathlib's gradient. No sign condition on LLL is imposed: for d≥1d \ge 1d≥1 the Lipschitz hypothesis forces L≥0L \ge 0L≥0, and for d=0d = 0d=0 the conclusion is trivial.

Differences from the source:

  • reading: "the first derivative of f is L-Lipschitz continuous. This means that (2)" → the implication: L-Lipschitz gradient ⇒ (2); reason: the converse is false (f(x) = −x² on ℝ satisfies (2) with L = 0 but its gradient is not 0-Lipschitz), so the implication is the true content of "this means"
  • encoding: first derivative of f exists and is L-Lipschitz → Differentiable ℝ f and ‖∇f x − ∇f y‖ ≤ L‖x − y‖ for all x, y; reason: Mathlib's gradient is 0 at points of non-differentiability, so differentiability is stated
  • generalization: Lipschitz constant L > 0 → any real L; reason: no sign hypothesis is needed; the statement specializes to L > 0
Preamble
import Mathlib

open scoped InnerProductSpace
Formal statement
namespace KarimiPL.ProxGrad

/-- **Eq. (2): an `L`-Lipschitz gradient gives the quadratic upper bound.**
Karimi, Nutini, Schmidt, *Linear Convergence of Gradient and Proximal-Gradient Methods Under the
Polyak-Łojasiewicz Condition*, arXiv:1608.04636v4, §2, eq. (2), p. 2: "we assume that the first derivative of f is L-Lipschitz continuous.
This means that f(y) ≤ f(x) + ⟨∇f(x), y − x⟩ + (L/2)||y − x||², (2) for all x and y."

If `f : ℝᵈ → ℝ` is differentiable and `‖∇f(x) − ∇f(y)‖ ≤ L‖x − y‖` for all `x, y`, then
`f(y) ≤ f(x) + ⟨∇f(x), y − x⟩ + (L/2)‖y − x‖²` for all `x, y`.

**Formalization Note.** `ℝᵈ` is `EuclideanSpace ℝ (Fin d)` and `∇` is Mathlib's `gradient`;
`Differentiable ℝ f` makes `gradient f` the true gradient. No sign condition on `L` is
needed: for `d ≥ 1` the Lipschitz hypothesis forces `L ≥ 0`, and for `d = 0` the conclusion
is trivial. -/
theorem eq_2_descent_lemma {d : ℕ} {f : EuclideanSpace ℝ (Fin d) → ℝ} {L : ℝ}
    (hf : Differentiable ℝ f)
    (hlip : ∀ x y : EuclideanSpace ℝ (Fin d), ‖gradient f x - gradient f y‖ ≤ L * ‖x - y‖)
    (x y : EuclideanSpace ℝ (Fin d)) :
    f y ≤ f x + ⟪gradient f x, y - x⟫_ℝ + L / 2 * ‖y - x‖ ^ 2 := by sorry

end KarimiPL.ProxGrad
Source
Karimi, Nutini, Schmidt, Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Łojasiewicz Condition, arXiv:1608.04636v4, §2, eq. (2), p. 2

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