Skip to content

Commit 412906b

Browse files
committed
chore: move extDerivFun and add it to the module doc-string
1 parent b9880cc commit 412906b

2 files changed

Lines changed: 25 additions & 19 deletions

File tree

Mathlib/Geometry/Manifold/MFDeriv/NormedSpace.lean

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ The API in this file is mostly copied from `Mathlib/Geometry/Manifold/ContMDiff/
1515
providing the same statements for higher smoothness. In this file, we do the same for
1616
differentiability.
1717
18+
In addition to the above, this file provides
19+
* results about the differentiability of scalar multiplication (`mfderiv_smul` and friends), and
20+
* `extDerivFun`: the exterior derivative of a scalar function, as a section of the cotangent bundle
21+
1822
-/
1923

2024
public section
@@ -390,3 +394,24 @@ lemma fromTangentSpace_mfderiv_smul_apply' (hf : MDiffAt f x) (hg : MDiffAt g x)
390394
fromTangentSpace_mfderiv_smul_apply hf hg v
391395

392396
end smul
397+
398+
/-! ### Exterior derivative of a scalar function -/
399+
400+
/-- The exterior derivative of a scalar function on `M`, as a section of the cotangent bundle. -/
401+
noncomputable abbrev extDerivFun (g : M → 𝕜) :
402+
Π x : M, TangentSpace I x →L[𝕜] 𝕜 :=
403+
fun x ↦ (NormedSpace.fromTangentSpace <| g x).toContinuousLinearMap ∘L (mfderiv% g x)
404+
405+
@[simp]
406+
lemma extDerivFun_add {g g' : M → 𝕜} {x : M} (hg : MDiffAt g x) (hg' : MDiffAt g' x) :
407+
extDerivFun (g + g') x = extDerivFun (I := I) g x + extDerivFun g' x := by
408+
simp [extDerivFun, mfderiv_add hg hg']
409+
congr
410+
411+
@[simp]
412+
lemma extDerivFun_zero {x : M} : extDerivFun (I := I) (0 : M → 𝕜) x = 0 := by
413+
have : extDerivFun (0 : M → 𝕜) x + extDerivFun (0 : M → 𝕜) x =
414+
extDerivFun (I := I) (0 : M → 𝕜) x := by
415+
rw [← extDerivFun_add (by exact mdifferentiable_const ..) (by exact mdifferentiable_const ..)]
416+
simp
417+
simpa using this

Mathlib/Geometry/Manifold/VectorBundle/CovariantDerivative/Basic.lean

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,6 @@ variable {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E]
8282
[∀ x, IsTopologicalAddGroup (V x)] [∀ x, ContinuousSMul 𝕜 (V x)]
8383
[FiberBundle F V]
8484

85-
/-- The exterior derivative of a scalar function on `M`, as a section of the cotangent bundle. -/
86-
abbrev extDerivFun (g : M → 𝕜) :
87-
Π x : M, TangentSpace I x →L[𝕜] 𝕜 :=
88-
fun x ↦ (fromTangentSpace <| g x).toContinuousLinearMap ∘L (mfderiv% g x)
89-
90-
@[simp]
91-
lemma extDerivFun_add {g g' : M → 𝕜} {x : M} (hg : MDiffAt g x) (hg' : MDiffAt g' x) :
92-
extDerivFun (g + g') x = extDerivFun (I := I) g x + extDerivFun g' x := by
93-
simp [extDerivFun, mfderiv_add hg hg']
94-
congr
95-
96-
@[simp]
97-
lemma extDerivFun_zero {x : M} : extDerivFun (I := I) (0 : M → 𝕜) x = 0 := by
98-
have : extDerivFun (0 : M → 𝕜) x + extDerivFun (0 : M → 𝕜) x =
99-
extDerivFun (I := I) (0 : M → 𝕜) x := by
100-
rw [← extDerivFun_add (by exact mdifferentiable_const ..) (by exact mdifferentiable_const ..)]
101-
simp
102-
simpa using this
103-
10485
/-- A function from sections of a vector bundle `V` on a manifold `M` to sections of $Hom(TM, E)$
10586
is a *covariant derivative* over a set `s` in `M` if it is additive and satisfies the Leibniz rule
10687
when applied to sections that are differentiable at a point of `s`.

0 commit comments

Comments
 (0)