Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix D.4 — cubic Taylor bound for a function with Lipschitz Hessian

Proved
FatkhullinPolyak.HessStep.cubic_taylor_bound

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

lipschitz-hessianp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1taylor-expansion

Let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R be twice differentiable, and suppose its Hessian is Lipschitz continuous with constant MMM in the operator norm:

∥∇2f(x)−∇2f(y)∥≤M∥x−y∥for all x,y∈Rn.\|\nabla^2 f(x)-\nabla^2 f(y)\|\le M\|x-y\|\quad\text{for all }x,y\in\mathbb{R}^n.∥∇2f(x)−∇2f(y)∥≤M∥x−y∥for all x,y∈Rn.

Then the second-order Taylor expansion of fff has a cubic error bound: for all x,y∈Rnx,y\in\mathbb{R}^nx,y∈Rn,

∣f(x+y)−f(x)−⟨∇f(x),y⟩−12⟨∇2f(x)y,y⟩∣≤M6∥y∥3.\Bigl|f(x+y)-f(x)-\langle\nabla f(x),y\rangle-\tfrac12\langle\nabla^2 f(x)y,y\rangle\Bigr|\le\frac{M}{6}\|y\|^3.​f(x+y)−f(x)−⟨∇f(x),y⟩−21​⟨∇2f(x)y,y⟩​≤6M​∥y∥3.

This is the first display of the proof of Theorem 6.1 (Appendix D.4). Applied with y=−γj∇f(xj)y=-\gamma_j\nabla f(x_j)y=−γj​∇f(xj​) it controls how far one step of the method (6.1) can deviate from the prediction of the quadratic model.

Formalization Note Twice differentiability is stated as differentiability of fff and of its Fréchet derivative at every point. The Hessian norm is the operator norm of ∇2f(x)\nabla^2 f(x)∇2f(x) as a continuous bilinear map (fderiv ℝ (fderiv ℝ f) x), which for the symmetric Hessian is its spectral norm, not the Frobenius norm.

Preamble
import Mathlib
import Definitions.Def_FatkhullinPolyak_HessStep_hessianStepMethod
Formal statement
namespace FatkhullinPolyak.HessStep

theorem cubic_taylor_bound {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ) (M : ℝ)
    (hf : Differentiable ℝ f) (hf' : Differentiable ℝ (fderiv ℝ f))
    (hM : ∀ x y : EuclideanSpace ℝ (Fin n),
      ‖fderiv ℝ (fderiv ℝ f) x - fderiv ℝ (fderiv ℝ f) y‖ ≤ M * ‖x - y‖) :
    ∀ x y : EuclideanSpace ℝ (Fin n),
      |f (x + y) - f x - inner ℝ (gradient f x) y - (1 / 2) * hessQuad f x y| ≤ M / 6 * ‖y‖ ^ 3 := by sorry

end FatkhullinPolyak.HessStep
Source
Fatkhullin, Polyak, Optimizing Static Linear Feedback: Gradient Method, arXiv:2004.09875v2, p. 19, Appendix D.4 (proof of Theorem 6.1), first display
Read-back

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

Let n∈Nn\in\mathbb{N}n∈N (possibly 000), let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R with the Euclidean inner product and norm, and let MMM be any real number (no sign is assumed). The hypotheses are:

  1. fff is Fréchet differentiable at every point of Rn\mathbb{R}^nRn.
  2. The derivative map x↦Df(x)x \mapsto Df(x)x↦Df(x) is Fréchet differentiable at every point. Write D2f(x)D^2 f(x)D2f(x) for its derivative at xxx, a bilinear form on Rn\mathbb{R}^nRn.
  3. For all x,y∈Rnx, y\in\mathbb{R}^nx,y∈Rn,
∥D2f(x)−D2f(y)∥  ≤  M ∥x−y∥,\|D^2 f(x) - D^2 f(y)\| \;\le\; M\,\|x-y\|,∥D2f(x)−D2f(y)∥≤M∥x−y∥,

where the norm on the left is the operator norm, that is, sup⁡∥u∥,∥v∥≤1∣D2f(x)[u,v]−D2f(y)[u,v]∣\sup_{\|u\|,\|v\|\le 1} |D^2 f(x)[u,v]-D^2 f(y)[u,v]|sup∥u∥,∥v∥≤1​∣D2f(x)[u,v]−D2f(y)[u,v]∣.

The conclusion is that for all x,y∈Rnx,y\in\mathbb{R}^nx,y∈Rn,

∣ f(x+y)−f(x)−⟨∇f(x),y⟩−12 D2f(x)[y,y] ∣  ≤  M6 ∥y∥3,\Big|\, f(x+y) - f(x) - \langle \nabla f(x), y\rangle - \tfrac12\, D^2 f(x)[y,y] \,\Big| \;\le\; \frac{M}{6}\,\|y\|^3,​f(x+y)−f(x)−⟨∇f(x),y⟩−21​D2f(x)[y,y]​≤6M​∥y∥3,

where ∇f(x)\nabla f(x)∇f(x) is the gradient of fff at xxx. Here yyy is the displacement, and the expansion point is xxx.

Degenerate cases.

  • If n≥1n\ge 1n≥1, hypothesis 3 applied to any x≠yx\neq yx=y forces M≥0M\ge 0M≥0.
  • If n=0n = 0n=0, then x−y=0x-y = 0x−y=0 always, so hypothesis 3 holds for every real MMM, including negative ones. The conclusion then reads ∣0∣≤0|0|\le 0∣0∣≤0, which is true.
  • For y=0y = 0y=0, the conclusion reads 0≤00 \le 00≤0.
  • No continuity of D2fD^2 fD2f is assumed beyond what hypothesis 3 provides.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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