Documentation

ConvexAnalysis.SubgradientExistence

Existence and boundedness of subgradients #

An extended valued function f : H → EReal that is bounded above near x has a bounded subdifferential at x. If f is moreover convex and f x > ⊥, then f has a subgradient at x. This holds in particular at a point of the domain where f is continuous, and, in finite dimension, at every interior point of the domain of a convex function with f x > ⊥.

Main statements #

Implementation notes #

ConvexAnalysis.ConvexFun.exists_separation_interior_epigraph is the separation step shared by the max formula and the sandwich theorem (ConvexAnalysis.SumRule): the interior of the epigraph, nonempty because f is bounded above near x₀, is separated from a convex set B that meets {x₀} × ℝ (Hahn–Banach); the inequality extends to the whole epigraph by closure (interior epi f) = closure (epi f), and the functional is not vertical because the interior contains points (x₀, t) above B. The max formula takes for B the ray {(x + t • d, f x + t α) | t ≥ 0}; for d = 0 and α = 0 the ray is the point (x, f x). The Riesz representation turns the functional into a vector of H.

References #

Tags #

subgradient, existence of subgradients, max formula, directional derivative, Hahn–Banach separation, epigraph

theorem ConvexAnalysis.norm_le_of_mem_subdifferential {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u x : H} {δ M : ℝ} (hδ : 0 < δ) (hM : ∀ y ∈ Metric.ball x δ, f y ≤ ↑M) (hu : u ∈ subdifferential f x) :
‖u‖ ≤ (M - (f x).toReal) / δ

Bound on subgradients: if f ≤ M on the ball of radius δ around x, every subgradient of f at x has norm at most (M - f x) / δ. No convexity is needed.

If f is bounded above near x, then ∂f x is bounded.

If f is upper semicontinuous at x (for example continuous), then ∂f x is bounded.

In finite dimension, ∂f x is bounded at every interior point of the domain of a convex function; one direction of the second part of R, Theorem 23.4.

theorem ConvexAnalysis.strongDual_prod_apply {E : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] (φ : StrongDual ℝ (E × ℝ)) (y : E) (t : ℝ) :
φ (y, t) = (φ ∘SL ContinuousLinearMap.inl ℝ E ℝ) y + t * φ (0, 1)

A continuous linear functional on E × ℝ is (y, t) ↦ w y + t * α, with w = φ (·, 0) and α = φ (0, 1); a special case of Mathlib's ContinuousLinearMap.comp_inl_add_comp_inr.

theorem ConvexAnalysis.ConvexFun.exists_separation_interior_epigraph {E : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → EReal} (hf : ConvexFun f) {x₀ : E} {M : ℝ} (hM : ∀ᶠ (y : E) in nhds x₀, f y ≤ ↑M) {B : Set (E × ℝ)} (hB : Convex ℝ B) (hdisj : Disjoint (interior (epigraph f)) B) {t₀ : ℝ} (ht₀ : (x₀, t₀) ∈ B) :
∃ (φ : StrongDual ℝ (E × ℝ)) (σ : ℝ), φ (0, 1) < 0 ∧ (∀ p ∈ epigraph f, φ p ≤ σ) ∧ ∀ p ∈ B, σ ≤ φ p

Non-vertical separation from the interior of an epigraph: if a convex f is bounded above near x₀ and a convex set B meets {x₀} × ℝ but not interior (epi f), then a continuous linear functional φ with φ (0, 1) < 0 has φ ≤ σ on epi f and σ ≤ φ on B.

The functional φ on H × ℝ through the Riesz vector of y ↦ φ (y, 0): φ (y, s) = ⟪y, v⟫ + s φ (0, 1).

theorem ConvexAnalysis.affine_le_of_forall_mem_epigraph_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} [CompleteSpace H] (φ : StrongDual ℝ (H × ℝ)) (hφ0 : φ (0, 1) < 0) {σ : ℝ} (hφ : ∀ p ∈ epigraph f, φ p ≤ σ) (y : H) :

Affine minorant from a supporting functional: if a continuous linear functional φ on H × ℝ with φ (0, 1) < 0 is at most σ on the epigraph of f, then y ↦ ⟪y, v⟫ / (-φ (0, 1)) - σ / (-φ (0, 1)) lies below f, where v represents φ (·, 0). No hypothesis on f is needed.

