Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2.5) — first-order condition satisfied by TM(x)T_M(x)TM​(x)

Proved
CubicNewton.GradDom.cubicStep_first_order

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

cubic-regularizationnewton-methodp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Under the standing assumptions of the paper (a closed convex F⊆RnF \subseteq \mathbb{R}^nF⊆Rn with non-empty interior, fff twice differentiable on FFF with LLL-Lipschitz Hessian), let x∈Fx \in Fx∈F, M>0M > 0M>0, and let T=TM(x)T = T_M(x)T=TM​(x) be any global minimizer of the cubic model y↦⟨f′(x),y−x⟩+12⟨f′′(x)(y−x),y−x⟩+M6∥y−x∥3y \mapsto \langle f'(x), y - x\rangle + \frac12\langle f''(x)(y-x), y-x\rangle + \frac M6\|y-x\|^3y↦⟨f′(x),y−x⟩+21​⟨f′′(x)(y−x),y−x⟩+6M​∥y−x∥3. Then

f′(x)+f′′(x)(T−x)+12M ∥T−x∥ (T−x)=0.f'(x) + f''(x)(T - x) + \tfrac12 M\,\|T - x\|\,(T - x) = 0 .f′(x)+f′′(x)(T−x)+21​M∥T−x∥(T−x)=0.

This is the stationarity condition of the cubic model at its minimizer; together with Proposition 1 it yields the model decrease (2.11) and the gradient bound (2.9).

Formalization Note The Hessian H x is not assumed self-adjoint; it is self-adjoint at points of FFF because it is the derivative of a gradient and is continuous on FFF.

Preamble
import Mathlib
import Definitions.Def_CubicNewton_Shared_IsCubicStep

open scoped RealInnerProductSpace
Formal statement
namespace CubicNewton.GradDom

/-- Nesterov–Polyak 2006, Section 2, Eq. (2.5), p. 182: every global minimizer `T = T_M(x)`
of the cubic model satisfies `f′(x) + f″(x)(T − x) + ½M‖T − x‖·(T − x) = 0`. -/
theorem cubicStep_first_order {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‖)
    (M : ℝ) (hM : 0 < M) (x T : EuclideanSpace ℝ (Fin n)) (hx : x ∈ F)
    (hT : CubicNewton.Shared.IsCubicStep g H M x T) :
    g x + H x (T - x) + (1 / 2 * M * ‖T - x‖) • (T - x) = 0 := 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. 182, Section 2, Eq. (2.5)
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;
  • functions f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R and g:Rn→Rng : \mathbb{R}^n \to \mathbb{R}^ng:Rn→Rn;
  • a map x↦H(x)x \mapsto H(x)x↦H(x) into continuous linear operators on Rn\mathbb{R}^nRn;
  • a real number LLL.

Hypotheses on the data.

  • FFF is closed and convex, with nonempty interior.
  • For every x∈Fx \in Fx∈F, fff is differentiable at xxx 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.
  • ∥H(x)−H(y)∥≤L ∥x−y∥\|H(x) - H(y)\| \le L\,\|x - y\|∥H(x)−H(y)∥≤L∥x−y∥ (operator norm) for all x,y∈Fx, y \in Fx,y∈F.

Further data and hypotheses. There is a real M>0M > 0M>0, a point x∈Fx \in Fx∈F, and a point T∈RnT \in \mathbb{R}^nT∈Rn satisfying the predicate IsCubicStep(g,H,M,x,T)\mathrm{IsCubicStep}(g, H, M, x, T)IsCubicStep(g,H,M,x,T). That predicate is imported from a separate definitions file, and its code is not part of this declaration, so it is not unfolded here. Its arguments are only ggg, HHH, MMM, xxx and TTT; it does not take fff, FFF or LLL. TTT is not required to lie in FFF.

Conclusion.

g(x)+H(x)(T−x)+12 M ∥T−x∥ (T−x)=0.g(x) + H(x)(T - x) + \tfrac12\, M\, \|T - x\|\,(T - x) = 0 .g(x)+H(x)(T−x)+21​M∥T−x∥(T−x)=0.

Degenerate cases. When n=0n = 0n=0, every vector is 000 and the conclusion is trivially true. When T=xT = xT=x, the conclusion says g(x)=0g(x) = 0g(x)=0. Whether that case is possible depends on the unshown predicate.

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