Documentation

ConvexAnalysis.ClarkeRegular

Regular functions in the sense of Clarke #

A function f : E → ℝ on a real normed space is regular at x in the sense of Clarke if in every direction v the one-sided directional derivative f'(x; v) = lim_{t → 0⁺} (f (x + t • v) - f x) / t exists and equals Clarke's generalized directional derivative f°(x; v). Convex functions and strictly differentiable functions are regular, and so are nonnegative multiples, finite sums, finite maxima of regular functions and compositions with strictly differentiable maps. For regular functions the sum rule, the max rule and the chain rule for f° hold with equality; the consequences for Clarke's generalized gradient are in ClarkeBanach.lean and Clarke.lean.

Main definitions #

Main statements #

Implementation notes #

Regularity is stated with the difference quotients in EReal, like f°(x; v), as a Tendsto along 𝓝[>] 0, so that the definition needs no hypothesis on f. Clarke defines it for f Lipschitz near x; then both sides are finite (ConvexAnalysis.clarkeRegularAt_iff_tendsto), and the limit is the right derivative of t ↦ f (x + t • v) at 0 (ConvexAnalysis.clarkeRegularAt_iff_hasDerivWithinAt). Mathlib has no one-sided directional derivative, and derivWithin is 0 where the derivative does not exist, so it is not used in the definition.

References #

Tags #

Clarke regularity, regular function, generalized directional derivative, sum rule, max rule, chain rule, nonsmooth analysis

