Clarke's generalized gradient in normed spaces #
For f : E → ℝ on a real normed space E, Clarke's generalized gradient ∂_C f x is the set of
continuous linear functionals ξ ∈ E* with ξ v ≤ f°(x; v) in every direction v
Clarke, Chapter 2, Clarke1980, Section 2. For f Lipschitz with constant
K near x, the function f°(x; ·) is sublinear and bounded by K ‖·‖, and the Hahn–Banach
theorem gives the main properties: ∂_C f x is nonempty, convex, weak-* closed and contained in the
closed ball of radius K, hence weak-* compact (Banach–Alaoglu), and f°(x; v) is the largest
value of ξ v over ξ ∈ ∂_C f x (the max formula). This file is the single source of the
calculus of the generalized gradient: in a real inner product space, ∂_C f x corresponds to
clarkeSubdifferential f x under the Riesz map, and Clarke.lean derives the Hilbert-space
results from the ones here.
Main definitions #
ConvexAnalysis.clarkeSubdifferentialDual f x: Clarke's generalized gradient∂_C f x, a set of continuous linear functionals.
Main statements #
ConvexAnalysis.exists_continuous_extension_of_le_sublinear,ConvexAnalysis.exists_continuous_le_sublinear_eq,ConvexAnalysis.exists_continuous_le_sublinear_comp_eq,ConvexAnalysis.exists_continuous_le_sublinear_add: the Hahn–Banach theorem for a sublinearpwithp v ≤ C ‖v‖, with continuous extensions, and its consequences:pis the maximum of the continuous linear functionals below it, and the rules forp ∘ Aandp + q.ConvexAnalysis.convex_clarkeSubdifferentialDual,ConvexAnalysis.isClosed_toStrongDual_preimage_clarkeSubdifferentialDual,ConvexAnalysis.norm_le_of_mem_clarkeSubdifferentialDual,ConvexAnalysis.isCompact_toStrongDual_preimage_clarkeSubdifferentialDual:∂_C f xis convex, weak-* closed, bounded by the Lipschitz constant and weak-* compact.ConvexAnalysis.exists_mem_clarkeSubdifferentialDual_eq,ConvexAnalysis.isGreatest_image_clarkeSubdifferentialDual,ConvexAnalysis.clarkeDeriv_eq_iSup_clarkeSubdifferentialDual: the max formulaf°(x; v) = max {ξ v | ξ ∈ ∂_C f x};ConvexAnalysis.nonempty_clarkeSubdifferentialDual.ConvexAnalysis.zero_mem_clarkeSubdifferentialDual_of_isLocalMin,ConvexAnalysis.zero_mem_clarkeSubdifferentialDual_of_isLocalMax: Fermat's rule.ConvexAnalysis.clarkeSubdifferentialDual_neg,ConvexAnalysis.clarkeSubdifferentialDual_const_smul:∂_C (-f) x = -∂_C f xand∂_C (c f) x = c ∂_C f x.ConvexAnalysis.mem_clarkeSubdifferentialDual_of_hasFDerivAt,ConvexAnalysis.clarkeSubdifferentialDual_eq_singleton_of_hasStrictFDerivAt,ConvexAnalysis.clarkeSubdifferentialDual_eq_singleton_of_contDiffAt: a Fréchet derivative lies in∂_C f x, and∂_C f x = {f'}for a strict derivativef'.ConvexAnalysis.setOf_forall_add_le_subset_clarkeSubdifferentialDual,ConvexAnalysis.clarkeSubdifferentialDual_eq_of_convexOn: subgradients of convex analysis lie in∂_C f x, and for a convexfcontinuous atxthey are all of∂_C f x.ConvexAnalysis.ClarkeRegularAt.mem_clarkeSubdifferentialDual_iff: for regularf, the generalized gradient in terms of one-sided directional derivatives.ConvexAnalysis.clarkeSubdifferentialDual_add_subset,ConvexAnalysis.clarkeSubdifferentialDual_add_eq_of_clarkeRegularAt: the sum rule∂_C (f + g) x ⊆ ∂_C f x + ∂_C g x, with equality for regularfandg;ConvexAnalysis.clarkeSubdifferentialDual_add_eq_of_hasStrictFDerivAt: equality ifgis strictly differentiable;ConvexAnalysis.clarkeSubdifferentialDual_sum_subset,ConvexAnalysis.clarkeSubdifferentialDual_sum_eq_of_clarkeRegularAt: finite sums.ConvexAnalysis.clarkeSubdifferentialDual_subset_clarkeSubdifferentialDual_iSup,ConvexAnalysis.convexHull_subset_clarkeSubdifferentialDual_iSup: one inclusion of the max rule for regular functions,convexHull (⋃ active i, ∂_C (F i) x) ⊆ ∂_C (⨆ i, F i) x.ConvexAnalysis.clarkeSubdifferentialDual_comp_subset_of_hasStrictFDerivAt: the chain rule∂_C (f ∘ G) x ⊆ ∂_C f (G x) ∘ G', and the linear caseConvexAnalysis.clarkeSubdifferentialDual_comp_continuousLinearMap_subset; equality for regularf(ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_clarkeRegularAt), for regular-f(ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_clarkeRegularAt_neg), for convexf(ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_convexOn) and for surjectiveG'between Banach spaces (ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_surjective).ConvexAnalysis.exists_mem_clarkeSubdifferentialDual_sub_eq: Lebourg's mean value theorem.ConvexAnalysis.mem_clarkeSubdifferentialDual_of_tendsto,ConvexAnalysis.isClosed_graph_clarkeSubdifferentialDual: the graph of∂_C fis closed for the norm topology onEand the weak-* topology onE*.
Implementation notes #
Unlike most of the library, which works in real inner product spaces and represents subgradients
as vectors, this file works in a real normed space, and the elements of ∂_C f x are continuous
linear functionals; the bridge lemmas in Clarke.lean
(ConvexAnalysis.clarkeSubdifferential_eq_preimage_toDualMap,
ConvexAnalysis.clarkeSubdifferential_eq_image_toDual_symm) relate the two. The max rule
∂_C (⨆ i, F i) x ⊆ convexHull (⋃ active i, ∂_C (F i) x) is proved only in Hilbert space so far,
through the max rule of convex analysis (MaxRule.lean).
The Hahn–Banach lemmas are named after Mathlib's exists_extension_of_le_sublinear; continuous
marks that they produce continuous linear functionals, which needs the bound p v ≤ C ‖v‖, as in
Mathlib's Module.Dual.exists_continuous_extension_of_le_seminorm_real. That lemma needs a
seminorm, which f°(x; ·) is not: it is sublinear but not symmetric.
The weak-* topology is the topology of WeakDual ℝ E, a type synonym of StrongDual ℝ E; weak-*
closedness and compactness are stated for the preimage under WeakDual.toStrongDual, as in
Mathlib's WeakDual.isCompact_closedBall.
The sum rule and the chain rule follow from one Hahn–Banach argument
(ConvexAnalysis.exists_continuous_le_sublinear_comp_eq): a linear functional ζ ≤ p ∘ A vanishes
on the kernel of A, so it defines a linear functional on the range of A below p, which extends
to E*. The sum rule is the case of the diagonal map v ↦ (v, v) into E × E and of
p (v, w) = f°(x; v) + g°(x; w). No weak-* compactness or separation in WeakDual is needed.
References #
- F. H. Clarke, Optimization and Nonsmooth Analysis, Wiley, 1983, Chapter 2.
- F. H. Clarke, Nonsmooth analysis and optimization, Proceedings of the International Congress of Mathematicians (Helsinki, 1978), Acad. Sci. Fennica, 1980, 847–853, Section 2.
- G. Lebourg, Valeur moyenne pour gradient généralisé, C. R. Acad. Sci. Paris Sér. A 281 (1975), 795–797.
Tags #
Clarke generalized gradient, nonsmooth analysis, Hahn–Banach theorem, Banach–Alaoglu theorem, sum rule, chain rule
Hahn–Banach for sublinear functions bounded by a multiple of the norm #
Hahn–Banach theorem for a sublinear p with p v ≤ C ‖v‖: a linear functional on a
subspace that lies below p extends to a continuous linear functional below p.
For a sublinear p with p v ≤ C ‖v‖, some continuous linear functional below p attains
p at a given v: p is the maximum of the continuous linear functionals below it.
Hahn–Banach theorem for a composition: if a linear functional ζ lies below p ∘ A for a
linear map A : E → F and a sublinear p with p w ≤ C ‖w‖, then ζ = η ∘ A for a continuous
linear functional η below p.
Hahn–Banach theorem for a sum: if a linear functional ζ lies below p + q for
sublinear p and q with p v ≤ C ‖v‖ and q v ≤ D ‖v‖, then ζ = ξ + η for continuous
linear functionals ξ ≤ p and η ≤ q.
Clarke's generalized gradient in the dual space #
Clarke's generalized gradient ∂_C f x of f : E → ℝ on a real normed space: the
continuous linear functionals ξ with ξ v ≤ f°(x; v) in every direction v
Clarke, Chapter 2, Clarke1980, Section 2 (there for locally Lipschitz f
on a Banach space; here E need not be complete). In a real inner product space it corresponds to
clarkeSubdifferential f x under the Riesz map (clarkeSubdifferential_eq_preimage_toDualMap). As
for clarkeSubdifferential, the set is Clarke's generalized gradient only for f Lipschitz near
x.
Equations
- ConvexAnalysis.clarkeSubdifferentialDual f x = {ξ : StrongDual ℝ E | ∀ (v : E), ↑(ξ v) ≤ ConvexAnalysis.clarkeDeriv f x v}
Instances For
Membership in ∂_C f x, unfolded.
For f Lipschitz near x, membership in ∂_C f x with the real values of f°(x; ·).
Clarke's generalized gradient of a constant function is {0}.
∂_C f x is convex, for every f.
∂_C f x is closed in the norm topology, for every f.
∂_C f x is weak- closed*, for every f.
The elements of ∂_C f x have norm at most the Lipschitz constant of f near x.
For f Lipschitz with constant K near x, ∂_C f x lies in the closed ball of radius
K.
For f Lipschitz near x, ∂_C f x is bounded.
For f Lipschitz near x, ∂_C f x is weak- compact* Clarke, Chapter 2: it is
weak-* closed and lies in a closed ball, which is weak-* compact by the Banach–Alaoglu theorem.
Max formula for Clarke's generalized gradient Clarke, Chapter 2: for f Lipschitz
near x, some ξ ∈ ∂_C f x has ξ v = f°(x; v). The proof is the Hahn–Banach theorem for the
sublinear function f°(x; ·).
Max formula: for f Lipschitz near x, f°(x; v) is the largest value of ξ v over
ξ ∈ ∂_C f x Clarke, Chapter 2.
f°(x; ·) is the support function of ∂_C f x, for f Lipschitz near x
Clarke, Chapter 2.
For f Lipschitz near x, Clarke's generalized gradient is nonempty
Clarke, Chapter 2.
Fermat's rule: 0 ∈ ∂_C f x at a local minimum.
∂_C (-f) x = -∂_C f x. No hypothesis on f is needed.
Fermat's rule: 0 ∈ ∂_C f x at a local maximum.
∂_C (c f) x = c ∂_C f x for c > 0. No hypothesis on f is needed.
∂_C (c f) x = c ∂_C f x for every real c, for f Lipschitz near x.
A Fréchet derivative lies in ∂_C f x Clarke, Chapter 2; no Lipschitz hypothesis is
needed.
∂_C (f + g) x = ∂_C f x + {g'} for g strictly differentiable at x; nothing is assumed
on f.
For a strictly differentiable f, Clarke's generalized gradient is the derivative:
∂_C f x = {f'} Clarke, Chapter 2.
For f continuously differentiable near x, Clarke's generalized gradient is
{fderiv ℝ f x}.
Every subgradient of convex analysis, a ξ with f x + ξ (y - x) ≤ f y for all y, lies in
Clarke's generalized gradient; no convexity is needed.
For a convex f : E → ℝ continuous at x, Clarke's generalized gradient is the
subdifferential of convex analysis, the ξ with f x + ξ (y - x) ≤ f y for all y
Clarke, Chapter 2.
Sum rule for Clarke's generalized gradient Clarke, Chapter 2:
∂_C (f + g) x ⊆ ∂_C f x + ∂_C g x for f and g Lipschitz near x. The proof is the
Hahn–Banach theorem for f°(x; ·) + g°(x; ·) (exists_continuous_le_sublinear_add).
For regular f and g Lipschitz near x, ∂_C f x + ∂_C g x ⊆ ∂_C (f + g) x.
Sum rule with equality for regular functions Clarke, Chapter 2:
∂_C (f + g) x = ∂_C f x + ∂_C g x for f and g regular and Lipschitz near x.
For a regular f Lipschitz near x, ξ ∈ ∂_C f x iff ξ v ≤ f'(x; v) for every v, where
f'(x; v) is the right derivative of t ↦ f (x + t • v) at 0 Clarke, Chapter 2.
Sum rule for finitely many functions Lipschitz near x:
∂_C (∑ i, F i) x ⊆ ∑ i, ∂_C (F i) x Clarke, Chapter 2.
For finitely many regular functions Lipschitz near x,
∑ i, ∂_C (F i) x ⊆ ∂_C (∑ i, F i) x.
Sum rule with equality for finitely many regular functions Lipschitz near x:
∂_C (∑ i, F i) x = ∑ i, ∂_C (F i) x Clarke, Chapter 2.
For finitely many F i continuous at x whose active members (those with
F i x = ⨆ j, F j x) are regular, the Clarke gradient of an active F i lies in that of
⨆ j, F j.
One half of the max rule with equality Clarke, Chapter 2: for finitely many F i
continuous at x whose active members are regular, the convex hull of the ∂_C (F i) x over the
active indices lies in ∂_C (⨆ i, F i) x. The other inclusion is proved in Hilbert space
(ConvexAnalysis.clarkeSubdifferential_iSup_subset).
Lebourg's mean value theorem (Lebourg; Clarke, Chapter 2): if f
is Lipschitz near every point of the segment [x, y], then f y - f x = ξ (y - x) for some
ξ ∈ ∂_C f z at a point z of the open segment.
Closed graph of ∂_C f, for every f, along weak-* convergent ξᵢ
Clarke, Chapter 2.
The graph of ∂_C f is closed in E × E*, with the norm topology on E and the weak-*
topology on E*, for every f Clarke, Chapter 2.
Chain rule #
Chain rule Clarke, Chapter 2: ∂_C (f ∘ G) x ⊆ {η ∘ G' | η ∈ ∂_C f (G x)} for G
strictly differentiable at x and f Lipschitz near G x.
Chain rule with a bounded linear inner map:
∂_C (f ∘ A) x ⊆ {η ∘ A | η ∈ ∂_C f (A x)} for f Lipschitz near A x
Clarke, Chapter 2.
If f°(G x; G' v) ≤ (f ∘ G)°(x; v) in every direction v, then
{η ∘ G' | η ∈ ∂_C f (G x)} ⊆ ∂_C (f ∘ G) x; with the chain rule this gives equality.
Chain rule with equality under regularity Clarke, Chapter 2:
∂_C (f ∘ G) x = {η ∘ G' | η ∈ ∂_C f (G x)} for G strictly differentiable at x and f
Lipschitz near G x and regular at G x.
Chain rule with equality if -f is regular at G x Clarke, Chapter 2:
∂_C (f ∘ G) x = {η ∘ G' | η ∈ ∂_C f (G x)} for G strictly differentiable at x and f
Lipschitz near G x.
Chain rule for a convex outer function Clarke, Chapter 2: for G strictly
differentiable at x and f convex and continuous at G x,
∂_C (f ∘ G) x = {η ∘ G' | η ∈ ∂ f (G x)}, with the subdifferential of convex analysis, the η
with f (G x) + η (y - G x) ≤ f y for all y, on the right.
Chain rule with equality for a surjective derivative between Banach spaces
Clarke, Chapter 2: ∂_C (f ∘ G) x = {η ∘ G' | η ∈ ∂_C f (G x)} for G strictly
differentiable at x with G' surjective and f Lipschitz near G x.