Documentation

ConvexAnalysis.FiniteSum

The sum rule for finitely many functions #

The subdifferential of a finite sum of convex functions f i : H → EReal on a real Hilbert space is the sum of the subdifferentials, if all but one of the functions are continuous at a common point of the domains BC, Corollary 16.50; in finite dimension an interior point suffices.

Main statements #

Implementation notes #

BC, Corollary 16.50 states the rule for lower semicontinuous proper convex functions under conditions on the strong relative interiors of the domains; here the functions need not be lower semicontinuous, and the qualification is continuity. The proof is by induction on s, with the sum rule for two functions in each step. The exceptional index i₀ may lie outside s; then all summands are continuous at x₀. In KKT theory the exceptional summand is the indicator of the affine constraints {x | A x = b}, which is continuous at none of its points unless A = 0, and the others are the objective and the indicators of the inequality constraints, continuous at a Slater point; this is the form of ConvexAnalysis.subdifferential_add_sum.

No properness is assumed. If some f i takes the value ⊥, both sides of the rule are empty. Otherwise the partial sums are convex (ConvexAnalysis.ConvexFun.sum, see DESIGN.md, section 3).

References #

Tags #

subdifferential, sum rule, Moreau–Rockafellar theorem, convex function, constraint qualification

theorem ConvexAnalysis.sum_lt_top {ι : Type u_2} {s : Finset ι} {a : ι → EReal} (h : ∀ i ∈ s, a i < ⊤) :
∑ i ∈ s, a i < ⊤

A finite sum of values below ⊤ is below ⊤; no value needs to be above ⊥.

theorem ConvexAnalysis.bot_lt_sum_apply {α : Type u_1} {ι : Type u_2} {s : Finset ι} {f : ι → α → EReal} {x : α} (hbot : ∀ i ∈ s, ⊥ < f i x) :
⊥ < (∑ i ∈ s, f i) x

A finite sum of functions is greater than ⊥ at a point where every summand is.

theorem ConvexAnalysis.iInter_effectiveDomain_subset_effectiveDomain_sum {α : Type u_1} {ι : Type u_2} {s : Finset ι} {f : ι → α → EReal} :
⋂ i ∈ s, effectiveDomain (f i) ⊆ effectiveDomain (∑ i ∈ s, f i)

The effective domain of a finite sum contains the intersection of the effective domains.

theorem ConvexAnalysis.effectiveDomain_sum {α : Type u_1} {ι : Type u_2} {s : Finset ι} {f : ι → α → EReal} (hbot : ∀ i ∈ s, ∀ (x : α), ⊥ < f i x) :
effectiveDomain (∑ i ∈ s, f i) = ⋂ i ∈ s, effectiveDomain (f i)

The effective domain of a finite sum of functions that never take the value ⊥ is the intersection of the effective domains.

theorem ConvexAnalysis.continuousAt_sum {α : Type u_1} {ι : Type u_2} {s : Finset ι} {f : ι → α → EReal} [TopologicalSpace α] {x : α} (hc : ∀ i ∈ s, ContinuousAt (f i) x) (htop : ∀ i ∈ s, f i x < ⊤) :
ContinuousAt (∑ i ∈ s, f i) x

A finite sum of EReal valued functions is continuous at a point where every summand is continuous and less than ⊤. Addition on EReal is continuous away from (⊥, ⊤) and (⊤, ⊥).

theorem ConvexAnalysis.HasSubgradientAt.sum {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {s : Finset ι} {f : ι → H → EReal} {u : ι → H} {x : H} (h : ∀ i ∈ s, HasSubgradientAt (f i) (u i) x) :
HasSubgradientAt (∑ i ∈ s, f i) (∑ i ∈ s, u i) x

A sum of subgradients is a subgradient of the sum.

theorem ConvexAnalysis.subset_subdifferential_sum {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} (s : Finset ι) (f : ι → H → EReal) (x : H) :
∑ i ∈ s, subdifferential (f i) x ⊆ subdifferential (∑ i ∈ s, f i) x

The easy inclusion of the sum rule, for any f i: ∑ ∂(f i) x ⊆ ∂(∑ f i) x.

theorem ConvexAnalysis.subdifferential_sum {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {s : Finset ι} {f : ι → H → EReal} [CompleteSpace H] (hf : ∀ i ∈ s, ConvexFun (f i)) {x₀ : H} (hx₀ : ∀ i ∈ s, x₀ ∈ effectiveDomain (f i)) (i₀ : ι) (hc : ∀ i ∈ s, i ≠ i₀ → ContinuousAt (f i) x₀) (x : H) :
subdifferential (∑ i ∈ s, f i) x = ∑ i ∈ s, subdifferential (f i) x

Sum rule for finitely many functions: for convex f i : H → EReal, if all f i with i ≠ i₀ are continuous at a point x₀ of all the domains, then ∂(∑ i ∈ s, f i) x = ∑ i ∈ s, ∂(f i) x at every x. No properness is assumed. This is the classical continuity form ET, Chapter I; R, Theorem 23.8 has it on ℝⁿ under the relative interior condition ⋂ i, ri (dom (f i)) ≠ ∅, which there follows from the condition here, with a refinement for polyhedral functions.

theorem ConvexAnalysis.subdifferential_sum_of_continuousAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {s : Finset ι} {f : ι → H → EReal} [CompleteSpace H] (hf : ∀ i ∈ s, ConvexFun (f i)) {x₀ : H} (hx₀ : ∀ i ∈ s, x₀ ∈ effectiveDomain (f i)) (hc : ∀ i ∈ s, ContinuousAt (f i) x₀) (x : H) :
subdifferential (∑ i ∈ s, f i) x = ∑ i ∈ s, subdifferential (f i) x

The sum rule when every f i is continuous at a common point x₀ of the domains.

theorem ConvexAnalysis.subdifferential_add_sum {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {s : Finset ι} {f : ι → H → EReal} [CompleteSpace H] {g : H → EReal} (hg : ConvexFun g) (hf : ∀ i ∈ s, ConvexFun (f i)) {x₀ : H} (hx₀g : x₀ ∈ effectiveDomain g) (hx₀ : ∀ i ∈ s, x₀ ∈ effectiveDomain (f i)) (hc : ∀ i ∈ s, ContinuousAt (f i) x₀) (x : H) :
subdifferential (g + ∑ i ∈ s, f i) x = subdifferential g x + ∑ i ∈ s, subdifferential (f i) x

The sum rule in the form used for KKT conditions: ∂(g + ∑ f i) x = ∂g x + ∑ ∂(f i) x for convex g and f i, if every f i is continuous at a point x₀ of all the domains; g needs no continuity.

theorem ConvexAnalysis.subdifferential_sum_of_mem_interior {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Type u_2} {s : Finset ι} {f : ι → H → EReal} [FiniteDimensional ℝ H] (hf : ∀ i ∈ s, ConvexFun (f i)) {x₀ : H} (hx₀ : ∀ i ∈ s, x₀ ∈ effectiveDomain (f i)) (i₀ : ι) (hint : ∀ i ∈ s, i ≠ i₀ → x₀ ∈ interior (effectiveDomain (f i))) (x : H) :
subdifferential (∑ i ∈ s, f i) x = ∑ i ∈ s, subdifferential (f i) x

Sum rule for finitely many functions in finite dimension: it suffices that x₀ lies in the domain of every f i and in the interior of the domain of every f i with i ≠ i₀.