Documentation

ConvexAnalysis.SumRule

The sum rule, the chain rule and the optimality condition #

Subdifferential calculus for convex functions on real Hilbert spaces with a continuity qualification: the sandwich theorem, the rule ∂(f + g ∘ A) x = ∂f x + A† (∂g (A x)) for a bounded linear map A, with the Moreau–Rockafellar sum rule and the chain rule as special cases, the chain rule for surjective A without qualification, and the optimality condition 0 ∈ ∂f x + N_C x.

Main statements #

Implementation notes #

All rules with a qualification are proved once, in ConvexAnalysis.subdifferential_add_comp_continuousLinearMap_of_eventually_le; the sum rule is the case A = id and the chain rule the case f = 0. The roles follow BC, Theorem 16.47: f lives on H, and g on K carries the continuity condition. The inclusion ⊇ holds for all f and g. For ⊆, let u be a subgradient of f + g ∘ A at x, with value r. The sandwich theorem for y ↦ f y - ⟪y, u⟫, g and the bound r - ⟪x, u⟫ gives an affine function β + ⟪·, w⟫ below g that touches g at A x, so w ∈ ∂g (A x), and the other half of the sandwich says u - A† w ∈ ∂f x. The sandwich theorem itself separates the interior of epi g from the image under A × id of {(y, t) | f y ≤ c - t} (ConvexAnalysis.ConvexFun.exists_separation_interior_epigraph); the qualification makes the separating functional non-vertical.

The continuity condition must be on g in K; on f, or on g ∘ A in H, the rule fails. With A = 0, f = 0 and g t = -√t (⊤ for t < 0), ∂(f + g ∘ A) 0 = {0} but ∂g 0 = ∅.

No properness is assumed: if f + g ∘ A has a subgradient anywhere, then f > ⊥ everywhere, and g > ⊥ everywhere because g is convex and A x₀ is an interior point of dom g. Nor is lower semicontinuity assumed; this is the classical form of the theorem with a continuity condition, as in ET, Chapter I.

References #

Tags #

subdifferential, sum rule, chain rule, Moreau–Rockafellar theorem, sandwich theorem, constraint qualification, normal cone, optimality condition

A subgradient w of f at A x gives the subgradient A† w of f ∘ A at x.

The easy inclusion of the chain rule, for any g: A† (∂g (A x)) ⊆ ∂(g ∘ A) x.

The easy inclusion of the sum rule with a linear map, for any f and g: ∂f x + A† (∂g (A x)) ⊆ ∂(f + g ∘ A) x.

theorem ConvexAnalysis.exists_affine_sandwich {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K] {f : H → EReal} {g : K → EReal} (hf : ConvexFun f) (hg : ConvexFun g) (A : H →L[ℝ] K) {x₀ : H} (hx₀ : x₀ ∈ effectiveDomain f) {M : ℝ} (hM : ∀ᶠ (z : K) in nhds (A x₀), g z ≤ ↑M) {c : ℝ} (hc : ∀ (y : H), ↑c ≤ f y + g (A y)) :
∃ (w : K) (β : ℝ), (∀ (z : K), ↑(β + inner ℝ z w) ≤ g z) ∧ ∀ (y : H), ↑(c - β - inner ℝ (A y) w) ≤ f y

Sandwich theorem (Borwein–Lewis; the continuity form of ET, Chapter I): if c ≤ f y + g (A y) for all y, for convex f, g with g bounded above near A x₀ for some x₀ ∈ dom f, then there are w and β with β + ⟪z, w⟫ ≤ g z for all z and c - β - ⟪A y, w⟫ ≤ f y for all y.

theorem ConvexAnalysis.subdifferential_add_comp_continuousLinearMap_of_eventually_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K] {f : H → EReal} {g : K → EReal} (hf : ConvexFun f) (hg : ConvexFun g) (A : H →L[ℝ] K) {x₀ : H} (hx₀ : x₀ ∈ effectiveDomain f) {M : ℝ} (hM : ∀ᶠ (z : K) in nhds (A x₀), g z ≤ ↑M) (x : H) :

Sum rule with a linear map (Moreau–Rockafellar): for convex f : H → EReal and g : K → EReal and a bounded linear map A : H → K, if g is bounded above near A x₀ for a point x₀ ∈ dom f, then ∂(f + g ∘ A) x = ∂f x + A† (∂g (A x)) for every x. The sum rule is the case A = id, the chain rule the case f = 0. Without lower semicontinuity this is the classical continuity form ET, Chapter I; BC, Theorem 16.47 states it for lower semicontinuous functions under weaker qualifications, and R, Theorem 23.8 (sum rule) and R, Theorem 23.9 (chain rule) give the two special cases on ℝⁿ under relative interior conditions.

