Download data/lean/OAI/Geometry/BallPacking/Flows/ManifoldFormTransport.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 25.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Flows/ManifoldFormTransport.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Flows/ManifoldFormTransport.lean
-
curl -L -o ManifoldFormTransport.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Flows/ManifoldFormTransport.lean
25.6 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Flows.AnnularPathGerms | |
| 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] | |
| def manifoldPullback (Ξ¦ : β Γ M β M) (Ξ© : β β ManifoldTwoForm E M) | |
| (t : β) (x : M) : E βL[β] E βL[β] β := | |
| (Ξ© t (Ξ¦ (t,x))).bilinearComp | |
| (preferredDifferential (E := E) (fun y => Ξ¦ (t,y)) x) | |
| (preferredDifferential (E := E) (fun y => Ξ¦ (t,y)) x) | |
| theorem manifold_form_transport_derivative | |
| {Ξ¦ : β Γ M β M} {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hΞ¦ : ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β Ξ¦) | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) | |
| {U : Set β} (hU : IsOpen U) | |
| (hflow : β x s, s β U β HasMFDerivAt π(β,β) π(β,E) | |
| (fun r => Ξ¦ (r,x)) s ((1 : β βL[β] β).smulRight (V (s,Ξ¦ (s,x))))) | |
| {Ξ© : β β ManifoldTwoForm E M} | |
| (hΞ© : β c, ContDiffOn β β (fun q : β Γ E => chartTwoForm (Ξ© q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) c).target)) | |
| {t : β} (ht : t β U) | |
| (hPDE : β c y, y β (extChartAt π(β,E) c).target β β u w, | |
| fderiv β (fun q : β Γ E => chartTwoForm (Ξ© q.1) c q.2) (t,y) | |
| (1,timeChartField V c (t,y)) u w + | |
| chartTwoForm (Ξ© t) c y (fderiv β (timeChartField V c) (t,y) (0,u)) w + | |
| chartTwoForm (Ξ© t) c y u (fderiv β (timeChartField V c) (t,y) (0,w)) = 0) | |
| (x : M) (v w : E) : | |
| HasDerivAt (fun s => manifoldPullback Ξ¦ Ξ© s x v w) 0 t := by | |
| let a := extChartAt π(β,E) x | |
| let c := Ξ¦ (t,x) | |
| let b := extChartAt π(β,E) c | |
| let p : β Γ E := (t,a x) | |
| let H : β Γ E β M := fun q => Ξ¦ (q.1,a.symm q.2) | |
| let F : β Γ E β E := b β H | |
| have hx : x β a.source := mem_extChartAt_source x | |
| have hy : a x β a.target := a.map_source hx | |
| have hcx : Ξ¦ (t,x) β b.source := mem_extChartAt_source c | |
| have hH : H p = Ξ¦ (t,x) := by dsimp [H,p]; rw [a.left_inv hx] | |
| have hc : H p β b.source := hH βΈ hcx | |
| have hi : ContMDiffAt π(β,E) π(β,E) β a.symm (a x) := | |
| (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) x).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) x).mem_nhds hy) | |
| have hHs : ContMDiffAt π(β,β Γ E) π(β,E) β H p := | |
| hΦ.contMDiffAt.comp p (contDiffAt_fst.contMDiffAt.prodMk (hi.comp p contDiffAt_snd.contMDiffAt)) | |
| have hFc : ContDiffAt β β F p := manifoldFamily_coordinate_smoothAt hΞ¦ hy hc | |
| have hbc : F p β b.target := b.map_source hc | |
| have hn : (univ ΓΛ’ b.target) β π (t,F p) := | |
| (isOpen_univ.prod (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds β¨mem_univ _,hbcβ© | |
| have hX := ((timeChartField_contDiffOn hV c).contDiffAt hn).differentiableAt (by simp) | |
| have hO := ((hΞ© c).contDiffAt hn).differentiableAt (by simp) | |
| have hflowc : βαΆ q in π p, HasDerivAt (fun s => F (s,q.2)) | |
| (timeChartField V c (q.1,F q)) q.1 := by | |
| have hneigh := hHs.continuousAt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| have htime : βαΆ q in π p, q.1 β U := | |
| continuousAt_fst.preimage_mem_nhds (hU.mem_nhds ht) | |
| filter_upwards [hneigh,htime] with q hq hqt | |
| exact timeChartField_hasDerivAt (hflow (a.symm q.2) q.1 hqt) hq | |
| have hd := local_flow_form_derivative hFc hX hflowc hO (hPDE c (F p) hbc) v w | |
| apply hd.congr_of_eventuallyEq | |
| have hΦt : ContinuousAt (fun s => Φ (s,x)) t := | |
| hΦ.continuous.continuousAt.comp (continuousAt_id.prodMk continuousAt_const) | |
| filter_upwards [hΦt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hcx)] with s hs | |
| have hfs : MDifferentiableAt π(β,E) π(β,E) (fun y => Ξ¦ (s,y)) x := | |
| (hΦ.comp (contMDiff_const.prodMk contMDiff_id)).mdifferentiable (by simp) x | |
| have he := chart_spatial_pullback hfs hs (Ξ© s) v w | |
| dsimp only [F,H,p,Function.comp_apply] | |
| rw [a.left_inv hx] | |
| exact he.symm | |
| omit [IsManifold π(β,E) β M] in | |
| theorem manifold_form_transport_constant | |
| {Ξ¦ : β Γ M β M} {Ξ© : β β ManifoldTwoForm E M} | |
| (hd : β t β Icc (0:β) 1, β x v w, | |
| HasDerivAt (fun s => manifoldPullback Ξ¦ Ξ© s x v w) 0 t) | |
| {t : β} (ht : t β Icc (0:β) 1) (x : M) (v w : E) : | |
| manifoldPullback Ξ¦ Ξ© t x v w = manifoldPullback Ξ¦ Ξ© 0 x v w := by | |
| have he := (convex_Icc (0:β) 1).norm_image_sub_le_of_norm_hasDerivWithin_le | |
| (fun s hs => (hd s hs x v w).hasDerivWithinAt) | |
| (fun s hs => (by simp : β(0:β)β β€ (0:β))) | |
| (show (0:β) β Icc (0:β) 1 by norm_num) ht | |
| simpa only [zero_mul,norm_le_zero_iff,sub_eq_zero] using he | |
| theorem local_manifold_form_transport_derivative | |
| {Ξ¦ : β Γ M β M} {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hΞ¦ : ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β Ξ¦) | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) | |
| {U : Set β} (hU : IsOpen U) | |
| (hflow : β x s, s β U β HasMFDerivAt π(β,β) π(β,E) | |
| (fun r => Ξ¦ (r,x)) s ((1 : β βL[β] β).smulRight (V (s,Ξ¦ (s,x))))) | |
| {Ξ© : β β ManifoldTwoForm E M} | |
| (hΞ© : β c, ContDiffOn β β (fun q : β Γ E => chartTwoForm (Ξ© q.1) c q.2) | |
| (univ ΓΛ’ (extChartAt π(β,E) c).target)) | |
| {t : β} (ht : t β U) | |
| (x : M) | |
| (hPDE : β c y, y β (extChartAt π(β,E) c).target β | |
| (extChartAt π(β,E) c).symm y=Ξ¦ (t,x) β β u w, | |
| fderiv β (fun q : β Γ E => chartTwoForm (Ξ© q.1) c q.2) (t,y) | |
| (1,timeChartField V c (t,y)) u w + | |
| chartTwoForm (Ξ© t) c y (fderiv β (timeChartField V c) (t,y) (0,u)) w + | |
| chartTwoForm (Ξ© t) c y u (fderiv β (timeChartField V c) (t,y) (0,w)) = 0) | |
| (v w : E) : | |
| HasDerivAt (fun s => manifoldPullback Ξ¦ Ξ© s x v w) 0 t := by | |
| let a := extChartAt π(β,E) x | |
| let c := Ξ¦ (t,x) | |
| let b := extChartAt π(β,E) c | |
| let p : β Γ E := (t,a x) | |
| let H : β Γ E β M := fun q => Ξ¦ (q.1,a.symm q.2) | |
| let F : β Γ E β E := b β H | |
| have hx : x β a.source := mem_extChartAt_source x | |
| have hy : a x β a.target := a.map_source hx | |
| have hcx : Ξ¦ (t,x) β b.source := mem_extChartAt_source c | |
| have hH : H p = Ξ¦ (t,x) := by dsimp [H,p]; rw [a.left_inv hx] | |
| have hc : H p β b.source := hH βΈ hcx | |
| have hi : ContMDiffAt π(β,E) π(β,E) β a.symm (a x) := | |
| (contMDiffOn_extChartAt_symm (I := π(β,E)) (n := β) x).contMDiffAt | |
| ((isOpen_extChartAt_target (I := π(β,E)) x).mem_nhds hy) | |
| have hHs : ContMDiffAt π(β,β Γ E) π(β,E) β H p := | |
| hΦ.contMDiffAt.comp p (contDiffAt_fst.contMDiffAt.prodMk (hi.comp p contDiffAt_snd.contMDiffAt)) | |
| have hFc : ContDiffAt β β F p := manifoldFamily_coordinate_smoothAt hΞ¦ hy hc | |
| have hbc : F p β b.target := b.map_source hc | |
| have hn : (univ ΓΛ’ b.target) β π (t,F p) := | |
| (isOpen_univ.prod (isOpen_extChartAt_target (I := π(β,E)) c)).mem_nhds β¨mem_univ _,hbcβ© | |
| have hX := ((timeChartField_contDiffOn hV c).contDiffAt hn).differentiableAt (by simp) | |
| have hO := ((hΞ© c).contDiffAt hn).differentiableAt (by simp) | |
| have hflowc : βαΆ q in π p, HasDerivAt (fun s => F (s,q.2)) | |
| (timeChartField V c (q.1,F q)) q.1 := by | |
| have hneigh := hHs.continuousAt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hc) | |
| have htime : βαΆ q in π p, q.1 β U := | |
| continuousAt_fst.preimage_mem_nhds (hU.mem_nhds ht) | |
| filter_upwards [hneigh,htime] with q hq hqt | |
| exact timeChartField_hasDerivAt (hflow (a.symm q.2) q.1 hqt) hq | |
| have hd := local_flow_form_derivative hFc hX hflowc hO (hPDE c (F p) hbc ((b.left_inv hc).trans hH)) v w | |
| apply hd.congr_of_eventuallyEq | |
| have hΦt : ContinuousAt (fun s => Φ (s,x)) t := | |
| hΦ.continuous.continuousAt.comp (continuousAt_id.prodMk continuousAt_const) | |
| filter_upwards [hΦt.preimage_mem_nhds | |
| ((isOpen_extChartAt_source (I := π(β,E)) c).mem_nhds hcx)] with s hs | |
| have hfs : MDifferentiableAt π(β,E) π(β,E) (fun y => Ξ¦ (s,y)) x := | |
| (hΦ.comp (contMDiff_const.prodMk contMDiff_id)).mdifferentiable (by simp) x | |
| have he := chart_spatial_pullback hfs hs (Ξ© s) v w | |
| dsimp only [F,H,p,Function.comp_apply] | |
| rw [a.left_inv hx] | |
| exact he.symm | |
| 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] | |
| theorem manifoldMoserField_moment_tangent | |
| {Ξ© : β β ManifoldTwoForm E M} {Ξ± : β β ManifoldOneForm E M} | |
| {p : β Γ M} (hinv : (Ξ© p.1 p.2).IsInvertible) | |
| (hskew : β u v, Ξ© p.1 p.2 u v = -Ξ© p.1 p.2 v u) | |
| (L : E βL[β] β) (Z : E) (hface : Ξ© p.1 p.2 Z = -L) | |
| (hhor : Ξ± p.1 p.2 Z=0) : L (manifoldMoserField Ξ© Ξ± p)=0 := by | |
| let v : E := manifoldMoserField Ξ© Ξ± p | |
| change L v = 0 | |
| have hs : Ξ© p.1 p.2 v = -Ξ± p.1 p.2 := by | |
| simp only [v,manifoldMoserField,map_neg,hinv.self_apply_inverse] | |
| have hh := congrArg (fun A : E βL[β] β => A Z) hs | |
| have hz := congrArg (fun A : E βL[β] β => A v) hface | |
| simp only [neg_apply,hhor,neg_zero] at hh | |
| simp only [neg_apply] at hz | |
| rw [hskew] at hh | |
| linarith | |
| 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 chartField (v : (x : M) β TangentSpace π(β,E) x) (x : M) (y : E) : E := | |
| let z := (extChartAt π(β,E) x).symm y | |
| tangentCoordChange π(β,E) z x z (v z) | |
| theorem chartField_smoothOn {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| (x : M) : ContDiffOn β β (chartField v x) (extChartAt π(β,E) x).target := by | |
| have h := (contMDiff_iff.mp hv).2 x (β¨x,v xβ© : TangentBundle π(β,E) M) | |
| have hh := h.snd | |
| change ContDiffOn β β (chartField v x) _ at hh | |
| apply hh.mono | |
| intro y hy | |
| refine β¨hy,?_β© | |
| simp only [Set.mem_preimage, extChartAt_source, TangentBundle.mem_chart_source_iff] | |
| simpa only [extChartAt_source] using (extChartAt π(β,E) x).map_target hy | |
| theorem chartCurve_hasMFDerivAt {v : (z : M) β TangentSpace π(β,E) z} | |
| (x : M) {f : β β E} {t : β} | |
| (hf : f t β (extChartAt π(β,E) x).target) | |
| (hd : HasDerivAt f (chartField v x (f t)) t) : | |
| HasMFDerivAt π(β,β) π(β,E) ((extChartAt π(β,E) x).symm β f) t | |
| ((1 : β βL[β] β).smulRight (v ((extChartAt π(β,E) x).symm (f t)))) := by | |
| change M β E at v | |
| let z : M := (extChartAt π(β,E) x).symm (f t) | |
| have hz : z β (extChartAt π(β,E) x).source := (extChartAt π(β,E) x).map_target hf | |
| have hz' := mem_extChartAt_source (I := π(β,E)) z | |
| have hd' : HasDerivAt f (tangentCoordChange π(β,E) z x z (v z)) t := hd | |
| refine β¨(continuousAt_extChartAt_symm'' hf).comp hd.continuousAt, | |
| HasDerivWithinAt.hasFDerivWithinAt ?_β© | |
| simp only [mfld_simps,hasDerivWithinAt_univ] | |
| change HasDerivAt ((extChartAt π(β,E) z β (extChartAt π(β,E) x).symm) β f) (v z) t | |
| rw [βtangentCoordChange_self (I := π(β,E)) (x := z) (z := z) (v := v z) hz', | |
| βtangentCoordChange_comp (x := x) β¨β¨hz',hzβ©,hz'β©] | |
| apply HasFDerivAt.comp_hasDerivAt _ _ hd' | |
| apply HasFDerivWithinAt.hasFDerivAt (s := range π(β,E)) _ (by simp) | |
| rw [β(extChartAt π(β,E) x).right_inv hf] | |
| exact hasFDerivWithinAt_tangentCoordChange β¨hz,hz'β© | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology NNReal | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [CompleteSpace E] | |
| theorem exists_global_bounded_trajectory {X : E β E} {L : ββ₯0} | |
| (hL : LipschitzWith L X) {B : ββ₯0} (hB : β x, βX xβ β€ B) (x : E) : | |
| β Ξ³ : β β E, Ξ³ 0 = x β§ β t, HasDerivAt Ξ³ (X (Ξ³ t)) t := by | |
| have hex (a : ββ₯0) : β Ξ³ : β β E, Ξ³ 0 = x β§ | |
| β t β Icc (-(a:β)) a, HasDerivWithinAt Ξ³ (X (Ξ³ t)) (Icc (-(a:β)) a) t := by | |
| let tβ : Icc (-(a:β)) a := β¨0, neg_nonpos.mpr a.coe_nonneg, a.coe_nonnegβ© | |
| have hp : IsPicardLindelof (fun _ : β => X) tβ x (B*a) 0 B L := { | |
| lipschitzOnWith := fun _ _ => hL.lipschitzOnWith | |
| continuousOn := fun _ _ => continuousOn_const | |
| norm_le := fun _ _ y _ => hB y | |
| mul_max_le := by simp [tβ] } | |
| exact hp.exists_eq_forall_mem_Icc_hasDerivWithinAtβ | |
| choose u hu0 hud using hex | |
| have heq {a b : ββ₯0} (hab : a β€ b) : EqOn (u a) (u b) (Ioo (-(a:β)) a) := by | |
| by_cases ha : a = 0 | |
| Β· simp [ha] | |
| Β· have ha' : (0:β) < a := NNReal.coe_pos.mpr (pos_iff_ne_zero.mpr ha) | |
| apply ODE_solution_unique_of_mem_Ioo | |
| (s := fun _ => univ) (fun _ _ => hL.lipschitzOnWith) | |
| (tβ := 0) β¨by linarith,ha'β© | |
| (fun t ht => β¨(hud a t (Ioo_subset_Icc_self ht)).hasDerivAt | |
| (Icc_mem_nhds ht.1 ht.2),mem_univ _β©) | |
| Β· intro t ht | |
| have ht' : t β Ioo (-(b:β)) b := by | |
| have hab' : (a:β) β€ b := hab | |
| constructor <;> linarith [ht.1,ht.2] | |
| exact β¨(hud b t (Ioo_subset_Icc_self ht')).hasDerivAt | |
| (Icc_mem_nhds ht'.1 ht'.2),mem_univ _β© | |
| Β· rw [hu0 a,hu0 b] | |
| let Ξ³ : β β E := fun t => u (βtββ+1) t | |
| have hmatch {a : ββ₯0} : EqOn Ξ³ (u a) (Ioo (-(a:β)) a) := by | |
| intro t ht | |
| have ht' : t β Ioo (-((βtββ+1:ββ₯0):β)) (βtββ+1:ββ₯0) := by | |
| simp only [NNReal.coe_add,NNReal.coe_one,coe_nnnorm,Real.norm_eq_abs] | |
| exact abs_lt.mp (lt_add_one |t|) | |
| rcases le_total (βtββ+1) a with h | h | |
| Β· exact heq h ht' | |
| Β· exact (heq h ht).symm | |
| refine β¨Ξ³,?_,?_β© | |
| Β· change u (β(0:β)ββ+1) 0 = x | |
| exact hu0 _ | |
| Β· intro t | |
| let a : ββ₯0 := βtββ+1 | |
| have ht : t β Ioo (-(a:β)) a := by | |
| simpa only [a,NNReal.coe_add,NNReal.coe_one,coe_nnnorm,Real.norm_eq_abs,mem_Ioo] | |
| using abs_lt.mp (lt_add_one |t|) | |
| have he : Ξ³ =αΆ [π t] u a := Filter.eventually_of_mem | |
| (isOpen_Ioo.mem_nhds ht) (fun s hs => hmatch hs) | |
| have hd := (hud a t (Ioo_subset_Icc_self ht)).hasDerivAt (Icc_mem_nhds ht.1 ht.2) | |
| rw [he.eq_of_nhds] | |
| exact hd.congr_of_eventuallyEq he | |
| end | |
| section | |
| open scoped ContDiff Topology NNReal | |
| open Set Function | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [CompleteSpace E] | |
| theorem stepEndpoint_eq_trajectory {L : ββ₯0} (X : C(E,E)) (hX : LipschitzWith L X) | |
| {h : β} (hh : βhβ*L < 1) {Ξ³ : β β E} (hΞ³ : β t, HasDerivAt Ξ³ (X (Ξ³ t)) t) : | |
| stepEndpoint X hX h (Ξ³ 0) = Ξ³ h := by | |
| have hΞ³c : Continuous Ξ³ := continuous_iff_continuousAt.mpr (fun t => (hΞ³ t).continuousAt) | |
| let u : C(Time,E) := β¨fun s => Ξ³ (h*(s:β)), | |
| hΞ³c.comp (continuous_const.mul continuous_subtype_val)β© | |
| have hu0 : u β¨0,by simpβ© = Ξ³ 0 := by simp [u] | |
| have hud (s : β) (hs : s β Ioo (0:β) 1) : | |
| HasDerivAt (extendPath u) (h β’ X (extendPath u s)) s := by | |
| have he : extendPath u =αΆ [π s] (fun t => Ξ³ (h*t)) := by | |
| filter_upwards [Icc_mem_nhds hs.1 hs.2] with t ht | |
| exact extendPath_coe u β¨t,htβ© | |
| have hd := (hΞ³ (h*s)).scomp s (hasDerivAt_const_mul h) | |
| rw [he.eq_of_nhds] | |
| exact hd.congr_of_eventuallyEq he | |
| have he := fixedStep_eq_solution X hX hh u (Ξ³ 0) hu0 hud | |
| have he' := congrArg (fun v : C(Time,E) => v β¨1,by simpβ©) he | |
| simpa only [stepEndpoint,u,ContinuousMap.coe_mk,mul_one] using he' | |
| def shortFlow {L : ββ₯0} (X : C(E,E)) (hX : LipschitzWith L X) (p : β Γ E) : E := | |
| stepEndpoint X hX p.1 p.2 | |
| theorem shortFlow_zero {L : ββ₯0} (X : C(E,E)) (hX : LipschitzWith L X) (x : E) : | |
| shortFlow X hX (0,x) = x := by | |
| have he := fixedStep_equation X hX (h := 0) (by simp) x | |
| simp only [zero_smul,add_zero] at he | |
| change fixedStep X hX 0 x β¨1,by simpβ© = x | |
| rw [he] | |
| rfl | |
| variable [FiniteDimensional β E] | |
| theorem shortFlow_smoothOn {L : ββ₯0} (X : C(E,E)) (hX : LipschitzWith L X) | |
| (hXs : ContDiff β β X) : | |
| ContDiffOn β β (shortFlow X hX) {p : β Γ E | βp.1β*(L:β) < 1} := by | |
| have hc := (localPath_smooth X hX hXs).comp | |
| (contDiff_snd.prodMk contDiff_fst).contDiffOn (fun p hp => hp) | |
| exact (ContinuousMap.evalCLM (M := E) β (β¨1,by simpβ© : Time)).contDiff.comp_contDiffOn hc | |
| omit [FiniteDimensional β E] in | |
| theorem shortFlow_derivative {L : ββ₯0} (X : C(E,E)) (hX : LipschitzWith L X) | |
| (hXc : HasCompactSupport X) {t : β} (ht : βtβ*(L:β) < 1) (x : E) : | |
| HasDerivAt (fun s => shortFlow X hX (s,x)) (X (shortFlow X hX (t,x))) t := by | |
| obtain β¨B,hBβ© := X.continuous.bounded_above_of_compact_support hXc | |
| have hB0 : 0 β€ B := (norm_nonneg (X x)).trans (hB x) | |
| obtain β¨Ξ³,hΞ³0,hΞ³dβ© := exists_global_bounded_trajectory hX (B := β¨B,hB0β©) hB x | |
| have hopen : IsOpen {s : β | βsβ*(L:β) < 1} := | |
| isOpen_lt (continuous_id.norm.mul continuous_const) continuous_const | |
| have he : (fun s => shortFlow X hX (s,x)) =αΆ [π t] Ξ³ := by | |
| filter_upwards [hopen.mem_nhds ht] with s hs | |
| change stepEndpoint X hX s x = Ξ³ s | |
| rw [βhΞ³0] | |
| exact stepEndpoint_eq_trajectory X hX hs hΞ³d | |
| rw [he.eq_of_nhds] | |
| exact (hΞ³d t).congr_of_eventuallyEq he | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology NNReal | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem exists_smooth_local_manifold_flow | |
| {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| (x : M) : β (Ξ΅ : β) (U : Set E) (Ξ¦ : β Γ E β M), | |
| 0 < Ξ΅ β§ IsOpen U β§ extChartAt π(β,E) x x β U β§ U β (extChartAt π(β,E) x).target β§ | |
| ContMDiffOn π(β,β Γ E) π(β,E) β Ξ¦ (Ioo (-Ξ΅) Ξ΅ ΓΛ’ U) β§ | |
| (β y β U, Ξ¦ (0,y) = (extChartAt π(β,E) x).symm y) β§ | |
| (β y β U, IsMIntegralCurveOn (fun t => Ξ¦ (t,y)) v (Ioo (-Ξ΅) Ξ΅)) := by | |
| let c := extChartAt π(β,E) x x | |
| have hc : c β (extChartAt π(β,E) x).target := mem_extChartAt_target x | |
| have hT := isOpen_extChartAt_target (I := π(β,E)) x | |
| obtain β¨Ο,_,_,_,_,_,hXs,hXc,hEqβ© := exists_smooth_compact_extension | |
| (isCompact_singleton (x := c)) hT (singleton_subset_iff.mpr hc) (chartField_smoothOn hv x) | |
| let X : C(E,E) := β¨fun y => Ο y β’ chartField v x y,hXs.continuousβ© | |
| obtain β¨L,hLβ© := ContDiff.lipschitzWith_of_hasCompactSupport hXc hXs (by simp) | |
| have heq : βαΆ y in π c, X y = chartField v x y := by | |
| simpa only [nhdsSet_singleton,X,ContinuousMap.coe_mk] using hEq | |
| have hnb : {y | X y = chartField v x y β§ y β (extChartAt π(β,E) x).target} β π c := | |
| heq.and (hT.mem_nhds hc) | |
| obtain β¨V,hVsub,hVo,hcVβ© := mem_nhds_iff.mp hnb | |
| let D : Set (β Γ E) := {p | βp.1β*(L:β) < 1} | |
| have hDo : IsOpen D := isOpen_lt (continuous_fst.norm.mul continuous_const) continuous_const | |
| have hcD : ((0,c) : β Γ E) β D := by simp [D] | |
| have hflowc : ContinuousAt (shortFlow X hL) (0,c) := | |
| ((shortFlow_smoothOn X hL hXs).contDiffAt (hDo.mem_nhds hcD)).continuousAt | |
| have hpV : (shortFlow X hL) β»ΒΉ' V β π ((0,c) : β Γ E) := by | |
| apply hflowc.preimage_mem_nhds | |
| rw [shortFlow_zero] | |
| exact hVo.mem_nhds hcV | |
| obtain β¨Ξ΄,hΞ΄,hballβ© := Metric.mem_nhds_iff.mp (Filter.inter_mem (hDo.mem_nhds hcD) hpV) | |
| let U : Set E := Metric.ball c Ξ΄ | |
| have hroom {t : β} (ht : t β Ioo (-Ξ΄) Ξ΄) {y : E} (hy : y β U) : | |
| (t,y) β D β§ shortFlow X hL (t,y) β V := by | |
| apply hball | |
| rw [Metric.mem_ball,Prod.dist_eq,max_lt_iff] | |
| exact β¨by simpa only [dist_zero_right,Real.norm_eq_abs] using (abs_lt.mpr ht),hyβ© | |
| have hUtarget : U β (extChartAt π(β,E) x).target := by | |
| intro y hy | |
| have hm := (hroom (t := 0) β¨by linarith,hΞ΄β© hy).2 | |
| rw [shortFlow_zero] at hm | |
| exact (hVsub hm).2 | |
| let Ξ¦ : β Γ E β M := (extChartAt π(β,E) x).symm β shortFlow X hL | |
| refine β¨Ξ΄,U,Ξ¦,hΞ΄,Metric.isOpen_ball,Metric.mem_ball_self hΞ΄,hUtarget,?_,?_,?_β© | |
| Β· apply (contMDiffOn_extChartAt_symm (I := π(β,E)) x).comp | |
| ((shortFlow_smoothOn X hL hXs).mono (fun p hp => (hroom hp.1 hp.2).1)).contMDiffOn | |
| intro p hp | |
| exact (hVsub (hroom hp.1 hp.2).2).2 | |
| Β· intro y _ | |
| change (extChartAt π(β,E) x).symm (shortFlow X hL (0,y)) = _ | |
| rw [shortFlow_zero] | |
| Β· intro y hy t ht | |
| have hm := hroom ht hy | |
| have hd := shortFlow_derivative X hL hXc hm.1 y | |
| rw [(hVsub hm.2).1] at hd | |
| exact (chartCurve_hasMFDerivAt x (hVsub hm.2).2 hd).hasMFDerivWithinAt | |
| theorem exists_smooth_local_manifold_family | |
| {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| (x : M) : β (Ξ΅ : β) (W : Set M) (Ξ¨ : β Γ M β M), | |
| 0 < Ξ΅ β§ IsOpen W β§ x β W β§ | |
| ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β Ξ¨ (Ioo (-Ξ΅) Ξ΅ ΓΛ’ W) β§ | |
| (β y β W, Ξ¨ (0,y) = y) β§ | |
| (β y β W, IsMIntegralCurveOn (fun t => Ξ¨ (t,y)) v (Ioo (-Ξ΅) Ξ΅)) := by | |
| obtain β¨Ξ΅,U,Ξ¦,hΞ΅,hU,hxU,_,hΞ¦,hΞ¦0,hΞ¦dβ© := exists_smooth_local_manifold_flow hv x | |
| let e := extChartAt π(β,E) x | |
| let W : Set M := e.source β© e β»ΒΉ' U | |
| have hW : IsOpen W := (continuousOn_extChartAt x).isOpen_inter_preimage | |
| (isOpen_extChartAt_source x) hU | |
| have hxW : x β W := β¨mem_extChartAt_source x,hxUβ© | |
| let Ξ¨ : β Γ M β M := fun p => Ξ¦ (p.1,e p.2) | |
| refine β¨Ξ΅,W,Ξ¨,hΞ΅,hW,hxW,?_,?_,?_β© | |
| Β· have hc : ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β | |
| (fun p : β Γ M => e p.2) (Ioo (-Ξ΅) Ξ΅ ΓΛ’ W) := | |
| (contMDiffOn_extChartAt (I := π(β,E)) (x := x)).comp contMDiff_snd.contMDiffOn | |
| (fun p hp => by | |
| change p.2 β (chartAt E x).source | |
| simpa only [e,extChartAt_source] using hp.2.1) | |
| exact hΞ¦.comp (contMDiff_fst.contMDiffOn.prodMk_space hc) (fun _ hp => β¨hp.1,hp.2.2β©) | |
| Β· intro y hy | |
| exact (hΦ0 (e y) hy.2).trans (e.left_inv hy.1) | |
| Β· intro y hy | |
| exact hΦd (e y) hy.2 | |
| end | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| {M : Type*} [TopologicalSpace M] [T2Space M] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem exists_uniform_smooth_manifold_families | |
| {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| {K : Set M} (hK : IsCompact K) (hvK : β x, x β K β v x = 0) : | |
| β Ξ΅ : β, 0 < Ξ΅ β§ β x : M, β (W : Set M) (Ξ¨ : β Γ M β M), | |
| IsOpen W β§ x β W β§ | |
| ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β Ξ¨ (Ioo (-Ξ΅) Ξ΅ ΓΛ’ W) β§ | |
| (β y β W, Ξ¨ (0,y) = y) β§ | |
| (β y β W, IsMIntegralCurveOn (fun t => Ξ¨ (t,y)) v (Ioo (-Ξ΅) Ξ΅)) := by | |
| classical | |
| choose Ρ W Ψ hΡ hW hxW hΨs hΨ0 hΨd using exists_smooth_local_manifold_family hv | |
| obtain β¨s,hsβ© := hK.elim_finite_subcover W hW (fun x _ => mem_iUnion.mpr β¨x,hxW xβ©) | |
| have hsmall : β Ξ΄ : β, 0 < Ξ΄ β§ β x β s, Ξ΄ β€ Ξ΅ x := by | |
| clear hs | |
| induction s using Finset.induction_on with | |
| | empty => exact β¨1,by norm_num,by simpβ© | |
| | a s ha ih => | |
| obtain β¨Ξ΄,hΞ΄,hΞ΄sβ© := ih | |
| refine β¨min (Ξ΅ a) Ξ΄,lt_min (hΞ΅ a) hΞ΄,?_β© | |
| intro x hx | |
| rcases Finset.mem_insert.mp hx with rfl | hx | |
| Β· exact min_le_left _ _ | |
| Β· exact (min_le_right _ _).trans (hΞ΄s x hx) | |
| obtain β¨Ξ΄,hΞ΄,hΞ΄sβ© := hsmall | |
| refine β¨Ξ΄,hΞ΄,fun x => ?_β© | |
| by_cases hx : x β K | |
| Β· obtain β¨a,ha,hxaβ© := mem_iUnionβ.mp (hs hx) | |
| have hI : Ioo (-Ξ΄) Ξ΄ β Ioo (-Ξ΅ a) (Ξ΅ a) := | |
| Ioo_subset_Ioo (neg_le_neg (hΞ΄s a ha)) (hΞ΄s a ha) | |
| exact β¨W a,Ξ¨ a,hW a,hxa,(hΞ¨s a).mono (prod_mono hI Subset.rfl), | |
| hΨ0 a,fun y hy => (hΨd a y hy).mono hI⩠| |
| Β· exact β¨KαΆ,Prod.snd,hK.isClosed.isOpen_compl,hx,contMDiff_snd.contMDiffOn, | |
| fun _ _ => rfl,fun y hy => (isMIntegralCurve_const (hvK y hy)).isMIntegralCurveOn _β© | |
| theorem exists_global_compact_manifold_trajectory | |
| {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| {K : Set M} (hK : IsCompact K) (hvK : β x, x β K β v x = 0) (x : M) : | |
| β Ξ³ : β β M, Ξ³ 0 = x β§ IsMIntegralCurve Ξ³ v := by | |
| obtain β¨Ξ΅,hΞ΅,hβ© := exists_uniform_smooth_manifold_families hv hK hvK | |
| apply exists_isMIntegralCurve_of_isMIntegralCurveOn (hv.of_le (by simp)) hΞ΅ _ x | |
| intro y | |
| obtain β¨W,Ξ¨,_,hy,_,hΞ¨0,hΞ¨dβ© := h y | |
| exact β¨fun t => Ξ¨ (t,y),hΞ¨0 y hy,hΞ¨d y hyβ© | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |