Lemma 1 (2.2) — Taylor bound for the gradient under a Lipschitz Hessian
ProvedCubicNewton.GradDom.taylor_grad_boundLet be a closed convex set with non-empty interior, and let be twice differentiable on with gradient and Hessian . Assume the Hessian is Lipschitz on with constant in the spectral norm: for all . Then for all
This is the first-order Taylor estimate for the gradient; Lemma 3 below applies it at .
Formalization Note and are maps g, H with HasGradientAt f (g x) x and HasFDerivAt g (H x) x at every (two-sided derivatives, also at boundary points of ).
import Mathlib open scoped RealInnerProductSpace
namespace CubicNewton.GradDom
/-- Nesterov–Polyak 2006, Lemma 1, inequality (2.2), p. 181: for all `x, y ∈ F`,
`‖f′(y) − f′(x) − f″(x)(y − x)‖ ≤ ½ L ‖y − x‖²`. -/
theorem taylor_grad_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, ‖g y - g x - H x (y - x)‖ ≤ 1 / 2 * L * ‖y - x‖ ^ 2 := by sorry
end CubicNewton.GradDom
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setup. Let , and let carry the Euclidean norm. The data are:
- a set ;
- a function ;
- a vector field ;
- a map that assigns to each point a continuous linear operator ;
- a real number .
Hypotheses.
- is closed and convex, and its interior is nonempty.
- For every , is (Fréchet) differentiable at as a function on all of , with gradient .
- For every , is Fréchet differentiable at with derivative .
- .
- For all , , where the left-hand side is the operator norm.
No symmetry of is assumed, and differentiability is only assumed at points of .
Conclusion. For all ,
The conclusion does not mention . The hypothesis on only ties to on .
Degenerate cases. When , must be (its interior is nonempty), every vector is , and the conclusion reads . When , both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.