Lemma 1 (2.2):
ProvedCubicNewton.LocalQuad.taylor_grad_boundLet be twice differentiable, with gradient and Hessian , and suppose the Hessian is Lipschitz continuous with constant :
where on operators is the spectral norm. Then for all
This is the first-order Taylor bound for the gradient under a Lipschitz Hessian. In the local analysis it bounds the gradient at the new iterate (Lemma 3).
Formalization Note The paper states the lemma for in a closed convex set ; this mission takes , with twice differentiable and Assumption 1 holding on all of . The gradient and Hessian are maps g, H with HasGradientAt f (g x) x and HasFDerivAt g (H x) x at every point.
import Mathlib
namespace CubicNewton.LocalQuad
/-- Nesterov–Polyak 2006, Lemma 1, inequality (2.2), p. 181, in the case `F = ℝⁿ`:
if `f` is twice differentiable on `ℝⁿ` with `L`-Lipschitz Hessian, then for all `x, y`,
`‖f′(y) − f′(x) − f″(x)(y − x)‖ ≤ ½ L ‖y − x‖²`. -/
theorem taylor_grad_bound {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 : ∀ x, HasGradientAt f (g x) x) (hg : ∀ x, HasFDerivAt g (H x) x)
(hL : 0 < L) (hLip : ∀ x y, ‖H x - H y‖ ≤ L * ‖x - y‖) :
∀ x y, ‖g y - g x - H x (y - x)‖ ≤ 1 / 2 * L * ‖y - x‖ ^ 2 := by sorry
end CubicNewton.LocalQuad
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix (possibly ) and work in with the Euclidean norm. Let:
- ;
- ;
- be a map sending each to a continuous linear operator on ;
- .
Assume:
- is differentiable at every point, with gradient at ;
- is Fréchet differentiable at every point, with derivative at ;
- ;
- for all , , where the left side is the operator norm.
The conclusion is that, for all ,
Degenerate cases: when , every vector is , so both sides are and the statement is trivially true. When , both sides are . The hypotheses can be satisfied, for example by any quadratic with its gradient and constant Hessian, together with any . No total-function default values occur.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.