Documentation

ConvexAnalysis.Cocoercive

Cocoercive operators, gradients and steps up to 2 / L #

A 1 / L-cocoercive operator is L-Lipschitz, and gradient and forward–backward steps with it stay nonexpansive, indeed averaged, for every step size below 2 / L. By the Baillon–Haddad theorem the gradient of a convex function with an L-Lipschitz gradient is 1 / L-cocoercive, which gives Fejér monotonicity and rates for gradient descent and the forward–backward method with these steps.

Main statements #

For an operator B : H → H with ‖B x - B y‖² ≤ L ⟪B x - B y, x - y⟫ and L ≥ 0 (for L > 0, B is 1 / L-cocoercive, that is B / L is firmly nonexpansive; for L = 0, B is constant):

For a convex f : H → ℝ with an L-Lipschitz gradient f', in the form ‖f' x - f' y‖ ≤ L ‖x - y‖ of Algorithms.lean:

Minimizers of f + g are written IsMinOn (fun w ↦ (f w : EReal) + g w) univ x⋆.

The rate of gradient descent follows the proof of Nesterov, Theorem 2.1.14: with Δ k = f (x k) - f x⋆, ω = γ (1 - γ L / 2) and r = ‖x 0 - x⋆‖, convexity and Fejér monotonicity give Δ k ≤ r ‖f' (x k)‖, so Δ (k + 1) ≤ Δ k - (ω / r²) Δ k², and this recursion gives Δ N (1 + (ω / r²) N Δ 0) ≤ Δ 0.

The iterates of both methods converge, weakly in Hilbert space and in norm in finite dimension: see IterateConvergence.lean.

Implementation notes #

Mathlib PR #41501 (open) proves the Baillon–Haddad theorem for LipschitzSmoothWith K f (K : ℝ≥0, the gradient ∇ f) with the predicate CocoerciveWith K f := ∀ x y, ‖∇ f y - ∇ f x‖² ≤ K ⟪∇ f y - ∇ f x, y - x⟫ and the equivalence ConvexOn.cocoerciveWith_iff_lipschitzWith_gradient. Here the gradient is a function f' with HasGradientAt f (f' x) x and L : ℝ, as in Algorithms.lean, and no cocoercivity predicate is defined: cocoercivity of an operator B is the hypothesis ∀ x y, ‖B x - B y‖² ≤ L ⟪B x - B y, x - y⟫, ConvexAnalysis.norm_sub_sq_le_mul_inner hf hf' hL is this hypothesis for B = f' (the body of CocoerciveWith L f for f' = ∇ f), and ConvexAnalysis.forall_norm_sub_sq_le_mul_inner_iff is the equivalence (with lipschitzWith_iff_norm_sub_le for LipschitzWith). The proofs here are independent of the PR.

References #

Tags #

cocoercive operator, Baillon–Haddad theorem, averaged operator, gradient descent, forward–backward method, proximal gradient method, Fejér monotonicity, strong convexity, linear convergence, gradient mapping

theorem ConvexAnalysis.norm_sub_smul_sub_sub_smul_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} {B : H → H} (hL0 : 0 < L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 ≤ γ) (x y : H) :
‖x - γ • B x - (y - γ • B y)‖ ^ 2 ≤ ‖x - y‖ ^ 2 - γ * (2 / L - γ) * ‖B x - B y‖ ^ 2

The forward step x ↦ x - γ B x of a 1 / L-cocoercive operator B, ‖B x - B y‖² ≤ L ⟪B x - B y, x - y⟫, for γ ≥ 0 BC, Propositions 4.35 and 4.39: ‖(x - γ B x) - (y - γ B y)‖² ≤ ‖x - y‖² - γ (2 / L - γ) ‖B x - B y‖².

theorem ConvexAnalysis.lipschitzWith_sub_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} {B : H → H} (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 ≤ γ) (hγL : γ * L ≤ 2) :
LipschitzWith 1 fun (x : H) => x - γ • B x

The forward step x ↦ x - γ B x of a 1 / L-cocoercive B, L ≥ 0, is nonexpansive for 0 ≤ γ ≤ 2 / L (BC, Proposition 4.39 for 0 < γ < 2 / L).

theorem ConvexAnalysis.isAveraged_sub_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} {B : H → H} (hL0 : 0 < L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 < γ) (hγL : γ * L < 2) :
IsAveraged (γ * L / 2) fun (x : H) => x - γ • B x

The forward step x ↦ x - γ B x of a 1 / L-cocoercive B with 0 < γ < 2 / L is γ L / 2-averaged BC, Proposition 4.39.

