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 #
ConvexAnalysis.ClarkeRegularAt f x:fis regular atx.
Main statements #
ConvexAnalysis.clarkeRegularAt_iff_le_liminf:fis regular atxifff°(x; v)is at most the lower Dini derivative in every direction;ConvexAnalysis.clarkeRegularAt_iff_hasDerivWithinAt: forfLipschitz nearx, ifft ↦ f (x + t • v)has the right derivativef°(x; v)at0;ConvexAnalysis.ClarkeRegularAt.derivWithin_eq: thenf°(x; v)is Mathlib's right derivativederivWithin (fun t ↦ f (x + t • v)) (Ici 0) 0.ConvexAnalysis.clarkeRegularAt_of_convexOn,ConvexAnalysis.clarkeRegularAt_of_hasStrictFDerivAt,ConvexAnalysis.clarkeRegularAt_of_contDiffAt: convex functions continuous atxand strictly differentiable functions are regular.ConvexAnalysis.ClarkeRegularAt.const_smul,ConvexAnalysis.ClarkeRegularAt.add,ConvexAnalysis.clarkeRegularAt_sum: nonnegative multiples, and sums of finitely many regular functions Lipschitz nearx, are regular, with(f + g)°(x; v) = f°(x; v) + g°(x; v)(ConvexAnalysis.ClarkeRegularAt.clarkeDeriv_add,ConvexAnalysis.clarkeDeriv_sum_of_clarkeRegularAt).ConvexAnalysis.clarkeDeriv_iSup_le,ConvexAnalysis.clarkeRegularAt_iSup,ConvexAnalysis.clarkeDeriv_iSup: for finitely manyF icontinuous atx,(⨆ i, F i)°(x; v)is at most the largestF i°(x; v)over the activei, those withF i x = ⨆ j, F j x; if the activeF iare regular, so is⨆ i, F i, with equality.ConvexAnalysis.ClarkeRegularAt.clarkeDeriv_comp,ConvexAnalysis.ClarkeRegularAt.comp: forGstrictly differentiable atxandfLipschitz nearG xand regular atG x,(f ∘ G)°(x; v) = f°(G x; G' v)andf ∘ Gis regular atx; the same equality if-fis regular (ConvexAnalysis.clarkeDeriv_comp_eq_of_clarkeRegularAt_neg).ConvexAnalysis.exists_lipschitzOnWith_sum,ConvexAnalysis.exists_lipschitzOnWith_iSup: finite sums and maxima of functions Lipschitz nearxare Lipschitz nearx.
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 #
- F. H. Clarke, Optimization and Nonsmooth Analysis, Wiley, 1983, Chapter 2.
- R. T. Rockafellar, R. J.-B. Wets, Variational Analysis, Springer, 1998, Chapters 7 and 10
(subdifferential regularity and calculus rules, in
ℝⁿ).
Tags #
Clarke regularity, regular function, generalized directional derivative, sum rule, max rule, chain rule, nonsmooth analysis
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
- ConvexAnalysis.ClarkeRegularAt f x = ∀ (v : E), Filter.Tendsto (fun (t : ℝ) => ↑((f (x + t • v) - f x) / t)) (nhdsWithin 0 (Set.Ioi 0)) (nhds (ConvexAnalysis.clarkeDeriv f x v))
Instances For
For a regular f, the difference quotients in the direction v tend to f°(x; v).
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).
For f Lipschitz near x, regularity in terms of real difference quotients.
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.
For a regular f Lipschitz near x, the right derivative of t ↦ f (x + t • v) at 0 is
f°(x; v).
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.
A nonnegative multiple of a regular function is regular.
For regular f and g Lipschitz near x, (f + g)°(x; v) = f°(x; v) + g°(x; v)
Clarke, Chapter 2.
The sum of two regular functions Lipschitz near x is regular Clarke, Chapter 2.
A finite sum of functions Lipschitz near x is Lipschitz near x.
A finite sum of regular functions Lipschitz near x is regular Clarke, Chapter 2.
For regular functions Lipschitz near x, (∑ i, F i)°(x; v) = ∑ i, 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.
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.
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.
The maximum of finitely many functions Lipschitz near x is Lipschitz near x; the proof
takes the largest of the constants.
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).
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.
(φ ∘ 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).