Download data/lean/OAI/Geometry/BallPacking/Forms/SpatialOneForm.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 28.5 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Forms/SpatialOneForm.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Forms/SpatialOneForm.lean
-
curl -L -o SpatialOneForm.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Forms/SpatialOneForm.lean
28.5 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Moser.SymplecticFamily | |
| namespace OAI | |
| noncomputable section | |
| namespace PackingSufficiencySupport.Hamiltonian | |
| section | |
| open scoped ContDiff Topology | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| theorem spatialDifferential_contDiffAt {f : β Γ E β β} {p : β Γ E} | |
| (hf : ContDiffAt β β f p) : ContDiffAt β β (spatialDifferential f) p := | |
| (hf.fderiv_right (by simp)).clm_comp contDiffAt_const | |
| theorem spatialDifferential_fderivAt {f : β Γ E β β} {p : β Γ E} | |
| (hf : ContDiffAt β β f p) (v : β Γ E) (w : E) : | |
| fderiv β (spatialDifferential f) p v w = | |
| fderiv β (fderiv β f) p v (0,w) := by | |
| have hd := ((hf.fderiv_right (m := β) (by simp)).differentiableAt (by simp)).hasFDerivAt | |
| have hh := hd.clm_comp (hasFDerivAt_const (ContinuousLinearMap.inr β β E) p) | |
| rw [show fderiv β (spatialDifferential f) p = _ from hh.fderiv] | |
| simp only [add_apply, ContinuousLinearMap.comp_apply, | |
| zero_apply, map_zero, zero_add, | |
| ContinuousLinearMap.flip_apply, ContinuousLinearMap.compL_apply, | |
| ContinuousLinearMap.inr_apply] | |
| theorem spatialDifferential_closedAt {f : β Γ E β β} {p : β Γ E} | |
| (hf : ContDiffAt β β f p) (v w : E) : | |
| fderiv β (spatialDifferential f) p (0,v) w - | |
| fderiv β (spatialDifferential f) p (0,w) v = 0 := by | |
| rw [spatialDifferential_fderivAt hf,spatialDifferential_fderivAt hf] | |
| exact sub_eq_zero.mpr ((hf.isSymmSndFDerivAt (by | |
| rw [minSmoothness_of_isRCLikeNormedField] | |
| change ((2 : ββ) : WithTop ββ) β€ β(β€ : ββ) | |
| exact WithTop.coe_le_coe.mpr le_top)).eq (0,v) (0,w)) | |
| 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] | |
| def manifoldSpatialDifferential (f : β Γ M β β) (t : β) (x : M) : E βL[β] β := | |
| mfderiv π(β,E) π(β,β) (fun z => f (t,z)) x | |
| def manifoldPotentialChart (f : β Γ M β β) (c : M) (p : β Γ E) : β := | |
| f (p.1,(extChartAt π(β,E) c).symm p.2) | |
| theorem manifoldPotentialChart_contDiffAt {f : β Γ M β β} | |
| (hf : ContMDiff ((π(β,β)).prod π(β,E)) π(β,β) β f) | |
| {c : M} {p : β Γ E} (hp : p.2 β (extChartAt π(β,E) c).target) : | |
| ContDiffAt β β (manifoldPotentialChart f c) p := by | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) c).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) c).mem_nhds hp) | |
| exact (hf.contMDiffAt.comp p | |
| (contDiffAt_fst.contMDiffAt.prodMk (hi.comp p contDiffAt_snd.contMDiffAt))).contDiffAt | |
| theorem chartDifferential_inverse {c : M} {y : E} | |
| (hy : y β (extChartAt π(β,E) c).target) : | |
| (chartDifferential (E := E) c ((extChartAt π(β,E) c).symm y)).inverse = | |
| mfderiv π(β,E) π(β,E) (extChartAt π(β,E) c).symm y := by | |
| apply ContinuousLinearMap.inverse_eq | |
| Β· simpa only [mfld_simps,chartDifferential] using! | |
| (mfderiv_extChartAt_comp_mfderivWithin_extChartAt_symm (I := π(β,E)) hy) | |
| Β· simpa only [mfld_simps,chartDifferential] using! | |
| (mfderivWithin_extChartAt_symm_comp_mfderiv_extChartAt (I := π(β,E)) hy) | |
| theorem chartOneForm_manifoldSpatialDifferential {f : β Γ M β β} | |
| (hf : ContMDiff ((π(β,β)).prod π(β,E)) π(β,β) β f) | |
| {c : M} {p : β Γ E} (hp : p.2 β (extChartAt π(β,E) c).target) : | |
| chartOneForm (manifoldSpatialDifferential f p.1) c p.2 = | |
| spatialDifferential (manifoldPotentialChart f c) p := by | |
| have hs : ContMDiff π(β,E) π(β,β) β (fun z => f (p.1,z)) := | |
| hf.comp (contMDiff_const.prodMk contMDiff_id) | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) c).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) c).mem_nhds hp) | |
| have hm := ((hs.mdifferentiable (by simp) _).hasMFDerivAt).comp p.2 | |
| (hi.mdifferentiableAt (by simp)).hasMFDerivAt | |
| have hj := (manifoldPotentialChart_contDiffAt hf hp).differentiableAt (by simp) | |
| have ha : HasFDerivAt (fun y : E => (p.1,y)) (ContinuousLinearMap.inr β β E) p.2 := by | |
| convert! (hasFDerivAt_const (π := β) p.1 p.2).prodMk (hasFDerivAt_id (π := β) p.2) using 1 | |
| have hd := hj.hasFDerivAt.comp p.2 ha | |
| have hdm : HasFDerivAt (fun y => f (p.1,(extChartAt π(β,E) c).symm y)) | |
| (chartOneForm (manifoldSpatialDifferential f p.1) c p.2) p.2 := by | |
| rw [chartOneForm,chartDifferential_inverse hp] | |
| exact hasMFDerivAt_iff_hasFDerivAt.mp hm | |
| have hdj : HasFDerivAt (fun y => f (p.1,(extChartAt π(β,E) c).symm y)) | |
| (spatialDifferential (manifoldPotentialChart f c) p) p.2 := by | |
| convert! hd using 1 | |
| exact hdm.unique hdj | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold | |
| variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| def euclideanPullbackTwoForm (Ξ© : β β ManifoldTwoForm E M) (g : F β M) | |
| (p : β Γ F) : F βL[β] F βL[β] β := | |
| (Ξ© p.1 (g p.2)).bilinearComp (mfderiv π(β,F) π(β,E) g p.2) | |
| (mfderiv π(β,F) π(β,E) g p.2) | |
| def euclideanPullbackOneForm (Ξ± : β β ManifoldOneForm E M) (g : F β M) | |
| (p : β Γ F) : F βL[β] β := | |
| (Ξ± p.1 (g p.2)).comp (mfderiv π(β,F) π(β,E) g p.2) | |
| theorem euclideanPullbackTwoForm_chart {Ξ© : β β ManifoldTwoForm E M} {g : F β M} | |
| {p : β Γ F} {c : M} (hg : MDifferentiableAt π(β,F) π(β,E) g p.2) | |
| (hc : g p.2 β (extChartAt π(β,E) c).source) : | |
| euclideanPullbackTwoForm Ξ© g p = | |
| (chartTwoForm (Ξ© p.1) c (extChartAt π(β,E) c (g p.2))).bilinearComp | |
| (fderiv β (extChartAt π(β,E) c β g) p.2) | |
| (fderiv β (extChartAt π(β,E) c β g) p.2) := by | |
| have hd := ((mdifferentiableAt_extChartAt (I := π(β,E)) (x := c) | |
| (by simpa only [extChartAt_source] using hc)).hasMFDerivAt.comp p.2 hg.hasMFDerivAt) | |
| let A : F βL[β] E := | |
| (chartDifferential c (g p.2)).comp (mfderiv π(β,F) π(β,E) g p.2) | |
| have hf : HasFDerivAt (extChartAt π(β,E) c β g) A p.2 := | |
| hasMFDerivAt_iff_hasFDerivAt.mp hd | |
| have hdf := hf.fderiv | |
| dsimp only [A,chartDifferential] at hdf | |
| rw [hdf] | |
| ext v w | |
| exact (chartTwoForm_apply_chart hc _ _).symm | |
| theorem euclideanPullbackOneForm_chart {Ξ± : β β ManifoldOneForm E M} {g : F β M} | |
| {p : β Γ F} {c : M} (hg : MDifferentiableAt π(β,F) π(β,E) g p.2) | |
| (hc : g p.2 β (extChartAt π(β,E) c).source) : | |
| euclideanPullbackOneForm Ξ± g p = | |
| (chartOneForm (Ξ± p.1) c (extChartAt π(β,E) c (g p.2))).comp | |
| (fderiv β (extChartAt π(β,E) c β g) p.2) := by | |
| have hd := ((mdifferentiableAt_extChartAt (I := π(β,E)) (x := c) | |
| (by simpa only [extChartAt_source] using hc)).hasMFDerivAt.comp p.2 hg.hasMFDerivAt) | |
| let A : F βL[β] E := | |
| (chartDifferential c (g p.2)).comp (mfderiv π(β,F) π(β,E) g p.2) | |
| have hf : HasFDerivAt (extChartAt π(β,E) c β g) A p.2 := | |
| hasMFDerivAt_iff_hasFDerivAt.mp hd | |
| have hdf := hf.fderiv | |
| dsimp only [A,chartDifferential] at hdf | |
| rw [hdf] | |
| have hC : (chartDifferential (E := E) c (g p.2)).IsInvertible := by | |
| convert! isInvertible_mfderiv_extChartAt (I := π(β,E)) hc using 1 | |
| ext v | |
| change Ξ± p.1 (g p.2) _ = Ξ± p.1 ((extChartAt π(β,E) c).symm | |
| (extChartAt π(β,E) c (g p.2))) _ | |
| rw [(extChartAt π(β,E) c).left_inv hc] | |
| change _ = Ξ± p.1 (g p.2) ((chartDifferential c (g p.2)).inverse | |
| (chartDifferential c (g p.2) (mfderiv π(β,F) π(β,E) g p.2 v))) | |
| erw [hC.inverse_apply_self] | |
| rfl | |
| theorem euclideanPullbackTwoForm_contDiffAt | |
| {Ξ© : β β ManifoldTwoForm E M} {g : F β M} {p : β Γ F} | |
| (hΞ© : β c, ContDiffOn β β (fun q : β Γ E => chartTwoForm (Ξ© q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) c).target)) | |
| (hg : ContMDiffAt π(β,F) π(β,E) β g p.2) : | |
| ContDiffAt β β (euclideanPullbackTwoForm Ξ© g) p := by | |
| let c := g p.2 | |
| have hc : g p.2 β (extChartAt π(β,E) c).source := mem_extChartAt_source c | |
| have hch := (contMDiffAt_extChartAt' (I := π(β,E)) (n := β) | |
| (x := c) (by simpa only [extChartAt_source] using hc)).comp p.2 hg | |
| have hs : ContDiffAt β β (extChartAt π(β,E) c β g) p.2 := hch.contDiffAt | |
| have hcoord : ContDiffAt β β (fun q : β Γ F => (q.1,extChartAt π(β,E) c (g q.2))) p := | |
| contDiffAt_fst.prodMk (hs.comp p contDiffAt_snd) | |
| have hform := ((hΞ© c).contDiffAt ((isOpen_univ.prod | |
| (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds | |
| β¨mem_univ _,(extChartAt π(β,E) c).map_source hcβ©)).comp p hcoord | |
| have hder := (hs.fderiv_right (m := β) (by simp)).comp p contDiffAt_snd | |
| have hsm := smooth_bilinear_flip ((smooth_bilinear_flip (hform.clm_comp hder)).clm_comp hder) | |
| apply hsm.congr_of_eventuallyEq | |
| have hg' := (contMDiffAt_iff_contMDiffAt_nhds (by simp : (1 : ββΟ) β β)).mp | |
| (hg.of_le (by simp : (1 : ββΟ) β€ β)) | |
| have hc' := hg.continuousAt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| filter_upwards [continuousAt_snd.preimage_mem_nhds hg', | |
| continuousAt_snd.preimage_mem_nhds hc'] with q hq hqc | |
| exact euclideanPullbackTwoForm_chart (hq.mdifferentiableAt (by simp)) hqc | |
| theorem euclideanPullbackOneForm_contDiffAt | |
| {Ξ± : β β ManifoldOneForm E M} {g : F β M} {p : β Γ F} | |
| (hΞ± : β c, ContDiffOn β β (fun q : β Γ E => chartOneForm (Ξ± q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) c).target)) | |
| (hg : ContMDiffAt π(β,F) π(β,E) β g p.2) : | |
| ContDiffAt β β (euclideanPullbackOneForm Ξ± g) p := by | |
| let c := g p.2 | |
| have hc : g p.2 β (extChartAt π(β,E) c).source := mem_extChartAt_source c | |
| have hch := (contMDiffAt_extChartAt' (I := π(β,E)) (n := β) | |
| (x := c) (by simpa only [extChartAt_source] using hc)).comp p.2 hg | |
| have hs : ContDiffAt β β (extChartAt π(β,E) c β g) p.2 := hch.contDiffAt | |
| have hcoord : ContDiffAt β β (fun q : β Γ F => (q.1,extChartAt π(β,E) c (g q.2))) p := | |
| contDiffAt_fst.prodMk (hs.comp p contDiffAt_snd) | |
| have hform := ((hΞ± c).contDiffAt ((isOpen_univ.prod | |
| (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds | |
| β¨mem_univ _,(extChartAt π(β,E) c).map_source hcβ©)).comp p hcoord | |
| have hder := (hs.fderiv_right (m := β) (by simp)).comp p contDiffAt_snd | |
| have hsm := hform.clm_comp hder | |
| apply hsm.congr_of_eventuallyEq | |
| have hg' := (contMDiffAt_iff_contMDiffAt_nhds (by simp : (1 : ββΟ) β β)).mp | |
| (hg.of_le (by simp : (1 : ββΟ) β€ β)) | |
| have hc' := hg.continuousAt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| filter_upwards [continuousAt_snd.preimage_mem_nhds hg', | |
| continuousAt_snd.preimage_mem_nhds hc'] with q hq hqc | |
| exact euclideanPullbackOneForm_chart (hq.mdifferentiableAt (by simp)) hqc | |
| 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] | |
| def chartSupportedOneForm (c : M) (Ξ± : E β E βL[β] β) : ManifoldOneForm E M := by | |
| classical | |
| exact fun x => if x β (extChartAt π(β,E) c).source then | |
| (Ξ± (extChartAt π(β,E) c x)).comp (chartDifferential c x) else 0 | |
| theorem chartSupportedOneForm_chart {c b : M} {Ξ± : E β E βL[β] β} {y : E} | |
| (hy : y β (extChartAt π(β,E) b).target) | |
| (hc : (extChartAt π(β,E) b).symm y β (extChartAt π(β,E) c).source) : | |
| chartOneForm (chartSupportedOneForm c Ξ±) b y = | |
| (Ξ± (extChartAt π(β,E) c ((extChartAt π(β,E) b).symm y))).comp | |
| (fderiv β (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) y) := by | |
| have hi := ((contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hy)).mdifferentiableAt (by simp) | |
| have ho := mdifferentiableAt_extChartAt (I := π(β,E)) (x := c) | |
| (by simpa only [extChartAt_source] using hc) | |
| let A : E βL[β] E := | |
| (chartDifferential c ((extChartAt π(β,E) b).symm y)).comp | |
| (mfderiv π(β,E) π(β,E) (extChartAt π(β,E) b).symm y) | |
| have hf : HasFDerivAt (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) A y := | |
| hasMFDerivAt_iff_hasFDerivAt.mp (ho.hasMFDerivAt.comp y hi.hasMFDerivAt) | |
| have he := hf.fderiv | |
| dsimp only [A,chartDifferential] at he | |
| simp only [chartOneForm,chartSupportedOneForm,ite_eq_left hc,chartDifferential_inverse hy,he] | |
| rfl | |
| omit [IsManifold π(β,E) β M] in | |
| theorem chartSupportedOneForm_zero {c : M} {Ξ± : E β E βL[β] β} {K : Set E} | |
| (hΞ± : β y β K, Ξ± y=0) {x : M} | |
| (hx : x β (extChartAt π(β,E) c).symm '' K) : chartSupportedOneForm c Ξ± x=0 := by | |
| classical | |
| unfold chartSupportedOneForm | |
| split_ifs with hc | |
| Β· have hn : extChartAt π(β,E) c x β K := by | |
| intro hk | |
| exact hx β¨extChartAt π(β,E) c x,hk,(extChartAt π(β,E) c).left_inv hcβ© | |
| rw [hΞ± _ hn] | |
| exact ContinuousLinearMap.zero_comp _ | |
| Β· rfl | |
| omit [IsManifold π(β,E) β M] in | |
| theorem chartSupportedOneForm_compact [T2Space M] {c : M} {Ξ± : E β E βL[β] β} | |
| {K : Set E} (hKc : IsCompact K) (hK : K β (extChartAt π(β,E) c).target) | |
| (hΞ± : β y β K, Ξ± y=0) : HasCompactSupport (chartSupportedOneForm c Ξ±) := by | |
| apply HasCompactSupport.intro (hKc.image_of_continuousOn | |
| ((continuousOn_extChartAt_symm (I := π(β,E)) c).mono hK)) | |
| exact fun x hx => chartSupportedOneForm_zero hΞ± hx | |
| theorem chartSupportedOneForm_smooth [T2Space M] {c : M} | |
| {Ξ± : P Γ E β E βL[β] β} (hΞ± : ContDiff β β Ξ±) | |
| {K : Set E} (hKc : IsCompact K) (hK : K β (extChartAt π(β,E) c).target) | |
| (hzero : β p y, y β K β Ξ± (p,y)=0) (b : M) : | |
| ContDiffOn β β (fun q : P Γ E => | |
| chartOneForm (chartSupportedOneForm c (fun y => Ξ± (q.1,y))) b q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) b).target) := by | |
| intro p hp | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hp.2) | |
| let x := (extChartAt π(β,E) b).symm p.2 | |
| by_cases hc : x β (extChartAt π(β,E) c).source | |
| Β· have ho := contMDiffAt_extChartAt' (I := π(β,E)) (n := β) (x := c) | |
| (by simpa only [extChartAt_source] using hc) | |
| have ht : ContDiffAt β β | |
| (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) p.2 := | |
| (ho.comp p.2 hi).contDiffAt | |
| have hv := hΞ±.contDiffAt.comp p (contDiffAt_fst.prodMk (ht.comp p contDiffAt_snd)) | |
| have hd := (ht.fderiv_right (m := β) (by simp)).comp p contDiffAt_snd | |
| apply ((hv.clm_comp hd).congr_of_eventuallyEq _).contDiffWithinAt | |
| have hb := continuousAt_snd.preimage_mem_nhds | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hp.2) | |
| have hcn := (hi.continuousAt.comp continuousAt_snd).preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| filter_upwards [hb,hcn] with q hqb hqc | |
| exact chartSupportedOneForm_chart hqb hqc | |
| Β· have hcomp : IsCompact ((extChartAt π(β,E) c).symm '' K) := | |
| hKc.image_of_continuousOn ((continuousOn_extChartAt_symm (I := π(β,E)) c).mono hK) | |
| have hx : x β (extChartAt π(β,E) c).symm '' K := by | |
| rintro β¨y,hy,heβ© | |
| exact hc (he βΈ (extChartAt π(β,E) c).map_target (hK hy)) | |
| have hn := (hi.continuousAt.comp continuousAt_snd).preimage_mem_nhds | |
| (hcomp.isClosed.isOpen_compl.mem_nhds hx) | |
| apply ((contDiffAt_const (c := (0 : E βL[β] β))).congr_of_eventuallyEq ?_).contDiffWithinAt | |
| filter_upwards [hn] with q hq | |
| change (chartSupportedOneForm c (fun y => Ξ± (q.1,y)) | |
| ((extChartAt π(β,E) b).symm q.2)).comp _ = 0 | |
| change (extChartAt π(β,E) b).symm q.2 β (extChartAt π(β,E) c).symm '' K at hq | |
| rw [chartSupportedOneForm_zero (hzero q.1) hq] | |
| exact ContinuousLinearMap.zero_comp _ | |
| def chartSupportedTwoForm (c : M) (Ξ± : E β E βL[β] E βL[β] β) : ManifoldTwoForm E M := by | |
| classical | |
| exact fun x => if x β (extChartAt π(β,E) c).source then | |
| (Ξ± (extChartAt π(β,E) c x)).bilinearComp (chartDifferential c x) (chartDifferential c x) else 0 | |
| theorem chartSupportedTwoForm_chart {c b : M} {Ξ± : E β E βL[β] E βL[β] β} {y : E} | |
| (hy : y β (extChartAt π(β,E) b).target) | |
| (hc : (extChartAt π(β,E) b).symm y β (extChartAt π(β,E) c).source) : | |
| chartTwoForm (chartSupportedTwoForm c Ξ±) b y = | |
| (Ξ± (extChartAt π(β,E) c ((extChartAt π(β,E) b).symm y))).bilinearComp | |
| (fderiv β (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) y) | |
| (fderiv β (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) y) := by | |
| have hi := ((contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hy)).mdifferentiableAt (by simp) | |
| have ho := mdifferentiableAt_extChartAt (I := π(β,E)) (x := c) | |
| (by simpa only [extChartAt_source] using hc) | |
| let A : E βL[β] E := | |
| (chartDifferential c ((extChartAt π(β,E) b).symm y)).comp | |
| (mfderiv π(β,E) π(β,E) (extChartAt π(β,E) b).symm y) | |
| have hf : HasFDerivAt (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) A y := | |
| hasMFDerivAt_iff_hasFDerivAt.mp (ho.hasMFDerivAt.comp y hi.hasMFDerivAt) | |
| have he := hf.fderiv | |
| dsimp only [A,chartDifferential] at he | |
| simp only [chartTwoForm,chartSupportedTwoForm,ite_eq_left hc,chartDifferential_inverse hy,he] | |
| rfl | |
| omit [IsManifold π(β,E) β M] in | |
| theorem chartSupportedTwoForm_zero {c : M} {Ξ± : E β E βL[β] E βL[β] β} {K : Set E} | |
| (hΞ± : β y β K, Ξ± y=0) {x : M} | |
| (hx : x β (extChartAt π(β,E) c).symm '' K) : chartSupportedTwoForm c Ξ± x=0 := by | |
| classical | |
| unfold chartSupportedTwoForm | |
| split_ifs with hc | |
| Β· have hn : extChartAt π(β,E) c x β K := by | |
| intro hk | |
| exact hx β¨extChartAt π(β,E) c x,hk,(extChartAt π(β,E) c).left_inv hcβ© | |
| rw [hΞ± _ hn] | |
| ext u v; rfl | |
| Β· rfl | |
| omit [IsManifold π(β,E) β M] in | |
| theorem chartSupportedTwoForm_compact [T2Space M] {c : M} {Ξ± : E β E βL[β] E βL[β] β} | |
| {K : Set E} (hKc : IsCompact K) (hK : K β (extChartAt π(β,E) c).target) | |
| (hΞ± : β y β K, Ξ± y=0) : HasCompactSupport (chartSupportedTwoForm c Ξ±) := by | |
| apply HasCompactSupport.intro (hKc.image_of_continuousOn | |
| ((continuousOn_extChartAt_symm (I := π(β,E)) c).mono hK)) | |
| exact fun x hx => chartSupportedTwoForm_zero hΞ± hx | |
| theorem chartSupportedTwoForm_smooth [T2Space M] {c : M} | |
| {Ξ± : P Γ E β E βL[β] E βL[β] β} (hΞ± : ContDiff β β Ξ±) | |
| {K : Set E} (hKc : IsCompact K) (hK : K β (extChartAt π(β,E) c).target) | |
| (hzero : β p y, y β K β Ξ± (p,y)=0) (b : M) : | |
| ContDiffOn β β (fun q : P Γ E => | |
| chartTwoForm (chartSupportedTwoForm c (fun y => Ξ± (q.1,y))) b q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) b).target) := by | |
| intro p hp | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hp.2) | |
| let x := (extChartAt π(β,E) b).symm p.2 | |
| by_cases hc : x β (extChartAt π(β,E) c).source | |
| Β· have ho := contMDiffAt_extChartAt' (I := π(β,E)) (n := β) (x := c) | |
| (by simpa only [extChartAt_source] using hc) | |
| have ht : ContDiffAt β β | |
| (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) p.2 := | |
| (ho.comp p.2 hi).contDiffAt | |
| have hv := hΞ±.contDiffAt.comp p (contDiffAt_fst.prodMk (ht.comp p contDiffAt_snd)) | |
| have hd := (ht.fderiv_right (m := β) (by simp)).comp p contDiffAt_snd | |
| have hsm := smooth_bilinear_flip ((smooth_bilinear_flip (hv.clm_comp hd)).clm_comp hd) | |
| apply (hsm.congr_of_eventuallyEq _).contDiffWithinAt | |
| have hb := continuousAt_snd.preimage_mem_nhds | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hp.2) | |
| have hcn := (hi.continuousAt.comp continuousAt_snd).preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| filter_upwards [hb,hcn] with q hqb hqc | |
| exact chartSupportedTwoForm_chart hqb hqc | |
| Β· have hcomp : IsCompact ((extChartAt π(β,E) c).symm '' K) := | |
| hKc.image_of_continuousOn ((continuousOn_extChartAt_symm (I := π(β,E)) c).mono hK) | |
| have hx : x β (extChartAt π(β,E) c).symm '' K := by | |
| rintro β¨y,hy,heβ© | |
| exact hc (he βΈ (extChartAt π(β,E) c).map_target (hK hy)) | |
| have hn := (hi.continuousAt.comp continuousAt_snd).preimage_mem_nhds | |
| (hcomp.isClosed.isOpen_compl.mem_nhds hx) | |
| apply ((contDiffAt_const (c := (0 : E βL[β] E βL[β] β))).congr_of_eventuallyEq ?_).contDiffWithinAt | |
| filter_upwards [hn] with q hq | |
| change (chartSupportedTwoForm c (fun y => Ξ± (q.1,y)) | |
| ((extChartAt π(β,E) b).symm q.2)).bilinearComp _ _ = 0 | |
| change (extChartAt π(β,E) b).symm q.2 β (extChartAt π(β,E) c).symm '' K at hq | |
| rw [chartSupportedTwoForm_zero (hzero q.1) hq] | |
| ext u v; rfl | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| theorem euclideanExteriorOneForm_zero_outside {Ξ± : E β E βL[β] β} {K : Set E} | |
| (hK : IsClosed K) (hzero : β x β K, Ξ± x=0) {x : E} (hx : x β K) : | |
| euclideanExteriorOneForm Ξ± x=0 := by | |
| have he : Ξ± =αΆ [π x] fun _ => (0 : E βL[β] β) := by | |
| filter_upwards [hK.isOpen_compl.mem_nhds hx] with y hy | |
| exact hzero y hy | |
| unfold euclideanExteriorOneForm | |
| rw [he.fderiv_eq] | |
| ext u v | |
| simp | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace E M] | |
| [IsManifold π(β,E) β M] [T2Space M] | |
| theorem chartSupportedOneForm_exterior {c b : M} {Ξ± : E β E βL[β] β} | |
| (hΞ± : ContDiff β β Ξ±) {K : Set E} (hKc : IsCompact K) | |
| (hK : K β (extChartAt π(β,E) c).target) | |
| (hzero : β y β K, Ξ± y=0) {y : E} | |
| (hy : y β (extChartAt π(β,E) b).target) : | |
| euclideanExteriorOneForm (chartOneForm (chartSupportedOneForm c Ξ±) b) y = | |
| chartTwoForm (chartSupportedTwoForm c (euclideanExteriorOneForm Ξ±)) b y := by | |
| have hi := (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) b).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hy) | |
| let x := (extChartAt π(β,E) b).symm y | |
| by_cases hc : x β (extChartAt π(β,E) c).source | |
| Β· have ho := contMDiffAt_extChartAt' (I := π(β,E)) (n := β) (x := c) | |
| (by simpa only [extChartAt_source] using hc) | |
| have ht : ContDiffAt β β | |
| (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) y := | |
| (ho.comp y hi).contDiffAt | |
| have he : chartOneForm (chartSupportedOneForm c Ξ±) b =αΆ [π y] | |
| staticPullbackOneForm Ξ± (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm) := by | |
| filter_upwards [(isOpen_extChartAt_target (I := π(β,E)) b).mem_nhds hy, | |
| hi.continuousAt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc)] with z hzb hzc | |
| exact chartSupportedOneForm_chart hzb hzc | |
| rw [chartSupportedTwoForm_chart hy hc] | |
| calc | |
| _ = euclideanExteriorOneForm | |
| (staticPullbackOneForm Ξ± (extChartAt π(β,E) c β (extChartAt π(β,E) b).symm)) y := by | |
| unfold euclideanExteriorOneForm | |
| rw [he.fderiv_eq] | |
| _ = _ := staticPullbackOneForm_exterior hΞ±.contDiffAt ht | |
| Β· have hcomp : IsCompact ((extChartAt π(β,E) c).symm '' K) := | |
| hKc.image_of_continuousOn ((continuousOn_extChartAt_symm (I := π(β,E)) c).mono hK) | |
| have hx : x β (extChartAt π(β,E) c).symm '' K := by | |
| rintro β¨z,hz,heβ© | |
| exact hc (he βΈ (extChartAt π(β,E) c).map_target (hK hz)) | |
| have he : chartOneForm (chartSupportedOneForm c Ξ±) b =αΆ [π y] | |
| fun _ => (0 : E βL[β] β) := by | |
| filter_upwards [hi.continuousAt.preimage_mem_nhds | |
| (hcomp.isClosed.isOpen_compl.mem_nhds hx)] with z hz | |
| change (chartSupportedOneForm c Ξ± ((extChartAt π(β,E) b).symm z)).comp _ = 0 | |
| change (extChartAt π(β,E) b).symm z β (extChartAt π(β,E) c).symm '' K at hz | |
| rw [chartSupportedOneForm_zero hzero hz] | |
| exact ContinuousLinearMap.zero_comp _ | |
| have hd : β z β K, euclideanExteriorOneForm Ξ± z=0 := | |
| fun z hz => euclideanExteriorOneForm_zero_outside hKc.isClosed hzero hz | |
| have hz := chartSupportedTwoForm_zero hd hx | |
| calc | |
| euclideanExteriorOneForm (chartOneForm (chartSupportedOneForm c Ξ±) b) y = | |
| (0 : E βL[β] E βL[β] β) := by | |
| unfold euclideanExteriorOneForm | |
| rw [he.fderiv_eq] | |
| ext u v | |
| simp | |
| _ = _ := by | |
| change 0 = (chartSupportedTwoForm c _ x).bilinearComp _ _ | |
| rw [hz] | |
| ext u v | |
| rfl | |
| end | |
| open scoped ContDiff Manifold Topology | |
| open MeasureTheory Set Function Manifold | |
| variable {P : Type} [NormedAddCommGroup P] [NormedSpace β P] [FiniteDimensional β P] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold π(β,Plane) β M] [T2Space M] | |
| theorem chart_supported_area_primitive {A : β} (hA : 0<A) (a : Plane) (c : M) | |
| (hbox : Metric.closedBall a A β (extChartAt π(β,Plane) c).target) | |
| {f : P Γ Plane β β} (hf : ContDiff β β f) | |
| (hzero : β p x y, A β€ |x-a.1| β¨ A β€ |y-a.2| β f (p,(x,y))=0) | |
| (hmass : β p, (β« x, f (p,x))=0) : | |
| β Ξ± : P β ManifoldOneForm Plane M, | |
| (β b, ContDiffOn β β (fun q : P Γ Plane => chartOneForm (Ξ± q.1) b q.2) | |
| (univ ΓΛ’ (extChartAt π(β,Plane) b).target)) β§ | |
| (β p x, x β (extChartAt π(β,Plane) c).symm '' Metric.closedBall a A β Ξ± p x=0) β§ | |
| (β p b y, y β (extChartAt π(β,Plane) b).target β | |
| euclideanExteriorOneForm (chartOneForm (Ξ± p) b) y = | |
| chartTwoForm (chartSupportedTwoForm c (fun z => f (p,z) β’ planarArea)) b y) β§ | |
| (β p, (β z, f (p,z)=0) β β x, Ξ± p x=0) := by | |
| obtain β¨Ξ²,hΞ²,hΞ²zero,hΞ²d,hΞ²allβ© := translated_spatial_covector_primitive hA a hf hzero hmass | |
| have hbzero (p : P) (z : Plane) (hz : z β Metric.closedBall a A) : Ξ² (p,z)=0 := by | |
| have hh : A < max |z.1-a.1| |z.2-a.2| := by | |
| simpa only [Metric.mem_closedBall,dist_eq_norm,Prod.norm_def,Prod.fst_sub,Prod.snd_sub, | |
| Real.norm_eq_abs,not_le] using hz | |
| exact hΞ²zero p z.1 z.2 ((lt_max_iff.mp hh).imp le_of_lt le_of_lt) | |
| refine β¨fun p => chartSupportedOneForm c (fun z => Ξ² (p,z)),?_,?_,?_,?_β© | |
| Β· intro b | |
| exact chartSupportedOneForm_smooth hΞ² (isCompact_closedBall a A) hbox hbzero b | |
| Β· intro p x hx | |
| exact chartSupportedOneForm_zero (hbzero p) hx | |
| Β· intro p b y hy | |
| have hp : ContDiff β β (fun z => Ξ² (p,z)) := hΞ².comp (contDiff_const.prodMk contDiff_id) | |
| rw [chartSupportedOneForm_exterior hp (isCompact_closedBall a A) hbox (hbzero p) hy] | |
| have he : euclideanExteriorOneForm (fun z => Ξ² (p,z)) = fun z => f (p,z) β’ planarArea := | |
| funext (hΞ²d p) | |
| rw [he] | |
| Β· intro p hp x | |
| have he : (fun z => Ξ² (p,z)) = fun _ => (0 : Plane βL[β] β) := funext (hΞ²all p hp) | |
| dsimp only | |
| rw [he] | |
| unfold chartSupportedOneForm | |
| split_ifs <;> simp | |
| omit [IsManifold π(β,Plane) β M] [T2Space M] in | |
| theorem chart_primitive_support_compact {A : β} {a : Plane} {c : M} | |
| (hbox : Metric.closedBall a A β (extChartAt π(β,Plane) c).target) : | |
| IsCompact ((extChartAt π(β,Plane) c).symm '' Metric.closedBall a A) β§ | |
| (extChartAt π(β,Plane) c).symm '' Metric.closedBall a A β | |
| (extChartAt π(β,Plane) c).source := by | |
| refine β¨(isCompact_closedBall a A).image_of_continuousOn | |
| ((continuousOn_extChartAt_symm (I := π(β,Plane)) c).mono hbox),?_β© | |
| rintro x β¨y,hy,rflβ© | |
| exact (extChartAt π(β,Plane) c).map_target (hbox hy) | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |