Documentation

ConvexAnalysis.CubicNewton

Cubic regularization of Newton's method #

The cubic regularization of Newton's method of Nesterov and Polyak [NP06] minimizes a function f : H → ℝ on a real Hilbert space with gradient g (∀ x, HasGradientAt f (g x) x) and Hessian A (∀ x, HasFDerivAt g (A x) x) that is L-Lipschitz, ‖A x - A y‖ ≤ L ‖x - y‖, on a set F whose interior contains the initial level set {y | f y ≤ f (x 0)} NP03, Section 2; F = univ is allowed. This covers functions such as x⁴ or exp, whose Hessians are Lipschitz on bounded sets or on half-lines (-∞, a), but not on all of H. A step from x minimizes the cubic model m_x h = f x + ⟪g x, h⟫ + 1/2 ⟪A x h, h⟫ + M/6 ‖h‖³ over h and moves to x + h. For M ≥ L the steps stay in F, the model lies above f, each step decreases f by M/12 ‖h‖³, and ‖h‖ bounds both the gradient and the negative part of the Hessian at the new point. For values bounded below this gives global convergence to second-order stationary points, with the rate O(N^(-2/3)) for the gradient; for convex f the values converge at the rate O(1 / N²).

Main definitions #

Main statements #

Taylor bounds for a Hessian that is L-Lipschitz at x along the segment [x, x + h], ‖A z - A x‖ ≤ L ‖z - x‖ NP03, Lemma 1, Nesterov, Lemma 4.1.1:

The model NP03, Section 2 and Section 5.1:

One step x ↦ x + h, with the Lipschitz condition at x along the segment [x, x + h]:

The method x (k + 1) = x k + h k with ConvexAnalysis.IsCubicNewtonStep g A M (x k) (h k), 0 < M, L ≤ M, and A L-Lipschitz on F with {y | f y ≤ f (x 0)} ⊆ interior F; the iterates stay in the level set (ConvexAnalysis.cubicNewton_apply_le_apply_zero), the steps' segments in interior F (ConvexAnalysis.cubicNewton_segment_subset_interior), and f decreases by M/12 ‖h k‖³ (ConvexAnalysis.cubicNewton_apply_succ_le). For m ≤ f (x k) for all k NP03, Theorem 1 and Theorem 2, Nesterov, Theorems 4.1.1 and 4.1.2:

Implementation notes #

References #

Tags #

Newton's method, cubic regularization, Lipschitz Hessian, second-order stationary point

noncomputable def ConvexAnalysis.cubicModel {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → ℝ) (g : H → H) (A : H → H →L[ℝ] H) (M : ℝ) (x h : H) :

The cubic model of f at x NP, Section 2: m_x h = f x + ⟪g x, h⟫ + 1/2 ⟪A x h, h⟫ + M/6 ‖h‖³, the second-order Taylor polynomial of f at x plus the cubic regularization term. It depends on f, g and A only through their values at x.

