Clarke's generalized directional derivative #
For a function f : E → ℝ on a real normed space, Clarke's generalized directional derivative is
f°(x; v) = limsup_{y → x, t → 0⁺} (f (y + t • v) - f y) / t.
For f Lipschitz near x it is finite, positively homogeneous and subadditive in v, hence a
convex function of v, and Lipschitz with the constant of f. This file proves its calculus:
scaling, the sum and chain rules as inequalities, the strictly differentiable and convex cases,
upper semicontinuity in x, and Lebourg's mean value theorem in terms of f°. Only a normed
space is needed; Clarke's generalized gradient, built from f°, is in ClarkeBanach.lean (in
the dual space) and in Clarke.lean (in a real inner product space).
Main definitions #
ConvexAnalysis.clarkeDeriv f x v: Clarke's generalized directional derivativef°(x; v), with values inEReal.
Main statements #
ConvexAnalysis.clarkeDeriv_le,ConvexAnalysis.neg_le_clarkeDeriv,ConvexAnalysis.coe_toReal_clarkeDeriv:|f°(x; v)| ≤ K ‖v‖forfLipschitz with constantKnearx, sof°(x; v)is a real number.ConvexAnalysis.clarkeDeriv_smul,ConvexAnalysis.clarkeDeriv_add_le_add: positive homogeneity and subadditivity;ConvexAnalysis.convexFun_clarkeDeriv:f°(x; ·)is convex;ConvexAnalysis.lipschitzWith_toReal_clarkeDeriv: it is Lipschitz with constantK.ConvexAnalysis.clarkeDeriv_neg,ConvexAnalysis.clarkeDeriv_const_smul:(-f)°(x; v) = f°(x; -v)and(c f)°(x; v) = c f°(x; v)forc ≥ 0.ConvexAnalysis.clarkeDeriv_nonneg_of_isLocalMin: Fermat's rule,f°(x; v) ≥ 0at a local minimum.ConvexAnalysis.clarkeDeriv_add_le,ConvexAnalysis.clarkeDeriv_add_of_hasStrictFDerivAt: the sum rule(f + g)°(x; v) ≤ f°(x; v) + g°(x; v), with equality ifgis strictly differentiable.ConvexAnalysis.le_clarkeDeriv_of_hasFDerivAt,ConvexAnalysis.clarkeDeriv_eq_of_hasStrictFDerivAt:f' v ≤ f°(x; v)for a Fréchet derivativef', with equality for a strict one.ConvexAnalysis.clarkeDeriv_comp_le_of_hasStrictFDerivAt,ConvexAnalysis.clarkeDeriv_comp_eq_of_surjective: the chain rule(f ∘ G)°(x; v) ≤ f°(G x; G' v)for a strictly differentiableG, with equality ifG'is surjective (Banach spaces);ConvexAnalysis.clarkeDeriv_comp_continuousLinearMap_le: the linear case, with no hypothesis.ConvexAnalysis.clarkeDeriv_le_sub_of_convexOn,ConvexAnalysis.tendsto_clarkeDeriv_of_convexOn: for a convexfcontinuous atx,f°(x; v) ≤ f (x + v) - f x, andf°(x; v)is the one-sided directional derivative.ConvexAnalysis.upperSemicontinuous_clarkeDeriv:y ↦ f°(y; v)is upper semicontinuous, for everyf.ConvexAnalysis.exists_mem_openSegment_le_clarkeDeriv: Lebourg's mean value theorem in terms off°.
Implementation notes #
f°(x; v) is the upper limit in EReal along the filter 𝓝 x ×ˢ 𝓝[>] 0, so it is defined for
every f, with no junk value: an upper limit in ℝ would take a junk value for unbounded
quotients.
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 (the definition of
f°(x; v)). - G. Lebourg, Valeur moyenne pour gradient généralisé, C. R. Acad. Sci. Paris Sér. A 281 (1975), 795–797.
Tags #
Clarke generalized directional derivative, locally Lipschitz function, nonsmooth analysis, Lebourg's mean value theorem, chain rule
Clarke's generalized directional derivative f°(x; v): the upper limit of the difference
quotients (f (y + t • v) - f y) / t as y → x and t → 0⁺ Clarke, Chapter 2,
Clarke1980, Section 2. Clarke defines it for f locally Lipschitz; here it is
defined for every f, with values in EReal, and for f Lipschitz near x it is finite
(coe_toReal_clarkeDeriv).
Equations
- ConvexAnalysis.clarkeDeriv f x v = Filter.limsup (fun (p : E × ℝ) => ↑((f (p.1 + p.2 • v) - f p.1) / p.2)) (nhds x ×ˢ nhdsWithin 0 (Set.Ioi 0))
Instances For
The filter (y, t) → (x, 0⁺) #
The filter (y, t) → (x, 0⁺) of Clarke's directional derivative is finer than 𝓝 (x, 0).
As (y, t) → (x, 0⁺), the points y + t • v of the difference quotients tend to x.
Basic properties of f° #
f°(x; 0) = 0.
The directional derivative of a constant function is 0.
The upper bound f°(x; v) ≤ K ‖v‖ for f Lipschitz with constant K near x.
The lower bound -(K ‖v‖) ≤ f°(x; v) for f Lipschitz with constant K near x.
For f Lipschitz near x, f°(x; v) ≠ ⊤.
For f Lipschitz near x, f°(x; v) ≠ ⊥.
For f Lipschitz near x, f°(x; v) is a real number
(Clarke1980, Section 2).
For f Lipschitz with constant K near x, |f°(x; v)| ≤ K ‖v‖.
Positive homogeneity: f°(x; c • v) = c f°(x; v) for c ≥ 0
(Clarke1980, Section 2). No hypothesis on f is needed.
(-f)°(x; v) = f°(x; -v). No hypothesis on f is needed.
Subadditivity: f°(x; v + w) ≤ f°(x; v) + f°(x; w) for f Lipschitz near x
(Clarke1980, Section 2).
v ↦ f°(x; v) is the real valued function v ↦ (f°(x; v)).toReal, for f Lipschitz near
x.
For f Lipschitz near x, v ↦ f°(x; v) is convex: it is positively homogeneous and
subadditive Clarke, Chapter 2, Clarke1980, Section 2.
f°(x; v) ≤ f°(x; w) + K ‖v - w‖ for f Lipschitz with constant K near x.
For f Lipschitz with constant K near x, v ↦ f°(x; v) is Lipschitz with constant
K.
For f Lipschitz near x, v ↦ f°(x; v) is continuous.
The upper Dini derivative limsup_{t → 0⁺} (f (x + t • v) - f x) / t is at most
f°(x; v).
At a local minimum, f°(x; v) ≥ 0 for every v.
(c f)°(x; v) = c f°(x; v) for c ≥ 0. No hypothesis on f is needed; for c = 0 both
sides are 0, since 0 * ⊤ = 0 * ⊥ = 0 in EReal.
(f + g)°(x; v) ≤ f°(x; v) + g°(x; v) if g is Lipschitz near x; nothing is assumed on
f.
A Fréchet derivative is below Clarke's directional derivative (no Lipschitz hypothesis).
For G strictly differentiable at x and f Lipschitz near G x, replacing
f (G (y + t • v)) by f (G y + t • G' v) in the difference quotients of f ∘ G changes them by
a term that tends to 0 as (y, t) → (x, 0⁺).
(f ∘ G)°(x; v) is the upper limit of (f (G y + t • G' v) - f (G y)) / t as
(y, t) → (x, 0⁺), for G strictly differentiable at x and f Lipschitz near G x.
(f ∘ G)°(x; v) ≤ f°(G x; G' v) for G strictly differentiable at x and f Lipschitz
near G x Clarke, Chapter 2.
Chain rule with equality for a strictly differentiable G with surjective derivative
Clarke, Chapter 2: (f ∘ G)°(x; v) = f°(G x; G' v) for f Lipschitz near G x, in
Banach spaces. Here G maps the neighbourhoods of x onto neighbourhoods of G x
(HasStrictFDerivAt.map_nhds_eq_of_surj), so the points G y exhaust a neighbourhood of G x.
For a strictly differentiable f, f°(x; v) = f' v Clarke, Chapter 2.
(f + g)°(x; v) = f°(x; v) + g' v for g strictly differentiable at x; nothing is assumed
on f.
For a convex f : E → ℝ continuous at x, f°(x; v) ≤ f (x + v) - f x: by convexity the
difference quotients (f (y + t • v) - f y) / t are at most f (y + v) - f y for t ≤ 1, and
f is continuous.
Lebourg's mean value theorem in terms of f° (Lebourg;
Clarke, Chapter 2): if f is Lipschitz near every point of the segment [x, y], then at
some point z of the open segment f y - f x ≤ f°(z; y - x) and f x - f y ≤ f°(z; x - y). The
proof applies Fermat's rule to t ↦ f (x + t • (y - x)) + t (f x - f y) at an extremum in (0, 1),
and the chain rule along the line.
Semicontinuity, convex functions and linear maps #
y ↦ f°(y; v) is upper semicontinuous, for every f and v Clarke, Chapter 2.
A convex function continuous at x is regular: the one-sided directional derivative exists
and equals f°(x; v) Clarke, Chapter 2.
Composition with a bounded linear map: (f ∘ A)°(x; v) ≤ f°(A x; A v), no hypothesis.