Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 7, proof of Theorem 3 — Ė = 2t(f(X) − f⋆) + t²⟨∇f, Ẋ⟩ + 4⟨X + (t/2)Ẋ − x⋆, (3/2)Ẋ + (t/2)Ẍ⟩

Proved
NesterovODE.Rate.energy_hasDerivAt

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

derivativelyapunov-energynesterov-odep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let f∈F∞f\in\mathcal F_\inftyf∈F∞​ on Rn\mathbb R^nRn, let x⋆x^\starx⋆ be a minimizer of fff with f⋆=f(x⋆)f^\star=f(x^\star)f⋆=f(x⋆), and let XXX be a solution of the ODE (3), X¨+3tX˙+∇f(X)=0\ddot X+\frac3t\dot X+\nabla f(X)=0X¨+t3​X˙+∇f(X)=0, with X(0)=x0X(0)=x_0X(0)=x0​, X˙(0)=0\dot X(0)=0X˙(0)=0. Let E(t)=t2(f(X(t))−f⋆)+2∥X(t)+tX˙(t)/2−x⋆∥2\mathcal E(t)=t^2(f(X(t))-f^\star)+2\|X(t)+t\dot X(t)/2-x^\star\|^2E(t)=t2(f(X(t))−f⋆)+2∥X(t)+tX˙(t)/2−x⋆∥2.

Then for every t>0t>0t>0 the energy is differentiable at ttt, with

E˙(t)=2t(f(X)−f⋆)+t2⟨∇f(X),X˙⟩+4⟨X+t2X˙−x⋆, 32X˙+t2X¨⟩,\dot{\mathcal E}(t)=2t\big(f(X)-f^\star\big)+t^2\langle\nabla f(X),\dot X\rangle+4\Big\langle X+\frac t2\dot X-x^\star,\ \frac32\dot X+\frac t2\ddot X\Big\rangle,E˙(t)=2t(f(X)−f⋆)+t2⟨∇f(X),X˙⟩+4⟨X+2t​X˙−x⋆, 23​X˙+2t​X¨⟩,

where X,X˙,X¨X,\dot X,\ddot XX,X˙,X¨ are evaluated at ttt.

This is the first step of the proof of Theorem 3: the derivative of the energy before the ODE is used.

Formalization Note X¨(t)\ddot X(t)X¨(t) enters as any vector AAA with X˙\dot XX˙ differentiable at ttt with derivative AAA; along a solution this AAA is −3tX˙(t)−∇f(X(t))-\frac3t\dot X(t)-\nabla f(X(t))−t3​X˙(t)−∇f(X(t)).

Preamble
import Mathlib
import Definitions.Def_NesterovODE_Rate_Setting
Formal statement
namespace NesterovODE.Rate

/-- Proof of Theorem 3, p. 7: along a solution of (3), for every `t > 0` and every value `A` of
`Ẍ(t)`, the energy has derivative
`Ė = 2t(f(X) − f⋆) + t²⟨∇f(X), Ẋ⟩ + 4⟨X + (t/2)Ẋ − x⋆, (3/2)Ẋ + (t/2)Ẍ⟩`. -/
theorem energy_hasDerivAt {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : IsFinfty f)
    (x₀ xstar : EuclideanSpace ℝ (Fin n)) (hxstar : ∀ y, f xstar ≤ f y)
    (X V : ℝ → EuclideanSpace ℝ (Fin n)) (hX : IsSolution f 3 x₀ X V)
    (t : ℝ) (ht : 0 < t) (A : EuclideanSpace ℝ (Fin n)) (hA : HasDerivAt V A t) :
    HasDerivAt (energy f xstar X V)
      (2 * t * (f (X t) - f xstar) + t ^ 2 * inner ℝ (gradient f (X t)) (V t)
        + 4 * inner ℝ (X t + (t / 2) • V t - xstar) ((3 / 2 : ℝ) • V t + (t / 2) • A)) t := by sorry

end NesterovODE.Rate
Source
Su, Boyd, Candès, A Differential Equation for Modeling Nesterov's Accelerated Gradient Method, arXiv:1503.01243v2, p. 7, proof of Theorem 3 (display after the definition of the energy)
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