theorem ConvexAnalysis.hasSubgradientAt_of_forall_mem_epigraph_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} [CompleteSpace H] (φ : StrongDual ℝ (H × ℝ)) (hφ0 : φ (0, 1) < 0) {r : ℝ} (hr : f x = ↑r) (hφ : ∀ p ∈ epigraph f, φ p ≤ φ (x, r)) :

Subgradient from a supporting functional: if a continuous linear functional φ on H × ℝ with φ (0, 1) < 0 attains its maximum over the epigraph of f at (x, f x), then the vector representing y ↦ φ (y, 0) / (-φ (0, 1)) is a subgradient of f at x.

theorem ConvexAnalysis.ConvexFun.exists_mem_subdifferential_le_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} [CompleteSpace H] (hf : ConvexFun f) (hbot : ⊥ < f x) {M : ℝ} (hM : ∀ᶠ (y : H) in nhds x, f y ≤ ↑M) {d : H} {α : ℝ} (hd : ∀ (t : ℝ), 0 < t → f x + ↑(t * α) ≤ f (x + t • d)) :
∃ v ∈ subdifferential f x, α ≤ inner ℝ d v

Max formula, the hard direction: let f be convex, f x > ⊥, and bounded above near x. If f x + t α ≤ f (x + t • d) for every t > 0, then some subgradient v of f at x has α ≤ ⟪d, v⟫. The case d = 0, α = 0 is the existence of subgradients. The proof separates the interior of the epigraph from the ray {(x + t • d, f x + t α) | t ≥ 0}.

theorem ConvexAnalysis.ConvexFun.exists_mem_subdifferential_le_inner_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} [CompleteSpace H] (hf : ConvexFun f) (hbot : ⊥ < f x) {M : ℝ} (hM : ∀ᶠ (y : H) in nhds x, f y ≤ ↑M) (d : H) (α : ℝ) :
(∃ v ∈ subdifferential f x, α ≤ inner ℝ d v) ↔ ∀ (t : ℝ), 0 < t → f x + ↑(t * α) ≤ f (x + t • d)

Max formula R, Theorem 23.4 (there on ℝⁿ, at points of ri (dom f)), BC, Theorem 17.18 (there for proper f continuous at x): for a convex f with f x > ⊥ that is bounded above near x, the largest value of ⟪d, v⟫ over v ∈ ∂f x (it is attained, exists_isMaxOn_inner) is the one-sided directional derivative of f at x in the direction d. Stated without directional derivatives: some subgradient has ⟪d, v⟫ ≥ α iff f x + t α ≤ f (x + t • d) for every t > 0. By convexity it suffices that this holds for small t > 0 (ConvexFun.forall_le_of_eventually_le).

theorem ConvexAnalysis.ConvexFun.exists_isMaxOn_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} [CompleteSpace H] (hf : ConvexFun f) (hbot : ⊥ < f x) {M : ℝ} (hM : ∀ᶠ (y : H) in nhds x, f y ≤ ↑M) (d : H) :
∃ v ∈ subdifferential f x, IsMaxOn (fun (w : H) => inner ℝ d w) (subdifferential f x) v

On a subdifferential as in the max formula, ⟪d, ·⟫ attains its maximum.

theorem ConvexAnalysis.ConvexFun.nonempty_subdifferential_of_eventually_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} [CompleteSpace H] (hf : ConvexFun f) (hbot : ⊥ < f x) {M : ℝ} (hM : ∀ᶠ (y : H) in nhds x, f y ≤ ↑M) :

Existence of subgradients BC, Proposition 16.17 with BC, Theorem 8.38: a convex function f with f x > ⊥ that is bounded above on a neighborhood of x has a subgradient at x.

A convex function has a subgradient at every point of its domain where it is continuous and greater than ⊥ BC, Proposition 16.17.

theorem ConvexAnalysis.nonempty_subdifferential_of_continuous {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} (hf : ConvexOn ℝ Set.univ f) (hfc : Continuous f) (x : H) :
(subdifferential (fun (y : H) => ↑(f y)) x).Nonempty

A continuous convex function f : H → ℝ has a subgradient at every point BC, Proposition 16.17.

In finite dimension, a convex function has a subgradient at every interior point of its domain where it is greater than ⊥; this is the interior case of R, Theorem 23.4, which treats the relative interior.