The max rule #
The subdifferential of the maximum F = ⨆ i, f i of finitely many convex functions
f i : H → EReal on a real Hilbert space, at a point x where all f i are upper
semicontinuous, is the convex hull of the subdifferentials of the active functions: the
Dubovitskii–Milyutin theorem BC, Theorem 18.5, which assumes continuity at x.
Main statements #
ConvexAnalysis.subdifferential_iSup_eq_convexHull: the max rule. For finitely many convexf i : H → ERealon a real Hilbert space that are upper semicontinuous (for example continuous) atx, the subdifferential ofF = ⨆ i, f iatxis the convex hull of the subdifferentials of the active functions, those withf i x = F x. The convex hull is closed, so it is also the closed convex hull.ConvexAnalysis.subdifferential_iSup_of_finiteDimensional: the same in finite dimension, andConvexAnalysis.subdifferential_iSup_of_mem_interiorat a common interior point of the domains.ConvexAnalysis.subdifferential_coe_iSup_eq_convexHull: the same for continuous convexg i : H → ℝ.ConvexAnalysis.HasSubgradientAt.iSupandConvexAnalysis.closedConvexHull_subset_subdifferential_iSup: the easy inclusion, for any family.ConvexAnalysis.isCompact_convexHull: in finite dimension the convex hull of a compact set is compact (Carathéodory; R, Theorem 17.2), used inConvexAnalysis.ClarkeGradientLimits. Mathlib has this for finite sets only.ConvexAnalysis.isCompact_convexHull_iUnion: in a real topological vector space the convex hull of finitely many compact convex sets is compact;ConvexAnalysis.isCompact_convexJoin.ConvexAnalysis.isClosed_convexHull_iUnion: in a Hilbert space the convex hull of finitely many bounded closed convex sets is closed.
Implementation notes #
For the inclusion ⊆, let u ∈ ∂F x lie outside the closed convex hull K (that the convex hull
is closed is shown afterwards). A separating vector d gives ⟪d, v⟫ < σ < ⟪d, u⟫ for v ∈ K. For
an active f i, the max formula (ConvexAnalysis.ConvexFun.exists_mem_subdifferential_le_inner)
gives a t₀ > 0 with f i (x + t₀ • d) < F x + t₀ σ, and convexity on the segment
(ConvexAnalysis.ConvexFun.apply_add_smul_lt_of_lt) gives f i (x + t • d) < F x + t σ for
0 < t ≤ t₀. An inactive f i satisfies the same inequality for small t by upper semicontinuity.
So F (x + t • d) < F x + t σ < F x + t ⟪d, u⟫ for small t > 0, against the subgradient
inequality of u.
The convex hull is closed in every Hilbert space. Each ∂f i x is bounded, closed and convex, hence
weakly compact: closed balls are weakly compact by the Banach–Alaoglu theorem in the dual,
transported by the Riesz isometry (ConvexAnalysis.isCompact_image_toWeakSpace_closedBall), and
closed convex sets are weakly closed. The convex hull of finitely many compact convex sets in the
topological vector space WeakSpace ℝ H is compact (ConvexAnalysis.isCompact_convexHull_iUnion,
by induction with convex joins), so it is weakly closed (the weak topology is Hausdorff), hence
closed.
Upper semicontinuity is needed for inactive and for active functions. On ℝ, f₁ = 0 and
f₂ = ι_{(-∞, 0]} - 1 (inactive at 0, not upper semicontinuous there) give
∂(max f₁ f₂) 0 = [0, ∞), but the hull is {0}. In ℝ², the indicators of two closed unit discs
that touch at 0 (both active) give ∂(max) 0 = ℝ², but the hull is a line.
References #
- H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, 2nd ed., Springer, 2017, Theorem 17.18 (the max formula) and Theorem 18.5 (the max rule, of Dubovitskii and Milyutin).
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, Theorems 17.1 (Carathéodory's theorem) and 17.2, and Theorem 23.4 (the max formula). Section 23 has no rule for the subdifferential of a maximum.
Tags #
max rule, Dubovitskii–Milyutin theorem, subdifferential of a maximum, active functions, convex hull, weak compactness
In finite dimension the convex hull of a compact set is compact R, Theorem 17.2 (there in
ℝⁿ, here in any finite-dimensional real topological vector space). By Carathéodory's theorem
R, Theorem 17.1 it is the image of the compact set Δ × sⁿ⁺¹, with n = finrank ℝ E and
Δ the standard simplex in ℝⁿ⁺¹, under (w, z) ↦ ∑ j, w j • z j. Mathlib has the case of a
finite set, Set.Finite.isCompact_convexHull; a candidate for Mathlib.
The convex join of two compact sets is compact: it is the image of [0, 1] × s × t under
(θ, a, b) ↦ (1 - θ) • a + θ • b.
The convex hull of the union of finitely many compact convex sets is compact, in any real
topological vector space. By induction on the number of sets: the convex hull of s ∪ t is the
convex join of the convex hulls (convexHull_union), and isCompact_convexJoin.
A subgradient of an active function f i, one with f i x = ⨆ j, f j x, is a subgradient of
the supremum.
The easy inclusion of the max rule, for any family: the closed convex hull of the subgradients of the active functions consists of subgradients of the supremum.
In a Hilbert space, the convex hull of the union of finitely many bounded closed convex sets
is closed. The sets are weakly compact (Convex.isCompact_image_toWeakSpace), so the convex hull
of their union is weakly compact (isCompact_convexHull_iUnion in WeakSpace ℝ H), hence weakly
closed, hence closed.
Max rule in a Hilbert space (the Dubovitskii–Milyutin theorem BC, Theorem 18.5,
there for functions continuous at x): for finitely many convex f i : H → EReal that are upper
semicontinuous at x (for example continuous there), the subdifferential of ⨆ i, f i at x is
the convex hull of the subdifferentials of the active functions, those with
f i x = ⨆ j, f j x. No properness is assumed. Separation gives the closed convex hull; each
∂f i x is bounded, closed and convex, so the convex hull of their union is already closed
(isClosed_convexHull_iUnion).
The max rule without closure for continuous convex g i : H → ℝ, for example a maximum of
affine functions: the subdifferential is the convex hull of the subdifferentials of the active
functions.
Max rule in finite dimension: the subdifferential of ⨆ i, f i at x is the convex hull
of the subdifferentials of the active functions. A finite-dimensional space is complete, so this is
subdifferential_iSup_eq_convexHull.
The max rule in finite dimension at a common interior point of the domains.