Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 (2.8) — ⟨f′(x),x−TM(x)⟩≥0\langle f'(x), x - T_M(x)\rangle \ge 0⟨f′(x),x−TM​(x)⟩≥0

Proved
CubicNewton.GradDom.grad_inner_step_nonneg

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

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

Let F⊆RnF \subseteq \mathbb{R}^nF⊆Rn be closed and convex, fff twice differentiable on FFF with LLL-Lipschitz Hessian, and let x0∈int⁡Fx_0 \in \operatorname{int} Fx0​∈intF be such that the level set {x:f(x)≤f(x0)}\{x : f(x) \le f(x_0)\}{x:f(x)≤f(x0​)} lies in int⁡F\operatorname{int} FintF. Let M>0M > 0M>0, let x∈Fx \in Fx∈F with f(x)≤f(x0)f(x) \le f(x_0)f(x)≤f(x0​), and let T=TM(x)T = T_M(x)T=TM​(x) be any global minimizer of the cubic model at xxx. Then

⟨f′(x), x−T⟩≥0.\langle f'(x),\, x - T\rangle \ge 0 .⟨f′(x),x−T⟩≥0.

The step TM(x)−xT_M(x) - xTM​(x)−x is therefore never an ascent direction. This is the first of the two claims of Lemma 2.

Preamble
import Mathlib
import Definitions.Def_CubicNewton_Shared_IsCubicStep

open scoped RealInnerProductSpace
Formal statement
namespace CubicNewton.GradDom

/-- Nesterov–Polyak 2006, Lemma 2, relation (2.8), p. 182 (first claim of Lemma 2 only):
for `x ∈ F` with `f(x) ≤ f(x₀)`, `⟨f′(x), x − T_M(x)⟩ ≥ 0`. -/
theorem grad_inner_step_nonneg {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 : ∀ 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₀ : EuclideanSpace ℝ (Fin n)) (hx₀ : x₀ ∈ interior F)
    (hlevel : {x | f x ≤ f x₀} ⊆ interior F)
    (M : ℝ) (hM : 0 < M) (x T : EuclideanSpace ℝ (Fin n)) (hx : x ∈ F) (hfx : f x ≤ f x₀)
    (hT : CubicNewton.Shared.IsCubicStep g H M x T) :
    0 ≤ ⟪g x, x - T⟫ := 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, Lemma 2, relation (2.8) (first claim)
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 and inner product. 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.
  • 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∥ for all x,y∈Fx, y \in Fx,y∈F.

Starting point. There is a point x0x_0x0​ in the interior of FFF. The whole sublevel set {x∈Rn:f(x)≤f(x0)}\{x \in \mathbb{R}^n : f(x) \le f(x_0)\}{x∈Rn:f(x)≤f(x0​)} is contained in the interior of FFF.

Further data and hypotheses.

  • a real M>0M > 0M>0, with no relation to LLL required;
  • a point x∈Fx \in Fx∈F with f(x)≤f(x0)f(x) \le f(x_0)f(x)≤f(x0​);
  • a point T∈RnT \in \mathbb{R}^nT∈Rn satisfying the imported predicate IsCubicStep(g,H,M,x,T)\mathrm{IsCubicStep}(g, H, M, x, T)IsCubicStep(g,H,M,x,T), whose code is not shown here and is not unfolded.

Conclusion.

0≤⟨g(x), x−T⟩.0 \le \langle g(x),\, x - T\rangle .0≤⟨g(x),x−T⟩.

Degenerate cases. When n=0n = 0n=0 or T=xT = xT=x, the inner product is 000 and the claim holds trivially. The hypothesis x∈Fx \in Fx∈F is implied by f(x)≤f(x0)f(x) \le f(x_0)f(x)≤f(x0​) together with the sublevel-set inclusion. Boundedness of the sublevel set is not assumed.

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