theorem ConvexAnalysis.IsFirmlyNonexpansive.norm_apply_sub_smul_sub_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} {B P : H → H} (hP : IsFirmlyNonexpansive P) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 ≤ γ) (x y : H) :
‖P (x - γ • B x) - P (y - γ • B y)‖ ^ 2 ≤ ‖x - y‖ ^ 2 - (1 - γ * L / 2) * ‖x - P (x - γ • B x) - (y - P (y - γ • B y))‖ ^ 2

The forward–backward map T x = P (x - γ B x) of a firmly nonexpansive P and a 1 / L-cocoercive B, L ≥ 0, γ ≥ 0, satisfies ‖T x - T y‖² ≤ ‖x - y‖² - (1 - γ L / 2) ‖(x - T x) - (y - T y)‖², which is BC, Proposition 26.1 (iv)(d) in the form of BC, Proposition 4.35 (iii) (there for P = J_{γ A}, a resolvent, and B β-cocoercive with β = 1 / L > 0), from BC, Propositions 4.39 and 4.44. For L = 0 the operator B is constant and T is firmly nonexpansive.

theorem ConvexAnalysis.IsFirmlyNonexpansive.isAveraged_comp_sub_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} {B P : H → H} (hP : IsFirmlyNonexpansive P) (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hγ : 0 ≤ γ) (hγL : γ * L < 2) :
IsAveraged (2 / (4 - γ * L)) fun (x : H) => P (x - γ • B x)

The forward–backward map x ↦ P (x - γ B x) of a firmly nonexpansive P and a 1 / L-cocoercive B, L ≥ 0, is 2 / (4 - γ L)-averaged for 0 ≤ γ < 2 / L BC, Proposition 26.1 (iv)(d) (there for P = J_{γ A}, a resolvent, γ > 0, and B β-cocoercive with β = 1 / L > 0; L = 0, a constant B, is included here).

theorem ConvexAnalysis.norm_proxGradStep_sub_proxGradStep_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {B : H → H} {g : H → EReal} (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (x y : H) :
‖proxGradStep B g γ x - proxGradStep B g γ y‖ ^ 2 ≤ ‖x - y‖ ^ 2 - (1 - γ * L / 2) * ‖x - proxGradStep B g γ x - (y - proxGradStep B g γ y)‖ ^ 2

The forward–backward step T x = prox_{γ g} (x - γ B x) of a 1 / L-cocoercive B, L ≥ 0, satisfies, for a proper lower semicontinuous convex g and γ > 0, ‖T x - T y‖² ≤ ‖x - y‖² - (1 - γ L / 2) ‖(x - T x) - (y - T y)‖², which is BC, Proposition 26.1 (iv)(d) in the form of BC, Proposition 4.35 (iii), from BC, Propositions 4.39 and 4.44. [BC17] has a resolvent J_{γ A} in place of prox_{γ g} and L > 0; the form with any firmly nonexpansive map is ConvexAnalysis.IsFirmlyNonexpansive.norm_apply_sub_smul_sub_sq_le. So T is averaged for γ < 2 / L (isAveraged_proxGradStep) and nonexpansive for γ ≤ 2 / L (lipschitzWith_proxGradStep). For L = 0 the operator B is constant and T is firmly nonexpansive.

theorem ConvexAnalysis.isAveraged_proxGradStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {B : H → H} {g : H → EReal} (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) :
IsAveraged (2 / (4 - γ * L)) (proxGradStep B g γ)

The forward–backward step x ↦ prox_{γ g} (x - γ B x) of a 1 / L-cocoercive B, L ≥ 0, is 2 / (4 - γ L)-averaged for 0 < γ < 2 / L BC, Proposition 26.1 (iv)(d) (there for L > 0).

theorem ConvexAnalysis.lipschitzWith_proxGradStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {B : H → H} {g : H → EReal} (hL0 : 0 ≤ L) (hB : ∀ (x y : H), ‖B x - B y‖ ^ 2 ≤ L * inner ℝ (B x - B y) (x - y)) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L ≤ 2) :

The forward–backward step x ↦ prox_{γ g} (x - γ B x) of a 1 / L-cocoercive B, L ≥ 0, is nonexpansive for 0 < γ ≤ 2 / L.