theorem ConvexAnalysis.subdifferential_add_comp_continuousLinearMap {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K] {f : H → EReal} {g : K → EReal} (hf : ConvexFun f) (hg : ConvexFun g) (A : H →L[ℝ] K) {x₀ : H} (hx₀f : x₀ ∈ effectiveDomain f) (hx₀g : A x₀ ∈ effectiveDomain g) (hgc : ContinuousAt g (A x₀)) (x : H) :

Sum rule with a linear map: for convex f : H → EReal and g : K → EReal and a bounded linear map A, if g is continuous at A x₀ for a point x₀ ∈ dom f with A x₀ ∈ dom g, then ∂(f + g ∘ A) x = ∂f x + A† (∂g (A x)) for every x ET, Chapter I; compare BC, Theorem 16.47.

theorem ConvexAnalysis.subdifferential_comp_continuousLinearMap_of_eventually_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K] {f : K → EReal} (hf : ConvexFun f) (A : H →L[ℝ] K) {x₀ : H} {M : ℝ} (hM : ∀ᶠ (z : K) in nhds (A x₀), f z ≤ ↑M) (x : H) :

Chain rule: for a convex f : K → EReal and a bounded linear map A, if f is bounded above near a point of the range of A, then ∂(f ∘ A) x = A† (∂f (A x)) for every x.

theorem ConvexAnalysis.subdifferential_comp_continuousLinearMap {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K] {f : K → EReal} (hf : ConvexFun f) (A : H →L[ℝ] K) {x₀ : H} (hx₀ : A x₀ ∈ effectiveDomain f) (hfc : ContinuousAt f (A x₀)) (x : H) :

Chain rule: for a convex f : K → EReal and a bounded linear map A, if f is continuous at a point A x₀ of its domain, then ∂(f ∘ A) x = A† (∂f (A x)) for every x ET, Chapter I; compare BC, Corollary 16.53 and, on ℝⁿ with a relative interior condition, R, Theorem 23.9. The hypothesis A x₀ ∈ dom f is needed: for A t = (t, 0) and f (a, b) = -√b on {a ≤ 0, b ≥ 0} (⊤ elsewhere), f is continuous at A 1 ∉ dom f, and ∂(f ∘ A) 0 = [0, ∞) while ∂f 0 = ∅.

theorem ConvexAnalysis.normalCone_preimage_singleton {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace ℝ K] (A : H →L[ℝ] K) {b : K} {x : H} (hx : A x = b) :
normalCone (⇑A ⁻¹' {b}) x = ↑(↑A).kerᗮ

The normal cone of the affine subspace {y | A y = b} at one of its points is the orthogonal complement of ker A. Unless A = 0, the indicator of this set is continuous at none of its points (a proper closed affine subspace has empty interior), so the sum and chain rules above do not give its subdifferential.

Every subgradient of f ∘ A is orthogonal to ker A, for any f and A: f ∘ A is constant along ker A.

Chain rule for a surjective linear map, with no qualification and no convexity: if A is surjective, then ∂(f ∘ A) x = A† (∂f (A x)) for every f : K → EReal. A subgradient u of f ∘ A is orthogonal to ker A, so A y ↦ ⟪y, u⟫ is a well defined linear functional on K. It is bounded by the open mapping theorem, and the vector w that represents it (Riesz) satisfies A† w = u and is a subgradient of f at A x.

The chain rule for an affine map y ↦ A y + b with surjective A, for every f.

The chain rule for a linear isometry equivalence e: ∂(f ∘ e) x = e⁻¹ (∂f (e x)).

In finite dimension K is complete, and an interior point of dom g suffices.

The sum rule with a linear map in finite dimension: it suffices that A x₀ is an interior point of dom g for some x₀ ∈ dom f.

In finite dimension the normal cone of {y | A y = b} is the range of A†: the normal vectors are the vectors A† ν, the form in which Lagrange multipliers of equality constraints appear.

theorem ConvexAnalysis.subdifferential_add_of_eventually_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f g : H → EReal} (hf : ConvexFun f) (hg : ConvexFun g) {x₀ : H} (hx₀ : x₀ ∈ effectiveDomain g) {M : ℝ} (hM : ∀ᶠ (y : H) in nhds x₀, f y ≤ ↑M) (x : H) :

Sum rule (Moreau–Rockafellar): for convex f and g, if f is bounded above near a point x₀ of dom g, then ∂(f + g) x = ∂f x + ∂g x for every x. For convex f, being bounded above near x₀ is the same as x₀ ∈ dom f with f continuous at x₀ (ConvexAnalysis.ConvexFun.continuousAt_of_eventually_le, subdifferential_add).

theorem ConvexAnalysis.subdifferential_add {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f g : H → EReal} (hf : ConvexFun f) (hg : ConvexFun g) {x₀ : H} (hx₀f : x₀ ∈ effectiveDomain f) (hx₀g : x₀ ∈ effectiveDomain g) (hfc : ContinuousAt f x₀) (x : H) :

