math / data /lean /OAI /Geometry /BallPacking /Forms /ManifoldExteriorAlgebra.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
28 kB
import Mathlib
import OAI.Geometry.BallPacking.Forms.HorizontalCoupling
namespace OAI
noncomputable section
namespace PackingSufficiencySupport.Hamiltonian
section
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M]
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem manifoldExteriorOneForm_sub {Ξ± Ξ² : ManifoldOneForm E M}
(hΞ± : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ± c) (extChartAt π“˜(ℝ,E) c).target)
(hΞ² : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ² c) (extChartAt π“˜(ℝ,E) c).target)
(x : M) : manifoldExteriorOneForm (Ξ±-Ξ²) x=
manifoldExteriorOneForm Ξ± x-manifoldExteriorOneForm Ξ² x := by
have hx : extChartAt π“˜(ℝ,E) x x∈(extChartAt π“˜(ℝ,E) x).target :=
(extChartAt π“˜(ℝ,E) x).map_source (mem_extChartAt_source x)
have hn := (isOpen_extChartAt_target (I := π“˜(ℝ,E)) x).mem_nhds hx
have he : chartOneForm (Ξ±-Ξ²) x=chartOneForm Ξ± x-chartOneForm Ξ² x :=
funext (chartOneForm_sub Ξ± Ξ² x)
simp only [manifoldExteriorOneForm,euclideanExteriorOneForm,he,
fderiv_sub ((hΞ± x).contDiffAt hn |>.differentiableAt (by simp))
((hΞ² x).contDiffAt hn |>.differentiableAt (by simp))]
apply ContinuousLinearMap.ext
intro u
apply ContinuousLinearMap.ext
intro v
simp only [ContinuousLinearMap.bilinearComp_apply,sub_apply,
ContinuousLinearMap.flip_apply]
ring
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem manifoldExteriorOneForm_smul (a : ℝ) {Ξ± : ManifoldOneForm E M}
(hΞ± : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ± c) (extChartAt π“˜(ℝ,E) c).target)
(x : M) : manifoldExteriorOneForm (a β€’ Ξ±) x=a β€’ manifoldExteriorOneForm Ξ± x := by
have hx : extChartAt π“˜(ℝ,E) x x∈(extChartAt π“˜(ℝ,E) x).target :=
(extChartAt π“˜(ℝ,E) x).map_source (mem_extChartAt_source x)
have hn := (isOpen_extChartAt_target (I := π“˜(ℝ,E)) x).mem_nhds hx
have he : chartOneForm (a β€’ Ξ±) x=a β€’ chartOneForm Ξ± x := funext (chartOneForm_smul a Ξ± x)
simp only [manifoldExteriorOneForm,he,euclideanExteriorOneForm_smul a
((hΞ± x).contDiffAt hn |>.differentiableAt (by simp))]
rfl
theorem manifold_closed_exact_normalization {Ξ± Ξ² : ManifoldOneForm E M}
(hΞ± : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ± c) (extChartAt π“˜(ℝ,E) c).target)
(hΞ² : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ² c) (extChartAt π“˜(ℝ,E) c).target)
(hclosed : βˆ€ x,manifoldExteriorOneForm Ξ² x=0)
{F : M β†’ ℝ} (hF : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ F) (a : ℝ) (x : M) :
manifoldExteriorOneForm (Ξ±-a β€’ Ξ²-manifoldScalarDifferential F) x=
manifoldExteriorOneForm Ξ± x := by
have hb : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm (a β€’ Ξ²) c)
(extChartAt π“˜(ℝ,E) c).target := by
intro c
simpa only [show chartOneForm (a β€’ Ξ²) c=fun y => a β€’ chartOneForm Ξ² c y
from funext (chartOneForm_smul a Ξ² c)] using (hΞ² c).const_smul a
have hab : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm (Ξ±-a β€’ Ξ²) c)
(extChartAt π“˜(ℝ,E) c).target := by
intro c
exact ((hΞ± c).sub (hb c)).congr (fun y _ => chartOneForm_sub Ξ± (a β€’ Ξ²) c y)
rw [manifoldExteriorOneForm_sub hab (manifoldScalarDifferential_smooth hF),
manifoldScalarDifferential_closed hF,manifoldExteriorOneForm_sub hΞ± hb,
manifoldExteriorOneForm_smul a hΞ²,hclosed]
apply ContinuousLinearMap.ext
intro u
apply ContinuousLinearMap.ext
intro v
simp
end
section
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E]
{M : Type*} [TopologicalSpace M] [T2Space M] [NormalSpace M] [SigmaCompactSpace M]
[ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M]
theorem exists_smooth_manifold_cutoff {K U : Set M}
(hK : IsCompact K) (hU : IsOpen U) (hKU : K βŠ† U) :
βˆƒ Ο‡ : M β†’ ℝ, ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ Ο‡ ∧ HasCompactSupport Ο‡ ∧
tsupport Ο‡ βŠ† U ∧ (βˆ€αΆ  x in 𝓝˒ K, Ο‡ x=1) ∧ (βˆ€ x, Ο‡ x ∈ Icc (0:ℝ) 1) := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace E M
obtain ⟨D,hD,hKD,hDU⟩ := exists_compact_between hK hU hKU
obtain βŸ¨Ο‡,hΟ‡1,hΟ‡0,hΟ‡βŸ© := exists_contMDiffMap_one_nhds_of_subset_interior
(n := (⊀ : β„•βˆž)) π“˜(ℝ,E) hK.isClosed hKD
have hs : tsupport (Ο‡ : M β†’ ℝ) βŠ† D :=
closure_minimal (fun x hx => by by_contra hn; exact hx (hχ0 x hn)) hD.isClosed
exact βŸ¨Ο‡,Ο‡.contMDiff,HasCompactSupport.of_support_subset_isCompact hD
((subset_tsupport Ο‡).trans hs),hs.trans hDU,hΟ‡1,hΟ‡βŸ©
end
section
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M]
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem manifold_local_potential_smooth {A : Set M} (hA : IsOpen A)
{F ΞΆ : M β†’ ℝ} (hF : ContMDiffOn π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ F A)
(hΞΆ : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ ΞΆ) (hs : tsupport ΞΆ βŠ† A) :
ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ (fun x => ΞΆ x*F x) := by
intro x
by_cases hx : x∈A
Β· exact hΞΆ.contMDiffAt.mul (hF.contMDiffAt (hA.mem_nhds hx))
Β· have ht : xβˆ‰tsupport ΞΆ := fun ht => hx (hs ht)
apply (contMDiffAt_const (c := (0:ℝ))).congr_of_eventuallyEq
filter_upwards [isClosed_closure.isOpen_compl.mem_nhds ht] with y hy
have hz : ΞΆ y=0 := notMem_support.mp (fun hv => hy (subset_closure hv))
simp only [hz,zero_mul]
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem scalar_product_tsupport_left (F ΞΆ : M β†’ ℝ) :
tsupport (fun x => ΞΆ x*F x) βŠ† tsupport ΞΆ := by
apply closure_minimal _ isClosed_closure
intro x hx
apply subset_closure
intro hzero
exact hx (by simp only [hzero,zero_mul])
variable [FiniteDimensional ℝ E] [T2Space M] [NormalSpace M] [SigmaCompactSpace M]
theorem exists_global_local_potential {K A : Set M} (hK : IsCompact K)
(hA : IsOpen A) (hKA : K βŠ† A) {F : M β†’ ℝ}
(hF : ContMDiffOn π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ F A) :
βˆƒ G : M β†’ ℝ, ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ G ∧
HasCompactSupport G ∧ tsupport G βŠ† A ∧
(βˆ€αΆ  x in 𝓝˒ K,G x=F x) ∧
HasCompactSupport (manifoldScalarDifferential (E := E) G) ∧
support (manifoldScalarDifferential (E := E) G) βŠ† A ∧
(βˆ€ x,manifoldExteriorOneForm (manifoldScalarDifferential (E := E) G) x=0) ∧
(βˆ€ x ∈ K,manifoldScalarDifferential (E := E) G x=
manifoldScalarDifferential (E := E) F x) := by
obtain ⟨΢,h΢,h΢c,h΢A,h΢1,_⟩ := exists_smooth_manifold_cutoff (E := E) hK hA hKA
let G : M β†’ ℝ := fun x => ΞΆ x*F x
have hG : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ G :=
manifold_local_potential_smooth hA hF hΞΆ hΞΆA
have hs : tsupport G βŠ† tsupport ΞΆ := scalar_product_tsupport_left F ΞΆ
have hGc : HasCompactSupport G :=
HasCompactSupport.of_support_subset_isCompact hΞΆc (subset_closure.trans hs)
have hEq : βˆ€αΆ  x in 𝓝˒ K,G x=F x := by
filter_upwards [hΞΆ1] with x hx
simp only [G,hx,one_mul]
have hd : support (manifoldScalarDifferential (E := E) G) βŠ† tsupport G :=
manifoldScalarDifferential_support G
refine ⟨G,hG,hGc,hs.trans h΢A,hEq,
HasCompactSupport.of_support_subset_isCompact hGc hd,hd.trans (hs.trans hΞΆA),
manifoldScalarDifferential_closed hG,?_⟩
intro x hx
have he : G =αΆ [𝓝 x] F := hEq.filter_mono (nhds_le_nhdsSet hx)
exact he.mfderiv_eq
end
section
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P]
[NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M]
theorem manifoldFamily_local_potential_smoothOn {V : Set P} {A : Set M}
(hV : IsOpen V) (hA : IsOpen A) {F : P Γ— M β†’ ℝ} {ΞΆ : M β†’ ℝ}
(hF : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ A))
(hΞΆ : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ ΞΆ) (hs : tsupport ΞΆ βŠ† A) :
ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞
(fun q : P Γ— M => ΞΆ q.2*F q) (V Γ—Λ’ univ) := by
intro q hq
by_cases hy : q.2∈A
Β· exact ((hΞΆ.comp contMDiff_snd).contMDiffAt.mul
(hF.contMDiffAt ((hV.prod hA).mem_nhds ⟨hq.1,hy⟩))).contMDiffWithinAt
Β· have ht : q.2βˆ‰tsupport ΞΆ := fun ht => hy (hs ht)
have he : (fun y : P Γ— M => ΞΆ y.2*F y) =αΆ [𝓝 q] (fun _ => (0:ℝ)) := by
have hn := (continuous_snd.continuousAt : ContinuousAt (Prod.snd : P Γ— M β†’ M) q)
filter_upwards [hn (isClosed_closure.isOpen_compl.mem_nhds ht)] with y hy
have hz : ΞΆ y.2=0 := notMem_support.mp (fun hv => hy (subset_closure hv))
simp only [hz,zero_mul]
exact ((contMDiffAt_const (c := (0:ℝ))).congr_of_eventuallyEq he).contMDiffWithinAt
variable [FiniteDimensional ℝ E] [IsManifold π“˜(ℝ,E) ∞ M]
[T2Space M] [NormalSpace M] [SigmaCompactSpace M]
theorem exists_joint_global_local_potential {V : Set P} {K A : Set M}
(hV : IsOpen V) (hK : IsCompact K) (hA : IsOpen A) (hKA : K βŠ† A)
{F : P Γ— M β†’ ℝ}
(hF : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ A)) :
βˆƒ (G : P Γ— M β†’ ℝ) (L : Set M), IsCompact L ∧ L βŠ† A ∧
ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ G (V Γ—Λ’ univ) ∧
(βˆ€ p,tsupport (fun y => G (p,y)) βŠ† L) ∧
(βˆ€αΆ  y in 𝓝˒ K,βˆ€ p,G (p,y)=F (p,y)) ∧
(βˆ€ p,support (manifoldScalarDifferential (E := E) (fun y => G (p,y))) βŠ† L) ∧
(βˆ€ p ∈ V,βˆ€ y,manifoldExteriorOneForm
(manifoldScalarDifferential (E := E) (fun z => G (p,z))) y=0) ∧
(βˆ€ p,βˆ€ y ∈ K,manifoldScalarDifferential (E := E) (fun z => G (p,z)) y=
manifoldScalarDifferential (E := E) (fun z => F (p,z)) y) := by
obtain ⟨΢,h΢,h΢c,h΢A,h΢1,_⟩ := exists_smooth_manifold_cutoff (E := E) hK hA hKA
let G : P Γ— M β†’ ℝ := fun q => ΞΆ q.2*F q
have hG := manifoldFamily_local_potential_smoothOn hV hA hF hΞΆ hΞΆA
have hs : βˆ€ p,tsupport (fun y => G (p,y)) βŠ† tsupport ΞΆ :=
fun p => scalar_product_tsupport_left (fun y => F (p,y)) ΞΆ
have he : βˆ€αΆ  y in 𝓝˒ K,βˆ€ p,G (p,y)=F (p,y) := by
filter_upwards [hΞΆ1] with y hy p
simp only [G,hy,one_mul]
refine ⟨G,tsupport ΢,h΢c,h΢A,hG,hs,he,?_,?_,?_⟩
Β· intro p
exact (manifoldScalarDifferential_support (fun y => G (p,y))).trans (hs p)
Β· intro p hp y
have hfib : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ (fun z => G (p,z)) := by
intro z
exact (hG.contMDiffAt (((hV.prod isOpen_univ)).mem_nhds ⟨hp,mem_univ z⟩)).comp z
(contMDiff_const.prodMk contMDiff_id).contMDiffAt
exact manifoldScalarDifferential_closed hfib y
Β· intro p y hy
have he' : (fun z => G (p,z)) =αΆ [𝓝 y] (fun z => F (p,z)) := by
filter_upwards [he.filter_mono (nhds_le_nhdsSet hy)] with z hz
exact hz p
exact he'.mfderiv_eq
end
section
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P]
[NormedAddCommGroup E] [NormedSpace ℝ E]
{M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M]
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem manifoldFamily_scalar_fiber_smooth {V : Set P} (hV : IsOpen V)
{G : P Γ— M β†’ ℝ}
(hG : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ G (V Γ—Λ’ univ))
{p : P} (hp : p∈V) : ContMDiff π“˜(ℝ,E) π“˜(ℝ,ℝ) ∞ (fun z => G (p,z)) := by
intro z
exact (hG.contMDiffAt ((hV.prod isOpen_univ).mem_nhds ⟨hp,mem_univ z⟩)).comp z
(contMDiff_const.prodMk contMDiff_id).contMDiffAt
theorem manifoldFamily_scalar_chart_smooth {V : Set P} (hV : IsOpen V)
{G : P Γ— M β†’ ℝ}
(hG : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ G (V Γ—Λ’ univ))
(c : M) : ContDiffOn ℝ ∞
(fun q : P Γ— E => G (q.1,(extChartAt π“˜(ℝ,E) c).symm q.2))
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) := by
intro q hq
have hi := (contMDiffOn_extChartAt_symm (I := π“˜(ℝ,E)) (n := ∞) c).contMDiffAt
((isOpen_extChartAt_target (I := π“˜(ℝ,E)) c).mem_nhds hq.2)
have hfst : ContMDiffAt π“˜(ℝ,P Γ— E) π“˜(ℝ,P) ∞ (Prod.fst : P Γ— E β†’ P) q :=
contDiff_fst.contMDiff.contMDiffAt
have hsnd : ContMDiffAt π“˜(ℝ,P Γ— E) π“˜(ℝ,E) ∞ (Prod.snd : P Γ— E β†’ E) q :=
contDiff_snd.contMDiff.contMDiffAt
have hinc := hfst.prodMk (hi.comp q hsnd)
have hh := (hG.contMDiffAt ((hV.prod isOpen_univ).mem_nhds
(show (q.1,(extChartAt π“˜(ℝ,E) c).symm q.2)∈V Γ—Λ’ univ from ⟨hq.1,mem_univ _⟩))).comp q hinc
exact hh.contDiffAt.contDiffWithinAt
omit [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M] in
theorem joint_scalar_fderiv_slice {F : P Γ— E β†’ ℝ} {q : P Γ— E}
(hF : DifferentiableAt ℝ F q) :
fderiv ℝ (fun y => F (q.1,y)) q.2=
(fderiv ℝ F q).comp ((0 : E β†’L[ℝ] P).prod (ContinuousLinearMap.id ℝ E)) := by
have hi : HasFDerivAt (fun y : E => (q.1,y))
((0 : E β†’L[ℝ] P).prod (ContinuousLinearMap.id ℝ E)) q.2 :=
(hasFDerivAt_const q.1 q.2).prodMk (hasFDerivAt_id q.2)
exact (hF.hasFDerivAt.comp q.2 hi).fderiv
theorem manifoldFamilyScalarDifferential_smooth {V : Set P} (hV : IsOpen V)
{G : P Γ— M β†’ ℝ}
(hG : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ G (V Γ—Λ’ univ))
(c : M) : ContDiffOn ℝ ∞
(fun q : P Γ— E => chartOneForm
(manifoldScalarDifferential (E := E) (fun z => G (q.1,z))) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) := by
let F : P Γ— E β†’ ℝ := fun q => G (q.1,(extChartAt π“˜(ℝ,E) c).symm q.2)
have hF : ContDiffOn ℝ ∞ F (V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) :=
manifoldFamily_scalar_chart_smooth hV hG c
intro q hq
have hn := (hV.prod (isOpen_extChartAt_target (I := π“˜(ℝ,E)) c)).mem_nhds hq
have hdf : ContDiffAt ℝ ∞ (fun z => fderiv ℝ F z) q :=
(hF.contDiffAt hn).fderiv_right (by simp)
have hd := hdf.clm_comp
(contDiffAt_const (c := ((0 : E β†’L[ℝ] P).prod (ContinuousLinearMap.id ℝ E))))
apply (hd.congr_of_eventuallyEq ?_).contDiffWithinAt
filter_upwards [hn] with z hz
rw [manifoldScalarDifferential_chart (manifoldFamily_scalar_fiber_smooth hV hG hz.1) hz.2]
exact joint_scalar_fderiv_slice ((hF.contDiffAt
((hV.prod (isOpen_extChartAt_target (I := π“˜(ℝ,E)) c)).mem_nhds hz)).differentiableAt (by simp))
def normalizedManifoldPrimitive (Ξ“ : P β†’ ManifoldOneForm E M)
(Ξ² : ManifoldOneForm E M) (a : P β†’ ℝ) (G : P Γ— M β†’ ℝ) (p : P) :
ManifoldOneForm E M := Ξ“ p-a p β€’ Ξ²-manifoldScalarDifferential (fun y => G (p,y))
omit [NormedAddCommGroup P] [NormedSpace ℝ P] [IsManifold π“˜(ℝ,E) ∞ M] in
theorem normalizedManifoldPrimitive_chart
(Ξ“ : P β†’ ManifoldOneForm E M) (Ξ² : ManifoldOneForm E M)
(a : P β†’ ℝ) (G : P Γ— M β†’ ℝ) (p : P) (c : M) (y : E) :
chartOneForm (normalizedManifoldPrimitive Ξ“ Ξ² a G p) c y=
chartOneForm (Ξ“ p) c y-a p β€’ chartOneForm Ξ² c y-
chartOneForm (manifoldScalarDifferential (fun z => G (p,z))) c y := by
simp only [normalizedManifoldPrimitive,chartOneForm_sub,chartOneForm_smul]
theorem normalizedManifoldPrimitive_smooth {V : Set P} (hV : IsOpen V)
{Ξ“ : P β†’ ManifoldOneForm E M} {Ξ² : ManifoldOneForm E M} {a : P β†’ ℝ}
{G : P Γ— M β†’ ℝ}
(hΞ“ : βˆ€ c,ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm (Ξ“ q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target))
(hΞ² : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ² c) (extChartAt π“˜(ℝ,E) c).target)
(ha : ContDiffOn ℝ ∞ a V)
(hG : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ G (V Γ—Λ’ univ))
(c : M) : ContDiffOn ℝ ∞
(fun q : P Γ— E => chartOneForm (normalizedManifoldPrimitive Ξ“ Ξ² a G q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) := by
have hma : ContDiffOn ℝ ∞ (fun q : P Γ— E => a q.1)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) :=
ha.comp contDiff_fst.contDiffOn (fun _ hx => hx.1)
have hmb : ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm Ξ² c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target) :=
(hΞ² c).comp contDiff_snd.contDiffOn (fun _ hx => hx.2)
exact (((hΞ“ c).sub (hma.smul hmb)).sub
(manifoldFamilyScalarDifferential_smooth hV hG c)).congr
(fun q _ => normalizedManifoldPrimitive_chart Ξ“ Ξ² a G q.1 c q.2)
variable [FiniteDimensional ℝ E] [T2Space M] [NormalSpace M] [SigmaCompactSpace M]
theorem exists_normalized_manifold_primitive {V : Set P} {K A : Set M}
(hV : IsOpen V) (hK : IsCompact K) (hA : IsOpen A) (hKA : K βŠ† A)
{Ξ“ N : P β†’ ManifoldOneForm E M} {Ξ² : ManifoldOneForm E M}
{a : P β†’ ℝ} {F : P Γ— M β†’ ℝ}
(hΞ“ : βˆ€ c,ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm (Ξ“ q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target))
(hΞ² : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ² c) (extChartAt π“˜(ℝ,E) c).target)
(hΞ²closed : βˆ€ x,manifoldExteriorOneForm Ξ² x=0)
(hΞ²compact : HasCompactSupport Ξ²) (ha : ContDiffOn ℝ ∞ a V)
(hF : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ A))
(hFd : βˆ€ p ∈ V,βˆ€ x ∈ A,
manifoldScalarDifferential (E := E) (fun y => F (p,y)) x=
Ξ“ p x-N p x-a p β€’ Ξ² x) :
βˆƒ (Γ₁ : P β†’ ManifoldOneForm E M) (L : Set M), IsCompact L ∧ L βŠ† A ∧
(βˆ€ c,ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm (Γ₁ q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target)) ∧
(βˆ€ p,support (Γ₁ p-Ξ“ p) βŠ† tsupport Ξ² βˆͺ L) ∧
(βˆ€ p,HasCompactSupport (Γ₁ p-Ξ“ p)) ∧
(βˆ€ p ∈ V,βˆ€ x,manifoldExteriorOneForm (Γ₁ p) x=manifoldExteriorOneForm (Ξ“ p) x) ∧
(βˆ€ p ∈ V,βˆ€ x ∈ K,Γ₁ p x=N p x) := by
obtain ⟨G,L,hLc,hLA,hG,_,_,hGs,_,hGd⟩ :=
exists_joint_global_local_potential hV hK hA hKA hF
let Γ₁ := normalizedManifoldPrimitive Ξ“ Ξ² a G
have hs : βˆ€ p,support (Γ₁ p-Ξ“ p) βŠ† tsupport Ξ² βˆͺ L := by
intro p x hx
by_contra hout
have hΞ²z : Ξ² x=0 := notMem_support.mp (fun hv => hout (Or.inl (subset_closure hv)))
have hdz : manifoldScalarDifferential (E := E) (fun y => G (p,y)) x=0 :=
notMem_support.mp (fun hv => hout (Or.inr (hGs p hv)))
apply hx
apply ContinuousLinearMap.ext
intro v
change Ξ“ p x v-a p*Ξ² x v-manifoldScalarDifferential (E := E) (fun y => G (p,y)) x v-
Ξ“ p x v=0
rw [hΞ²z,hdz]
simp
refine βŸ¨Ξ“β‚,L,hLc,hLA,normalizedManifoldPrimitive_smooth hV hΞ“ hΞ² ha hG,hs,
(fun p => HasCompactSupport.of_support_subset_isCompact (hβcompact.union hLc) (hs p)),?_,?_⟩
Β· intro p hp x
have hΞ“p : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm (Ξ“ p) c)
(extChartAt π“˜(ℝ,E) c).target := by
intro c
exact (hΞ“ c).comp ((contDiff_const.prodMk contDiff_id).contDiffOn)
(fun y hy => ⟨hp,hy⟩)
exact manifold_closed_exact_normalization hΞ“p hΞ² hΞ²closed
(manifoldFamily_scalar_fiber_smooth hV hG hp) (a p) x
Β· intro p hp x hx
apply ContinuousLinearMap.ext
intro v
change Ξ“ p x v-a p*Ξ² x v-manifoldScalarDifferential (E := E) (fun y => G (p,y)) x v=N p x v
rw [hGd p x hx,hFd p hp x (hKA hx)]
simp only [sub_apply,smul_apply,smul_eq_mul]
ring
theorem exists_normalized_manifold_primitive_neighborhood {V : Set P} {K A : Set M}
(hV : IsOpen V) (hK : IsCompact K) (hA : IsOpen A) (hKA : K βŠ† A)
{Ξ“ N : P β†’ ManifoldOneForm E M} {Ξ² : ManifoldOneForm E M}
{a : P β†’ ℝ} {F : P Γ— M β†’ ℝ}
(hΞ“ : βˆ€ c,ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm (Ξ“ q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target))
(hΞ² : βˆ€ c,ContDiffOn ℝ ∞ (chartOneForm Ξ² c) (extChartAt π“˜(ℝ,E) c).target)
(hΞ²closed : βˆ€ x,manifoldExteriorOneForm Ξ² x=0)
(hΞ²compact : HasCompactSupport Ξ²) (ha : ContDiffOn ℝ ∞ a V)
(hF : ContMDiffOn ((π“˜(ℝ,P)).prod π“˜(ℝ,E)) π“˜(ℝ,ℝ) ∞ F (V Γ—Λ’ A))
(hFd : βˆ€ p ∈ V,βˆ€ x ∈ A,
manifoldScalarDifferential (E := E) (fun y => F (p,y)) x=
Ξ“ p x-N p x-a p β€’ Ξ² x) :
βˆƒ (Γ₁ : P β†’ ManifoldOneForm E M) (L W : Set M),
IsCompact L ∧ L βŠ† A ∧ IsOpen W ∧ K βŠ† W ∧ W βŠ† A ∧
(βˆ€ c,ContDiffOn ℝ ∞ (fun q : P Γ— E => chartOneForm (Γ₁ q.1) c q.2)
(V Γ—Λ’ (extChartAt π“˜(ℝ,E) c).target)) ∧
(βˆ€ p,support (Γ₁ p-Ξ“ p) βŠ† tsupport Ξ² βˆͺ L) ∧
(βˆ€ p,HasCompactSupport (Γ₁ p-Ξ“ p)) ∧
(βˆ€ p ∈ V,βˆ€ x,manifoldExteriorOneForm (Γ₁ p) x=manifoldExteriorOneForm (Ξ“ p) x) ∧
(βˆ€ p ∈ V,βˆ€ x ∈ W,Γ₁ p x=N p x) := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace E M
obtain ⟨D,hD,hKD,hDA⟩ := exists_compact_between hK hA hKA
obtain βŸ¨Ξ“β‚,L,hL,hLA,hs,hsp,hcp,hd,he⟩ :=
exists_normalized_manifold_primitive hV hD hA hDA hΞ“ hΞ² hΞ²closed hΞ²compact ha hF hFd
exact βŸ¨Ξ“β‚,L,interior D,hL,hLA,isOpen_interior,hKD,interior_subset.trans hDA,
hs,hsp,hcp,hd,fun p hp x hx => he p hp x (interior_subset hx)⟩
end
open scoped ContDiff Manifold Topology
open Set Function Manifold
variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
[NormedAddCommGroup F] [NormedSpace ℝ F]
{M N : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M]
[TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(ℝ,F) ∞ N]
def handlePushforwardOneForm (e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
(Ξ± : ManifoldOneForm E M) : ManifoldOneForm F N :=
extendManifoldOneForm e.target (manifoldPullbackOneForm (fun _ => Ξ±) e.symm 0)
omit [IsManifold π“˜(ℝ,E) ∞ M] [IsManifold π“˜(ℝ,F) ∞ N] in
theorem handlePushforwardOneForm_zero
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
{Ξ± : ManifoldOneForm E M} {K : Set M}
(hz : βˆ€ x, x βˆ‰ K β†’ Ξ± x=0) {y : N} (hy : y βˆ‰ e '' K) :
handlePushforwardOneForm e Ξ± y=0 := by
by_cases ht : y∈e.target
Β· have hk : e.symm yβˆ‰K := by
intro hk
exact hy ⟨e.symm y,hk,e.right_inv ht⟩
rw [handlePushforwardOneForm,extendManifoldOneForm_inside ht]
simp only [manifoldPullbackOneForm,hz _ hk,ContinuousLinearMap.zero_comp]
Β· exact extendManifoldOneForm_outside ht
theorem handlePushforwardOneForm_smooth [T2Space N]
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
{Ξ± : ManifoldOneForm E M} {K : Set M} (hK : IsCompact K) (hKs : KβŠ†e.source)
(hΞ± : βˆ€ c, ContDiffOn ℝ ∞ (chartOneForm Ξ± c) (extChartAt π“˜(ℝ,E) c).target)
(hz : βˆ€ x, xβˆ‰K β†’ Ξ± x=0) :
SmoothOneFormFamily (fun _ : ℝ => handlePushforwardOneForm e Ξ±) := by
have hKi : IsCompact (e '' K) :=
hK.image_of_continuousOn (e.contMDiffOn.continuousOn.mono hKs)
change SmoothOneFormFamily (fun p : ℝ => extendManifoldOneForm e.target
(manifoldPullbackOneForm (fun _ : ℝ => Ξ±) e.symm p))
apply extendManifoldOneForm_smooth e.open_target hKi.isClosed
· rintro y ⟨x,hx,rfl⟩
exact e.map_source (hKs hx)
Β· exact manifoldPullbackOneForm_smooth_on (Ξ± := fun _ : ℝ => Ξ±)
e.open_target e.symm.contMDiffOn
(fun c => (hΞ± c).comp contDiffOn_snd (fun _ hp => hp.2))
Β· intro p y hyt hy
have hk : e.symm yβˆ‰K := by
intro hk
exact hy ⟨e.symm y,hk,e.right_inv hyt⟩
simp only [manifoldPullbackOneForm,hz _ hk,ContinuousLinearMap.zero_comp]
omit [IsManifold π“˜(ℝ,E) ∞ M] [IsManifold π“˜(ℝ,F) ∞ N] in
theorem handlePushforwardOneForm_tsupport [T2Space N]
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
{Ξ± : ManifoldOneForm E M} {K : Set M} (hK : IsCompact K) (hKs : KβŠ†e.source)
(hz : βˆ€ x, xβˆ‰K β†’ Ξ± x=0) :
tsupport (handlePushforwardOneForm e Ξ±) βŠ† e '' K := by
apply closure_minimal _ (hK.image_of_continuousOn
(e.contMDiffOn.continuousOn.mono hKs)).isClosed
intro y hy
by_contra hn
exact hy (handlePushforwardOneForm_zero e hz hn)
omit [IsManifold π“˜(ℝ,E) ∞ M] [IsManifold π“˜(ℝ,F) ∞ N] in
theorem handlePushforwardOneForm_compact [T2Space N]
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
{Ξ± : ManifoldOneForm E M} {K : Set M} (hK : IsCompact K) (hKs : KβŠ†e.source)
(hz : βˆ€ x, xβˆ‰K β†’ Ξ± x=0) : HasCompactSupport (handlePushforwardOneForm e Ξ±) := by
apply HasCompactSupport.intro (hK.image_of_continuousOn
(e.contMDiffOn.continuousOn.mono hKs))
exact fun _ hy => handlePushforwardOneForm_zero e hz hy
omit [IsManifold π“˜(ℝ,E) ∞ M] in
theorem manifoldExteriorOneForm_zero (x : M) :
manifoldExteriorOneForm (0 : ManifoldOneForm E M) x=0 := by
unfold manifoldExteriorOneForm
have hz : chartOneForm (0 : ManifoldOneForm E M) x = fun _ => 0 :=
funext fun y => chartOneForm_zero x y
simp only [hz,euclideanExteriorOneForm,fderiv_const_apply,
ContinuousLinearMap.flip_zero]
ext u v
change (0 : ℝ)-0=0
ring
theorem handlePushforwardOneForm_closed [T2Space N]
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
{Ξ± : ManifoldOneForm E M} {K : Set M} (hK : IsCompact K) (hKs : KβŠ†e.source)
(hΞ± : βˆ€ c, ContDiffOn ℝ ∞ (chartOneForm Ξ± c) (extChartAt π“˜(ℝ,E) c).target)
(hz : βˆ€ x, xβˆ‰K β†’ Ξ± x=0) (hd : βˆ€ x, manifoldExteriorOneForm Ξ± x=0) (y : N) :
manifoldExteriorOneForm (handlePushforwardOneForm e Ξ±) y=0 := by
by_cases hy : y∈e.target
Β· rw [handlePushforwardOneForm,extendManifoldOneForm_exterior_inside e.open_target _ hy,
manifold_pullback_exterior_on hΞ± e.open_target e.symm.contMDiffOn hy]
simp only [manifoldPullbackTwoForm,hd]
rfl
Β· have hn : yβˆ‰e '' K := by
rintro ⟨x,hx,rfl⟩
exact hy (e.map_source (hKs hx))
have hKi := hK.image_of_continuousOn (e.contMDiffOn.continuousOn.mono hKs)
have he : handlePushforwardOneForm e Ξ± =αΆ [𝓝 y] 0 := by
filter_upwards [hKi.isClosed.isOpen_compl.mem_nhds hn] with z hzK
exact handlePushforwardOneForm_zero e hz hzK
rw [manifoldExteriorOneForm_congr_of_eventuallyEq he,manifoldExteriorOneForm_zero]
omit [IsManifold π“˜(ℝ,E) ∞ M] [IsManifold π“˜(ℝ,F) ∞ N] in
theorem handle_mfderiv_symm_comp
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞) {x : M} (hx : x∈e.source) :
(mfderiv π“˜(ℝ,F) π“˜(ℝ,E) e.symm (e x)).comp
(mfderiv π“˜(ℝ,E) π“˜(ℝ,F) e x) = ContinuousLinearMap.id ℝ E := by
have he : (e.symm ∘ e) =αΆ [𝓝 x] id := by
filter_upwards [e.open_source.mem_nhds hx] with y hy
exact e.left_inv hy
have hd := mfderiv_comp x (e.symm.mdifferentiableAt (by simp) (e.map_source hx))
(e.mdifferentiableAt (by simp) hx)
rw [← hd,he.mfderiv_eq,mfderiv_id]
rfl
omit [IsManifold π“˜(ℝ,E) ∞ M] [IsManifold π“˜(ℝ,F) ∞ N] in
theorem handlePushforwardOneForm_pullback
(e : PartialDiffeomorph π“˜(ℝ,E) π“˜(ℝ,F) M N ∞)
(α : ManifoldOneForm E M) {x : M} (hx : x∈e.source) :
manifoldPullbackOneForm (fun _ => handlePushforwardOneForm e Ξ±) e 0 x=Ξ± x := by
have hd := handle_mfderiv_symm_comp e hx
change (extendManifoldOneForm e.target
(manifoldPullbackOneForm (fun _ => Ξ±) e.symm 0) (e x)).comp _ = _
rw [extendManifoldOneForm_inside (e.map_source hx)]
ext v
change Ξ± (e.symm (e x))
((manifoldMapDifferential (E := E) (F := F) e.symm (e x))
((manifoldMapDifferential (E := F) (F := E) e x) v)) = Ξ± x v
have hΞ±x : Ξ± (e.symm (e x))=Ξ± x := congrArg Ξ± (e.left_inv hx)
rw [hΞ±x]
exact congrArg (Ξ± x) (congrArg (fun D : E β†’L[ℝ] E => D v) hd)
end PackingSufficiencySupport.Hamiltonian
end
end OAI