theorem ConvexAnalysis.add_inner_add_norm_sub_sq_div_le_of_descent {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hD : ∀ (x y : H), f y ≤ f x + inner ℝ (f' x) (y - x) + L / 2 * ‖y - x‖ ^ 2) (x y : H) :
f x + inner ℝ (f' x) (y - x) + ‖f' y - f' x‖ ^ 2 / (2 * L) ≤ f y

The gradient inequality of a convex f strengthened by the gradient difference, from the descent inequality f y ≤ f x + ⟪f' x, y - x⟫ + L / 2 ‖y - x‖² with L ≥ 0 (the proof of Beck, Theorem 5.8, (ii) ⇒ (iii), and of (2.1.10) in Nesterov, Theorem 2.1.5): f x + ⟪f' x, y - x⟫ + ‖f' y - f' x‖² / (2 L) ≤ f y. For L = 0 the added term is 0 (division by 0 is 0), and this is the gradient inequality.

theorem ConvexAnalysis.add_inner_add_norm_sub_sq_div_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 < L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (x y : H) :
f x + inner ℝ (f' x) (y - x) + ‖f' y - f' x‖ ^ 2 / (2 * L) ≤ f y

The gradient inequality of a convex f with an L-Lipschitz gradient f', strengthened by the gradient difference Beck, Theorem 5.8 (iii), (2.1.10) in Nesterov, Theorem 2.1.5: f x + ⟪f' x, y - x⟫ + ‖f' y - f' x‖² / (2 L) ≤ f y. Beck and Nesterov work in finite dimension (Beck with any norm); here H is a real Hilbert space.

theorem ConvexAnalysis.norm_sub_sq_le_mul_inner_of_descent {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hD : ∀ (x y : H), f y ≤ f x + inner ℝ (f' x) (y - x) + L / 2 * ‖y - x‖ ^ 2) (x y : H) :
‖f' x - f' y‖ ^ 2 ≤ L * inner ℝ (f' x - f' y) (x - y)

Baillon–Haddad theorem from the descent inequality (Beck, Theorem 5.8, (ii) ⇒ (iv); (2.1.11) in Nesterov, Theorem 2.1.5): for a convex f with gradient f' and f y ≤ f x + ⟪f' x, y - x⟫ + L / 2 ‖y - x‖² for all x, y, with L ≥ 0, ‖f' x - f' y‖² ≤ L ⟪f' x - f' y, x - y⟫. For L = 0 the gradient is constant.

theorem ConvexAnalysis.norm_sub_sq_le_mul_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (x y : H) :
‖f' x - f' y‖ ^ 2 ≤ L * inner ℝ (f' x - f' y) (x - y)

Baillon–Haddad theorem BC, Corollary 18.17: the L-Lipschitz gradient f' of a convex f is cocoercive, ‖f' x - f' y‖² ≤ L ⟪f' x - f' y, x - y⟫, that is f' / L is firmly nonexpansive; also Beck, Theorem 5.8 ((i) ⇒ (iv)) and (2.1.11) in Nesterov, Theorem 2.1.5. No sign of L is assumed: for L ≤ 0 the gradient is constant.

theorem ConvexAnalysis.forall_norm_sub_sq_le_mul_inner_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) :
(∀ (x y : H), ‖f' x - f' y‖ ^ 2 ≤ L * inner ℝ (f' x - f' y) (x - y)) ↔ ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖

Baillon–Haddad theorem, equivalence form: for a convex f with gradient f' and L ≥ 0, ‖f' x - f' y‖² ≤ L ⟪f' x - f' y, x - y⟫ for all x, y (for L > 0, f' is 1 / L-cocoercive) iff ‖f' x - f' y‖ ≤ L ‖x - y‖ for all x, y (Beck, Theorem 5.8, (i) ⇔ (iv); Nesterov, Theorem 2.1.5). The direction from cocoercivity needs neither convexity nor the gradient (ConvexAnalysis.norm_le_mul_norm_of_norm_sq_le_mul_inner).

theorem ConvexAnalysis.ConvexOn.norm_sub_smul_sub_sub_smul_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 < L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 ≤ γ) (x y : H) :
‖x - γ • f' x - (y - γ • f' y)‖ ^ 2 ≤ ‖x - y‖ ^ 2 - γ * (2 / L - γ) * ‖f' x - f' y‖ ^ 2

The gradient step x ↦ x - γ f' x of a convex f with an L-Lipschitz gradient f', for γ ≥ 0: ‖(x - γ f' x) - (y - γ f' y)‖² ≤ ‖x - y‖² - γ (2 / L - γ) ‖f' x - f' y‖². The proof of Nesterov, Theorem 2.1.14 has this for y = x⋆.

theorem ConvexAnalysis.ConvexOn.lipschitzWith_sub_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 ≤ γ) (hγL : γ * L ≤ 2) :
LipschitzWith 1 fun (x : H) => x - γ • f' x

The gradient step x ↦ x - γ f' x of a convex f with an L-Lipschitz gradient, L ≥ 0, is nonexpansive for 0 ≤ γ ≤ 2 / L.

theorem ConvexAnalysis.gradient_eq_zero_of_isMinOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {xs u : H} (hf' : HasGradientAt f u xs) (hxs : IsMinOn f Set.univ xs) :
u = 0

A minimizer of a function that is differentiable there is a zero of the gradient; no convexity is needed.

theorem ConvexAnalysis.isMinOn_univ_iff_gradient_eq_zero {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {f' : H → H} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : HasGradientAt f (f' xs) xs) :
IsMinOn f Set.univ xs ↔ f' xs = 0

A point x⋆ minimizes a convex f with gradient f' x⋆ at x⋆ iff f' x⋆ = 0.

theorem ConvexAnalysis.apply_sub_smul_gradient_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (γ : ℝ) (x : H) :
f (x - γ • f' x) ≤ f x - γ * (1 - γ * L / 2) * ‖f' x‖ ^ 2

Sufficient decrease of a gradient step, (1.2.19) in Nesterov, Section 1.2.3: for f with an L-Lipschitz gradient f' and every γ, f (x - γ f' x) ≤ f x - γ (1 - γ L / 2) ‖f' x‖². No convexity is needed. Beck, Lemma 10.4 with g = 0 is the case γ ∈ (0, 2 / L).

theorem ConvexAnalysis.gradientDescent_le_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (k : ℕ) :
f (x (k + 1)) ≤ f (x k) - γ * (1 - γ * L / 2) * ‖f' (x k)‖ ^ 2

Sufficient decrease along gradient descent x (k + 1) = x k - γ f' (x k): f (x (k + 1)) ≤ f (x k) - γ (1 - γ L / 2) ‖f' (x k)‖².

theorem ConvexAnalysis.gradientDescent_norm_sub_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 < L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 ≤ γ) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (hxs : IsMinOn f Set.univ xs) (k : ℕ) :
‖x (k + 1) - xs‖ ^ 2 ≤ ‖x k - xs‖ ^ 2 - γ * (2 / L - γ) * ‖f' (x k)‖ ^ 2

Fejér monotonicity of gradient descent, from the proof of Nesterov, Theorem 2.1.14: for x (k + 1) = x k - γ f' (x k) with γ ≥ 0 and a minimizer x⋆ of a convex f with an L-Lipschitz gradient, L > 0, ‖x (k + 1) - x⋆‖² ≤ ‖x k - x⋆‖² - γ (2 / L - γ) ‖f' (x k)‖².

theorem ConvexAnalysis.gradientDescent_norm_sub_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 ≤ γ) (hγL : γ * L ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (hxs : IsMinOn f Set.univ xs) (k : ℕ) :
‖x (k + 1) - xs‖ ≤ ‖x k - xs‖

Fejér monotonicity of gradient descent with step 0 ≤ γ ≤ 2 / L: ‖x (k + 1) - x⋆‖ ≤ ‖x k - x⋆‖ for a minimizer x⋆.

theorem ConvexAnalysis.gradientDescent_fejerMonotone {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 ≤ γ) (hγL : γ * L ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) :

Fejér monotonicity of gradient descent (from BC, Example 5.3, Proposition 4.39 and Corollary 18.17): for a convex f with an L-Lipschitz gradient and a step 0 ≤ γ ≤ 2 / L, the iterates x (k + 1) = x k - γ f' (x k) are Fejér monotone with respect to the set of minimizers of f.

theorem ConvexAnalysis.gradientDescent_le_mul_div_of_mul_lt_two {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (hxs : IsMinOn f Set.univ xs) (N : ℕ) :
f (x N) - f xs ≤ (f (x 0) - f xs) * ‖x 0 - xs‖ ^ 2 / (‖x 0 - xs‖ ^ 2 + γ * (1 - γ * L / 2) * ↑N * (f (x 0) - f xs))

Rate of gradient descent with a constant step γ ∈ (0, 2 / L), the bound of Nesterov, Theorem 2.1.14: for a convex f with an L-Lipschitz gradient, x (k + 1) = x k - γ f' (x k) and a minimizer x⋆, with Δ k = f (x k) - f x⋆, r = ‖x 0 - x⋆‖ and ω = γ (1 - γ L / 2), Δ N ≤ Δ 0 r² / (r² + ω N Δ 0). Nesterov writes the bound as 2 Δ 0 r² / (2 r² + N γ (2 - γ L) Δ 0); it holds for every N, also when the denominator vanishes (then x 0 = x⋆).

theorem ConvexAnalysis.gradientDescent_rate_of_mul_lt_two {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (hxs : IsMinOn f Set.univ xs) (N : ℕ) :
f (x (N + 1)) - f xs ≤ ‖x 0 - xs‖ ^ 2 / (γ * (1 - γ * L / 2) * (↑N + 1))

Rate of gradient descent with a constant step γ ∈ (0, 2 / L) Nesterov, Theorem 2.1.14: for a convex f with an L-Lipschitz gradient, x (k + 1) = x k - γ f' (x k) and a minimizer x⋆, f (x (N + 1)) - f x⋆ ≤ ‖x 0 - x⋆‖² / (γ (1 - γ L / 2) (N + 1)). This drops the term f (x 0) - f x⋆ of Nesterov's bound, ConvexAnalysis.gradientDescent_le_mul_div_of_mul_lt_two.

theorem ConvexAnalysis.gradientDescent_summable_norm_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) {m : ℝ} (hm : ∀ (y : H), m ≤ f y) :
Summable fun (k : ℕ) => ‖f' (x k)‖ ^ 2

Along gradient descent with a step γ ∈ (0, 2 / L), the squared gradient norms are summable when f is bounded below ((1.2.20) in Nesterov, Section 1.2.3). No convexity is needed.

theorem ConvexAnalysis.gradientDescent_tendsto_gradient {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) {m : ℝ} (hm : ∀ (y : H), m ≤ f y) :
Filter.Tendsto (fun (k : ℕ) => f' (x k)) Filter.atTop (nhds 0)

Along gradient descent with a step γ ∈ (0, 2 / L), the gradients tend to 0 when f is bounded below ((1.2.21) in Nesterov, Section 1.2.3). No convexity is needed.

theorem ConvexAnalysis.proxGradStep_eq_self_iff_hasSubgradientAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f' : H → H} {g : H → EReal} (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) {x : H} :
proxGradStep f' g γ x = x ↔ HasSubgradientAt g (-f' x) x

The fixed points of the forward–backward step x ↦ prox_{γ g} (x - γ f' x), γ > 0, are the points with -f' x ∈ ∂g x. No assumption on f' is needed.

theorem ConvexAnalysis.hasSubgradientAt_neg_iff_isMinOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf : ConvexOn ℝ Set.univ f) {x : H} (hf' : HasGradientAt f (f' x) x) (hg : ConvexFun g) (hgp : IsProper g) :
HasSubgradientAt g (-f' x) x ↔ IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ x

Optimality condition for f + g with a convex f differentiable at x Beck, Theorem 3.72 (b): for a proper convex g, x minimizes f + g iff -f' x ∈ ∂g x.

theorem ConvexAnalysis.proxGradStep_eq_self_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf : ConvexOn ℝ Set.univ f) {x : H} (hf' : HasGradientAt f (f' x) x) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) :
proxGradStep f' g γ x = x ↔ IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ x