def ConvexAnalysis.ClarkeRegularAt {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (f : E → ℝ) (x : E) :

f is regular at x in the sense of Clarke Clarke, Chapter 2: in every direction v the one-sided directional derivative f'(x; v) = lim_{t → 0⁺} (f (x + t • v) - f x) / t exists and equals Clarke's directional derivative f°(x; v). The limit is taken in EReal, like f°(x; v). Clarke defines regularity for f Lipschitz near x; then both sides are finite and the limit is the right derivative of t ↦ f (x + t • v) at 0 (clarkeRegularAt_iff_hasDerivWithinAt).

Equations
Instances For
    theorem ConvexAnalysis.ClarkeRegularAt.tendsto {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} (h : ClarkeRegularAt f x) (v : E) :
    Filter.Tendsto (fun (t : ℝ) => ↑((f (x + t • v) - f x) / t)) (nhdsWithin 0 (Set.Ioi 0)) (nhds (clarkeDeriv f x v))

    For a regular f, the difference quotients in the direction v tend to f°(x; v).

    theorem ConvexAnalysis.clarkeRegularAt_iff_le_liminf {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} :
    ClarkeRegularAt f x ↔ ∀ (v : E), clarkeDeriv f x v ≤ Filter.liminf (fun (t : ℝ) => ↑((f (x + t • v) - f x) / t)) (nhdsWithin 0 (Set.Ioi 0))

    f is regular at x iff in every direction f°(x; v) is at most the lower Dini derivative liminf_{t → 0⁺} (f (x + t • v) - f x) / t; the upper Dini derivative is always at most f°(x; v) (limsup_le_clarkeDeriv).

    theorem ConvexAnalysis.clarkeRegularAt_iff_tendsto {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) :
    ClarkeRegularAt f x ↔ ∀ (v : E), Filter.Tendsto (fun (t : ℝ) => (f (x + t • v) - f x) / t) (nhdsWithin 0 (Set.Ioi 0)) (nhds (clarkeDeriv f x v).toReal)

    For f Lipschitz near x, regularity in terms of real difference quotients.

    theorem ConvexAnalysis.clarkeRegularAt_iff_hasDerivWithinAt {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) :
    ClarkeRegularAt f x ↔ ∀ (v : E), HasDerivWithinAt (fun (t : ℝ) => f (x + t • v)) (clarkeDeriv f x v).toReal (Set.Ici 0) 0

    For f Lipschitz near x, f is regular at x iff for every v the function t ↦ f (x + t • v) has the right derivative f°(x; v) at 0.

    theorem ConvexAnalysis.ClarkeRegularAt.derivWithin_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) (h : ClarkeRegularAt f x) (v : E) :
    derivWithin (fun (t : ℝ) => f (x + t • v)) (Set.Ici 0) 0 = (clarkeDeriv f x v).toReal

    For a regular f Lipschitz near x, the right derivative of t ↦ f (x + t • v) at 0 is f°(x; v).

    theorem ConvexAnalysis.clarkeRegularAt_const {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] (c : ℝ) (x : E) :
    ClarkeRegularAt (fun (x : E) => c) x

    Constant functions are regular.

    A convex function continuous at x is regular at x Clarke, Chapter 2.

    In finite dimension, a convex f : E → ℝ is regular everywhere.

    A strictly differentiable function is regular Clarke, Chapter 2.

    A function continuously differentiable near x is regular at x.

    theorem ConvexAnalysis.ClarkeRegularAt.const_smul {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {f : E → ℝ} {x : E} (h : ClarkeRegularAt f x) {c : ℝ} (hc : 0 ≤ c) :

    A nonnegative multiple of a regular function is regular.

    theorem ConvexAnalysis.ClarkeRegularAt.clarkeDeriv_add {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) (hfr : ClarkeRegularAt f x) (hgr : ClarkeRegularAt g x) (v : E) :
    clarkeDeriv (f + g) x v = clarkeDeriv f x v + clarkeDeriv g x v

    For regular f and g Lipschitz near x, (f + g)°(x; v) = f°(x; v) + g°(x; v) Clarke, Chapter 2.

    theorem ConvexAnalysis.ClarkeRegularAt.add {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) (hfr : ClarkeRegularAt f x) (hgr : ClarkeRegularAt g x) :

    The sum of two regular functions Lipschitz near x is regular Clarke, Chapter 2.

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

    A finite sum of functions Lipschitz near x is Lipschitz near x.

    theorem ConvexAnalysis.clarkeRegularAt_sum {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) :
    ClarkeRegularAt (∑ i ∈ s, F i) x

    A finite sum of regular functions Lipschitz near x is regular Clarke, Chapter 2.

    theorem ConvexAnalysis.clarkeDeriv_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) (v : E) :
    clarkeDeriv (∑ i ∈ s, F i) x v = ∑ i ∈ s, clarkeDeriv (F i) x v

    For regular functions Lipschitz near x, (∑ i, F i)°(x; v) = ∑ i, F i°(x; v).

    theorem ConvexAnalysis.clarkeDeriv_iSup_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {ι : Type u_2} [Finite ι] [Nonempty ι] {F : ι → E → ℝ} (hc : ∀ (i : ι), ContinuousAt (F i) x) (v : E) :
    clarkeDeriv (fun (y : E) => ⨆ (i : ι), F i y) x v ≤ ⨆ (i : ι), ⨆ (_ : F i x = ⨆ (j : ι), F j x), clarkeDeriv (F i) x v

    Directional derivative of a maximum Clarke, Chapter 2: for finitely many F i continuous at x, (⨆ i, F i)°(x; v) is at most the largest F i°(x; v) over the active indices, those with F i x = ⨆ j, F j x. No Lipschitz hypothesis is needed.

    theorem ConvexAnalysis.clarkeRegularAt_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) :
    ClarkeRegularAt (fun (y : E) => ⨆ (i : ι), F i y) x

    Regularity of a maximum Clarke, Chapter 2: for finitely many F i continuous at x, ⨆ i, F i is regular at x if the active F i are.

    theorem ConvexAnalysis.clarkeDeriv_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) (v : E) :
    clarkeDeriv (fun (y : E) => ⨆ (i : ι), F i y) x v = ⨆ (i : ι), ⨆ (_ : F i x = ⨆ (j : ι), F j x), clarkeDeriv (F i) x v

    Directional derivative of a maximum of regular functions Clarke, Chapter 2: for finitely many F i continuous at x whose active members are regular, (⨆ i, F i)°(x; v) is the largest F i°(x; v) over the active indices.

    theorem ConvexAnalysis.exists_lipschitzOnWith_iSup {E : Type u_1} [NormedAddCommGroup E] {x : E} {ι : Type u_2} [Finite ι] [Nonempty ι] {F : ι → E → ℝ} (hF : ∀ (i : ι), ∃ (K : NNReal), ∃ U ∈ nhds x, LipschitzOnWith K (F i) U) :
    ∃ (K : NNReal), ∃ U ∈ nhds x, LipschitzOnWith K (fun (y : E) => ⨆ (i : ι), F i y) U

    The maximum of finitely many functions Lipschitz near x is Lipschitz near x; the proof takes the largest of the constants.

    theorem ConvexAnalysis.ClarkeRegularAt.clarkeDeriv_comp {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {K : NNReal} {F : Type u_2} [NormedAddCommGroup F] [NormedSpace ℝ F] {G : E → F} {G' : E →L[ℝ] F} {φ : F → ℝ} (hr : ClarkeRegularAt φ (G x)) (hG : HasStrictFDerivAt G G' x) {U : Set F} (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith K φ U) (v : E) :
    clarkeDeriv (φ ∘ G) x v = clarkeDeriv φ (G x) (G' v)

    Chain rule with equality under regularity Clarke, Chapter 2: for G strictly differentiable at x and φ Lipschitz near G x and regular at G x, (φ ∘ G)°(x; v) = φ°(G x; G' v).

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

    The composition of a function φ Lipschitz near G x and regular at G x with a map G strictly differentiable at x is regular at x Clarke, Chapter 2.

    theorem ConvexAnalysis.clarkeDeriv_comp_eq_of_clarkeRegularAt_neg {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} {K : NNReal} {F : Type u_2} [NormedAddCommGroup F] [NormedSpace ℝ F] {G : E → F} {G' : E →L[ℝ] F} {φ : F → ℝ} (hr : ClarkeRegularAt (-φ) (G x)) (hG : HasStrictFDerivAt G G' x) {U : Set F} (hU : U ∈ nhds (G x)) (hf : LipschitzOnWith K φ U) (v : E) :
    clarkeDeriv (φ ∘ G) x v = clarkeDeriv φ (G x) (G' v)

    (φ ∘ G)°(x; v) = φ°(G x; G' v) also if -φ is regular at G x Clarke, Chapter 2; then -(φ ∘ G) is regular at x (ClarkeRegularAt.comp).