Documentation

CslibFrontier.Foundations.Analysis.Convex.Strong

Strongly convex functions: scaling, quadratic growth and stability #

Mathlib defines m-strong convexity on a real normed space (StrongConvexOn) through the inequality f (a • x + b • y) ≤ a • f x + b • f y - a * b * (m / 2 * ‖x - y‖ ^ 2). To cover non-ambient norms such as the ℓ¹ norm on the simplex or local norms in time-varying FTRL, this file defines StrongConvexOnWrt s N m f with an arbitrary N : E → ℝ in place of ‖·‖ (recovering StrongConvexOn when N = norm, strongConvexOn_iff_wrt_norm), and establishes:

The stability bound is the inequality behind [Orabona2019, Lemma 7.8] (there obtained from subgradients and the dual norm); here it follows from quadratic growth and the elementary bound L d - m / 2 d ² ≤ L ² / (2 m).

Main definitions #

Main results #

References #

def StrongConvexOnWrt {E : Type u_1} [AddCommGroup E] [Module ℝ E] (s : Set E) (N : E → ℝ) (m : ℝ) (f : E → ℝ) :

f is m-strongly convex on s with respect to N : E → ℝ (for instance a seminorm, the ℓ¹ norm on ι → ℝ, or a local Mahalanobis norm): for x, y ∈ s and a, b ≥ 0 with a + b = 1, f (a • x + b • y) ≤ a * f x + b * f y - a * b * (m / 2 * N (x - y) ^ 2).

theorem StrongConvexOnWrt.convexOn {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) (hm : 0 ≤ m) :

A function that is m-strongly convex with respect to N for m ≥ 0 is convex.

theorem StrongConvexOnWrt.smul {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m c : ℝ} (hc : 0 ≤ c) (hf : StrongConvexOnWrt s N m f) :
StrongConvexOnWrt s N (c * m) fun (x : E) => c * f x

Scaling an m-strongly convex function (w.r.t. N) by c ≥ 0 gives a c * m-strongly convex function.

theorem StrongConvexOnWrt.add_convexOn {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f g : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) (hg : ConvexOn ℝ s g) :
StrongConvexOnWrt s N m (f + g)

Adding a convex function preserves strong convexity with respect to N.

theorem StrongConvexOnWrt.add_const {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) (c : ℝ) :
StrongConvexOnWrt s N m fun (x : E) => f x + c

Adding a constant preserves strong convexity with respect to N.

theorem StrongConvexOnWrt.strictConvexOn {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) (hm : 0 < m) (hN : ∀ (v : E), N v = 0 → v = 0) :

If f is m-strongly convex with respect to a positive-definite N (m > 0), then f is strictly convex on s.

theorem StrongConvexOnWrt.add_le_of_isMinOn {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) {x : E} (hx : x ∈ s) (hmin : IsMinOn f s x) {y : E} (hy : y ∈ s) :
f x + m / 2 * N (x - y) ^ 2 ≤ f y

Quadratic growth at a minimizer (local norm). If x minimizes a function f that is m-strongly convex on s with respect to N, then f x + m / 2 * N (x - y) ^ 2 ≤ f y for every y ∈ s.

theorem sub_le_of_quad_growth {E : Type u_1} [AddCommGroup E] {N : E → ℝ} {m : ℝ} {F ℓ : E → ℝ} {L : ℝ} (hm : 0 < m) {x y : E} (hq : F x + m / 2 * N (x - y) ^ 2 ≤ F y) (hℓ : ℓ x - ℓ y ≤ L * N (x - y)) :
F x + ℓ x - (F y + ℓ y) ≤ L ^ 2 / (2 * m)

Stability from quadratic growth (local norm) (compare [Orabona2019, Lemma 7.8]): if F satisfies the quadratic lower bound F x + m / 2 * N (x - y) ^ 2 ≤ F y with m > 0 and the perturbation ℓ satisfies ℓ x - ℓ y ≤ L * N (x - y), then F x + ℓ x - (F y + ℓ y) ≤ L ^ 2 / (2 * m).