Equations
Instances For
    @[simp]
    theorem ConvexAnalysis.cubicModel_zero {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} (x : H) :
    cubicModel f g A M x 0 = f x

    The cubic model at h = 0 is f x.

    structure ConvexAnalysis.IsCubicNewtonStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (g : H → H) (A : H → H →L[ℝ] H) (M : ℝ) (x h : H) :

    A cubic Newton step h at x NP, Section 2: h satisfies the first-order condition g x + A x h + (M/2 ‖h‖) h = 0 and the second-order condition A x + (M/2 ‖h‖) I ⪰ 0 of a global minimizer of the cubic model. For symmetric A x and M ≥ 0 these are exactly the global minimizers (ConvexAnalysis.isMinOn_cubicModel_iff).

    • add_add_smul_eq_zero : g x + (A x) h + (M / 2 * ‖h‖) • h = 0

      The first-order condition g x + A x h + (M/2 ‖h‖) h = 0.

    • neg_le_inner (v : H) : -(M / 2 * ‖h‖ * ‖v‖ ^ 2) ≤ inner ℝ ((A x) v) v

      The second-order condition A x + (M/2 ‖h‖) I ⪰ 0.

    Instances For
      theorem ConvexAnalysis.IsCubicNewtonStep.inner_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hs : IsCubicNewtonStep g A M x h) :
      inner ℝ (g x) h = -inner ℝ ((A x) h) h - M / 2 * ‖h‖ ^ 3

      The first-order condition paired with the step: ⟪g x, h⟫ = -⟪A x h, h⟫ - M/2 ‖h‖³ NP03, Section 2.

      theorem ConvexAnalysis.IsCubicNewtonStep.inner_nonpos {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hs : IsCubicNewtonStep g A M x h) :
      inner ℝ (g x) h ≤ 0

      A cubic Newton step is a direction of descent in the weak sense ⟪g x, h⟫ ≤ 0 NP03, Lemma 2, (4.1.9) in Nesterov, Lemma 4.1.3.

      theorem ConvexAnalysis.IsCubicNewtonStep.cubicModel_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hs : IsCubicNewtonStep g A M x h) :
      cubicModel f g A M x h ≤ f x - M / 12 * ‖h‖ ^ 3

      The value of the model at a cubic Newton step: m_x h ≤ f x - M/12 ‖h‖³ NP03, Lemma 4, Nesterov, Lemma 4.1.5.

      theorem ConvexAnalysis.IsCubicNewtonStep.norm_gradient_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : H} (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hL : ∀ z ∈ segment ℝ x (x + h), ‖A z - A x‖ ≤ L * ‖z - x‖) (hM : 0 ≤ M) (hs : IsCubicNewtonStep g A M x h) :
      ‖g (x + h)‖ ≤ (L + M) / 2 * ‖h‖ ^ 2

      The gradient after a cubic Newton step NP03, Lemma 3, Nesterov, Lemma 4.1.4: ‖g (x + h)‖ ≤ (L + M)/2 ‖h‖² for M ≥ 0 and a Hessian that is L-Lipschitz at x along the step, ‖A z - A x‖ ≤ L ‖z - x‖ for z ∈ [x, x + h].

      theorem ConvexAnalysis.IsCubicNewtonStep.neg_le_inner_hessian {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : H} (hL : ‖A (x + h) - A x‖ ≤ L * ‖h‖) (hs : IsCubicNewtonStep g A M x h) (v : H) :
      -((2 * L + M) / 2 * ‖h‖ * ‖v‖ ^ 2) ≤ inner ℝ ((A (x + h)) v) v

      The Hessian after a cubic Newton step NP03, Lemma 5, Nesterov, Lemma 4.1.6: A (x + h) ⪰ -((2 L + M)/2 ‖h‖) I if ‖A (x + h) - A x‖ ≤ L ‖h‖ (for example for an L-Lipschitz Hessian), that is λ_min (A (x + h)) ≥ -(L + M/2) ‖h‖.

      theorem ConvexAnalysis.IsCubicNewtonStep.isPositive {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hs : IsCubicNewtonStep g A M x h) (hAs : (↑(A x)).IsSymmetric) :
      (A x + (M / 2 * ‖h‖) • 1).IsPositive

      The second-order condition of a cubic Newton step in the form A x + (M/2 ‖h‖) I ⪰ 0 of NP03, Proposition 1, with Mathlib's ContinuousLinearMap.IsPositive, for symmetric A x.

      theorem ConvexAnalysis.cubicModel_sub_cubicModel {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hAs : (↑(A x)).IsSymmetric) (h0 : g x + (A x) h + (M / 2 * ‖h‖) • h = 0) (y : H) :
      cubicModel f g A M x y - cubicModel f g A M x h = 1 / 2 * inner ℝ ((A x) (y - h)) (y - h) + M / 4 * ‖h‖ * ‖y - h‖ ^ 2 + M / 12 * (‖y‖ - ‖h‖) ^ 2 * (2 * ‖y‖ + ‖h‖)

      The model around a point of the first-order condition: if A x is symmetric and g x + A x h + (M/2 ‖h‖) h = 0, then for every y m_x y - m_x h = 1/2 ⟪A x (y - h), y - h⟫ + M/4 ‖h‖ ‖y - h‖² + M/12 (‖y‖ - ‖h‖)² (2 ‖y‖ + ‖h‖). This is the identity behind NP03, Theorem 10.

      theorem ConvexAnalysis.IsCubicNewtonStep.isMinOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hs : IsCubicNewtonStep g A M x h) (hAs : (↑(A x)).IsSymmetric) (hM : 0 ≤ M) :

      A cubic Newton step is a global minimizer of the cubic model, for symmetric A x and M ≥ 0 NP03, Section 5.1.

      theorem ConvexAnalysis.IsMinOn.isCubicNewtonStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hAs : (↑(A x)).IsSymmetric) (hmin : IsMinOn (cubicModel f g A M x) Set.univ h) :

      Optimality conditions for the cubic model NP03, Section 2 and Proposition 1, (4.1.8) in Nesterov, Lemma 4.1.2: a global minimizer h of the model, for symmetric A x, satisfies g x + A x h + (M/2 ‖h‖) h = 0 and A x + (M/2 ‖h‖) I ⪰ 0. No sign condition on M is needed.

      theorem ConvexAnalysis.isMinOn_cubicModel_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} {x h : H} (hAs : (↑(A x)).IsSymmetric) (hM : 0 ≤ M) :

      Characterization of the global minimizers of the cubic model NP03, Section 5.1: for symmetric A x and M ≥ 0, h is a global minimizer of the model iff it is a cubic Newton step.

      theorem ConvexAnalysis.exists_isMinOn_cubicModel {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} [FiniteDimensional ℝ H] (hM : 0 < M) (x : H) :
      ∃ (h : H), IsMinOn (cubicModel f g A M x) Set.univ h

      Existence of a global minimizer of the cubic model in finite dimension for M > 0: the model is continuous and coercive.

      theorem ConvexAnalysis.isSymmetric_of_hasFDerivAt_gradient {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {x : H} (hg : ∀ᶠ (y : H) in nhds x, HasGradientAt f (g y) y) {B : H →L[ℝ] H} (hB : HasFDerivAt g B x) :

      The Hessian is symmetric: if g is the gradient of f near x, the derivative B of g at x satisfies ⟪B v, w⟫ = ⟪v, B w⟫. This is Mathlib's second_derivative_symmetric_of_eventually.

      theorem ConvexAnalysis.abs_sub_sub_le_of_lipschitz_hessian {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L : ℝ} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) {x h : H} (hL : ∀ z ∈ segment ℝ x (x + h), ‖A z - A x‖ ≤ L * ‖z - x‖) :
      |f (x + h) - f x - inner ℝ (g x) h - 1 / 2 * inner ℝ ((A x) h) h| ≤ L / 6 * ‖h‖ ^ 3

      Taylor bound for the function NP03, Lemma 1, (4.1.4) in Nesterov, Lemma 4.1.1: for f with gradient g and Hessian A that is L-Lipschitz at x along the segment [x, x + h] (‖A z - A x‖ ≤ L ‖z - x‖; for example, A is L-Lipschitz on a set containing the segment), |f (x + h) - f x - ⟪g x, h⟫ - 1/2 ⟪A x h, h⟫| ≤ L/6 ‖h‖³. The bound for the gradient is ConvexAnalysis.norm_sub_sub_apply_le_of_segment_subset.

      theorem ConvexAnalysis.le_cubicModel {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) {x h : H} (hL : ∀ z ∈ segment ℝ x (x + h), ‖A z - A x‖ ≤ L * ‖z - x‖) (hLM : L ≤ M) :
      f (x + h) ≤ cubicModel f g A M x h

      The cubic model lies above f for M ≥ L: f (x + h) ≤ m_x h NP03, Lemma 4, for a Hessian that is L-Lipschitz at x along the segment [x, x + h].

      theorem ConvexAnalysis.cubicModel_le_add {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) {x y : H} (hL : ∀ z ∈ segment ℝ x y, ‖A z - A x‖ ≤ L * ‖z - x‖) :
      cubicModel f g A M x (y - x) ≤ f y + (L + M) / 6 * ‖y - x‖ ^ 3

      The cubic model is at most f y + (L + M)/6 ‖y - x‖³ at y - x NP03, Lemma 4, for a Hessian that is L-Lipschitz at x along the segment [x, y].

      theorem ConvexAnalysis.isMinOn_cubicModel_iff_of_hasGradientAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hM : 0 ≤ M) {x h : H} :

      ConvexAnalysis.isMinOn_cubicModel_iff with the symmetry of the Hessian supplied: for M ≥ 0, the global minimizers of the cubic model are exactly the cubic Newton steps.

      theorem ConvexAnalysis.exists_isCubicNewtonStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {M : ℝ} [FiniteDimensional ℝ H] (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hM : 0 < M) (x : H) :
      ∃ (h : H), IsCubicNewtonStep g A M x h

      Existence of cubic Newton steps in finite dimension for M > 0: a global minimizer of the cubic model exists and is a step.

      theorem ConvexAnalysis.IsCubicNewtonStep.apply_add_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hL : ∀ z ∈ segment ℝ x (x + h), ‖A z - A x‖ ≤ L * ‖z - x‖) (hLM : L ≤ M) (hs : IsCubicNewtonStep g A M x h) :
      f (x + h) ≤ f x - M / 12 * ‖h‖ ^ 3

      Sufficient decrease of a cubic Newton step NP03, Lemma 4, Nesterov, Lemma 4.1.5: for M ≥ L and a Hessian that is L-Lipschitz at x along the step, f (x + h) ≤ f x - M/12 ‖h‖³.

      theorem ConvexAnalysis.IsCubicNewtonStep.apply_add_le_add {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) {y : H} (hL : ∀ z ∈ segment ℝ x (x + h), ‖A z - A x‖ ≤ L * ‖z - x‖) (hLy : ∀ z ∈ segment ℝ x y, ‖A z - A x‖ ≤ L * ‖z - x‖) (hLM : L ≤ M) (hM : 0 ≤ M) (hs : IsCubicNewtonStep g A M x h) :
      f (x + h) ≤ f y + (L + M) / 6 * ‖y - x‖ ^ 3

      A cubic Newton step is at least as good as every comparison point with a cubic penalty NP03, Lemma 4: for M ≥ L, f (x + h) ≤ f y + (L + M)/6 ‖y - x‖³ for every y such that the Hessian is L-Lipschitz at x along the segments [x, x + h] and [x, y].

      theorem ConvexAnalysis.IsCubicNewtonStep.segment_subset_interior {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : H} {F : Set H} {c : ℝ} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ c} ⊆ interior F) (hL : ∀ z ∈ F, ‖A z - A x‖ ≤ L * ‖z - x‖) (hLM : L ≤ M) (hM : 0 ≤ M) (hs : IsCubicNewtonStep g A M x h) (hx : f x ≤ c) :
      segment ℝ x (x + h) ⊆ interior F

      A cubic Newton step stays where the Hessian is Lipschitz NP03, Lemma 2, Nesterov, Lemma 4.1.3 (there for M > 2 L / 3): let the level set {y | f y ≤ c} lie in the interior of a set F on which the Hessian is L-Lipschitz at x, let f x ≤ c, L ≤ M and 0 ≤ M. Then the segment [x, x + h] of a cubic Newton step lies in interior F. Along the segment, f stays below f x as long as the segment stays in F (by the Taylor bound), and the level set lies in the interior of F, so the segment cannot leave F.

      The method #

      The Hessian is assumed L-Lipschitz on a set F whose interior contains the initial level set {y | f y ≤ f (x 0)}, as in NP03, Section 2; for a Hessian that is Lipschitz on all of H, take F = univ.

      theorem ConvexAnalysis.cubicNewton_apply_le_apply_zero {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (k : ℕ) :
      f (x k) ≤ f (x 0)

      Along the cubic regularization of Newton's method, the iterates stay in the initial level set {y | f y ≤ f (x 0)} NP03, Lemma 2.

      theorem ConvexAnalysis.cubicNewton_segment_subset_interior {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (k : ℕ) :
      segment ℝ (x k) (x (k + 1)) ⊆ interior F

      Along the cubic regularization of Newton's method, the segment of every step lies in the interior of the set F where the Hessian is Lipschitz NP03, Lemma 2.

      theorem ConvexAnalysis.cubicNewton_apply_succ_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (k : ℕ) :
      f (x (k + 1)) ≤ f (x k) - M / 12 * ‖h k‖ ^ 3

      Sufficient decrease along the cubic regularization of Newton's method NP03, Lemma 4: f (x (k + 1)) ≤ f (x k) - M/12 ‖h k‖³.

      theorem ConvexAnalysis.cubicNewton_sum_norm_pow_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) (N : ℕ) :
      ∑ k ∈ Finset.range N, ‖h k‖ ^ 3 ≤ 12 * (f (x 0) - m) / M

      The cubed steps are summable along the cubic regularization of Newton's method NP03, Theorem 1: for x (k + 1) = x k + h k with cubic Newton steps h k, 0 < M, L ≤ M and m ≤ f (x k) for all k, ∑_{k < N} ‖h k‖³ ≤ 12 (f (x 0) - m) / M.

      theorem ConvexAnalysis.cubicNewton_summable_norm_pow {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) :
      Summable fun (k : ℕ) => ‖h k‖ ^ 3

      Along the cubic regularization of Newton's method, ‖h k‖³ is summable when the values f (x k) are bounded below.

      theorem ConvexAnalysis.cubicNewton_tsum_norm_pow_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) :
      ∑' (k : ℕ), ‖h k‖ ^ 3 ≤ 12 * (f (x 0) - m) / M

      NP03, Theorem 1: along the cubic regularization of Newton's method, ∑ ‖h k‖³ ≤ 12 (f (x 0) - m) / M when m ≤ f (x k) for all k.

      theorem ConvexAnalysis.cubicNewton_tendsto_step {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) :

      Along the cubic regularization of Newton's method, the steps tend to 0 when the values f (x k) are bounded below.

      theorem ConvexAnalysis.cubicNewton_tendsto_gradient {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) :
      Filter.Tendsto (fun (k : ℕ) => g (x k)) Filter.atTop (nhds 0)

      The gradients tend to 0 along the cubic regularization of Newton's method when the values f (x k) are bounded below NP03, Theorem 1.

      theorem ConvexAnalysis.cubicNewton_rate {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {m : ℝ} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hL0 : 0 ≤ L) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) (hm : ∀ (k : ℕ), m ≤ f (x k)) (N : ℕ) :
      ∃ k ≤ N, ‖g (x (k + 1))‖ ≤ (L + M) / 2 * (12 * (f (x 0) - m) / (M * (↑N + 1))) ^ (2 / 3) ∧ ∀ (v : H), -((2 * L + M) / 2 * (12 * (f (x 0) - m) / (M * (↑N + 1))) ^ (1 / 3) * ‖v‖ ^ 2) ≤ inner ℝ ((A (x (k + 1))) v) v

      Rate of the cubic regularization of Newton's method NP03, Theorem 1, Nesterov, Theorem 4.1.1: for m ≤ f (x k) for all k and every N, some k ≤ N has, with D = 12 (f (x 0) - m) / (M (N + 1)), ‖g (x (k + 1))‖ ≤ (L + M)/2 D^(2/3) and A (x (k + 1)) ⪰ -((2 L + M)/2 D^(1/3)) I. So the smallest gradient norm among the first N + 1 steps is O(N^(-2/3)), and at the same iterate the smallest eigenvalue of the Hessian is at least -O(N^(-1/3)).

      theorem ConvexAnalysis.cubicNewton_eq_zero_and_isPositive_of_mapClusterPt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hLM : L ≤ M) (hM : 0 < M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) {z : H} (hz : MapClusterPt z Filter.atTop x) :
      g z = 0 ∧ (A z).IsPositive

      Cluster points are second-order stationary NP03, Theorem 2, Nesterov, Theorem 4.1.2: along the cubic regularization of Newton's method, every cluster point z of the iterates satisfies g z = 0 and A z ⪰ 0. No lower bound on f is needed: the values decrease, so f z bounds them below; Nesterov assumes a bounded level set.

      theorem ConvexAnalysis.cubicNewton_rate_of_starConvex_of_norm_sub_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} {xs : H} (hf : ∀ (y : H), ∀ α ∈ Set.Icc 0 1, f ((1 - α) • y + α • xs) ≤ (1 - α) * f y + α * f xs) (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hL0 : 0 ≤ L) (hLM : L ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) {D : ℝ} (hD : ∀ (k : ℕ), ‖x k - xs‖ ≤ D) (k : ℕ) :
      f (x (k + 1)) - f xs ≤ 9 * (L + M) * D ^ 3 / (2 * (↑k + 5) ^ 2)

      Rate of the cubic regularization of Newton's method for star-convex functions NP03, Theorem 4, Nesterov, Theorem 4.1.4: if f is star-convex with respect to x⋆, f ((1 - α) y + α x⋆) ≤ (1 - α) f y + α f x⋆ for α ∈ [0, 1], and the iterates satisfy ‖x k - x⋆‖ ≤ D, then f (x (k + 1)) - f x⋆ ≤ 9 (L + M) D³ / (2 (k + 5)²). The point x⋆ need not be a minimizer, and need not lie in F.

      With c = (L + M) D³ / 6 the bound is 27 c / (j + 4)² at x j, j ≥ 1. For M = 2 L, Nesterov, (4.1.26) is 27 c / (j + 3)² at x j, j ≥ 0, under the extra hypothesis f (x 0) - f x⋆ ≤ 3 c; the shift by one comes from the first step, f (x 1) - f x⋆ ≤ c, which is at most 27 c / 5², and the induction step with α = 3 / j needs only j ≥ 3.

      theorem ConvexAnalysis.cubicNewton_rate_of_starConvex {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} {xs : H} (hf : ∀ (y : H), ∀ α ∈ Set.Icc 0 1, f ((1 - α) • y + α • xs) ≤ (1 - α) * f y + α * f xs) (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hL0 : 0 ≤ L) (hLM : L ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) {D : ℝ} (hD : ∀ (y : H), f y ≤ f (x 0) → ‖y - xs‖ ≤ D) (k : ℕ) :
      f (x (k + 1)) - f xs ≤ 9 * (L + M) * D ^ 3 / (2 * (↑k + 5) ^ 2)

      Rate of the cubic regularization of Newton's method for star-convex functions NP03, Theorem 4, Nesterov, Theorem 4.1.4: if f is star-convex with respect to x⋆ and ‖y - x⋆‖ ≤ D on the level set {y | f y ≤ f (x 0)}, then f (x (k + 1)) - f x⋆ ≤ 9 (L + M) D³ / (2 (k + 5)²).

      theorem ConvexAnalysis.cubicNewton_rate_of_convexOn_of_norm_sub_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hf : ConvexOn ℝ Set.univ f) (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hL0 : 0 ≤ L) (hLM : L ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) {xs : H} {D : ℝ} (hD : ∀ (k : ℕ), ‖x k - xs‖ ≤ D) (k : ℕ) :
      f (x (k + 1)) - f xs ≤ 9 * (L + M) * D ^ 3 / (2 * (↑k + 5) ^ 2)

      Rate of the cubic regularization of Newton's method for convex functions NP03, Theorem 4, Nesterov, Theorem 4.1.4: for convex f and iterates with ‖x k - x⋆‖ ≤ D, f (x (k + 1)) - f x⋆ ≤ 9 (L + M) D³ / (2 (k + 5)²).

      theorem ConvexAnalysis.cubicNewton_rate_of_convexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {g : H → H} {A : H → H →L[ℝ] H} {L M : ℝ} {x h : ℕ → H} {F : Set H} (hf : ConvexOn ℝ Set.univ f) (hg : ∀ (x : H), HasGradientAt f (g x) x) (hA : ∀ (x : H), HasFDerivAt g (A x) x) (hlev : {y : H | f y ≤ f (x 0)} ⊆ interior F) (hL : ∀ y ∈ F, ∀ z ∈ F, ‖A y - A z‖ ≤ L * ‖y - z‖) (hL0 : 0 ≤ L) (hLM : L ≤ M) (hx : ∀ (k : ℕ), x (k + 1) = x k + h k) (hs : ∀ (k : ℕ), IsCubicNewtonStep g A M (x k) (h k)) {xs : H} {D : ℝ} (hD : ∀ (y : H), f y ≤ f (x 0) → ‖y - xs‖ ≤ D) (k : ℕ) :
      f (x (k + 1)) - f xs ≤ 9 * (L + M) * D ^ 3 / (2 * (↑k + 5) ^ 2)

      Rate of the cubic regularization of Newton's method for convex functions NP03, Theorem 4, Nesterov, Theorem 4.1.4: for convex f and ‖y - x⋆‖ ≤ D on the level set {y | f y ≤ f (x 0)}, f (x (k + 1)) - f x⋆ ≤ 9 (L + M) D³ / (2 (k + 5)²).