Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Authors: The FormalCommons contributors
module

public import TauCeti.Geometry.Manifold.DifferentialForm.ExtDeriv
public import TauCeti.Geometry.Manifold.DifferentialForm.Smooth
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
Expand Down Expand Up @@ -37,6 +39,13 @@ 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 `C^1` form `ω` 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 an ambient representative of `ω` (`TauCeti.IsSmoothForm.exists_contDiffOn_opens`),
followed by Mathlib's `extDeriv_apply`.

## Main results

* `TauCeti.mextDeriv_ofFunction_add_apply`, `TauCeti.mextDeriv_ofFunction_sub_apply`:
Expand All @@ -47,6 +56,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

Expand Down Expand Up @@ -132,6 +142,30 @@ 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 `C^1` form of degree `k` on `U`. At `b ∈ U`, on
`v₀, …, vₖ ∈ E`, `dω` 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} (hω : IsSmoothForm 𝓘(ℝ, E) 1 ω) (b : U)
(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
obtain ⟨ω₀, h₀, hω₀⟩ := hω.exists_contDiffOn_opens
have hd : DifferentiableAt ℝ ω₀ b :=
(h₀.differentiableOn one_ne_zero).differentiableAt (U.isOpen.mem_nhds b.property)
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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/-
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

/-!
# 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 [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

/-- **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) ↦ ?_
refine Eq.trans ?_
(mextDeriv_opens_apply ((prodFiberIntegral o α).isSmoothForm.of_le (by simp)) b v).symm
-- Values of sums and integer multiples of smooth forms on `F`.
have hS {k : ℕ} (S : Fin (r + 1) → SmoothForm J F ℝ k) (y : F) (w : Fin k → TangentSpace J y) :
(∑ i, S i).val y w = ∑ i, (show ℝ from (S i).val y w) := by
rw [Submodule.coe_sum, Finset.sum_apply, ContinuousAlternatingMap.sum_apply]
have hA {k : ℕ} (S T : SmoothForm J F ℝ k) (y : F) (w : Fin k → TangentSpace J y) :
(S + T).val y w = (show ℝ from S.val y w) + (show ℝ from T.val y w) := by
rw [Submodule.coe_add, Pi.add_apply, ContinuousAlternatingMap.add_apply]
have hZ {k : ℕ} (c : ℤ) (S : SmoothForm J F ℝ k) (y : F) (w : Fin k → TangentSpace J y) :
(c • S).val y w = c • (show ℝ from S.val y w) := by
rw [Submodule.coe_smul_of_tower, Pi.smul_apply, ContinuousAlternatingMap.smul_apply]
obtain _ | n := m
· have h : prodFiberIntegrand (LinearEquiv.cast (R := ℝ)
(M := fun k ↦ SmoothForm (𝓘(ℝ, E).prod J) (U × F) ℝ k)
(by omega : r + 0 + 1 = r + 1 + 0) (mextDerivₗ (𝓘(ℝ, E).prod J) (r + 0) α)).val b v =
(∑ i : Fin (r + 1), (-1 : ℤ) ^ (i : ℕ) •
mfderivIntegrand o α (Fin.removeNth i v) b (v i) : SmoothForm J F ℝ 0).val := by
funext y
refine ContinuousAlternatingMap.ext fun (w : Fin 0 → E') ↦ ?_
rw [prodFiberIntegrand_cast_mextDerivₗ_apply_zero]
exact Eq.trans (Finset.sum_congr rfl fun i _ ↦
(hZ _ (mfderivIntegrand o α (i.removeNth v) b (v i)) y w).symm) (hS _ y w).symm
rw [h, ← SmoothForm.integralTopFormₗ_apply, map_sum]
exact Finset.sum_congr rfl fun i _ ↦
(map_zsmul _ _ _).trans (congrArg _ (integralTopFormₗ_mfderivIntegrand o α _ b _))
· 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 ⟨_, (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⟩ :
SmoothForm J F ℝ (n + 1)).val := by
funext y
refine ContinuousAlternatingMap.ext fun (w : Fin (n + 1) → E') ↦ ?_
rw [prodFiberIntegrand_cast_mextDerivₗ_apply_succ]
refine Eq.trans ?_ (hA _ _ y w).symm
refine congrArg₂ (· + ·)
(Eq.trans (Finset.sum_congr rfl fun i _ ↦
(hZ _ (mfderivIntegrand o α (i.removeNth v) b (v i)) y w).symm) (hS _ y w).symm) ?_
refine Eq.trans ?_ (hZ _ _ y w).symm
rw [mextDerivₗ_apply]
rw [h, ← SmoothForm.integralTopFormₗ_apply, map_add, map_sum, map_zsmul,
SmoothForm.integralTopFormₗ_apply, mextDerivₗ_apply,
integralTopForm_mextDeriv_eq_zero o (SmoothForm.isSmoothForm _ |>.of_le (by simp))
(isClosed_tsupport _).isCompact, smul_zero, add_zero]
exact Finset.sum_congr rfl fun i _ ↦
(map_zsmul _ _ _).trans (congrArg _ (integralTopFormₗ_mfderivIntegrand o α _ b _))

end SymplecticGeometry

end