theorem StrongConvexOnWrt.sub_le_of_isMinOn {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Set E} {N f : E → ℝ} {m : ℝ} (hf : StrongConvexOnWrt s N m f) (hm : 0 < m) {x : E} (hx : x ∈ s) (hmin : IsMinOn f s x) {y : E} (hy : y ∈ s) {ℓ : E → ℝ} {L : ℝ} (hℓ : ℓ x - ℓ y ≤ L * N (x - y)) :
f x + ℓ x - (f y + ℓ y) ≤ L ^ 2 / (2 * m)

Stability of a strongly convex minimizer (local norm) (compare [Orabona2019, Lemma 7.8]): if x minimizes a function f that is m-strongly convex on s with respect to N (m > 0), and ℓ x - ℓ y ≤ L * N (x - y), then f x + ℓ x - (f y + ℓ y) ≤ L ^ 2 / (2 * m).

theorem strongConvexOn_iff_wrt_norm {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Set E} {f : E → ℝ} {m : ℝ} :

Mathlib's StrongConvexOn is StrongConvexOnWrt with the ambient norm.

theorem StrongConvexOn.smul {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Set E} {f : E → ℝ} {m c : ℝ} (hc : 0 ≤ c) (hf : StrongConvexOn s m f) :
StrongConvexOn s (c * m) fun (x : E) => c • f x

Scaling an m-strongly convex function by c ≥ 0 gives a c * m-strongly convex function.

theorem StrongConvexOn.add_convexOn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Set E} {f g : E → ℝ} {m : ℝ} (hf : StrongConvexOn s m f) (hg : ConvexOn ℝ s g) :
StrongConvexOn s m (f + g)

Adding a convex function to an m-strongly convex function keeps it m-strongly convex.

theorem StrongConvexOn.add_le_of_isMinOn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Set E} {f : E → ℝ} {m : ℝ} (hf : StrongConvexOn s m f) {x : E} (hx : x ∈ s) (hmin : IsMinOn f s x) {y : E} (hy : y ∈ s) :
f x + m / 2 * ‖y - x‖ ^ 2 ≤ f y

Quadratic growth at a minimizer. If x minimizes an m-strongly convex function f on s, then f x + m / 2 * ‖y - x‖ ^ 2 ≤ f y for every y ∈ s.

theorem StrongConvexOn.sub_le_of_isMinOn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {s : Set E} {f : E → ℝ} {m : ℝ} (hf : StrongConvexOn s m f) (hm : 0 < m) {x : E} (hx : x ∈ s) (hmin : IsMinOn f s x) {y : E} (hy : y ∈ s) {ℓ : E → ℝ} {L : ℝ} (hℓ : ℓ x - ℓ y ≤ L * ‖x - y‖) :
f x + ℓ x - (f y + ℓ y) ≤ L ^ 2 / (2 * m)

Stability of a strongly convex minimizer under a perturbation. If x minimizes an m-strongly convex function f on s with m > 0, and the perturbation ℓ satisfies the one-sided Lipschitz bound ℓ x - ℓ y ≤ L * ‖x - y‖, then f x + ℓ x - (f y + ℓ y) ≤ L ^ 2 / (2 * m) (compare [Orabona2019, Lemma 7.8]).

theorem strongConvexOn_mul_norm_sub_sq {F : Type u_1} [NormedAddCommGroup F] [InnerProductSpace ℝ F] {K : Set F} (hK : Convex ℝ K) (m : ℝ) (x₀ : F) :
StrongConvexOn K m fun (y : F) => m / 2 * ‖y - x₀‖ ^ 2

In a real inner product space the squared distance m / 2 * ‖y - x₀‖ ^ 2 to a fixed point is m-strongly convex on every convex set.

theorem strongConvexOn_mul_norm_sq {F : Type u_1} [NormedAddCommGroup F] [InnerProductSpace ℝ F] {K : Set F} (hK : Convex ℝ K) (r : ℝ) :
StrongConvexOn K (2 * r) fun (y : F) => r * ‖y‖ ^ 2

In a real inner product space the Tikhonov regularizer r * ‖y‖ ^ 2 is 2 * r-strongly convex on every convex set.