Fixed points of the forward–backward step Beck, Corollary 10.8: for a convex f differentiable at x and γ > 0, x is a fixed point of x ↦ prox_{γ g} (x - γ f' x) iff x minimizes f + g.

theorem ConvexAnalysis.ConvexOn.norm_proxGradStep_sub_proxGradStep_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (x y : H) :
‖proxGradStep f' g γ x - proxGradStep f' g γ y‖ ^ 2 ≤ ‖x - y‖ ^ 2 - (1 - γ * L / 2) * ‖x - proxGradStep f' g γ x - (y - proxGradStep f' g γ y)‖ ^ 2

The forward–backward step T x = prox_{γ g} (x - γ f' x) of a convex f with an L-Lipschitz gradient f', L ≥ 0 (BC, Proposition 26.1 with the gradient, which is cocoercive by BC, Corollary 18.17): for a proper lower semicontinuous convex g and γ > 0, ‖T x - T y‖² ≤ ‖x - y‖² - (1 - γ L / 2) ‖(x - T x) - (y - T y)‖².

theorem ConvexAnalysis.ConvexOn.isAveraged_proxGradStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) :
IsAveraged (2 / (4 - γ * L)) (proxGradStep f' g γ)

The forward–backward step x ↦ prox_{γ g} (x - γ f' x) of a convex f with an L-Lipschitz gradient, L ≥ 0, is 2 / (4 - γ L)-averaged for 0 < γ < 2 / L.

theorem ConvexAnalysis.ConvexOn.lipschitzWith_proxGradStep {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L ≤ 2) :

The forward–backward step x ↦ prox_{γ g} (x - γ f' x) of a convex f with an L-Lipschitz gradient, L ≥ 0, is nonexpansive for 0 < γ ≤ 2 / L.

theorem ConvexAnalysis.proxGradStep_norm_sub_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {xs : H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) (x : H) :
‖proxGradStep f' g γ x - xs‖ ^ 2 ≤ ‖x - xs‖ ^ 2 - (1 - γ * L / 2) * ‖proxGradStep f' g γ x - x‖ ^ 2

Fejér monotonicity of the forward–backward step (from BC, Propositions 4.35 and 26.1): for a minimizer x⋆ of f + g and γ > 0, ‖T x - x⋆‖² ≤ ‖x - x⋆‖² - (1 - γ L / 2) ‖T x - x‖², where T x = prox_{γ g} (x - γ f' x).

theorem ConvexAnalysis.forwardBackward_norm_sub_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {xs : H} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) (k : ℕ) :
‖x (k + 1) - xs‖ ^ 2 ≤ ‖x k - xs‖ ^ 2 - (1 - γ * L / 2) * ‖x (k + 1) - x k‖ ^ 2

Fejér monotonicity of the forward–backward method x (k + 1) = prox_{γ g} (x k - γ f' (x k)) with γ > 0 (the estimate in the proof of BC, Proposition 28.13, here with the sharp constant 1 - γ L / 2): for a minimizer x⋆ of f + g, ‖x (k + 1) - x⋆‖² ≤ ‖x k - x⋆‖² - (1 - γ L / 2) ‖x (k + 1) - x k‖².

theorem ConvexAnalysis.forwardBackward_norm_sub_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {xs : H} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) (k : ℕ) :
‖x (k + 1) - xs‖ ≤ ‖x k - xs‖

Fejér monotonicity of the forward–backward method with step 0 < γ ≤ 2 / L: ‖x (k + 1) - x⋆‖ ≤ ‖x k - x⋆‖ for every minimizer x⋆ of f + g. For γ ≤ 1 / L this is ConvexAnalysis.proxGradStep_norm_sub_le, which needs no cocoercivity.

theorem ConvexAnalysis.forwardBackward_fejerMonotone {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) :
FejerMonotone x {z : H | IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ z}

Fejér monotonicity of the forward–backward method BC, Proposition 28.13 (there for steps in [ε, 2 / L - ε]): with step 0 < γ ≤ 2 / L, the iterates are Fejér monotone with respect to the set of minimizers of f + g.

theorem ConvexAnalysis.forwardBackward_summable_norm_sub_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {xs : H} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) :
Summable fun (k : ℕ) => ‖x (k + 1) - x k‖ ^ 2

Along the forward–backward method with step γ ∈ (0, 2 / L), the squared step lengths ‖x (k + 1) - x k‖² are summable when f + g has a minimizer: the step is averaged (ConvexAnalysis.IsAveraged.picard_summable_norm_sub_sq).

theorem ConvexAnalysis.forwardBackward_tendsto_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {xs : H} {x : ℕ → H} (hf : ConvexOn ℝ Set.univ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL0 : 0 ≤ L) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) :
Filter.Tendsto (fun (k : ℕ) => x (k + 1) - x k) Filter.atTop (nhds 0)

Asymptotic regularity of the forward–backward method with step γ ∈ (0, 2 / L): x (k + 1) - x k → 0 when f + g has a minimizer.

theorem ConvexAnalysis.mul_norm_sub_sq_add_norm_sub_sq_le_of_strongConvexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {μ : ℝ} (hf : StrongConvexOn Set.univ μ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hμL : μ ≤ L) (x y : H) :
μ * L * ‖x - y‖ ^ 2 + ‖f' x - f' y‖ ^ 2 ≤ (μ + L) * inner ℝ (f' x - f' y) (x - y)

Cocoercivity of the gradient of a strongly convex function Nesterov, Theorem 2.1.12 ((2.1.32)): for a μ-strongly convex f with an L-Lipschitz gradient f' and μ ≤ L, μ L ‖x - y‖² + ‖f' x - f' y‖² ≤ (μ + L) ⟪f' x - f' y, x - y⟫. As in Nesterov's proof, this is the Baillon–Haddad inequality for f - μ / 2 ‖·‖² (ConvexAnalysis.norm_sub_sq_le_mul_inner_of_descent with L - μ). Nesterov works in ℝⁿ.

theorem ConvexAnalysis.norm_sub_smul_sub_sub_smul_sq_le_of_strongConvexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {μ : ℝ} (hf : StrongConvexOn Set.univ μ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hμ : 0 ≤ μ) (hμL : μ ≤ L) (hγ : 0 ≤ γ) (hγL : γ * (L + μ) ≤ 2) (x y : H) :
‖x - γ • f' x - (y - γ • f' y)‖ ^ 2 ≤ (1 - γ * μ) ^ 2 * ‖x - y‖ ^ 2

