@@ -15,6 +15,10 @@ The API in this file is mostly copied from `Mathlib/Geometry/Manifold/ContMDiff/
1515providing the same statements for higher smoothness. In this file, we do the same for
1616differentiability.
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
2024public 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
392396end 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
0 commit comments