The areas / V17. Differential calculus in normed spaces
Mathlib.Analysis.Calculus.FDeriv.Symmetric
34 declarations and 1 deprecated aliases. Mathlib docs ยท Source
def IsSymmSndFDerivWithinAt E1 #
(๐ : Type u_1) โ
[inst : NontriviallyNormedField ๐] โ
{E : Type u_2} โ
{F : Type u_3} โ
[inst_1 : NormedAddCommGroup E] โ
[NormedSpace ๐ E] โ [inst_3 : NormedAddCommGroup F] โ [NormedSpace ๐ F] โ (E โ F) โ Set E โ E โ Prop
Definition recording that a function has a symmetric second derivative within a set at a point. This is automatic in most cases of interest (open sets over real or complex vector fields, or general case for analytic functions), but we can express theorems of calculus using this as a general assumption, and then specialize to these situations.
def IsSymmSndFDerivAt E1 #
(๐ : Type u_1) โ
[inst : NontriviallyNormedField ๐] โ
{E : Type u_2} โ
{F : Type u_3} โ
[inst_1 : NormedAddCommGroup E] โ
[NormedSpace ๐ E] โ [inst_3 : NormedAddCommGroup F] โ [NormedSpace ๐ F] โ (E โ F) โ E โ Prop
Definition recording that a function has a symmetric second derivative at a point. This is automatic in most cases of interest (open sets over real or complex vector fields, or general case for analytic functions), but we can express theorems of calculus using this as a general assumption, and then specialize to these situations.
theorem IsSymmSndFDerivWithinAt.eq E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F} {x : E},
IsSymmSndFDerivWithinAt ๐ f s x โ
โ (v w : E), ((fderivWithin ๐ (fderivWithin ๐ f s) s x) v) w = ((fderivWithin ๐ (fderivWithin ๐ f s) s x) w) v
theorem IsSymmSndFDerivAt.eq E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E},
IsSymmSndFDerivAt ๐ f x โ โ (v w : E), ((fderiv ๐ (fderiv ๐ f) x) v) w = ((fderiv ๐ (fderiv ๐ f) x) w) v
theorem fderivWithin_fderivWithin_eq_of_mem_nhdsWithin E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s t : Set E} {f : E โ F}
{x : E},
t โ nhdsWithin x s โ
ContDiffWithinAt ๐ 2 f t x โ
UniqueDiffOn ๐ s โ
UniqueDiffOn ๐ t โ x โ s โ fderivWithin ๐ (fderivWithin ๐ f s) s x = fderivWithin ๐ (fderivWithin ๐ f t) t x
theorem fderivWithin_fderivWithin_eq_of_eventuallyEqSet E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s t : Set E} {f : E โ F}
{x : E}, s =แถ [nhds x] t โ fderivWithin ๐ (fderivWithin ๐ f s) s x = fderivWithin ๐ (fderivWithin ๐ f t) t x
theorem fderivWithin_fderivWithin_eq_of_mem_nhds E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E} {s : Set E},
s โ nhds x โ fderivWithin ๐ (fderivWithin ๐ f s) s x = fderiv ๐ (fderiv ๐ f) x
theorem isSymmSndFDerivWithinAt_univ E0 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E},
IsSymmSndFDerivWithinAt ๐ f Set.univ x โ IsSymmSndFDerivAt ๐ f x
theorem IsSymmSndFDerivWithinAt.mono_of_mem_nhdsWithin E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s t : Set E} {f : E โ F}
{x : E},
IsSymmSndFDerivWithinAt ๐ f t x โ
t โ nhdsWithin x s โ
ContDiffWithinAt ๐ 2 f t x โ UniqueDiffOn ๐ s โ UniqueDiffOn ๐ t โ x โ s โ IsSymmSndFDerivWithinAt ๐ f s x
theorem IsSymmSndFDerivWithinAt.congr_set E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s t : Set E} {f : E โ F}
{x : E}, IsSymmSndFDerivWithinAt ๐ f s x โ s =แถ [nhds x] t โ IsSymmSndFDerivWithinAt ๐ f t x
theorem isSymmSndFDerivWithinAt_congr_set E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s t : Set E} {f : E โ F}
{x : E}, s =แถ [nhds x] t โ (IsSymmSndFDerivWithinAt ๐ f s x โ IsSymmSndFDerivWithinAt ๐ f t x)
theorem IsSymmSndFDerivAt.isSymmSndFDerivWithinAt E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F} {x : E},
IsSymmSndFDerivAt ๐ f x โ ContDiffAt ๐ 2 f x โ UniqueDiffOn ๐ s โ x โ s โ IsSymmSndFDerivWithinAt ๐ f s x
theorem isSymmSndFDerivWithinAt_iff_iteratedFDerivWithin E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F} {x : E},
UniqueDiffOn ๐ s โ
x โ s โ
(IsSymmSndFDerivWithinAt ๐ f s x โ
ContinuousMultilinearMap.domDomCongr Fin.revPerm (iteratedFDerivWithin ๐ 2 f s x) =
iteratedFDerivWithin ๐ 2 f s x)
theorem isSymmSndFDerivAt_iff_iteratedFDeriv E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E},
IsSymmSndFDerivAt ๐ f x โ
ContinuousMultilinearMap.domDomCongr Fin.revPerm (iteratedFDeriv ๐ 2 f x) = iteratedFDeriv ๐ 2 f x
theorem IsSymmSndFDerivWithinAt.iteratedFDerivWithin_cons E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F}
{x v w : E} {hf : IsSymmSndFDerivWithinAt ๐ f s x},
UniqueDiffOn ๐ s โ x โ s โ (iteratedFDerivWithin ๐ 2 f s x) ![v, w] = (iteratedFDerivWithin ๐ 2 f s x) ![w, v]
theorem IsSymmSndFDerivAt.iteratedFDeriv_cons E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x v w : E}
{hf : IsSymmSndFDerivAt ๐ f x}, (iteratedFDeriv ๐ 2 f x) ![v, w] = (iteratedFDeriv ๐ 2 f x) ![w, v]
theorem ContDiffWithinAt.isSymmSndFDerivWithinAt_of_omega E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F} {x : E},
ContDiffWithinAt ๐ โค f s x โ UniqueDiffOn ๐ s โ x โ s โ IsSymmSndFDerivWithinAt ๐ f s x
If a function is analytic within a set at a point, then its second derivative is symmetric.
theorem ContDiffAt.isSymmSndFDerivAt_of_omega E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E},
ContDiffAt ๐ โค f x โ IsSymmSndFDerivAt ๐ f x
If a function is analytic at a point, then its second derivative is symmetric.
theorem Convex.taylor_approx_two_segment E1 #
โ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ E] [inst_2 : NormedAddCommGroup F]
[inst_3 : NormedSpace โ F] {s : Set E},
Convex โ s โ
โ {f : E โ F} {f' : E โ E โL[โ] F} {f'' : E โL[โ] E โL[โ] F},
(โ x โ interior s, HasFDerivAt f (f' x) x) โ
โ {x : E},
x โ s โ
HasFDerivWithinAt f' f'' (interior s) x โ
โ {v w : E},
x + v โ interior s โ
x + v + w โ interior s โ
(fun h โฆ
f (x + h โข v + h โข w) - f (x + h โข v) - h โข (f' x) w - h ^ 2 โข (f'' v) w -
(h ^ 2 / 2) โข (f'' w) w) =o[nhdsWithin 0 (Set.Ioi 0)]
fun h โฆ h ^ 2
Assume that f is differentiable inside a convex set s, and that its derivative f' is
differentiable at a point x. Then, given two vectors v and w pointing inside s, one can
Taylor-expand to order two the function f on the segment [x + h v, x + h (v + w)], giving a
bilinear estimate for f (x + hv + hw) - f (x + hv) in terms of f' w and of f'' โฌ w, up to
o(h^2).
This is a technical statement used to show that the second derivative is symmetric.
theorem Convex.isLittleO_alternate_sum_square E1 #
โ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ E] [inst_2 : NormedAddCommGroup F]
[inst_3 : NormedSpace โ F] {s : Set E},
Convex โ s โ
โ {f : E โ F} {f' : E โ E โL[โ] F} {f'' : E โL[โ] E โL[โ] F},
(โ x โ interior s, HasFDerivAt f (f' x) x) โ
โ {x : E},
x โ s โ
HasFDerivWithinAt f' f'' (interior s) x โ
โ {v w : E},
x + 4 โข v โ interior s โ
x + 4 โข w โ interior s โ
(fun h โฆ
f (x + h โข (2 โข v + 2 โข w)) + f (x + h โข (v + w)) - f (x + h โข (2 โข v + w)) -
f (x + h โข (v + 2 โข w)) -
h ^ 2 โข (f'' v) w) =o[nhdsWithin 0 (Set.Ioi 0)]
fun h โฆ h ^ 2
One can get f'' v w as the limit of h ^ (-2) times the alternate sum of the values of f
along the vertices of a quadrilateral with sides h v and h w based at x.
In a setting where f is not guaranteed to be continuous at f, we can still
get this if we use a quadrilateral based at h v + h w.
theorem Convex.second_derivative_within_at_symmetric_of_mem_interior E1 #
โ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ E] [inst_2 : NormedAddCommGroup F]
[inst_3 : NormedSpace โ F] {s : Set E},
Convex โ s โ
โ {f : E โ F} {f' : E โ E โL[โ] F} {f'' : E โL[โ] E โL[โ] F},
(โ x โ interior s, HasFDerivAt f (f' x) x) โ
โ {x : E},
x โ s โ
HasFDerivWithinAt f' f'' (interior s) x โ
โ {v w : E}, x + 4 โข v โ interior s โ x + 4 โข w โ interior s โ (f'' w) v = (f'' v) w
Assume that f is differentiable inside a convex set s, and that its derivative f' is
differentiable at a point x. Then, given two vectors v and w pointing inside s, one
has f'' v w = f'' w v. Superseded by Convex.second_derivative_within_at_symmetric, which
removes the assumption that v and w point inside s.
theorem Convex.second_derivative_within_at_symmetric E1 #
โ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ E] [inst_2 : NormedAddCommGroup F]
[inst_3 : NormedSpace โ F] {s : Set E},
Convex โ s โ
(interior s).Nonempty โ
โ {f : E โ F} {f' : E โ E โL[โ] F} {f'' : E โL[โ] E โL[โ] F},
(โ x โ interior s, HasFDerivAt f (f' x) x) โ
โ {x : E}, x โ s โ HasFDerivWithinAt f' f'' (interior s) x โ โ (v w : E), (f'' v) w = (f'' w) v
If a function is differentiable inside a convex set with nonempty interior, and has a second derivative at a point of this convex set, then this second derivative is symmetric.
theorem second_derivative_symmetric_of_eventually_of_real E1 #
โ {E : Type u_1} {F : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace โ E] [inst_2 : NormedAddCommGroup F]
[inst_3 : NormedSpace โ F] {x : E} {f : E โ F} {f' : E โ E โL[โ] F} {f'' : E โL[โ] E โL[โ] F},
(โแถ (y : E) in nhds x, HasFDerivAt f (f' y) y) โ HasFDerivAt f' f'' x โ โ (v w : E), (f'' v) w = (f'' w) v
If a function is differentiable around x, and has two derivatives at x, then the second
derivative is symmetric. Version over โ. See second_derivative_symmetric_of_eventually for a
version over โ or โ.
theorem second_derivative_symmetric_of_eventually E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F}
[IsRCLikeNormedField ๐] {f' : E โ E โL[๐] F} {x : E} {f'' : E โL[๐] E โL[๐] F},
(โแถ (y : E) in nhds x, HasFDerivAt f (f' y) y) โ HasFDerivAt f' f'' x โ โ (v w : E), (f'' v) w = (f'' w) v
theorem second_derivative_symmetric E3 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F}
[IsRCLikeNormedField ๐] {f' : E โ E โL[๐] F} {f'' : E โL[๐] E โL[๐] F} {x : E},
(โ (y : E), HasFDerivAt f (f' y) y) โ HasFDerivAt f' f'' x โ โ (v w : E), (f'' v) w = (f'' w) v
If a function is differentiable, and has two derivatives at x, then the second
derivative is symmetric.
def minSmoothness E1 #
(๐ : Type u_1) โ [NontriviallyNormedField ๐] โ WithTop โโ โ WithTop โโ
minSmoothness ๐ n is the minimal smoothness exponent larger than or equal to n for which
one can do serious calculus in ๐. If ๐ is โ or โ, this is just n. Otherwise,
this is ฯ as only analytic functions are well behaved on โโ, say.
theorem minSmoothness_of_isRCLikeNormedField E0 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] [h : IsRCLikeNormedField ๐] {n : WithTop โโ}, minSmoothness ๐ n = n
theorem le_minSmoothness E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {n : WithTop โโ}, n โค minSmoothness ๐ n
theorem minSmoothness_add E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {n m : WithTop โโ}, minSmoothness ๐ (n + m) = minSmoothness ๐ n + m
theorem minSmoothness_monotone E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐], Monotone (minSmoothness ๐)
theorem minSmoothness_eq_infty E0 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {n : WithTop โโ},
minSmoothness ๐ n = โโค โ n = โโค โง IsRCLikeNormedField ๐
theorem exist_minSmoothness_le_ne_infty E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {n : WithTop โโ} {m : โ},
minSmoothness ๐ โm โค n โ โ n', minSmoothness ๐ โm โค n' โง n' โค n โง n' โ โโค
If minSmoothness ๐ m โค n for some (finite) integer m, then one can
find n' โ [minSmoothness ๐ m, n] which is not โ: over โ or โ, just take m, and otherwise
just take ฯ. The interest of this technical lemma is that, if a function is C^{n'} at a point
for n' โ โ, then it is C^{n'} on a neighborhood of the point (this property fails only
in C^โ smoothness, see ContDiffWithinAt.contDiffOn).
theorem ContDiffAt.isSymmSndFDerivAt E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {f : E โ F} {x : E}
{n : WithTop โโ}, ContDiffAt ๐ n f x โ minSmoothness ๐ 2 โค n โ IsSymmSndFDerivAt ๐ f x
If a function is C^2 at a point, then its second derivative there is symmetric. Over a field
different from โ or โ, we should require that the function is analytic.
theorem ContDiffWithinAt.isSymmSndFDerivWithinAt E1 #
โ {๐ : Type u_1} [inst : NontriviallyNormedField ๐] {E : Type u_2} {F : Type u_3} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace ๐ E] [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace ๐ F] {s : Set E} {f : E โ F} {x : E}
{n : WithTop โโ},
ContDiffWithinAt ๐ n f s x โ
minSmoothness ๐ 2 โค n โ UniqueDiffOn ๐ s โ x โ closure (interior s) โ x โ s โ IsSymmSndFDerivWithinAt ๐ f s x
If a function is C^2 within a set at a point, and accumulated by points in the interior
of the set, then its second derivative there is symmetric. Over a field
different from โ or โ, we should require that the function is analytic.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
fderivWithin_fderivWithin_eq_of_eventuallyEq | fderivWithin_fderivWithin_eq_of_eventuallyEqSet | 2026-08-14 |