Contraction of the gradient step for a strongly convex function: for a μ-strongly convex f with an L-Lipschitz gradient, 0 ≤ μ ≤ L and a step 0 ≤ γ ≤ 2 / (L + μ), ‖(x - γ f' x) - (y - γ f' y)‖² ≤ (1 - γ μ)² ‖x - y‖². This sharpens the factor 1 - 2 γ μ L / (μ + L) of Nesterov, Theorem 2.1.15, with which it agrees at γ = 2 / (L + μ): Nesterov's proof drops the term γ (γ - 2 / (μ + L)) ‖f' x - f' y‖², which is at most γ (γ - 2 / (μ + L)) μ² ‖x - y‖².

theorem ConvexAnalysis.norm_sub_smul_sub_sub_smul_le_of_strongConvexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {μ : ℝ} (hf : StrongConvexOn Set.univ μ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hμ : 0 ≤ μ) (hμL : μ ≤ L) (hγ : 0 ≤ γ) (hγL : γ * (L + μ) ≤ 2) (x y : H) :
‖x - γ • f' x - (y - γ • f' y)‖ ≤ (1 - γ * μ) * ‖x - y‖

Contraction of the gradient step for a strongly convex function, in norm: under the hypotheses of ConvexAnalysis.norm_sub_smul_sub_sub_smul_sq_le_of_strongConvexOn, ‖(x - γ f' x) - (y - γ f' y)‖ ≤ (1 - γ μ) ‖x - y‖, with 0 ≤ 1 - γ μ.

