SSL NormedSpace.lean
Sprache: Lean
|
|
/-
Copyright (c) 2024 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Floris van Doorn
-/
module
public import Mathlib.Geometry.Manifold.Algebra.SMul
/-! # Equivalence of manifold differentiability with the basic definition for functions between
vector spaces
The API in this file is mostly copied from `Mathlib/Geometry/Manifold/ContMDiff/NormedSpace.lean`,
providing the same statements for higher smoothness. In this file, we do the same for
differentiability.
## Main definitions
In addition to the above, this file provides two important definitions.
* `mvfderiv I f x` is the manifold Fréchet derivative at `x : M` of a vector-valued function
`f : M → V`, but taking values in the target normed space `V` instead of `TangentSpace% (f x) V`.
Mathematically, this uses the global trivialization `T V ≅ V × V`, yielding an identification
`T_v V ≅ V` for each `v : V`. In Lean, we post-compose the differential `mfderiv% f x` with
`NormedSpace.fromTangentSpace`. If `V` is a field, this coincides with the exterior derivative
of `f` as a section of the cotangent bundle.
There is notation `d% f` for `mvfderiv I f` via a custom elaborator scoped to the
`Manifold` namespace, with a corresponding delaborator,
* `mvfderivWithin` with notation `d[s] f` for `mvfderivWithin I f s` in the `Manifold` namespace:
the analogous concept within a set, with analogous API lemmas
## Main results
This file contains
* results about the differentiability of scalar multiplication (`mfderiv_smul` and friends),
* basic lemmas about `mvfderiv` (such as addition, subtraction, multiplication and constants),
* analogous lemmas about `mvfderivWithin`,
* composition lemmas about `mvfderivWithin` and `mvfderiv`.
-/
public section
open Set ChartedSpace IsManifold
open scoped Topology Manifold
variable { : Type*} [NontriviallyNormedField ] {n : WithTop ℕ∞}
-- declare a charted space `M` over the pair `(E, H)`.
{E : Type*}
[NormedAddCommGroup E] [NormedSpace E] {H : Type*} [TopologicalSpace H]
{I : ModelWithCorners E H} {M : Type*} [TopologicalSpace M] [ChartedSpace H M]
-- declare a `C^n` manifold `M'` over the pair `(E', H')`.
{E' : Type*}
[NormedAddCommGroup E'] [NormedSpace E'] {H' : Type*} [TopologicalSpace H']
{I' : ModelWithCorners E' H'} {M' : Type*} [TopologicalSpace M'] [ChartedSpace H' M']
[IsManifold I' n M']
-- declare a `C^n` manifold `N` over the pair `(F, G)`.
{F : Type*}
[NormedAddCommGroup F] [NormedSpace F] {G : Type*} [TopologicalSpace G]
{J : ModelWithCorners F G} {N : Type*} [TopologicalSpace N] [ChartedSpace G N]
[IsManifold J n N]
-- declare a `C^n` manifold `N'` over the pair `(F', G')`.
{F' : Type*}
[NormedAddCommGroup F'] [NormedSpace F'] {G' : Type*} [TopologicalSpace G']
{J' : ModelWithCorners F' G'} {N' : Type*} [TopologicalSpace N'] [ChartedSpace G' N']
[IsManifold J' n N']
-- F₁, F₂, F₃, F₄ are normed spaces
{F₁ : Type*} [NormedAddCommGroup F₁] [NormedSpace F₁] {F₂ : Type*} [NormedAddCommGroup F₂]
[NormedSpace F₂] {F₃ : Type*} [NormedAddCommGroup F₃] [NormedSpace F₃] {F₄ : Type*}
[NormedAddCommGroup F₄] [NormedSpace F₄]
-- declare functions, sets, points and smoothness indices
{f f₁ : M → M'} {s t : Set M} {x : M} {m n : ℕ∞}
section Module
theorem DifferentiableWithinAt.comp_mdifferentiableWithinAt
{g : F → F'} {f : M → F} {s : Set M} {t : Set F} {x : M}
(hg : DifferentiableWithinAt g t (f x)) (hf : MDiffAt[s] f x) (h : MapsTo f s t) :
MDiffAt[s] (g ∘ f) x :=
hg.mdifferentiableWithinAt.comp x hf h
theorem DifferentiableAt.comp_mdifferentiableWithinAt {g : F → F'} {f : M → F} {s : Set M} {x : M}
(hg : DifferentiableAt g (f x)) (hf : MDiffAt[s] f x) : MDiffAt[s] (g ∘ f) x :=
hg.mdifferentiableAt.comp_mdifferentiableWithinAt x hf
theorem DifferentiableAt.comp_mdifferentiableAt {g : F → F'} {f : M → F} {x : M}
(hg : DifferentiableAt g (f x)) (hf : MDiffAt f x) : MDiffAt (g ∘ f) x :=
hg.comp_mdifferentiableWithinAt hf
theorem Differentiable.comp_mdifferentiableWithinAt {g : F → F'} {f : M → F} {s : Set M} {x : M}
(hg : Differentiable g) (hf : MDiffAt[s] f x) : MDiffAt[s] (g ∘ f) x :=
hg.differentiableAt.comp_mdifferentiableWithinAt hf
theorem Differentiable.comp_mdifferentiableAt {g : F → F'} {f : M → F} {x : M}
(hg : Differentiable g) (hf : MDiffAt f x) : MDiffAt (g ∘ f) x :=
hg.comp_mdifferentiableWithinAt hf
theorem Differentiable.comp_mdifferentiable {g : F → F'} {f : M → F}
(hg : Differentiable g) (hf : MDiff f) : MDiff (g ∘ f) :=
fun x ↦ hg.differentiableAt.comp_mdifferentiableAt (hf x)
end Module
section extChartAt
variable {F : Type*} [NormedAddCommGroup F] [NormedSpace F] {f : M → F}
-- TODO: add pre-composition version also
theorem MDifferentiableWithinAt.differentiableWithinAt_comp_extChartAt_symm (hf : MDiffAt[s] f x) :
letI φ := extChartAt I x
DifferentiableWithinAt (f ∘ φ.symm) (φ.symm ⁻¹' s ∩ range I) (φ x) := by
simpa [extChartAt_self_eq] using (mdifferentiableWithinAt_iff.1 hf).2
-- TODO: the `IsManifold I 1 M` assumption can probably be removed
theorem DifferentiableWithinAt.mdifferentiableWithinAt_of_comp_extChartAt_symm [IsManifold I 1 M]
(hf : letI φ := extChartAt I x
DifferentiableWithinAt (f ∘ φ.symm) (φ.symm ⁻¹' s ∩ range I) (φ x)) :
MDiffAt[s] f x := by
refine (mdifferentiableWithinAt_iff_source_of_mem_source (mem_chart_source H x)).2 ?_
simpa [extChartAt_self_eq] using hf.mdifferentiableWithinAt
end extChartAt
/-! ### Linear maps between normed spaces are differentiable -/
theorem MDifferentiableWithinAt.clm_precomp {f : M → F₁ →L[] F₂} {s : Set M} {x : M}
(hf : MDiffAt[s] f x) :
MDiffAt[s] (fun y ↦ (f y).precomp F₃ : M → (F₂ →L[] F₃) →L[] (F₁ →L[] F₃)) x :=
Differentiable.comp_mdifferentiableWithinAt
(ContinuousLinearMap.differentiable (ContinuousLinearMap.compL F₁ F₂ F₃).flip) hf
nonrec theorem MDifferentiableAt.clm_precomp {f : M → F₁ →L[] F₂} {x : M} (hf : MDiffAt f x) :
MDiffAt (fun y ↦ (f y).precomp F₃ : M → (F₂ →L[] F₃) →L[] (F₁ →L[] F₃)) x :=
Differentiable.comp_mdifferentiableAt
(ContinuousLinearMap.differentiable (ContinuousLinearMap.compL F₁ F₂ F₃).flip) hf
theorem MDifferentiableOn.clm_precomp {f : M → F₁ →L[] F₂} {s : Set M} (hf : MDiff[s] f) :
MDiff[s] (fun y ↦ (f y).precomp F₃ : M → (F₂ →L[] F₃) →L[] (F₁ →L[] F₃)) :=
fun x hx ↦ (hf x hx).clm_precomp
theorem MDifferentiable.clm_precomp {f : M → F₁ →L[] F₂} (hf : MDiff f) :
MDiff (fun y ↦ (f y).precomp F₃ : M → (F₂ →L[] F₃) →L[] (F₁ →L[] F₃)) :=
fun x ↦ (hf x).clm_precomp
theorem MDifferentiableWithinAt.clm_postcomp {f : M → F₂ →L[] F₃} {s : Set M} {x : M}
(hf : MDiffAt[s] f x) :
MDiffAt[s] (fun y ↦ (f y).postcomp F₁ : M → (F₁ →L[] F₂) →L[] (F₁ →L[] F₃)) x :=
Differentiable.comp_mdifferentiableWithinAt
(ContinuousLinearMap.differentiable (ContinuousLinearMap.compL F₁ F₂ F₃)) hf
theorem MDifferentiableAt.clm_postcomp {f : M → F₂ →L[] F₃} {x : M} (hf : MDiffAt f x) :
MDiffAt (fun y ↦ (f y).postcomp F₁ : M → (F₁ →L[] F₂) →L[] (F₁ →L[] F₃)) x :=
Differentiable.comp_mdifferentiableAt
(ContinuousLinearMap.differentiable (ContinuousLinearMap.compL F₁ F₂ F₃)) hf
nonrec theorem MDifferentiableOn.clm_postcomp {f : M → F₂ →L[] F₃} {s : Set M} (hf : MDiff[s] f) :
MDiff[s] (fun y ↦ (f y).postcomp F₁ : M → (F₁ →L[] F₂) →L[] (F₁ →L[] F₃)) := fun x hx ↦
(hf x hx).clm_postcomp
theorem MDifferentiable.clm_postcomp {f : M → F₂ →L[] F₃} (hf : MDiff f) :
MDiff (fun y ↦ (f y).postcomp F₁ : M → (F₁ →L[] F₂) →L[] (F₁ →L[] F₃)) :=
fun x ↦ (hf x).clm_postcomp
theorem MDifferentiableWithinAt.clm_comp
{g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₁} {s : Set M} {x : M}
(hg : MDiffAt[s] g x) (hf : MDiffAt[s] f x) :
MDiffAt[s] (fun x ↦ (g x).comp (f x)) x :=
Differentiable.comp_mdifferentiableWithinAt
(g := fun x : (F₁ →L[] F₃) × (F₂ →L[] F₁) => x.1.comp x.2)
(f := fun x => (g x, f x)) (differentiable_fst.clm_comp differentiable_snd)
(hg.prodMk_space hf)
theorem MDifferentiableAt.clm_comp {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₁} {x : M}
(hg : MDiffAt g x) (hf : MDiffAt f x) :
MDiffAt (fun x ↦ (g x).comp (f x)) x :=
(hg.mdifferentiableWithinAt.clm_comp hf.mdifferentiableWithinAt).mdifferentiableAt Filter.univ_mem
theorem MDifferentiableOn.clm_comp {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₁} {s : Set M}
(hg : MDiff[s] g) (hf : MDiff[s] f) : MDiff[s] (fun x ↦ (g x).comp (f x)) :=
fun x hx ↦ (hg x hx).clm_comp (hf x hx)
theorem MDifferentiable.clm_comp {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₁}
(hg : MDiff g) (hf : MDiff f) : MDiff fun x ↦ (g x).comp (f x) :=
fun x ↦ (hg x).clm_comp (hf x)
/-- Applying a linear map to a vector is differentiable within a set. Version in vector spaces. For
a version in nontrivial vector bundles, see `MDifferentiableWithinAt.clm_apply_of_inCoordinates`. -/
theorem MDifferentiableWithinAt.clm_apply {g : M → F₁ →L[] F₂} {f : M → F₁} {s : Set M} {x : M}
(hg : MDiffAt[s] g x) (hf : MDiffAt[s] f x) :
MDiffAt[s] (fun x ↦ g x (f x)) x :=
DifferentiableWithinAt.comp_mdifferentiableWithinAt (t := univ)
(g := fun x : (F₁ →L[] F₂) × F₁ ↦ x.1 x.2)
(by apply (Differentiable.differentiableAt _).differentiableWithinAt
exact differentiable_fst.clm_apply differentiable_snd) (hg.prodMk_space hf)
(by simp_rw [mapsTo_univ])
/-- Applying a linear map to a vector is differentiable. Version in vector spaces. For a
version in nontrivial vector bundles, see `MDifferentiableAt.clm_apply_of_inCoordinates`. -/
theorem MDifferentiableAt.clm_apply {g : M → F₁ →L[] F₂} {f : M → F₁} {x : M}
(hg : MDiffAt g x) (hf : MDiffAt f x) : MDiffAt (fun x ↦ g x (f x)) x :=
DifferentiableWithinAt.comp_mdifferentiableWithinAt (t := univ)
(g := fun x : (F₁ →L[] F₂) × F₁ => x.1 x.2)
(by apply (Differentiable.differentiableAt _).differentiableWithinAt
exact differentiable_fst.clm_apply differentiable_snd) (hg.prodMk_space hf)
(by simp_rw [mapsTo_univ])
theorem MDifferentiableOn.clm_apply {g : M → F₁ →L[] F₂} {f : M → F₁} {s : Set M}
(hg : MDiff[s] g) (hf : MDiff[s] f) : MDiff[s] (fun x ↦ g x (f x)) :=
fun x hx ↦ (hg x hx).clm_apply (hf x hx)
theorem MDifferentiable.clm_apply {g : M → F₁ →L[] F₂} {f : M → F₁}
(hg : MDiff g) (hf : MDiff f) : MDiff fun x ↦ g x (f x) :=
fun x ↦ (hg x).clm_apply (hf x)
theorem MDifferentiableWithinAt.cle_arrowCongr
{f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄} {s : Set M} {x : M}
(hf : MDiffAt[s] (fun x ↦ ((f x).symm : F₂ →L[] F₁)) x)
(hg : MDiffAt[s] (fun x ↦ (g x : F₃ →L[] F₄)) x) :
MDiffAt[s] (fun y ↦ (f y).arrowCongr (g y) : M → (F₁ →L[] F₃) →L[] (F₂ →L[] F₄)) x :=
show MDifferentiableWithinAt I (, (F₁ →L[] F₃) →L[] (F₂ →L[] F₄))
(fun y ↦ (((f y).symm : F₂ →L[] F₁).precomp F₄).comp ((g y : F₃ →L[] F₄).postcomp F₁)) s x
from hf.clm_precomp (F₃ := F₄) |>.clm_comp <| hg.clm_postcomp (F₁ := F₁)
theorem MDifferentiableAt.cle_arrowCongr {f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄} {x : M}
(hf : MDiffAt (fun x ↦ ((f x).symm : F₂ →L[] F₁)) x)
(hg : MDiffAt (fun x ↦ (g x : F₃ →L[] F₄)) x) :
MDiffAt (fun y ↦ (f y).arrowCongr (g y) : M → (F₁ →L[] F₃) →L[] (F₂ →L[] F₄)) x :=
show MDifferentiableAt I (, (F₁ →L[] F₃) →L[] (F₂ →L[] F₄))
(fun y ↦ (((f y).symm : F₂ →L[] F₁).precomp F₄).comp ((g y : F₃ →L[] F₄).postcomp F₁)) x
from hf.clm_precomp (F₃ := F₄) |>.clm_comp <| hg.clm_postcomp (F₁ := F₁)
theorem MDifferentiableOn.cle_arrowCongr {f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄} {s : Set M}
(hf : MDiff[s] (fun x ↦ ((f x).symm : F₂ →L[] F₁)))
(hg : MDiff[s] (fun x ↦ (g x : F₃ →L[] F₄))) :
MDiff[s] (fun y ↦ (f y).arrowCongr (g y) : M → (F₁ →L[] F₃) →L[] (F₂ →L[] F₄)) := fun x hx ↦
(hf x hx).cle_arrowCongr (hg x hx)
theorem MDifferentiable.cle_arrowCongr {f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄}
(hf : MDiff (fun x ↦ ((f x).symm : F₂ →L[] F₁)))
(hg : MDiff (fun x ↦ (g x : F₃ →L[] F₄))) :
MDiff (fun y ↦ (f y).arrowCongr (g y) : M → (F₁ →L[] F₃) →L[] (F₂ →L[] F₄)) := fun x ↦
(hf x).cle_arrowCongr (hg x)
theorem MDifferentiableWithinAt.clm_prodMap {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₄} {s : Set M}
{x : M} (hg : MDiffAt[s] g x) (hf : MDiffAt[s] f x) :
MDiffAt[s] (fun x ↦ (g x).prodMap (f x)) x :=
Differentiable.comp_mdifferentiableWithinAt
(g := fun x : (F₁ →L[] F₃) × (F₂ →L[] F₄) => x.1.prodMap x.2)
(f := fun x => (g x, f x)) (ContinuousLinearMap.prodMapL F₁ F₃ F₂ F₄).differentiable
(hg.prodMk_space hf)
nonrec theorem MDifferentiableAt.clm_prodMap {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₄} {x : M}
(hg : MDiffAt g x) (hf : MDiffAt f x) : MDiffAt (fun x ↦ (g x).prodMap (f x)) x :=
Differentiable.comp_mdifferentiableWithinAt
(g := fun x : (F₁ →L[] F₃) × (F₂ →L[] F₄) => x.1.prodMap x.2)
(f := fun x => (g x, f x)) (ContinuousLinearMap.prodMapL F₁ F₃ F₂ F₄).differentiable
(hg.prodMk_space hf)
theorem MDifferentiableOn.clm_prodMap {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₄} {s : Set M}
(hg : MDiff[s] g) (hf : MDiff[s] f) :
MDiff[s] (fun x ↦ (g x).prodMap (f x)) :=
fun x hx ↦ (hg x hx).clm_prodMap (hf x hx)
theorem MDifferentiable.clm_prodMap {g : M → F₁ →L[] F₃} {f : M → F₂ →L[] F₄}
(hg : MDiff g) (hf : MDiff f) : MDiff fun x ↦ (g x).prodMap (f x) :=
fun x ↦ (hg x).clm_prodMap (hf x)
/-! ### Continuous alternating maps between normed spaces are differentiable -/
variable {ι : Type*} [Fintype ι]
theorem ContinuousAlternatingMap.mdifferentiable (L : E [⋀^ι]→L[] F) :
MDifferentiable (, (Π (_ : ι), E)) (, F) L :=
(ContinuousAlternatingMap.contMDiff _).mdifferentiable one_ne_zero
theorem ContinuousAlternatingMap.mdifferentiableAt (L : E [⋀^ι]→L[] F) {x} :
MDifferentiableAt (, (Π (_ : ι), E)) (, F) L x :=
L.mdifferentiable _
theorem ContinuousAlternatingMap.mdifferentiableWithinAt (L : E [⋀^ι]→L[] F) {s x} :
MDifferentiableWithinAt (, (Π (_ : ι), E)) (, F) L s x :=
L.mdifferentiableAt.mdifferentiableWithinAt
theorem ContinuousAlternatingMap.mdifferentiableOn (L : E [⋀^ι]→L[] F) {s} :
MDifferentiableOn (, (Π (_ : ι), E)) (, F) L s :=
L.mdifferentiable.mdifferentiableOn
theorem MDifferentiableWithinAt.compContinuousLinearMapCLM [CharZero ]
{f : M → F₁ →L[] F₂} {s : Set M} {x : M} (hf : MDiffAt[s] f x) :
MDiffAt[s]
(fun y ↦ ContinuousAlternatingMap.compContinuousLinearMapCLM (f y) :
M → (F₂ [⋀^ι]→L[] F₃) →L[] (F₁ [⋀^ι]→L[] F₃)) x := by
apply Differentiable.comp_mdifferentiableWithinAt
(g := ContinuousAlternatingMap.compContinuousLinearMapCLM)
· rw [← differentiableOn_univ]
exact (ContinuousAlternatingMap.cpolynomialOn_compContinuousLinearMapCLM
_).contDiffOn.differentiableOn one_ne_zero
· exact hf
nonrec theorem MDifferentiableAt.compContinuousLinearMapCLM [CharZero ]
{f : M → F₁ →L[] F₂} {x : M} (hf : MDiffAt f x) :
MDiffAt
(fun y ↦ ContinuousAlternatingMap.compContinuousLinearMapCLM (f y) :
M → (F₂ [⋀^ι]→L[] F₃) →L[] (F₁ [⋀^ι]→L[] F₃)) x :=
MDifferentiableWithinAt.compContinuousLinearMapCLM hf
theorem MDifferentiableOn.compContinuousLinearMapCLM [CharZero ]
{f : M → F₁ →L[] F₂} {s : Set M} (hf : MDiff[s] f) :
MDiff[s]
(fun y ↦ ContinuousAlternatingMap.compContinuousLinearMapCLM (f y) :
M → (F₂ [⋀^ι]→L[] F₃) →L[] (F₁ [⋀^ι]→L[] F₃)) :=
fun x hx ↦ (hf x hx).compContinuousLinearMapCLM
theorem MDifferentiable.compContinuousLinearMapCLM [CharZero ]
{f : M → F₁ →L[] F₂} (hf : MDiff f) :
MDiff
(fun y ↦ ContinuousAlternatingMap.compContinuousLinearMapCLM (f y) :
M → (F₂ [⋀^ι]→L[] F₃) →L[] (F₁ [⋀^ι]→L[] F₃)) :=
fun x ↦ (hf x).compContinuousLinearMapCLM
theorem MDifferentiableWithinAt.compContinuousAlternatingMapCLM
{f : M → F₂ →L[] F₃} {s : Set M} {x : M} (hf : MDiffAt[s] f x) :
MDiffAt[s] (fun y ↦ ContinuousLinearMap.compContinuousAlternatingMapCLM F₁ F₂ F₃ ι (f y)) x :=
Differentiable.comp_mdifferentiableWithinAt
(ContinuousLinearMap.compContinuousAlternatingMapCLM F₁ F₂ F₃ ι).differentiable hf
theorem MDifferentiableAt.compContinuousAlternatingMapCLM
{f : M → F₂ →L[] F₃} {x : M} (hf : MDiffAt f x) :
MDiffAt (fun y ↦ ContinuousLinearMap.compContinuousAlternatingMapCLM F₁ F₂ F₃ ι (f y)) x :=
MDifferentiableWithinAt.compContinuousAlternatingMapCLM hf
theorem MDifferentiableOn.compContinuousAlternatingMapCLM
{f : M → F₂ →L[] F₃} {s : Set M} (hf : MDiff[s] f) :
MDiff[s] (fun y ↦ ContinuousLinearMap.compContinuousAlternatingMapCLM F₁ F₂ F₃ ι (f y)) :=
fun x hx ↦ (hf x hx).compContinuousAlternatingMapCLM
theorem MDifferentiable.compContinuousAlternatingMapCLM {f : M → F₂ →L[] F₃} (hf : MDiff f) :
MDiff (fun y ↦ ContinuousLinearMap.compContinuousAlternatingMapCLM F₁ F₂ F₃ ι (f y)) :=
fun x ↦ (hf x).compContinuousAlternatingMapCLM
theorem MDifferentiableWithinAt.continuousAlternatingMapCongr [CharZero ]
{f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄}
(hf : MDiffAt[s] (fun x ↦ ((f x).symm : F₂ →L[] F₁)) x)
(hg : MDiffAt[s] (fun x ↦ (g x : F₃ →L[] F₄)) x) :
MDiffAt[s]
(fun (y : M) ↦ (ContinuousLinearEquiv.continuousAlternatingMapCongr (f y) (g y) (ι := ι) :
(F₁ [⋀^ι]→L[] F₃) →L[] (F₂ [⋀^ι]→L[] F₄))) x := by
simp_rw [ContinuousLinearEquiv.coe_continuousAlternatingMapCongr]
apply MDifferentiableWithinAt.clm_comp
· exact MDifferentiableWithinAt.compContinuousAlternatingMapCLM hg
· exact MDifferentiableWithinAt.compContinuousLinearMapCLM hf
nonrec theorem MDifferentiableAt.continuousAlternatingMapCongr [CharZero ]
{f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄} {x : M}
(hf : MDiffAt (fun x ↦ ((f x).symm : F₂ →L[] F₁)) x)
(hg : MDiffAt (fun x ↦ (g x : F₃ →L[] F₄)) x) :
MDiffAt
(fun (y : M) ↦ (ContinuousLinearEquiv.continuousAlternatingMapCongr (f y) (g y) (ι := ι) :
(F₁ [⋀^ι]→L[] F₃) →L[] (F₂ [⋀^ι]→L[] F₄))) x :=
MDifferentiableWithinAt.continuousAlternatingMapCongr hf hg
theorem MDifferentiableOn.continuousAlternatingMapCongr [CharZero ]
{f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄} {s : Set M}
(hf : MDiff[s] (fun x ↦ ((f x).symm : F₂ →L[] F₁)))
(hg : MDiff[s] (fun x ↦ (g x : F₃ →L[] F₄))) :
MDiff[s]
(fun (y : M) ↦ (ContinuousLinearEquiv.continuousAlternatingMapCongr (f y) (g y) (ι := ι) :
(F₁ [⋀^ι]→L[] F₃) →L[] (F₂ [⋀^ι]→L[] F₄))) :=
fun x hx ↦ (hf x hx).continuousAlternatingMapCongr (hg x hx)
theorem MDifferentiable.continuousAlternatingMapCongr [CharZero ]
{f : M → F₁ ≃L[] F₂} {g : M → F₃ ≃L[] F₄}
(hf : MDiff (fun x ↦ ((f x).symm : F₂ →L[] F₁)))
(hg : MDiff (fun x ↦ (g x : F₃ →L[] F₄))) :
MDiff
(fun (y : M) ↦ (ContinuousLinearEquiv.continuousAlternatingMapCongr (f y) (g y) (ι := ι) :
(F₁ [⋀^ι]→L[] F₃) →L[] (F₂ [⋀^ι]→L[] F₄))) :=
fun x ↦ (hf x).continuousAlternatingMapCongr (hg x)
/-- Applying an alternating map to a family of vectors is differentiable within a set.
Version in vector spaces. For versions in nontrivial vector bundles, see
`MDifferentiableWithinAt.continuousAlternatingMap_apply_of_inCoordinates` and
`MDifferentiableWithinAt.continuousAlternatingMap_bundle_apply`. -/
theorem MDifferentiableWithinAt.continuousAlternatingMap_apply
{g : M → F₁ [⋀^ι]→L[] F₂} {f : ι → M → F₁}
(hg : MDiffAt[s] g x) (hf : ∀ i, MDiffAt[s] (f i) x) :
MDiffAt[s] (fun x ↦ g x (fun i ↦ f i x)) x :=
DifferentiableWithinAt.comp_mdifferentiableWithinAt (t := univ)
(g := fun x : (F₁ [⋀^ι]→L[] F₂) × (ι → F₁) => x.1 x.2)
(f := fun x : M ↦ (g x, fun i ↦ f i x))
(ContinuousAlternatingMap.cpolynomialAt_apply.contDiffAt.differentiableWithinAt one_ne_zero)
(hg.prodMk_space (mdifferentiableWithinAt_pi_space.mpr hf)) (by simp)
/-- Applying an alternating map to a family of vectors is differentiable. Version in vector spaces.
For versions in nontrivial vector bundles, see
`MDifferentiableAt.continuousAlternatingMap_apply_of_inCoordinates` and
`MDifferentiableAt.continuousAlternatingMap_bundle_apply`. -/
nonrec theorem MDifferentiableAt.continuousAlternatingMap_apply
{g : M → F₁ [⋀^ι]→L[] F₂} {f : ι → M → F₁} (hg : MDiffAt g x) (hf : ∀ i, MDiffAt (f i) x) :
MDiffAt (fun x ↦ g x (f · x)) x :=
MDifferentiableWithinAt.continuousAlternatingMap_apply hg hf
theorem MDifferentiableOn.continuousAlternatingMap_apply
{g : M → F₁ [⋀^ι]→L[] F₂} {f : ι → M → F₁} (hg : MDiff[s] g) (hf : ∀ i, MDiff[s] (f i)) :
MDiff[s] (fun x ↦ g x (f · x)) :=
fun x hx ↦ (hg x hx).continuousAlternatingMap_apply (fun i ↦ (hf i x hx))
theorem MDifferentiable.continuousAlternatingMap_apply
{g : M → F₁ [⋀^ι]→L[] F₂} {f : ι → M → F₁} (hg : MDiff g) (hf : ∀ i, MDiff (f i)) :
MDiff (fun x ↦ g x (f · x)) :=
fun x ↦ (hg x).continuousAlternatingMap_apply (hf · x)
/-! ### Differentiability of scalar multiplication -/
section smul
open NormedSpace ContinuousLinearMap
variable {V : Type*} [NormedAddCommGroup V] [NormedSpace V]
variable {f : M → } {g : M → V}
-- TODO: investigate inlining this proof entirely!
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, if
at some point `x`, `f` has differential `f' : TangentSpace I x →L[] ` and `g` has differential
`g' : TangentSpace I x →L[] V` (both phrased using the predicate `HasMFDerivAt`), it follows that
their scalar multiplication `f • g` has differential `f x • g' + toSpanSingleton (g x) ∘L f'`.
In fact, the statement above is not literally true, because, for example, the differential of `g`
really takes values in the tangent space to `V` at `g x`, rather than in `V` itself. Of course, this
tangent space can be canonically identified with `V`.
This lemma phrases the formula using the equiv `NormedSpace.fromTangentSpace`, which provides this
canonical identification. (It would also be possible to phrase the formula without this equiv,
instead using casting and definitional abuse.) -/
private lemma HasMFDerivAt.smul
{f' : TangentSpace% x →L[] }
(hs : HasMFDerivAt% f x ((fromTangentSpace (f x)).symm.toContinuousLinearMap ∘L f'))
{g' : TangentSpace% x →L[] V}
(hg : HasMFDerivAt% g x ((fromTangentSpace (g x)).symm.toContinuousLinearMap ∘L g')) :
-- canonically identify `g'` with a linear map into the tangent space at `(f • g) x`
letI g'_ : TangentSpace% x →L[] TangentSpace (, V) ((f • g) x) :=
(fromTangentSpace _).symm.toContinuousLinearMap ∘L g'
-- canonically identify `g x` with a linear map into a tangent space at `(f • g) x`
letI gx : →L[] TangentSpace% ((f • g) x) :=
toSpanSingleton ((fromTangentSpace _).symm (g x))
-- now the main statement typechecks
HasMFDerivAt% (f • g) x (f x • g'_ + gx ∘L f') := by
constructor
· exact hs.1.smul hg.1
· simpa using! hs.2.smul hg.2
theorem MDifferentiableWithinAt.smul
(hf : MDiffAt[s] f x) (hg : MDiffAt[s] g x) :
MDiffAt[s] (fun p ↦ f p • g p) x :=
((contMDiff_smul.of_le le_top).mdifferentiable one_ne_zero _).comp_mdifferentiableWithinAt x
(hf.prodMk hg)
@[to_fun]
theorem MDifferentiableAt.smul (hf : MDiffAt f x)
(hg : MDiffAt g x) : MDiffAt (f • g) x :=
((contMDiff_smul.of_le le_top).mdifferentiable one_ne_zero _).comp x (hf.prodMk hg)
@[to_fun]
theorem MDifferentiableOn.smul (hf : MDiff[s] f)
(hg : MDiff[s] g) : MDiff[s] (f • g) :=
fun x hx ↦ (hf x hx).smul (hg x hx)
@[to_fun]
theorem MDifferentiable.smul (hf : MDiff f) (hg : MDiff g) : MDiff (f • g) :=
fun x ↦ (hf x).smul (hg x)
-- TODO: deprecate in favour of `mvfderiv_smul`, then delete this lemma
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, the
formula for the `mfderiv` (differential) of their scalar multiplication `f • g`.
Mathematically speaking the formula is `d(f • g) = f • dg + df ⊗ g`, i.e.
`mfderiv% (f • g) x = f x • mfderiv% g x + toSpanSingleton (g x) ∘L mfderiv% f x`,
but this doesn't typecheck because `mfderiv% (f • g) x` and `mfderiv% g x` take values in different
tangent spaces -- respectively the tangent spaces to `V` at `(f • g) x` and `g x`. Of course, both
these tangent spaces can be canonically identified with `V`.
This lemma phrases the formula using the equiv `NormedSpace.fromTangentSpace`, which provides this
canonical identification. (It would also be possible to phrase the formula without this equiv,
instead using casting and definitional abuse.)
It is good practice to use the equiv `NormedSpace.fromTangentSpace` throughout a computation. If
this is done, typically `mfderiv% (f • g) x` will only turn up paired with this equiv (i.e., in an
expression `(fromTangentSpace _) ∘L mfderiv% (f • g) x`), and the more convenient lemma
`fromTangentSpace_mfderiv_smul` (see below) can be used instead. -/
private lemma mfderiv_smul (hf : MDiffAt f x) (hg : MDiffAt g x) :
mfderiv% (f • g) x
= f x • (fromTangentSpace _).symm.toContinuousLinearMap ∘L
((fromTangentSpace (g x)).toContinuousLinearMap ∘L mfderiv% g x)
+ toSpanSingleton ((fromTangentSpace _).symm (g x)) ∘L
((fromTangentSpace (f x)).toContinuousLinearMap ∘L mfderiv% f x) :=
(hf.hasMFDerivAt.smul hg.hasMFDerivAt).mfderiv
-- TODO: investigate inlining the proof: this lemma statement abuses defeq
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, the
formula for the `mfderiv` (differential) of their scalar multiplication `f • g`.
Mathematically speaking the formula is `d(f • g) = f • dg + df ⊗ g`, i.e.
`mfderiv% (f • g) x = f x • mfderiv% g x + toSpanSingleton (g x) ∘L mfderiv% f x`,
but this doesn't typecheck because `mfderiv% (f • g) x` and `mfderiv% g x` take values in different
tangent spaces -- respectively the tangent spaces to `V` at `(f • g) x` and `g x`. Of course, both
these tangent spaces can be canonically identified with `V`.
This lemma phrases the formula using the equiv `NormedSpace.fromTangentSpace`, which provides this
canonical identification. (It would also be possible to phrase the formula without this equiv,
instead using casting and definitional abuse.) -/
private lemma fromTangentSpace_mfderiv_smul (hf : MDiffAt f x) (hg : MDiffAt g x) :
(fromTangentSpace ((f • g) x)).toContinuousLinearMap ∘L mfderiv% (f • g) x
= f x • (fromTangentSpace _).toContinuousLinearMap ∘L mfderiv% g x
+ toSpanSingleton (g x) ∘L (fromTangentSpace _).toContinuousLinearMap ∘L mfderiv% f x := by
rw [mfderiv_smul hf hg]
rfl
-- TODO: investigate inlining the proof: this lemma statement abuses defeq
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, the
formula for the `mfderiv` (differential) of their scalar multiplication `f • g`.
Mathematically speaking the formula is `d(f • g) = f • dg + df ⊗ g`, but to get it to typecheck
we need a phrasing involving the canonical identification `NormedSpace.fromTangentSpace` between
the vector space `V` and the tangent space to this vector space at any point. This is because two
different tangent spaces (at `(f • g) x` and `g x`) appear in the equation.
This is a defeq variant of the main lemma `fromTangentSpace_mfderiv_smul`, in which we work in the
tangent space at `f x • g x` (the simp-normal form) rather than at `(f • g) x`. -/
private lemma fromTangentSpace_mfderiv_smul' (hf : MDiffAt f x) (hg : MDiffAt g x) :
(fromTangentSpace (f x • g x)).toContinuousLinearMap ∘L mfderiv% (f • g) x
= f x • (fromTangentSpace _).toContinuousLinearMap ∘L mfderiv% g x
+ toSpanSingleton (g x) ∘L (fromTangentSpace _).toContinuousLinearMap ∘L mfderiv% f x :=
fromTangentSpace_mfderiv_smul hf hg
-- TODO: investigate inlining the proof: this lemma statement abuses defeq
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, the
formula for the `mfderiv` (differential) of their scalar multiplication `f • g` in the direction of
the tangent vector `v`.
Mathematically speaking the formula is `d(f • g)(v) = f • dg(v) + df(v) • g`, but to get it to
typecheck we need a phrasing involving the canonical identification `NormedSpace.fromTangentSpace`
between the vector space `V` and the tangent space to this vector space at any point. This is
because two different tangent spaces (at `(f • g) x` and `g x`) appear in the equation. -/
private lemma fromTangentSpace_mfderiv_smul_apply (hf : MDiffAt f x) (hg : MDiffAt g x)
(v : TangentSpace% x) :
fromTangentSpace _ (mfderiv% (f • g) x v)
= f x • fromTangentSpace _ (mfderiv% g x v) + fromTangentSpace _ (mfderiv% f x v) • g x := by
simpa using congr($(fromTangentSpace_mfderiv_smul hf hg) v)
-- TODO: investigate inlining the proof: this lemma statement abuses defeq
/-- Given maps `f`, `g` from a manifold into a field `` and ``-vector space `V`, respectively, the
formula for the `mfderiv` (differential) of their scalar multiplication `f • g` in the direction of
the tangent vector `v`.
Mathematically speaking the formula is `d(f • g)(v) = f • dg(v) + df(v) • g`, but to get it to
typecheck we need a phrasing involving the canonical identification `NormedSpace.fromTangentSpace`
between the vector space `V` and the tangent space to this vector space at any point. This is
because two different tangent spaces (at `(f • g) x` and `g x`) appear in the equation.
This is a defeq variant of the main lemma `fromTangentSpace_mfderiv_smul_apply`, in which we work in
the tangent space at `f x • g x` (the simp-normal form) rather than at `(f • g) x`. -/
private lemma fromTangentSpace_mfderiv_smul_apply' (hf : MDiffAt f x) (hg : MDiffAt g x)
(v : TangentSpace% x) :
fromTangentSpace (f x • g x) (mfderiv% (f • g) x v)
= f x • fromTangentSpace _ (mfderiv% g x v) + fromTangentSpace _ (mfderiv% f x v) • g x :=
fromTangentSpace_mfderiv_smul_apply hf hg v
end smul
/-! ### Exterior derivative of a vector-valued function -/
variable (I) in
/-- `mvfderivWithin I J f s x` is the `mfderiv` of a vector-valued function `f` on `M` at `x`
within the set `s`, but taking values in the target normed space directly.
The difference to `mfderivWithin` is explained in the module-docstring for
`Mathlib/Geometry/Manifold/MFDeriv/NormedSpace.lean`.
Future: this could be generalised to functions into additive torsors over abelian Lie groups.
-/
@[expose]
noncomputable def mvfderivWithin (g : M → F) (s : Set M) :
Π x : M, TangentSpace I x →L[] F :=
fun x ↦ (NormedSpace.fromTangentSpace <| g x).toContinuousLinearMap ∘L (mfderiv[s] g x)
variable (I) in
/-- `mvfderiv I J f x` is the `mfderiv` of a vector-valued function `f` on `M` at `x`,
but taking values in the target normed space directly.
The difference to `mfderiv` is explained in the module-docstring for
`Mathlib/Geometry/Manifold/MFDeriv/NormedSpace.lean`.
Future: this could be generalised to functions into additive torsors over abelian Lie groups.
-/
@[expose]
noncomputable def mvfderiv (g : M → F) :
Π x : M, TangentSpace% x →L[] F :=
fun x ↦ (NormedSpace.fromTangentSpace <| g x).toContinuousLinearMap ∘L (mfderiv% g x)
@[deprecated (since := "2026-05-17")] alias extDerivFun := mvfderiv
namespace Manifold
open scoped Bundle Manifold ContDiff
open Lean Meta Elab Tactic
/-- `d[s] f x` (scoped to the `Manifold` namespace) elaborates to `mvfderivWithin I f s x`,
trying to determine `I` and `J` from the local context. -/
scoped elab:max "d[" s:term "]" ppSpace t:term:arg : term => do
let es ← Term.elabTerm s none
let e ← ensureIsFunction <| ← Term.elabTerm t none
let (srcI, _tgtI) ← findModels e none
mkAppM ``mvfderivWithin #[srcI, e, es]
/-- `d% f x` (scoped to the `Manifold` namespace) elaborates to `mvfderiv I f x`,
trying to determine `I` and `J` from the local context. -/
scoped elab:max "d%" ppSpace t:term:arg : term => do
let e ← ensureIsFunction <| ← Term.elabTerm t none
let (srcI, _tgtI) ← findModels e none
mkAppM ``mvfderiv #[srcI, e]
open Bundle PrettyPrinter Delaborator SubExpr
/-- Delaborator for `mvfderivWithin`. -/
-- There is no need to special-case any arguments which could use the `T%` elaborator:
-- the argument to `mvfderivWithin` is a vector-valued function, which a map to a total space
-- can never be.
@[app_delab mvfderivWithin] meta def delabMVFDerivWithin : Delab := do
whenPPOption getPPNotation do
withOverApp 16 do
let ss ← withAppArg delab
let fs ← withNaryArg 14 delab
`(d[$ss] $fs) >>= annotateGoToSyntaxDef
/-- Delaborator for `mvfderiv`. -/
-- There is no need to special-case any arguments which could use the `T%` elaborator:
-- the argument to `mvfderiv` is a vector-valued function, which a map to a total space
-- can never be.
@[app_delab mvfderiv] meta def delabMVFDeriv : Delab := do
whenPPOption getPPNotation do
withOverApp 15 do
let fs ← withAppArg delab
`(d% $fs) >>= annotateGoToSyntaxDef
end Manifold
@[simp, mfld_simps] lemma mvfderivWithin_univ {f : M → F} : d[(univ : Set M)] f = d% f := by
ext X
simp [mvfderiv, mvfderivWithin]
lemma mvfderivWithin_const (c : F) {x : M} : d[s] (fun _ : M ↦ c) x = 0 := by
simp [mvfderivWithin, mfderivWithin_const]
lemma mvfderiv_const (c : F) {x : M} : d% (fun _ : M ↦ c) x = 0 := by
simp [mvfderiv, mfderiv_const]
@[simp]
lemma mvfderivWithin_zero {s : Set M} : d[s] (0 : M → F) x = 0 :=
mvfderivWithin_const 0
@[simp]
lemma mvfderiv_zero {x : M} : d% (0 : M → F) x = 0 := mvfderiv_const 0
@[deprecated (since := "2026-05-17")] alias extDerivFun_zero := mvfderiv_zero
@[simp, to_fun mvfderivWithin_fun_add]
lemma mvfderivWithin_add {g g' : M → F} {x : M}
(hg : MDiffAt[s] g x) (hg' : MDiffAt[s] g' x) (hs : UniqueMDiffAt[s] x) :
d[s](g + g') x = d[s]g x + d[s]g' x := by
simp [mvfderivWithin, mfderivWithin_add hg hg' hs]
rfl
@[simp, to_fun mvfderiv_fun_add]
lemma mvfderiv_add {g g' : M → F} {x : M} (hg : MDiffAt g x) (hg' : MDiffAt g' x) :
d% (g + g') x = d% g x + d% g' x := by
simp [mvfderiv, mfderiv_add hg hg']
rfl
@[deprecated (since := "2026-05-17")] alias extDerivFun_add := mvfderiv_add
@[simp, to_fun mvfderivWithin_fun_sub]
lemma mvfderivWithin_sub {g g' : M → F} {x : M}
(hg : MDiffAt[s] g x) (hg' : MDiffAt[s] g' x) (hs : UniqueMDiffAt[s] x) :
d[s](g - g') x = d[s]g x - d[s]g' x := by
simp [mvfderivWithin, mfderivWithin_sub hg hg' hs]
rfl
@[simp, to_fun mvfderiv_fun_sub]
lemma mvfderiv_sub {g g' : M → F} {x : M} (hg : MDiffAt g x) (hg' : MDiffAt g' x) :
d% (g - g') x = d% g x - d% g' x := by
simp [mvfderiv, mfderiv_sub hg hg']
rfl
@[simp, to_fun mvfderivWithin_fun_neg]
lemma mvfderivWithin_neg {g : M → F} {x : M} (hs : UniqueMDiffAt[s] x) :
d[s](-g) x = -d[s]g x := by
simp [mvfderivWithin, mfderivWithin_neg hs]
rfl
@[simp, to_fun mvfderiv_fun_neg]
lemma mvfderiv_neg {g : M → F} {x : M} :
d% (-g) x = -d% g x := by
simp [mvfderiv, mfderiv_neg]
rfl
@[simp, to_fun mvfderivWithin_fun_smul]
lemma mvfderivWithin_smul {a : M → } (ha : MDiffAt[s] a x) {g : M → F} (hg : MDiffAt[s] g x)
(hs : UniqueMDiffAt[s] x) :
d[s](a • g) x =
a x • d[s] g x + (d[s] a x).smulRight (g x) := by
refine HasMFDerivWithinAt.mfderivWithin ⟨ha.1.smul hg.1, ?_⟩ hs
convert! ha.hasMFDerivWithinAt.2.smul hg.hasMFDerivWithinAt.2
simp
rfl
@[simp, to_fun mvfderiv_fun_smul]
lemma mvfderiv_smul {x : M} {a : M → } (ha : MDiffAt a x) {g : M → F} (hg : MDiffAt g x) :
d% (a • g) x = a x • d% g x + (d% a x).smulRight (g x) := by
ext v
simp [mvfderiv, -Pi.smul_apply', fromTangentSpace_mfderiv_smul_apply ha hg]
@[simp, to_fun mvfderivWithin_fun_mul]
lemma mvfderivWithin_mul {f g : M → } {x : M} (hf : MDiffAt[s] f x) (hg : MDiffAt[s] g x)
(hs : UniqueMDiffAt[s] x) :
d[s](f * g) x = f x • d[s]g x + (g x) • (d[s]f x) := by
convert mvfderivWithin_smul hf hg hs
ext v
simp [mul_comm]
@[simp, to_fun mvfderiv_fun_mul]
lemma mvfderiv_mul {f g : M → } {x : M} (hf : MDiffAt f x) (hg : MDiffAt g x) :
d% (f * g) x = f x • d% g x + (g x) • (d% f x) := by
ext v
simp only [mvfderiv, ← smul_eq_mul, mfderiv_smul hf hg]
simp [mul_comm _ (g x)]
-- TODO: the next two lemmas are more type correct than their `mvfderiv` cousins, but not entirely:
-- the right hand side should be of the form `fderiv ∘SL TangentSpaceCastModel`.
protected theorem MDifferentiableWithinAt.mvfderivWithin {f : M → E'} (h : MDiffAt[s] f x) :
d[s] f x = fderivWithin (writtenInExtChartAt I (, E') x f)
((extChartAt I x).symm ⁻¹' s ∩ range I) (extChartAt I x x) := by
convert! h.mfderivWithin
protected theorem MDifferentiableAt.mvfderiv {f : M → E'} (h : MDiffAt f x) :
d% f x = fderivWithin (writtenInExtChartAt I (, E') x f) (range I) (extChartAt I x x) := by
convert! h.mfderiv
section
variable {f : E → E'} {s : Set E} {x : E}
/-- For maps between vector spaces, `mvfderivWithin` and `fderivWithin` coincide. -/
@[simp]
theorem mvfderivWithin_eq_fderivWithin :
d[s] f x = (fderivWithin f s x) ∘L (NormedSpace.fromTangentSpace ( := ) x) := by
by_cases h : MDiffAt[s] f x
· simp [mvfderivWithin, mfderivWithin, h, chartAt_self_eq]
rfl
· simp only [mvfderivWithin, mfderivWithin, h]
rw [mdifferentiableWithinAt_iff_differentiableWithinAt] at h
exact (fderivWithin_zero_of_not_differentiableWithinAt h).symm
/-- For maps between vector spaces, `mvfderiv` and `fderiv` coincide. -/
@[simp]
theorem mvfderiv_eq_fderiv :
d% f x = (fderiv f x) ∘L (NormedSpace.fromTangentSpace ( := ) x) := by
rw [← mvfderivWithin_univ, ← fderivWithin_univ, mvfderivWithin_eq_fderivWithin]
/-- For maps between vector spaces, `mfderivWithin` and `fderivWithin` coincide. -/
theorem mfderivWithin_eq_fderivWithin :
mfderiv[s] f x =
(NormedSpace.fromTangentSpace ( := ) (f x)).symm ∘L (fderivWithin f s x) ∘L
(NormedSpace.fromTangentSpace ( := ) x) := by
convert! mvfderivWithin_eq_fderivWithin
/-- For maps between vector spaces, `mfderiv` and `fderiv` coincide. -/
theorem mfderiv_eq_fderiv :
mfderiv% f x =
(NormedSpace.fromTangentSpace ( := ) (f x)).symm ∘L (fderiv f x) ∘L
(NormedSpace.fromTangentSpace ( := ) x) := by
convert! mvfderiv_eq_fderiv
end
/-! ## Composition lemmas for `mvfderiv(Within)` -/
section
variable {f : M' → M} {g : M → F} {x : M'} {y : M} {u : Set M} {s : Set M'}
theorem mvfderivWithin_comp (x : M') (hg : MDiffAt[u] g (f x)) (hf : MDiffAt[s] f x)
(h : s ⊆ f ⁻¹' u) (hxs : UniqueMDiffAt[s] x) :
d[s] (g ∘ f) x = (d[u] g (f x)).comp (mfderiv[s] f x) :=
mfderivWithin_comp x hg hf h hxs
theorem mvfderivWithin_comp_of_eq (hg : MDiffAt[u] g y) (hf : MDiffAt[s] f x)
(h : s ⊆ f ⁻¹' u) (hxs : UniqueMDiffAt[s] x) (hy : f x = y) :
d[s] (g ∘ f) x = (d[u] g y).comp (mfderiv[s] f x) :=
mfderivWithin_comp_of_eq hg hf h hxs hy
theorem mvfderivWithin_comp_of_preimage_mem_nhdsWithin (x : M') (hg : MDiffAt[u] g (f x))
(hf : MDiffAt[s] f x) (h : f ⁻¹' u ∈ [s] x) (hxs : UniqueMDiffAt[s] x) :
d[s] (g ∘ f) x = (d[u] g (f x)).comp (mfderiv[s] f x) :=
mfderivWithin_comp_of_preimage_mem_nhdsWithin x hg hf h hxs
theorem mvfderivWithin_comp_of_preimage_mem_nhdsWithin_of_eq (x : M') (hg : MDiffAt[u] g y)
(hf : MDiffAt[s] f x) (h : f ⁻¹' u ∈ [s] x) (hxs : UniqueMDiffAt[s] x) (hy : f x = y) :
d[s] (g ∘ f) x = (d[u] g y).comp (mfderiv[s] f x) :=
mfderivWithin_comp_of_preimage_mem_nhdsWithin_of_eq x hg hf h hxs hy
theorem mvfderiv_comp_mfderivWithin
(x : M') (hg : MDiffAt g (f x)) (hf : MDiffAt[s] f x) (hxs : UniqueMDiffAt[s] x) :
d[s] (g ∘ f) x = (d% g (f x)).comp (mfderiv[s] f x) :=
mfderiv_comp_mfderivWithin x hg hf hxs
theorem mvfderiv_comp_mfderivWithin_of_eq
(hg : MDiffAt g y) (hf : MDiffAt[s] f x) (hxs : UniqueMDiffAt[s] x) (hy : f x = y) :
d[s] (g ∘ f) x = (d% g y).comp (mfderiv[s] f x) :=
mfderiv_comp_mfderivWithin_of_eq hg hf hxs hy
theorem mvfderiv_comp (x : M') (hg : MDiffAt g (f x)) (hf : MDiffAt f x) :
d% (g ∘ f) x = (d% g (f x)).comp (mfderiv% f x) :=
mfderiv_comp x hg hf
theorem mvfderiv_comp_of_eq {y : M} (hg : MDiffAt g y) (hf : MDiffAt f x) (hy : f x = y) :
d% (g ∘ f) x = (d% g (f x)).comp (mfderiv% f x) :=
mfderiv_comp_of_eq hg hf hy
theorem mvfderiv_comp_apply
(x : M') (hg : MDiffAt g (f x)) (hf : MDiffAt f x) (v : TangentSpace% x) :
d% (g ∘ f) x v = (d% g (f x)) ((mfderiv% f x) v) :=
mfderiv_comp_apply x hg hf v
theorem mvfderiv_comp_apply_of_eq
(x : M') (hg : MDiffAt g y) (hf : MDiffAt f x) (hy : f x = y) (v : TangentSpace% x) :
d% (g ∘ f) x v = (d% g y) ((mfderiv% f x) v) :=
mfderiv_comp_apply_of_eq x hg hf hy v
end
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|