Sum rule (Moreau–Rockafellar): for convex f and g, if f is continuous at a point x₀ ∈ dom f ∩ dom g, then ∂(f + g) x = ∂f x + ∂g x for every x. This is the classical form with a continuity condition and without lower semicontinuity ET, Chapter I. BC, Corollary 16.48 gives the sum rule for lower semicontinuous functions, and R, Theorem 23.8 proves the rule on ℝⁿ under ri (dom f) ∩ ri (dom g) ≠ ∅.

theorem ConvexAnalysis.subdifferential_add_of_continuousAt_right {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f g : H → EReal} (hf : ConvexFun f) (hg : ConvexFun g) {x₀ : H} (hx₀f : x₀ ∈ effectiveDomain f) (hx₀g : x₀ ∈ effectiveDomain g) (hgc : ContinuousAt g x₀) (x : H) :

The sum rule with the continuity condition on the second function.

theorem ConvexAnalysis.subdifferential_add_of_mem_interior {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f g : H → EReal} [FiniteDimensional ℝ H] (hf : ConvexFun f) (hg : ConvexFun g) {x₀ : H} (hx₀f : x₀ ∈ interior (effectiveDomain f)) (hx₀g : x₀ ∈ effectiveDomain g) (x : H) :

The sum rule in finite dimension: it suffices that some point of dom g is an interior point of dom f.

theorem ConvexAnalysis.subdifferential_add_convexIndicator {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → EReal} {C : Set H} (hf : ConvexFun f) (hC : Convex ℝ C) {x₀ : H} (hx₀f : x₀ ∈ effectiveDomain f) (hx₀C : x₀ ∈ C) (hfc : ContinuousAt f x₀) (x : H) :

Sum rule with an indicator function: for a convex f and a convex set C, if f is continuous at a point of dom f ∩ C, then ∂(f + ι_C) x = ∂f x + N_C x for every x.

theorem ConvexAnalysis.isMinOn_iff_exists_mem_subdifferential_neg_mem_normalCone {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → EReal} {C : Set H} (hf : ConvexFun f) (hp : IsProper f) (hC : Convex ℝ C) {x₀ : H} (hx₀f : x₀ ∈ effectiveDomain f) (hx₀C : x₀ ∈ C) (hfc : ContinuousAt f x₀) {x : H} (hx : x ∈ C) :
IsMinOn f C x ↔ ∃ u ∈ subdifferential f x, -u ∈ normalCone C x

Optimality condition for nonsmooth convex problems: for a proper convex f that is continuous at a point of dom f ∩ C, with C convex, a point x ∈ C minimizes f on C iff there is a subgradient u ∈ ∂f x with -u ∈ N_C x, that is, 0 ∈ ∂f x + N_C x. Rockafellar proves this on ℝⁿ under the relative interior condition ri (dom f) ∩ ri C ≠ ∅, which is weaker there, or for polyhedral C R, Theorem 27.4.

theorem ConvexAnalysis.subdifferential_coe_add_convexIndicator {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {C : Set H} (hf : ConvexOn ℝ Set.univ f) (hfc : Continuous f) (hC : Convex ℝ C) (x : H) :
subdifferential ((fun (y : H) => ↑(f y)) + convexIndicator C) x = subdifferential (fun (y : H) => ↑(f y)) x + normalCone C x

Sum rule with an indicator function, for a continuous convex f : H → ℝ and a convex set C: ∂(f + ι_C) x = ∂f x + N_C x at every x. Both sides are empty if x ∉ C.

theorem ConvexAnalysis.isMinOn_iff_exists_mem_subdifferential_coe_neg_mem_normalCone {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {f : H → ℝ} {C : Set H} (hf : ConvexOn ℝ Set.univ f) (hfc : Continuous f) (hC : Convex ℝ C) {x : H} (hx : x ∈ C) :
IsMinOn f C x ↔ ∃ u ∈ subdifferential (fun (y : H) => ↑(f y)) x, -u ∈ normalCone C x

Optimality condition for a continuous convex f : H → ℝ and a convex set C: a point x ∈ C minimizes f on C iff 0 ∈ ∂f x + N_C x.

theorem ConvexAnalysis.isMinOn_iff_exists_mem_subdifferential_coe_neg_mem_normalCone_of_finiteDimensional {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → ℝ} {C : Set H} [FiniteDimensional ℝ H] (hf : ConvexOn ℝ Set.univ f) (hC : Convex ℝ C) {x : H} (hx : x ∈ C) :
IsMinOn f C x ↔ ∃ u ∈ subdifferential (fun (y : H) => ↑(f y)) x, -u ∈ normalCone C x

The optimality condition in finite dimension, where convexity implies continuity.