theorem ConvexAnalysis.forwardBackward_norm_sub_le_of_strongConvexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {μ : ℝ} {g : H → EReal} {x : ℕ → H} {xs : H} (hf : StrongConvexOn Set.univ μ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hμ : 0 ≤ μ) (hμL : μ ≤ L) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * (L + μ) ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) (hxs : IsMinOn (fun (w : H) => ↑(f w) + g w) Set.univ xs) (N : ℕ) :
‖x N - xs‖ ≤ (1 - γ * μ) ^ N * ‖x 0 - xs‖

Linear convergence of the forward–backward method for a strongly convex f, with the factor of ConvexAnalysis.norm_sub_smul_sub_sub_smul_le_of_strongConvexOn: for a μ-strongly convex f with an L-Lipschitz gradient, 0 ≤ μ ≤ L, a proper lower semicontinuous convex g, a step 0 < γ ≤ 2 / (L + μ), the iteration x (k + 1) = prox_{γ g} (x k - γ f' (x k)) and a minimizer x⋆ of f + g, ‖x N - x⋆‖ ≤ (1 - γ μ)ᴺ ‖x 0 - x⋆‖. For γ ≤ 1 / L this sharpens ConvexAnalysis.ista_norm_sub_sq_le_of_strongConvexOn, whose factor is 1 - γ μ for the squares; for g = 0 it is the sharpened Nesterov, Theorem 2.1.15 (ConvexAnalysis.gradientDescent_norm_sub_le_of_strongConvexOn).

theorem ConvexAnalysis.gradientDescent_norm_sub_le_of_strongConvexOn {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {μ : ℝ} {x : ℕ → H} {xs : H} (hf : StrongConvexOn Set.univ μ f) (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hμ : 0 ≤ μ) (hμL : μ ≤ L) (hγ : 0 ≤ γ) (hγL : γ * (L + μ) ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = x k - γ • f' (x k)) (hxs : IsMinOn f Set.univ xs) (N : ℕ) :
‖x N - xs‖ ≤ (1 - γ * μ) ^ N * ‖x 0 - xs‖

Linear convergence of gradient descent for a strongly convex f (sharpening Nesterov, Theorem 2.1.15): for a μ-strongly convex f with an L-Lipschitz gradient, 0 ≤ μ ≤ L, a step 0 ≤ γ ≤ 2 / (L + μ) and the minimizer x⋆, ‖x N - x⋆‖ ≤ (1 - γ μ)ᴺ ‖x 0 - x⋆‖. Nesterov's bound is ‖x N - x⋆‖² ≤ (1 - 2 γ μ L / (μ + L))ᴺ ‖x 0 - x⋆‖²; for γ = 2 / (L + μ) both give ‖x N - x⋆‖ ≤ ((L - μ) / (L + μ))ᴺ ‖x 0 - x⋆‖, the second bound of Nesterov, Theorem 2.1.15, whose squared form is (2.1.40).

theorem ConvexAnalysis.proxGradStep_le_sub_norm_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) {x : H} {s : ℝ} (hx : g x = ↑s) :
∃ (r : ℝ), g (proxGradStep f' g γ x) = ↑r ∧ f (proxGradStep f' g γ x) + r ≤ f x + s - (γ⁻¹ - L / 2) * ‖proxGradStep f' g γ x - x‖ ^ 2

Sufficient decrease of the proximal gradient step Beck, Lemma 10.4 (with L̄ = 1 / γ; Beck assumes γ < 2 / L): for f with an L-Lipschitz gradient f', not necessarily convex, a proper lower semicontinuous convex g, any step γ > 0 and g x = s finite, the step x⁺ = prox_{γ g} (x - γ f' x) has g x⁺ = r finite and f x⁺ + r ≤ f x + s - (1 / γ - L / 2) ‖x⁺ - x‖². For γ ≤ 1 / L this sharpens ConvexAnalysis.proxGradStep_le_self, whose constant is 1 / (2 γ).

theorem ConvexAnalysis.forwardBackward_sum_norm_sub_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) {r : ℕ → ℝ} (hr : ∀ (k : ℕ), g (x k) = ↑(r k)) (N : ℕ) :
(γ⁻¹ - L / 2) * ∑ k ∈ Finset.range N, ‖x (k + 1) - x k‖ ^ 2 ≤ f (x 0) + r 0 - (f (x N) + r N)

