diff --git a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean index 4e6454007e..574cac0a2a 100644 --- a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean @@ -8,6 +8,7 @@ module public import TauCeti.Geometry.Manifold.DifferentialForm.ExtDeriv import SymplecticGeometry.Geometry.Manifold.DifferentialForm.Basic import TauCeti.Geometry.Manifold.MFDeriv.NormedSpace +import TauCeti.Geometry.Manifold.DifferentialForm.Opens.ModelSpace /-! # The exterior derivative of functions, and in a chart @@ -37,6 +38,12 @@ coordinate expression of `φ` in the directions `Vₚ`, evaluated on the other v (`TauCeti.mextDeriv_apply_eq_sum_fderivWithin`): Tau Ceti's `TauCeti.mextDeriv_def` followed by Mathlib's `extDerivWithin_apply`. +On an open subset `U` of a normed space `E`, with the model `𝓘(ℝ, E)`, the exterior derivative of +a form `ω` differentiable at `b`, at `b` on `v₀, …, vₖ ∈ E`, is the alternating sum of the +derivatives at `b`, in the directions `vᵢ`, of the functions `b' ↦ ω b' (v without vᵢ)` on `U` +(`TauCeti.mextDeriv_opens_apply`). It is Tau Ceti's `TauCeti.mextDeriv_opens_eq_extDeriv`, +applied to the extension of `ω` by zero to `E`, followed by Mathlib's `extDeriv_apply`. + ## Main results * `TauCeti.mextDeriv_ofFunction_add_apply`, `TauCeti.mextDeriv_ofFunction_sub_apply`: @@ -47,6 +54,7 @@ Mathlib's `extDerivWithin_apply`. space. * `TauCeti.mextDeriv_apply_eq_sum_fderivWithin`: the coordinate formula for `dφ` in the chart at `x`. +* `TauCeti.mextDeriv_opens_apply`: the formula for `dω` on an open subset of a normed space. ## References @@ -132,6 +140,37 @@ theorem mextDeriv_ofFunction_modelSpace_apply (f : E → F) (x : E) rw [mextDeriv_ofFunction, ContinuousAlternatingMap.ofSubsingleton_apply_apply, mvfderiv_eq_fderiv_apply] +/-- **The exterior derivative on an open subset of a normed space.** Let `U` be an open subset of +`E`, with the model `𝓘(ℝ, E)`, and `ω` a form of degree `k` on `U` that is differentiable at +`b ∈ U`. On `v₀, …, vₖ ∈ E`, `dω` at `b` is the alternating sum over `i` of the derivatives at +`b`, in the direction `vᵢ`, of `b' ↦ ω b' (Fin.removeNth i v)`. -/ +theorem mextDeriv_opens_apply {U : TopologicalSpace.Opens E} {k : ℕ} + {ω : RoughForm 𝓘(ℝ, E) U F k} {b : U} + (hω : MDifferentiableAt 𝓘(ℝ, E) 𝓘(ℝ, E [⋀^Fin k]→L[ℝ] F) + (fun b' : U ↦ show E [⋀^Fin k]→L[ℝ] F from ω b') b) + (v : Fin (k + 1) → E) : + mextDeriv ω b v = ∑ i, (-1) ^ i.val • + mfderiv 𝓘(ℝ, E) 𝓘(ℝ, F) (fun b' : U ↦ ω b' (i.removeNth v)) b (v i) := by + set ω₀ : E → E [⋀^Fin k]→L[ℝ] F := + Function.extend Subtype.val (fun b' : U ↦ show E [⋀^Fin k]→L[ℝ] F from ω b') 0 + have hω₀ (b' : U) : ω b' = ω₀ b' := (Subtype.val_injective.extend_apply _ _ b').symm + have hd : DifferentiableAt ℝ ω₀ b := by + rw [show (fun b' : U ↦ show E [⋀^Fin k]→L[ℝ] F from ω b') = ω₀ ∘ Subtype.val from + funext hω₀] at hω + exact mdifferentiableAt_iff_differentiableAt.mp + (Manifold.mdifferentiableAt_comp_subtype_val_iff.mp hω) + refine (congrArg (fun φ : E [⋀^Fin (k + 1)]→L[ℝ] F ↦ φ v) + (mextDeriv_opens_eq_extDeriv hω₀ b)).trans ?_ + rw [extDeriv_apply hd] + refine Finset.sum_congr rfl fun i _ ↦ congrArg _ ?_ + have h : (fun b' : U ↦ ω b' (i.removeNth v)) = (fun e ↦ ω₀ e (i.removeNth v)) ∘ Subtype.val := + funext fun b' ↦ congrArg (fun φ : E [⋀^Fin k]→L[ℝ] F ↦ φ (i.removeNth v)) (hω₀ b') + rw [h] + refine Eq.symm ((Manifold.mfderiv_comp_subtype_val_apply (v i)).trans ?_) + rw [mfderiv_eq_fderiv] + -- `NormedSpace.fromTangentSpace` is the identity of `E` and of `F`. + rfl + end NormedSpace end TauCeti diff --git a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean new file mode 100644 index 0000000000..cc0a14950e --- /dev/null +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean @@ -0,0 +1,173 @@ +/- +Copyright (c) 2026 The FormalCommons contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: The FormalCommons contributors +-/ +module + +public import SymplecticGeometry.Geometry.Manifold.DifferentialForm.FiberIntegral.Product.Basic +import SymplecticGeometry.Geometry.Manifold.DifferentialForm.ExtDeriv +import SymplecticGeometry.Geometry.Manifold.DifferentialForm.FiberIntegral.Product.ExtDeriv.BaseDeriv +import SymplecticGeometry.Geometry.Manifold.DifferentialForm.FiberIntegral.Product.ExtDeriv.Integrand +import TauCeti.Geometry.Manifold.DifferentialForm.Integration.BoundarylessStokes +import TauCeti.Geometry.Manifold.DifferentialForm.Integration.Regularity +import TauCeti.Geometry.Manifold.DifferentialForm.Opens.ModelSpace + +/-! +# The fibre integral commutes with `d` over an open subset of a normed space + +Let `U` be an open subset of a finite-dimensional normed space `E`, with the model `𝓘(ℝ, E)`, and +let `F` be a compact, Hausdorff, boundaryless manifold of dimension `m`, oriented by `o`. For a +smooth form `α` of degree `r + m` on `U × F`, this file proves +`SymplecticGeometry.prodFiberIntegral_mextDeriv_opens`: +`∫_F dα = d ∫_F α`, the degree of `dα` being cast along `(r + m) + 1 = (r + 1) + m`. It holds for +every `m`, including `m = 0`. + +The proof integrates over `F` the pointwise formula for the integrand of `dα` +(`SymplecticGeometry.prodFiberIntegrand_cast_mextDerivₗ_apply_succ` and +`SymplecticGeometry.prodFiberIntegrand_cast_mextDerivₗ_apply_zero`). Its base terms integrate to +the derivatives in the base of the fibre integrals +(`SymplecticGeometry.mfderiv_integralTopForm_prodFiberIntegrand_apply`), whose alternating sum is +`d ∫_F α` (`TauCeti.mextDeriv_opens_apply`). For `m = n + 1` the remaining term is the exterior +derivative of an `n`-form on `F`, whose integral vanishes by Stokes's theorem on the closed +manifold `F` (`TauCeti.integralTopForm_mextDeriv_eq_zero`). + +This is the case of a flat base of the argument of Bott–Tu, §6, that integration along the fibre +commutes with `d`. + +## References + +* [R. Bott and L. W. Tu, *Differential Forms in Algebraic Topology*][BottTu1982], §6. +-/ + +public section + +noncomputable section + +open TopologicalSpace +open scoped Manifold ContDiff + +namespace SymplecticGeometry + +open TauCeti + +variable {E E' H' F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [NormedAddCommGroup E'] [NormedSpace ℝ E'] [FiniteDimensional ℝ E'] [TopologicalSpace H'] + {J : ModelWithCorners ℝ E' H'} [TopologicalSpace F] [ChartedSpace H' F] [IsManifold J ∞ F] + [BoundarylessManifold J F] [T2Space F] [CompactSpace F] {U : Opens E} {r : ℕ} + +/-- The derivative at `b`, in the direction `a`, of the integrands +`b' ↦ prodFiberIntegrand α b' u`, as a smooth form on `F`. -/ +private def mfderivIntegrand {m : ℕ} (o : Manifold.Orientation J F (Fin m)) + (α : SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ (r + m)) (u : Fin r → E) (b : U) (a : E) : + SmoothForm J F ℝ m := + ⟨_, (isSmoothForm_mfderiv_prodFiberIntegrand o α u b a).mem_smoothBundleForms⟩ + +omit [FiniteDimensional ℝ E] [BoundarylessManifold J F] in +/-- The value of `mfderivIntegrand o α u b a` at `y`. -/ +private theorem mfderivIntegrand_apply {m : ℕ} (o : Manifold.Orientation J F (Fin m)) + (α : SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ (r + m)) (u : Fin r → E) (b : U) (a : E) + (y : F) : + (mfderivIntegrand o α u b a).val y = + show E' [⋀^Fin m]→L[ℝ] ℝ from mfderiv 𝓘(ℝ, E) 𝓘(ℝ, E' [⋀^Fin m]→L[ℝ] ℝ) + (fun b' : U ↦ show E' [⋀^Fin m]→L[ℝ] ℝ from prodFiberIntegrand α.val b' u y) b a := + rfl + +omit [BoundarylessManifold J F] in +/-- The integral over `F` of `mfderivIntegrand o α u b a` is the derivative at `b`, in the +direction `a`, of the fibre integral of `α` on `u`. -/ +private theorem integralTopFormₗ_mfderivIntegrand {m : ℕ} (o : Manifold.Orientation J F (Fin m)) + (α : SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ (r + m)) (u : Fin r → E) (b : U) (a : E) : + SmoothForm.integralTopFormₗ o (mfderivIntegrand o α u b a) = + mfderiv 𝓘(ℝ, E) 𝓘(ℝ) (fun b' : U ↦ (prodFiberIntegral o α).val b' u) b a := by + have h : (fun b' : U ↦ (prodFiberIntegral o α).val b' u) = + fun b' ↦ integralTopForm o (prodFiberIntegrand α.val b' u) := + funext fun b' ↦ prodFiberIntegral_apply o α b' u + rw [SmoothForm.integralTopFormₗ_apply, h] + exact (mfderiv_integralTopForm_prodFiberIntegrand_apply o α u b a).symm + +omit [BoundarylessManifold J F] in +/-- The alternating sum over `i` of the forms `mfderivIntegrand o α (v without vᵢ) b vᵢ` takes, +at `y` on `w`, the alternating sum of the values of the base derivatives of the integrands, and +its integral over `F` is the alternating sum of the base derivatives of the fibre integrals. -/ +private theorem sum_mfderivIntegrand {m : ℕ} (o : Manifold.Orientation J F (Fin m)) + (α : SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ (r + m)) (b : U) (v : Fin (r + 1) → E) : + (∀ (y : F) (w : Fin m → TangentSpace J y), + (∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) • + mfderivIntegrand o α (Fin.removeNth i v) b (v i)).val y w = + ∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) • (show E' [⋀^Fin m]→L[ℝ] ℝ from + mfderiv 𝓘(ℝ, E) 𝓘(ℝ, E' [⋀^Fin m]→L[ℝ] ℝ) + (fun b' : U ↦ show E' [⋀^Fin m]→L[ℝ] ℝ from + prodFiberIntegrand α.val b' (Fin.removeNth i v) y) b (v i)) w) ∧ + SmoothForm.integralTopFormₗ o (∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) • + mfderivIntegrand o α (Fin.removeNth i v) b (v i)) = + ∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) • mfderiv 𝓘(ℝ, E) 𝓘(ℝ) + (fun b' : U ↦ (prodFiberIntegral o α).val b' (Fin.removeNth i v)) b (v i) := by + refine ⟨fun y w ↦ ?_, ?_⟩ + · rw [Submodule.coe_sum, Finset.sum_apply, ContinuousAlternatingMap.sum_apply] + refine Finset.sum_congr rfl fun i _ ↦ ?_ + rw [Submodule.coe_smul_of_tower, Pi.smul_apply, ContinuousAlternatingMap.smul_apply, + mfderivIntegrand_apply] + -- The sides differ only in reading `w` in `TangentSpace J y` or in `E'`, which agree. + rfl + · rw [map_sum] + exact Finset.sum_congr rfl fun i _ ↦ + (map_zsmul _ _ _).trans (congrArg _ (integralTopFormₗ_mfderivIntegrand o α _ b _)) + +/-- **The fibre integral commutes with `d` over an open subset of a normed space.** Let `U` be an +open subset of a finite-dimensional normed space `E`, and `F` a compact, Hausdorff, boundaryless +manifold oriented by `o`. For a smooth form `α` of degree `r + m` on `U × F`, the fibre integral +of `dα`, its degree cast along `(r + m) + 1 = (r + 1) + m`, is `d` of the fibre integral of +`α`. -/ +theorem prodFiberIntegral_mextDeriv_opens {m : ℕ} (o : Manifold.Orientation J F (Fin m)) + (α : SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ (r + m)) : + prodFiberIntegral o (LinearEquiv.cast (R := ℝ) + (M := fun k ↦ SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ k) + (by omega : r + m + 1 = r + 1 + m) (mextDerivₗ (𝓘(ℝ, E).prod J) (r + m) α)) = + mextDerivₗ 𝓘(ℝ, E) r (prodFiberIntegral o α) := by + refine SmoothBundleForm.ext fun b v ↦ ?_ + rw [prodFiberIntegral_apply, mextDerivₗ_apply] + -- Read the tangent vectors at `b` as vectors of `E`, as the pointwise formulas take them. + revert v + refine fun (v : Fin (r + 1) → E) ↦ ?_ + have hd : MDifferentiableAt 𝓘(ℝ, E) 𝓘(ℝ, E [⋀^Fin r]→L[ℝ] ℝ) + (fun b' : U ↦ show E [⋀^Fin r]→L[ℝ] ℝ from (prodFiberIntegral o α).val b') b := by + obtain ⟨ω₀, h₀, hω₀⟩ := (prodFiberIntegral o α).isSmoothForm.exists_contDiffOn_opens + rw [show (fun b' : U ↦ show E [⋀^Fin r]→L[ℝ] ℝ from (prodFiberIntegral o α).val b') = + ω₀ ∘ Subtype.val from funext hω₀, Manifold.mdifferentiableAt_comp_subtype_val_iff, + mdifferentiableAt_iff_differentiableAt] + exact (h₀.differentiableOn (by simp)).differentiableAt (U.isOpen.mem_nhds b.property) + rw [mextDeriv_opens_apply hd v, ← (sum_mfderivIntegrand o α b v).2, + SmoothForm.integralTopFormₗ_apply] + obtain _ | n := m + · congr 1 + funext y + refine ContinuousAlternatingMap.ext fun (w : Fin 0 → TangentSpace J y) ↦ ?_ + exact (prodFiberIntegrand_cast_mextDerivₗ_apply_zero α b v y w).trans + ((sum_mfderivIntegrand o α b v).1 y w).symm + · set β : SmoothForm J F ℝ n := ⟨_, (isSmoothForm_prodFiberIntegrand + (LinearEquiv.cast (R := ℝ) (M := fun k ↦ SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ k) + (by omega : r + (n + 1) = r + 1 + n) α).isSmoothForm b v).mem_smoothBundleForms⟩ + have h : prodFiberIntegrand (LinearEquiv.cast (R := ℝ) + (M := fun k ↦ SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ k) + (by omega : r + (n + 1) + 1 = r + 1 + (n + 1)) + (mextDerivₗ (𝓘(ℝ, E).prod J) (r + (n + 1)) α)).val b v = + (∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) • + mfderivIntegrand o α (Fin.removeNth i v) b (v i) + + (-1 : ℤ) ^ (r + 1) • mextDerivₗ J n β : SmoothForm J F ℝ (n + 1)).val := by + funext y + refine ContinuousAlternatingMap.ext fun (w : Fin (n + 1) → TangentSpace J y) ↦ ?_ + refine (prodFiberIntegrand_cast_mextDerivₗ_apply_succ α b v y w).trans ?_ + simp only [Submodule.coe_add, Pi.add_apply, ContinuousAlternatingMap.add_apply, + (sum_mfderivIntegrand o α b v).1 y w, Submodule.coe_smul_of_tower, Pi.smul_apply, + ContinuousAlternatingMap.smul_apply, mextDerivₗ_apply] + -- `β` is, by its definition, the integrand `prodFiberIntegrand (cast α) b v`. + rfl + rw [h, ← SmoothForm.integralTopFormₗ_apply, ← SmoothForm.integralTopFormₗ_apply, map_add, + map_zsmul, SmoothForm.integralTopFormₗ_apply o (mextDerivₗ J n β), mextDerivₗ_apply, + integralTopForm_mextDeriv_eq_zero o (SmoothForm.isSmoothForm _ |>.of_le (by simp)) + (isClosed_tsupport _).isCompact, smul_zero, add_zero] + +end SymplecticGeometry + +end