Lemma 1 (2.3):
ProvedCubicNewton.StarConvex.taylor_cubic_boundLet be a closed convex set with nonempty interior, and let be twice differentiable on with gradient and Hessian . Assume the Hessian is Lipschitz continuous on with constant (Assumption 1):
where on matrices is the spectral norm. Then for any and in ,
This is the cubic accuracy of the second-order Taylor model under a Lipschitz Hessian. Its lower half is what makes the cubic model with an upper bound for , and it drives the per-step estimate in the rate on star-convex functions.
Formalization Note The gradient and Hessian are maps g and H with HasGradientAt f (g x) x and HasFDerivAt g (H x) x at every (two-sided derivatives, also at boundary points of ). The Lipschitz condition uses the operator norm on E →L[ℝ] E, which is the spectral norm.
import Mathlib open scoped RealInnerProductSpace
namespace CubicNewton.StarConvex
/-- Nesterov–Polyak 2006, Lemma 1, inequality (2.3), p. 181: under the standing assumptions of
Section 2 (F closed, convex, with nonempty interior; f twice differentiable on F with gradient `g`
and Hessian `H`; Assumption 1, the Hessian is `L`-Lipschitz on F), for any `x, y ∈ F`,
`|f(y) − f(x) − ⟨f′(x), y − x⟩ − ½⟨f″(x)(y − x), y − x⟩| ≤ (L/6)‖y − x‖³`. -/
theorem taylor_cubic_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,
|f y - f x - ⟪g x, y - x⟫ - (1 / 2) * ⟪H x (y - x), y - x⟫| ≤ L / 6 * ‖y - x‖ ^ 3 := by sorry
end CubicNewton.StarConvex
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a natural number and work in with the Euclidean inner product and norm . The data are:
- a set ;
- a function ;
- a map , the intended gradient;
- a map that assigns to each point a continuous linear operator , the intended Hessian;
- a real number .
The hypotheses are:
- is closed, convex, and has nonempty interior.
- For every , is (Fréchet) differentiable at , as a function on all of , with gradient . That is, its derivative at is .
- For every , the map is Fréchet differentiable at , as a map on all of , with derivative .
- .
- For all , , where the left side is the operator norm.
The statement does not require to be symmetric. It places no conditions on or at points outside .
The conclusion is that for all :
Degenerate cases.
- Empty : excluded, because must have nonempty interior.
- : both sides are .
- : the space is a single point. The nonempty-interior hypothesis forces to be that point, and both sides of the inequality are .
- No division or other default-value operations occur in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.