Documentation

ConvexAnalysis.MaxRule

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 #

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 #

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.

theorem ConvexAnalysis.isCompact_convexHull_iUnion {E : Type u_1} [AddCommGroup E] [Module ℝ E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul ℝ E] {ι : Type u_2} [Finite ι] {K : ι → Set E} (hK : ∀ (i : ι), IsCompact (K i)) (hKc : ∀ (i : ι), Convex ℝ (K i)) :
IsCompact ((convexHull ℝ) (⋃ (i : ι), K i))

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.

theorem ConvexAnalysis.HasSubgradientAt.iSup {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {f : ι → H → EReal} {u x : H} {i : ι} (h : HasSubgradientAt (f i) u x) (hi : f i x = ⨆ (j : ι), f j x) :
HasSubgradientAt (fun (y : H) => ⨆ (j : ι), f j y) u x

A subgradient of an active function f i, one with f i x = ⨆ j, f j x, is a subgradient of the supremum.

theorem ConvexAnalysis.closedConvexHull_subset_subdifferential_iSup {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} (f : ι → H → EReal) (x : H) :
(closedConvexHull ℝ) (⋃ (i : ι), ⋃ (_ : f i x = ⨆ (j : ι), f j x), subdifferential (f i) x) ⊆ subdifferential (fun (y : H) => ⨆ (i : ι), f i y) x

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.

theorem ConvexAnalysis.isClosed_convexHull_iUnion {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} [CompleteSpace H] [Finite ι] {K : ι → Set H} (hK : ∀ (i : ι), Convex ℝ (K i)) (hKc : ∀ (i : ι), IsClosed (K i)) (hKb : ∀ (i : ι), Bornology.IsBounded (K i)) :
IsClosed ((convexHull ℝ) (⋃ (i : ι), K i))

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.

theorem ConvexAnalysis.subdifferential_iSup_eq_convexHull {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {f : ι → H → EReal} {x : H} [CompleteSpace H] [Finite ι] (hf : ∀ (i : ι), ConvexFun (f i)) (hc : ∀ (i : ι), UpperSemicontinuousAt (f i) x) :
subdifferential (fun (y : H) => ⨆ (i : ι), f i y) x = (convexHull ℝ) (⋃ (i : ι), ⋃ (_ : f i x = ⨆ (j : ι), f j x), subdifferential (f i) x)

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).

theorem ConvexAnalysis.subdifferential_coe_iSup_eq_convexHull {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} [CompleteSpace H] [Finite ι] [Nonempty ι] {g : ι → H → ℝ} (hg : ∀ (i : ι), ConvexOn ℝ Set.univ (g i)) (hgc : ∀ (i : ι), Continuous (g i)) (x : H) :
subdifferential (fun (y : H) => ↑(⨆ (i : ι), g i y)) x = (convexHull ℝ) (⋃ (i : ι), ⋃ (_ : g i x = ⨆ (j : ι), g j x), subdifferential (fun (y : H) => ↑(g i y)) x)

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.

theorem ConvexAnalysis.subdifferential_iSup_of_finiteDimensional {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {f : ι → H → EReal} {x : H} [FiniteDimensional ℝ H] [Finite ι] (hf : ∀ (i : ι), ConvexFun (f i)) (hc : ∀ (i : ι), UpperSemicontinuousAt (f i) x) :
subdifferential (fun (y : H) => ⨆ (i : ι), f i y) x = (convexHull ℝ) (⋃ (i : ι), ⋃ (_ : f i x = ⨆ (j : ι), f j x), subdifferential (f i) x)

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.

theorem ConvexAnalysis.subdifferential_iSup_of_mem_interior {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {f : ι → H → EReal} {x : H} [FiniteDimensional ℝ H] [Finite ι] (hf : ∀ (i : ι), ConvexFun (f i)) (hx : ∀ (i : ι), x ∈ interior (effectiveDomain (f i))) :
subdifferential (fun (y : H) => ⨆ (i : ι), f i y) x = (convexHull ℝ) (⋃ (i : ι), ⋃ (_ : f i x = ⨆ (j : ι), f j x), subdifferential (f i) x)

The max rule in finite dimension at a common interior point of the domains.