From 8fa71335de3dd3812b1d9e335c559a2e507772c7 Mon Sep 17 00:00:00 2001 From: "formalcommons-agent[bot]" <357962534+formalcommons-agent[bot]@users.noreply.github.com> Date: Fri, 27 Nov 2026 01:28:23 +0000 Subject: [PATCH 1/2] Fibre integral on a product: d commutes with it over an open subset of a normed space Add prodFiberIntegral_mextDeriv_opens in FiberIntegral/Product/ExtDeriv/Flat.lean, for every fibre dimension, and TauCeti.mextDeriv_opens_apply, the formula for d of a C^1 form on an open subset of a normed space in terms of derivatives of its values on constant vectors. Co-Authored-By: Claude Opus 5.5 --- .../Manifold/DifferentialForm/ExtDeriv.lean | 34 ++++ .../FiberIntegral/Product/ExtDeriv/Flat.lean | 148 ++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean diff --git a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean index 4e6454007e..ab9db877c6 100644 --- a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean @@ -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 @@ -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`: @@ -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 @@ -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 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..8d5165118b --- /dev/null +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean @@ -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 From 2bd176b979b89a2143912d1866d6ea34801dc48c Mon Sep 17 00:00:00 2001 From: "formalcommons-agent[bot]" <357962534+formalcommons-agent[bot]@users.noreply.github.com> Date: Fri, 27 Nov 2026 01:48:32 +0000 Subject: [PATCH 2/2] Fibre integral over a flat base: pointwise hypothesis for mextDeriv_opens_apply, shared base-term step Take differentiability at the point instead of C^1 smoothness in TauCeti.mextDeriv_opens_apply, and factor the base-term computation that both cases of prodFiberIntegral_mextDeriv_opens repeated into one step. Co-Authored-By: Claude Opus 5.5 --- .../Manifold/DifferentialForm/ExtDeriv.lean | 29 +++-- .../FiberIntegral/Product/ExtDeriv/Flat.lean | 109 +++++++++++------- 2 files changed, 84 insertions(+), 54 deletions(-) diff --git a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean index ab9db877c6..574cac0a2a 100644 --- a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/ExtDeriv.lean @@ -6,7 +6,6 @@ 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 @@ -40,11 +39,10 @@ coordinate expression of `φ` in the directions `Vₚ`, evaluated on the other v 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` +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 an ambient representative of `ω` (`TauCeti.IsSmoothForm.exists_contDiffOn_opens`), -followed by Mathlib's `extDeriv_apply`. +applied to the extension of `ω` by zero to `E`, followed by Mathlib's `extDeriv_apply`. ## Main results @@ -143,17 +141,24 @@ theorem mextDeriv_ofFunction_modelSpace_apply (f : E → F) (x : E) 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)`. -/ +`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} (hω : IsSmoothForm 𝓘(ℝ, E) 1 ω) (b : U) + {ω : 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 - obtain ⟨ω₀, h₀, hω₀⟩ := hω.exists_contDiffOn_opens - have hd : DifferentiableAt ℝ ω₀ b := - (h₀.differentiableOn one_ne_zero).differentiableAt (U.isOpen.mem_nhds b.property) + 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] diff --git a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean index 8d5165118b..cc0a14950e 100644 --- a/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean +++ b/SymplecticGeometry/Geometry/Manifold/DifferentialForm/FiberIntegral/Product/ExtDeriv/Flat.lean @@ -11,6 +11,7 @@ import SymplecticGeometry.Geometry.Manifold.DifferentialForm.FiberIntegral.Produ 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 @@ -62,6 +63,16 @@ private def mfderivIntegrand {m : ℕ} (o : Manifold.Orientation J F (Fin m)) 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`. -/ @@ -75,6 +86,34 @@ private theorem integralTopFormₗ_mfderivIntegrand {m : ℕ} (o : Manifold.Orie 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 @@ -91,57 +130,43 @@ theorem prodFiberIntegral_mextDeriv_opens {m : ℕ} (o : Manifold.Orientation J -- 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] + 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 - · 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 := ℝ) + · 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 ⟨_, (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 + (-1 : ℤ) ^ (r + 1) • mextDerivₗ J n β : 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, + 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] - exact Finset.sum_congr rfl fun i _ ↦ - (map_zsmul _ _ _).trans (congrArg _ (integralTopFormₗ_mfderivIntegrand o α _ b _)) end SymplecticGeometry