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 #
ConvexAnalysis.exists_affine_sandwich: the sandwich theorem. Iff + g ∘ A ≥ cfor convexf : H → EReal,g : K → EReal, a bounded linear mapA, andgis bounded above nearA x₀for a pointx₀ ∈ dom f, then an affine function separates: there arew : Kandβ : ℝwithβ + ⟪z, w⟫ ≤ g zfor allzandc - β - ⟪A y, w⟫ ≤ f yfor ally.ConvexAnalysis.subdifferential_add_comp_continuousLinearMap: the sum rule with a bounded linear mapA : H → Kbetween Hilbert spaces,∂(f + g ∘ A) x = ∂f x + A† (∂g (A x))for convexf : H → ERealandg : K → EReal, ifgis continuous atA x₀for a pointx₀ ∈ dom fwithA x₀ ∈ dom g.ConvexAnalysis.subdifferential_comp_continuousLinearMap: the chain rule∂(f ∘ A) x = A† (∂f (A x))for a convexf, iffis continuous at a point ofdom fin the range ofA.ConvexAnalysis.subdifferential_comp_continuousLinearMap_of_surjective: the chain rule for a surjectiveA, for everyf, with no qualification; it has its own proof, by the open mapping theorem and Riesz instead of separation. Corollaries for affine maps and isometries.ConvexAnalysis.normalCone_preimage_singleton: the normal cone of{y | A y = b}is(ker A)ᗮ, and the range ofA†in finite dimension (ConvexAnalysis.normalCone_preimage_singleton_eq_range).ConvexAnalysis.subdifferential_add: the Moreau–Rockafellar sum rule∂(f + g) x = ∂f x + ∂g xfor convexf,g : H → ERealon a Hilbert space, iffis continuous at a point ofdom f ∩ dom g. Variants:ConvexAnalysis.subdifferential_add_of_continuousAt_right(gcontinuous),ConvexAnalysis.subdifferential_add_of_eventually_le(fbounded above near a point ofdom g, which for convexfis the same condition), andConvexAnalysis.subdifferential_add_of_mem_interior(finite dimension, a point ofinterior (dom f) ∩ dom g).ConvexAnalysis.subdifferential_add_convexIndicator:∂(f + ι_C) x = ∂f x + N_C x.ConvexAnalysis.isMinOn_iff_exists_mem_subdifferential_neg_mem_normalCone: for a proper convexfthat is continuous at a point ofdom f ∩ C, a pointx ∈ CminimizesfonCiff0 ∈ ∂f x + N_C x(compare R, Theorem 27.4).ConvexAnalysis.subdifferential_coe_add_convexIndicatorandConvexAnalysis.isMinOn_iff_exists_mem_subdifferential_coe_neg_mem_normalCone: the same for a continuous convexf : H → ℝ.
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 #
- H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, 2nd ed., Springer, 2017, Theorem 16.47, Corollaries 16.48 and 16.53.
- I. Ekeland, R. Temam, Convex Analysis and Variational Problems, North-Holland, 1976, Chapter I.
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, Theorems 23.8, 23.9 and 27.4.
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.
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.
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.
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.
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.
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 = ∅.
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.
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).
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) ≠ ∅.
The sum rule with the continuity condition on the second function.
The sum rule in finite dimension: it suffices that some point of dom g is an interior point
of dom f.
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.
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.
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.
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.
The optimality condition in finite dimension, where convexity implies continuity.