Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 (2.2) — Taylor bound for the gradient under a Lipschitz Hessian

Proved
CubicNewton.GradDom.taylor_grad_bound

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

cubic-regularizationlipschitz-hessianp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let F⊆RnF \subseteq \mathbb{R}^nF⊆Rn be a closed convex set with non-empty interior, and let fff be twice differentiable on FFF with gradient f′f'f′ and Hessian f′′f''f′′. Assume the Hessian is Lipschitz on FFF with constant L>0L > 0L>0 in the spectral norm: ∥f′′(x)−f′′(y)∥≤L∥x−y∥\|f''(x) - f''(y)\| \le L\|x - y\|∥f′′(x)−f′′(y)∥≤L∥x−y∥ for all x,y∈Fx, y \in Fx,y∈F. Then for all x,y∈Fx, y \in Fx,y∈F

∥f′(y)−f′(x)−f′′(x)(y−x)∥≤12L ∥y−x∥2.\|f'(y) - f'(x) - f''(x)(y - x)\| \le \tfrac12 L\,\|y - x\|^2 .∥f′(y)−f′(x)−f′′(x)(y−x)∥≤21​L∥y−x∥2.

This is the first-order Taylor estimate for the gradient; Lemma 3 below applies it at y=TM(x)y = T_M(x)y=TM​(x).

Formalization Note f′f'f′ and f′′f''f′′ are maps g, H with HasGradientAt f (g x) x and HasFDerivAt g (H x) x at every x∈Fx \in Fx∈F (two-sided derivatives, also at boundary points of FFF).

Preamble
import Mathlib

open scoped RealInnerProductSpace
Formal statement
namespace CubicNewton.GradDom

/-- Nesterov–Polyak 2006, Lemma 1, inequality (2.2), p. 181: for all `x, y ∈ F`,
`‖f′(y) − f′(x) − f″(x)(y − x)‖ ≤ ½ L ‖y − x‖²`. -/
theorem taylor_grad_bound {n : ℕ}
    (F : Set (EuclideanSpace ℝ (Fin n))) (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (g : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (H : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n))
    (L : ℝ)
    (hF_closed : IsClosed F) (hF_convex : Convex ℝ F)
    (hF_int : (interior F).Nonempty)
    (hf : ∀ x ∈ F, HasGradientAt f (g x) x) (hg : ∀ x ∈ F, HasFDerivAt g (H x) x)
    (hL : 0 < L) (hLip : ∀ x ∈ F, ∀ y ∈ F, ‖H x - H y‖ ≤ L * ‖x - y‖) :
    ∀ x ∈ F, ∀ y ∈ F, ‖g y - g x - H x (y - x)‖ ≤ 1 / 2 * L * ‖y - x‖ ^ 2 := by sorry

end CubicNewton.GradDom
Source
Nesterov & Polyak, Cubic regularization of Newton method and its global performance, Math. Program. Ser. A 108 (2006) 177–205, DOI 10.1007/s10107-006-0706-8, p. 181, Lemma 1, inequality (2.2)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setup. Let n∈Nn \in \mathbb{N}n∈N, and let Rn\mathbb{R}^nRn carry the Euclidean norm. The data are:

  • a set F⊆RnF \subseteq \mathbb{R}^nF⊆Rn;
  • a function f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R;
  • a vector field g:Rn→Rng : \mathbb{R}^n \to \mathbb{R}^ng:Rn→Rn;
  • a map HHH that assigns to each point xxx a continuous linear operator H(x):Rn→RnH(x) : \mathbb{R}^n \to \mathbb{R}^nH(x):Rn→Rn;
  • a real number LLL.

Hypotheses.

  • FFF is closed and convex, and its interior is nonempty.
  • For every x∈Fx \in Fx∈F, fff is (Fréchet) differentiable at xxx as a function on all of Rn\mathbb{R}^nRn, with gradient g(x)g(x)g(x).
  • For every x∈Fx \in Fx∈F, ggg is Fréchet differentiable at xxx with derivative H(x)H(x)H(x).
  • L>0L > 0L>0.
  • For all x,y∈Fx, y \in Fx,y∈F, ∥H(x)−H(y)∥≤L ∥x−y∥\|H(x) - H(y)\| \le L\,\|x - y\|∥H(x)−H(y)∥≤L∥x−y∥, where the left-hand side is the operator norm.

No symmetry of H(x)H(x)H(x) is assumed, and differentiability is only assumed at points of FFF.

Conclusion. For all x,y∈Fx, y \in Fx,y∈F,

∥ g(y)−g(x)−H(x)(y−x) ∥≤12 L ∥y−x∥2.\big\|\,g(y) - g(x) - H(x)(y - x)\,\big\| \le \tfrac12\, L\, \|y - x\|^2 .​g(y)−g(x)−H(x)(y−x)​≤21​L∥y−x∥2.

The conclusion does not mention fff. The hypothesis on fff only ties ggg to fff on FFF.

Degenerate cases. When n=0n = 0n=0, FFF must be {0}\{0\}{0} (its interior is nonempty), every vector is 000, and the conclusion reads 0≤00 \le 00≤0. When x=yx = yx=y, both sides are 000.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me