Subgradients and the subdifferential in a real inner product space #
Subgradients of an extended valued function f : H → EReal on a real inner product space, paired
by the inner product, the subdifferential ∂f x, and the normal cone N_C x = ∂ι_C x, with
Fermat's rule, scaling, and the monotonicity of ∂f.
Main definitions #
ConvexAnalysis.HasSubgradientAt f u x:f xis finite andf x + ⟪y - x, u⟫ ≤ f yfor everyy.ConvexAnalysis.subdifferential f x: the set of subgradients offatx,∂f(x)in the literature.ConvexAnalysis.normalCone C x: the normal cone ofCatx.
Main statements #
ConvexAnalysis.IsProper.zero_mem_subdifferential_iff: Fermat's rule,xminimizes a properfiff0 ∈ ∂f x;ConvexAnalysis.hasSubgradientAt_zero_iffis the version without hypotheses.ConvexAnalysis.HasSubgradientAt.isProper: a function with a subgradient somewhere is proper.ConvexAnalysis.convex_subdifferential,ConvexAnalysis.isClosed_subdifferential.ConvexAnalysis.inner_sub_sub_nonneg_of_mem_subdifferential:∂fis a monotone operator.ConvexAnalysis.subdifferential_const_mul: scaling,∂(c f) x = c • ∂f xforc > 0;ConvexAnalysis.subdifferential_add_const:∂(f + c) x = ∂f xfor a real constantc;ConvexAnalysis.subdifferential_add_inner: the tilt rule∂(f + ⟪a, ·⟫) x = ∂f x + a.ConvexAnalysis.subdifferential_convexIndicator:∂ι_C x = N_C x.ConvexAnalysis.isMinOn_of_mem_subdifferential_neg_mem_normalCone:0 ∈ ∂f x + N_C ximplies thatxminimizesfonC, for anyf;ConvexAnalysis.isMinOn_add_of_zero_mem_subdifferential_add:0 ∈ ∂f x + ∂g ximplies thatxminimizesf + g.
The existence of subgradients is in ConvexAnalysis.SubgradientExistence, the sum rule and the
optimality condition 0 ∈ ∂f x + N_C x in ConvexAnalysis.SumRule.
Implementation notes #
HasSubgradientAt is a structure that records that f x is finite, so ∂f x = ∅ whenever
f x = ±∞, as in BC, Proposition 16.4 for proper f. The open Mathlib PR #45868 does the
same for subgradients along a bilinear pairing: there the structure is HasSubgradientWithinAt and
HasSubgradientAt is its case s = univ. We pair with the inner product and have no Within
variant.
References #
- H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, 2nd ed., Springer, 2017, Chapters 6, 16 and 20.
Tags #
subgradient, subdifferential, Fermat's rule, normal cone, indicator function, monotone operator
u is a subgradient of f at x BC, Definition 16.1: the value f x is finite and the
affine function y ↦ f x + ⟪y - x, u⟫ lies below f.
The value at the base point is less than
⊤.The value at the base point is greater than
⊥.The affine minorant.
Instances For
u is a subgradient of f at x iff f x is finite and f x + ⟪y - x, u⟫ ≤ f y for every
y.
The subdifferential ∂f x: the set of subgradients of f at x.
Equations
- ConvexAnalysis.subdifferential f x = {u : H | ConvexAnalysis.HasSubgradientAt f u x}
Instances For
Membership in the subdifferential.
At a point with a subgradient, the value of f is a real number.
The subgradient inequality when f x is the real number r.
Subgradients of a real valued function.
A function with a subgradient somewhere is proper: the affine minorant keeps it above ⊥.
∂f x is empty where f x = ⊤.
∂f x is empty where f x = ⊥.
For a proper f, a subgradient is an affine minorant of f that touches f at x.
Zero is a subgradient at x iff f x is finite and x minimizes f.
Fermat's rule BC, Theorem 16.3: a point minimizes a proper function f iff 0 is a
subgradient of f there.
0 is a subgradient of a constant function.
The subdifferential of a constant function is {0}.
The subdifferential of the zero function is {0}.
Adding a real constant does not change the subgradients.
∂(f + c) x = ∂f x for a real constant c, for every f.
The tilt rule for one subgradient: u is a subgradient of f + ⟪a, ·⟫ at x iff u - a is
a subgradient of f at x, for every f.
The tilt rule ∂(f + ⟪a, ·⟫) x = ∂f x + a, for every f.
Translation: the subgradients of y ↦ f (y + b) at z are those of f at z + b.
Scaling: for c > 0, c • u is a subgradient of c * f at x iff u is a subgradient of
f at x.
For c ≥ 0, c • u is a subgradient of c * f if u is a subgradient of f. At c = 0
the multiple is the zero function, as 0 * ⊤ = 0 * ⊥ = 0 in EReal.
For c > 0, v is a subgradient of c * f iff c⁻¹ • v is a subgradient of f; the form
used for proximal points of c * f.
Scaling: ∂(c f) x = c • ∂f x for c > 0 BC, Proposition 16.6 (there for proper f).
The multiple is y ↦ (c : EReal) * f y, since EReal has no scalar multiplication by reals. The
equality fails at c = 0: for f ≡ ⊤ the multiple is 0, with ∂0 x = {0}, while
0 • ∂f x = ∅.
The inclusion c • ∂f x ⊆ ∂(c f) x holds for c ≥ 0, as needed for Lagrange multipliers
λᵢ ≥ 0.
The set of u with c + ⟪y - x, u⟫ ≤ b y for every y (c : ℝ, b : H → EReal) is convex:
it is an intersection of half-spaces. Subdifferentials and ε-subdifferentials are such sets.
The set of u with c + ⟪y - x, u⟫ ≤ b y for every y (c : ℝ, b : H → EReal) is closed:
it is an intersection of closed half-spaces.
Where f x = r, the subdifferential is the set of u with r + ⟪y - x, u⟫ ≤ f y for all
y.
The subdifferential is convex.
The subdifferential is closed.
The subdifferential is a monotone operator BC, Example 20.3:
⟪x - y, u - v⟫ ≥ 0 for u ∈ ∂f x and v ∈ ∂f y.
The sum of subgradients is a subgradient of the sum. The converse needs a constraint
qualification; see ConvexAnalysis.subdifferential_add.
The easy inclusion of the sum rule, for any f and g: ∂f x + ∂g x ⊆ ∂(f + g) x.
If 0 ∈ ∂f x + ∂g x, then x minimizes f + g, for any f and g (the easy inclusion
ConvexAnalysis.subset_subdifferential_add and Fermat's rule).
The normal cone of C at x: empty if x ∉ C, and otherwise the vectors u with
⟪y - x, u⟫ ≤ 0 for all y ∈ C BC, Definition 6.38 (there for convex C).
Instances For
Membership in the normal cone: x ∈ C and ⟪y - x, u⟫ ≤ 0 for all y ∈ C.
The normal cone at a point outside C is empty.
0 lies in the normal cone at every point of C.
The normal cone is closed under multiplication by c ≥ 0.
The normal cone is closed under addition.
The subdifferential of the indicator function is the normal cone BC, Example 16.13.
Sufficiency of the optimality condition: if u ∈ ∂f x and -u ∈ N_C x, then x
minimizes f on C. No convexity or continuity is needed.
The normal cone is convex.
The normal cone is closed.