Documentation

ConvexAnalysis.ClarkeBanach

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 #

Main statements #

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 #

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 #

theorem ConvexAnalysis.exists_continuous_extension_of_le_sublinear {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (ℓ : E →ₗ.[ℝ] ℝ) {p : E → ℝ} {C : ℝ} (hp_hom : ∀ (c : ℝ), 0 < c → ∀ (v : E), p (c • v) = c * p v) (hp_add : ∀ (v w : E), p (v + w) ≤ p v + p w) (hp_le : ∀ (v : E), p v ≤ C * ‖v‖) (hℓ : ∀ (v : ↥ℓ.domain), ↑ℓ v ≤ p ↑v) :
∃ (ξ : StrongDual ℝ E), (∀ (v : ↥ℓ.domain), ξ ↑v = ↑ℓ v) ∧ ∀ (v : E), ξ v ≤ p v

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.

theorem ConvexAnalysis.exists_continuous_le_sublinear_eq {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {p : E → ℝ} {C : ℝ} (hp_hom : ∀ (c : ℝ), 0 < c → ∀ (v : E), p (c • v) = c * p v) (hp_add : ∀ (v w : E), p (v + w) ≤ p v + p w) (hp_le : ∀ (v : E), p v ≤ C * ‖v‖) (v : E) :
∃ (ξ : StrongDual ℝ E), (∀ (w : E), ξ w ≤ p w) ∧ ξ v = p v

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.

theorem ConvexAnalysis.exists_continuous_le_sublinear_comp_eq {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {p : F → ℝ} {C : ℝ} (hp_hom : ∀ (c : ℝ), 0 < c → ∀ (w : F), p (c • w) = c * p w) (hp_add : ∀ (v w : F), p (v + w) ≤ p v + p w) (hp_le : ∀ (w : F), p w ≤ C * ‖w‖) (A : E →ₗ[ℝ] F) (ζ : E →ₗ[ℝ] ℝ) (hζ : ∀ (v : E), ζ v ≤ p (A v)) :
∃ (η : StrongDual ℝ F), (∀ (w : F), η w ≤ p w) ∧ ∀ (v : E), η (A v) = ζ v

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.

theorem ConvexAnalysis.exists_continuous_le_sublinear_add {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {p q : E → ℝ} {C D : ℝ} (hp_hom : ∀ (c : ℝ), 0 < c → ∀ (v : E), p (c • v) = c * p v) (hp_add : ∀ (v w : E), p (v + w) ≤ p v + p w) (hp_le : ∀ (v : E), p v ≤ C * ‖v‖) (hq_hom : ∀ (c : ℝ), 0 < c → ∀ (v : E), q (c • v) = c * q v) (hq_add : ∀ (v w : E), q (v + w) ≤ q v + q w) (hq_le : ∀ (v : E), q v ≤ D * ‖v‖) (ζ : E →ₗ[ℝ] ℝ) (hζ : ∀ (v : E), ζ v ≤ p v + q v) :
∃ (ξ : StrongDual ℝ E) (η : StrongDual ℝ E), (∀ (v : E), ξ v ≤ p v) ∧ (∀ (v : E), η v ≤ q v) ∧ ∀ (v : E), ξ v + η v = ζ v

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
Instances For
    @[simp]
    theorem ConvexAnalysis.mem_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {ξ : StrongDual ℝ E} :
    ξ ∈ clarkeSubdifferentialDual f x ↔ ∀ (v : E), ↑(ξ v) ≤ clarkeDeriv f x v

    Membership in ∂_C f x, unfolded.

    theorem ConvexAnalysis.mem_clarkeSubdifferentialDual_iff {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {ξ : StrongDual ℝ E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) :
    ξ ∈ clarkeSubdifferentialDual f x ↔ ∀ (v : E), ξ v ≤ (clarkeDeriv f x v).toReal

    For f Lipschitz near x, membership in ∂_C f x with the real values of f°(x; ·).

    @[simp]

    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.

    theorem ConvexAnalysis.norm_le_of_mem_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {ξ : StrongDual ℝ E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (hξ : ξ ∈ clarkeSubdifferentialDual f x) :
    ‖ξ‖ ≤ ↑K

    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.

    theorem ConvexAnalysis.exists_mem_clarkeSubdifferentialDual_eq {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (v : E) :
    ∃ ξ ∈ clarkeSubdifferentialDual f x, ↑(ξ v) = clarkeDeriv f x v

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

    theorem ConvexAnalysis.isGreatest_image_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (v : E) :

    Max formula: for f Lipschitz near x, f°(x; v) is the largest value of ξ v over ξ ∈ ∂_C f x Clarke, Chapter 2.

    theorem ConvexAnalysis.clarkeDeriv_eq_iSup_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (v : E) :
    clarkeDeriv f x v = ⨆ ξ ∈ clarkeSubdifferentialDual f x, ↑(ξ v)

    f°(x; ·) is the support function of ∂_C f x, for f Lipschitz near x Clarke, Chapter 2.

    theorem ConvexAnalysis.nonempty_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) :

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_const_smul {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (c : ℝ) :

    ∂_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}.

    theorem ConvexAnalysis.setOf_forall_add_le_subset_clarkeSubdifferentialDual {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : E → ℝ) (x : E) :
    {ξ : StrongDual ℝ E | ∀ (y : E), f x + ξ (y - x) ≤ f y} ⊆ clarkeSubdifferentialDual 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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_eq_of_convexOn {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} (hf : ConvexOn ℝ Set.univ f) (hfc : ContinuousAt f x) :
    clarkeSubdifferentialDual f x = {ξ : StrongDual ℝ E | ∀ (y : E), f x + ξ (y - x) ≤ f y}

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_add_subset {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f g : E → ℝ} {x : E} {K L : NNReal} {U V : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (hV : V ∈ nhds x) (hg : LipschitzOnWith L g V) :

    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.

    theorem ConvexAnalysis.ClarkeRegularAt.mem_clarkeSubdifferentialDual_iff {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {ξ : StrongDual ℝ E} {K : NNReal} {U : Set E} (hU : U ∈ nhds x) (hf : LipschitzOnWith K f U) (hr : ClarkeRegularAt f x) :
    ξ ∈ clarkeSubdifferentialDual f x ↔ ∀ (v : E), ξ v ≤ derivWithin (fun (t : ℝ) => f (x + t • v)) (Set.Ici 0) 0

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_sum_subset {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} {s : Finset ι} {F : ι → E → ℝ} (hF : ∀ i ∈ s, ∃ (K : NNReal), ∃ U ∈ nhds x, LipschitzOnWith K (F i) U) :
    clarkeSubdifferentialDual (∑ i ∈ s, F i) x ⊆ ∑ i ∈ s, clarkeSubdifferentialDual (F i) x

    Sum rule for finitely many functions Lipschitz near x: ∂_C (∑ i, F i) x ⊆ ∑ i, ∂_C (F i) x Clarke, Chapter 2.

    theorem ConvexAnalysis.sum_subset_clarkeSubdifferentialDual_sum_of_clarkeRegularAt {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} {s : Finset ι} {F : ι → E → ℝ} (hF : ∀ i ∈ s, ∃ (K : NNReal), ∃ U ∈ nhds x, LipschitzOnWith K (F i) U) (hr : ∀ i ∈ s, ClarkeRegularAt (F i) x) :
    ∑ i ∈ s, clarkeSubdifferentialDual (F i) x ⊆ clarkeSubdifferentialDual (∑ i ∈ s, F i) x

    For finitely many regular functions Lipschitz near x, ∑ i, ∂_C (F i) x ⊆ ∂_C (∑ i, F i) x.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_sum_eq_of_clarkeRegularAt {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} {s : Finset ι} {F : ι → E → ℝ} (hF : ∀ i ∈ s, ∃ (K : NNReal), ∃ U ∈ nhds x, LipschitzOnWith K (F i) U) (hr : ∀ i ∈ s, ClarkeRegularAt (F i) x) :
    clarkeSubdifferentialDual (∑ i ∈ s, F i) x = ∑ i ∈ s, clarkeSubdifferentialDual (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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_subset_clarkeSubdifferentialDual_iSup {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} [Finite ι] [Nonempty ι] {F : ι → E → ℝ} (hc : ∀ (i : ι), ContinuousAt (F i) x) (hr : ∀ (i : ι), F i x = ⨆ (j : ι), F j x → ClarkeRegularAt (F i) x) {i : ι} (hi : F i x = ⨆ (j : ι), F j x) :
    clarkeSubdifferentialDual (F i) x ⊆ clarkeSubdifferentialDual (fun (y : E) => ⨆ (j : ι), F j y) x

    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.

    theorem ConvexAnalysis.convexHull_subset_clarkeSubdifferentialDual_iSup {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} [Finite ι] [Nonempty ι] {F : ι → E → ℝ} (hc : ∀ (i : ι), ContinuousAt (F i) x) (hr : ∀ (i : ι), F i x = ⨆ (j : ι), F j x → ClarkeRegularAt (F i) x) :
    (convexHull ℝ) (⋃ (i : ι), ⋃ (_ : F i x = ⨆ (j : ι), F j x), clarkeSubdifferentialDual (F i) x) ⊆ clarkeSubdifferentialDual (fun (y : E) => ⨆ (i : ι), F i y) x

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

    theorem ConvexAnalysis.exists_mem_clarkeSubdifferentialDual_sub_eq {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x y : E} (hf : ∀ z ∈ segment ℝ x y, ∃ (K : NNReal), ∃ U ∈ nhds z, LipschitzOnWith K f U) :
    ∃ z ∈ openSegment ℝ x y, ∃ ξ ∈ clarkeSubdifferentialDual f z, f y - f x = ξ (y - x)

    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.

    theorem ConvexAnalysis.mem_clarkeSubdifferentialDual_of_tendsto {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} {ξ : StrongDual ℝ E} {ι : Type u_2} {l : Filter ι} [l.NeBot] {xs : ι → E} {ξs : ι → StrongDual ℝ E} (hx : Filter.Tendsto xs l (nhds x)) (hξ : ∀ (v : E), Filter.Tendsto (fun (i : ι) => (ξs i) v) l (nhds (ξ v))) (hmem : ∀ᶠ (i : ι) in l, ξs i ∈ clarkeSubdifferentialDual f (xs i)) :

    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 #

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_subset_of_hasStrictFDerivAt {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} {U : Set F} {L : NNReal} (hG : HasStrictFDerivAt G G' x) (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith L f U) :
    clarkeSubdifferentialDual (f ∘ G) x ⊆ (fun (η : StrongDual ℝ F) => η ∘SL G') '' clarkeSubdifferentialDual f (G x)

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_continuousLinearMap_subset {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {x : E} {U : Set F} {L : NNReal} (A : E →L[ℝ] F) (hU : U ∈ nhds (A x)) (hf : LipschitzOnWith L f U) :
    clarkeSubdifferentialDual (f ∘ ⇑A) x ⊆ (fun (η : StrongDual ℝ F) => η ∘SL A) '' clarkeSubdifferentialDual f (A 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.

    theorem ConvexAnalysis.image_comp_subset_clarkeSubdifferentialDual_comp {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} (h : ∀ (v : E), clarkeDeriv f (G x) (G' v) ≤ clarkeDeriv (f ∘ G) x v) :
    (fun (η : StrongDual ℝ F) => η ∘SL G') '' clarkeSubdifferentialDual f (G x) ⊆ clarkeSubdifferentialDual (f ∘ G) x

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_clarkeRegularAt {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} {U : Set F} {L : NNReal} (hG : HasStrictFDerivAt G G' x) (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith L f U) (hr : ClarkeRegularAt f (G x)) :

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_clarkeRegularAt_neg {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} {U : Set F} {L : NNReal} (hG : HasStrictFDerivAt G G' x) (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith L f U) (hr : ClarkeRegularAt (-f) (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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_convexOn {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} (hG : HasStrictFDerivAt G G' x) (hf : ConvexOn ℝ Set.univ f) (hfc : ContinuousAt f (G x)) :
    clarkeSubdifferentialDual (f ∘ G) x = (fun (η : StrongDual ℝ F) => η ∘SL G') '' {η : StrongDual ℝ F | ∀ (y : F), f (G x) + η (y - G x) ≤ f y}

    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.

    theorem ConvexAnalysis.clarkeSubdifferentialDual_comp_eq_of_surjective {E : Type u_1} {F : Type u_2} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] {f : F → ℝ} {G : E → F} {G' : E →L[ℝ] F} {x : E} {U : Set F} {L : NNReal} [CompleteSpace E] [CompleteSpace F] (hG : HasStrictFDerivAt G G' x) (hG' : Function.Surjective ⇑G') (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith L f U) :

    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.