Decrease of the proximal gradient method, summed (from the proof of Beck, Theorem 10.15): for f with an L-Lipschitz gradient, not necessarily convex, a proper lower semicontinuous convex g, a step γ > 0, the iteration x (k + 1) = prox_{γ g} (x k - γ f' (x k)) and real values g (x k) = r k, (1 / γ - L / 2) ∑_{k < N} ‖x (k + 1) - x k‖² ≤ F (x 0) - F (x N) with F = f + g.

theorem ConvexAnalysis.forwardBackward_exists_mul_norm_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L ≤ 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) {r : ℕ → ℝ} (hr : ∀ (k : ℕ), g (x k) = ↑(r k)) {m : ℝ} (hm : ∀ (k : ℕ), m ≤ f (x k) + r k) (N : ℕ) :
∃ k ≤ N, γ * (1 - γ * L / 2) * (↑N + 1) * ‖γ⁻¹ • (x k - x (k + 1))‖ ^ 2 ≤ f (x 0) + r 0 - m

Rate of the proximal gradient method in the nonconvex case Beck, Theorem 10.15 (c) (there with the step 1 / L̄, L̄ > L / 2): for f with an L-Lipschitz gradient, not necessarily convex, a proper lower semicontinuous convex g, a step 0 < γ ≤ 2 / L, the iteration x (k + 1) = prox_{γ g} (x k - γ f' (x k)), real values g (x k) = r k and a lower bound m ≤ F (x k), F = f + g, some k ≤ N has a small gradient mapping G (x k) = (x k - x (k + 1)) / γ: γ (1 - γ L / 2) (N + 1) ‖G (x k)‖² ≤ F (x 0) - m, so min_{k ≤ N} ‖G (x k)‖² = O(1 / N).

theorem ConvexAnalysis.forwardBackward_summable_norm_sub_sq_of_bddBelow {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) {r : ℕ → ℝ} (hr : ∀ (k : ℕ), g (x k) = ↑(r k)) (hbdd : BddBelow (Set.range fun (k : ℕ) => f (x k) + r k)) :
Summable fun (k : ℕ) => ‖x (k + 1) - x k‖ ^ 2

Along the proximal gradient method with a step γ ∈ (0, 2 / L), for f with an L-Lipschitz gradient, not necessarily convex, the squared steps ‖x (k + 1) - x k‖² are summable when F = f + g is bounded below along the iterates.

theorem ConvexAnalysis.forwardBackward_tendsto_sub_of_bddBelow {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {L γ : ℝ} [CompleteSpace H] {f : H → ℝ} {f' : H → H} {g : H → EReal} {x : ℕ → H} (hf' : ∀ (x : H), HasGradientAt f (f' x) x) (hL : ∀ (x y : H), ‖f' x - f' y‖ ≤ L * ‖x - y‖) (hg : ConvexFun g) (hglsc : LowerSemicontinuous g) (hgp : IsProper g) (hγ : 0 < γ) (hγL : γ * L < 2) (hx : ∀ (k : ℕ), x (k + 1) = proxGradStep f' g γ (x k)) {r : ℕ → ℝ} (hr : ∀ (k : ℕ), g (x k) = ↑(r k)) (hbdd : BddBelow (Set.range fun (k : ℕ) => f (x k) + r k)) :
Filter.Tendsto (fun (k : ℕ) => x (k + 1) - x k) Filter.atTop (nhds 0)

The gradient mapping of the proximal gradient method tends to 0 Beck, Theorem 10.15 (b): with a step γ ∈ (0, 2 / L), for f with an L-Lipschitz gradient, not necessarily convex, and F = f + g bounded below along the iterates, x (k + 1) - x k → 0.