Download data/lean/OAI/Geometry/BallPacking/Flows/FlowSmoothExtension.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 23.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Flows/FlowSmoothExtension.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/BallPacking/Flows/FlowSmoothExtension.lean
-
curl -L -o FlowSmoothExtension.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/BallPacking/Flows/FlowSmoothExtension.lean
23.8 kB
| import Mathlib | |
| import OAI.Geometry.BallPacking.Flows.ManifoldFormTransport | |
| 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] | |
| theorem flow_smooth_of_uniform_local | |
| (F : β Γ M β M) (hzero : β x, F (0,x) = x) | |
| (hadd : β s t x, F (s+t,x) = F (s,F (t,x))) | |
| {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) | |
| (hs : ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β F (Ioo (-Ξ΅) Ξ΅ ΓΛ’ univ)) : | |
| ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β F := by | |
| have hshort (t : β) (ht : t β Ioo (-Ξ΅) Ξ΅) (x : M) : | |
| ContMDiffAt ((π(β,β)).prod π(β,E)) π(β,E) β F (t,x) := | |
| hs.contMDiffAt ((isOpen_Ioo.prod isOpen_univ).mem_nhds β¨ht,mem_univ xβ©) | |
| have hmultiple (n : β) (t : β) (ht : t β Ioo (-Ξ΅) Ξ΅) (x : M) : | |
| ContMDiffAt ((π(β,β)).prod π(β,E)) π(β,E) β | |
| (fun p : β Γ M => F ((n:β)*p.1,p.2)) (t,x) := by | |
| induction n with | |
| | zero => simpa only [Nat.cast_zero,zero_mul,hzero] using | |
| (contMDiffAt_snd : ContMDiffAt ((π(β,β)).prod π(β,E)) π(β,E) β Prod.snd (t,x)) | |
| | succ n ih => | |
| have h := (hshort t ht (F ((n:β)*t,x))).comp (t,x) (contMDiffAt_fst.prodMk ih) | |
| have he : (fun p : β Γ M => F (((n+1:β):β)*p.1,p.2)) = | |
| (fun p : β Γ M => F (p.1,F ((n:β)*p.1,p.2))) := by | |
| funext p | |
| rw [Nat.cast_add,Nat.cast_one,add_mul,one_mul,add_comm,hadd] | |
| rw [he] | |
| exact h | |
| intro p | |
| obtain β¨n,hnβ© := exists_nat_gt (max (|p.1|/Ξ΅) 1) | |
| have hn0 : (0:β) < n := lt_trans (by norm_num) ((le_max_right _ _).trans_lt hn) | |
| have hnne : (n:β) β 0 := ne_of_gt hn0 | |
| have ht : p.1/(n:β) β Ioo (-Ξ΅) Ξ΅ := by | |
| apply abs_lt.mp | |
| rw [abs_div,abs_of_pos hn0,div_lt_iffβ hn0] | |
| have hb := (div_lt_iffβ hΞ΅).mp ((le_max_left _ _).trans_lt hn) | |
| simpa only [mul_comm] using hb | |
| have hc : ContMDiff ((π(β,β)).prod π(β,E)) ((π(β,β)).prod π(β,E)) β | |
| (fun q : β Γ M => (q.1/(n:β),q.2)) := | |
| ((contDiff_id.div_const (n:β)).contMDiff.comp contMDiff_fst).prodMk contMDiff_snd | |
| have h := (hmultiple n (p.1/n) ht p.2).comp p hc.contMDiffAt | |
| have hcancel (r : β) : (n:β)*(r/(n:β)) = r := by field_simp | |
| simpa only [Function.comp_def,hcancel] using h | |
| 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] [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem exists_smooth_global_manifold_flow | |
| {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) : | |
| β F : β Γ M β M, | |
| ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β F β§ | |
| (β x, F (0,x) = x) β§ | |
| (β s t x, F (s+t,x) = F (s,F (t,x))) β§ | |
| (β x, IsMIntegralCurve (fun t => F (t,x)) v) β§ | |
| (β x, v x = 0 β β t, F (t,x) = x) := by | |
| classical | |
| choose Ξ³ hΞ³0 hΞ³d using exists_global_compact_manifold_trajectory hv hK hvK | |
| let F : β Γ M β M := fun p => Ξ³ p.2 p.1 | |
| have hF0 (x : M) : F (0,x) = x := hΞ³0 x | |
| have hFd (x : M) : IsMIntegralCurve (fun t => F (t,x)) v := hΞ³d x | |
| have hv1 : ContMDiff π(β,E) (π(β,E)).tangent 1 | |
| (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M)) := hv.of_le (by simp) | |
| have hFa (s t : β) (x : M) : F (s+t,x) = F (s,F (t,x)) := by | |
| have he := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless (tβ := 0) hv1 | |
| ((hFd x).comp_add t) (hFd (F (t,x))) (by simp only [Function.comp_apply,zero_add,hF0]) | |
| exact congrFun he s | |
| obtain β¨Ξ΅,hΞ΅,hfamiliesβ© := exists_uniform_smooth_manifold_families hv hK hvK | |
| have hFs : ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β F (Ioo (-Ξ΅) Ξ΅ ΓΛ’ univ) := by | |
| intro p hp | |
| obtain β¨W,Ξ¨,hW,hpW,hΞ¨s,hΞ¨0,hΞ¨dβ© := hfamilies p.2 | |
| have heq : EqOn F Ξ¨ (Ioo (-Ξ΅) Ξ΅ ΓΛ’ W) := by | |
| intro q hq | |
| exact isMIntegralCurveOn_Ioo_eqOn_of_contMDiff_boundaryless | |
| (tβ := 0) β¨neg_lt_zero.mpr hΞ΅,hΞ΅β© hv1 ((hFd q.2).isMIntegralCurveOn _) | |
| (hΨd q.2 hq.2) ((hF0 q.2).trans (hΨ0 q.2 hq.2).symm) hq.1 | |
| have hnb : Ioo (-Ξ΅) Ξ΅ ΓΛ’ W β π p := (isOpen_Ioo.prod hW).mem_nhds β¨hp.1,hpWβ© | |
| exact ((hΨs.contMDiffAt hnb).congr_of_eventuallyEq | |
| (Filter.mem_of_superset hnb heq)).contMDiffWithinAt | |
| refine β¨F,flow_smooth_of_uniform_local F hF0 hFa hΞ΅ hFs,hF0,hFa,hFd,?_β© | |
| intro x hx t | |
| have he := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless (tβ := 0) hv1 | |
| (hFd x) (isMIntegralCurve_const hx) (hF0 x) | |
| exact congrFun he t | |
| omit [FiniteDimensional β E] in | |
| theorem exists_smooth_global_manifold_flow_of_uniform_families | |
| {v : (x : M) β TangentSpace π(β,E) x} | |
| (hv : ContMDiff π(β,E) (π(β,E)).tangent β (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M))) | |
| {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) | |
| (hfamilies : β 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 (-Ξ΅) Ξ΅))) : | |
| β F : β Γ M β M, | |
| ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β F β§ | |
| (β x, F (0,x) = x) β§ | |
| (β s t x, F (s+t,x) = F (s,F (t,x))) β§ | |
| (β x, IsMIntegralCurve (fun t => F (t,x)) v) β§ | |
| (β x, v x = 0 β β t, F (t,x) = x) := by | |
| classical | |
| have hex (x : M) : β Ξ³ : β β M, Ξ³ 0=x β§ IsMIntegralCurve Ξ³ v := by | |
| apply exists_isMIntegralCurve_of_isMIntegralCurveOn (hv.of_le (by simp)) hΞ΅ _ x | |
| intro y | |
| obtain β¨W,Ξ¨,_,hy,_,hΞ¨0,hΞ¨dβ© := hfamilies y | |
| exact β¨fun t => Ξ¨ (t,y),hΞ¨0 y hy,hΞ¨d y hyβ© | |
| choose Ξ³ hΞ³0 hΞ³d using hex | |
| let F : β Γ M β M := fun p => Ξ³ p.2 p.1 | |
| have hF0 (x : M) : F (0,x) = x := hΞ³0 x | |
| have hFd (x : M) : IsMIntegralCurve (fun t => F (t,x)) v := hΞ³d x | |
| have hv1 : ContMDiff π(β,E) (π(β,E)).tangent 1 | |
| (fun x => (β¨x,v xβ© : TangentBundle π(β,E) M)) := hv.of_le (by simp) | |
| have hFa (s t : β) (x : M) : F (s+t,x) = F (s,F (t,x)) := by | |
| have he := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless (tβ := 0) hv1 | |
| ((hFd x).comp_add t) (hFd (F (t,x))) (by simp only [Function.comp_apply,zero_add,hF0]) | |
| exact congrFun he s | |
| have hFs : ContMDiffOn ((π(β,β)).prod π(β,E)) π(β,E) β F (Ioo (-Ξ΅) Ξ΅ ΓΛ’ univ) := by | |
| intro p hp | |
| obtain β¨W,Ξ¨,hW,hpW,hΞ¨s,hΞ¨0,hΞ¨dβ© := hfamilies p.2 | |
| have heq : EqOn F Ξ¨ (Ioo (-Ξ΅) Ξ΅ ΓΛ’ W) := by | |
| intro q hq | |
| exact isMIntegralCurveOn_Ioo_eqOn_of_contMDiff_boundaryless | |
| (tβ := 0) β¨neg_lt_zero.mpr hΞ΅,hΞ΅β© hv1 ((hFd q.2).isMIntegralCurveOn _) | |
| (hΨd q.2 hq.2) ((hF0 q.2).trans (hΨ0 q.2 hq.2).symm) hq.1 | |
| have hnb : Ioo (-Ξ΅) Ξ΅ ΓΛ’ W β π p := (isOpen_Ioo.prod hW).mem_nhds β¨hp.1,hpWβ© | |
| exact ((hΨs.contMDiffAt hnb).congr_of_eventuallyEq | |
| (Filter.mem_of_superset hnb heq)).contMDiffWithinAt | |
| refine β¨F,flow_smooth_of_uniform_local F hF0 hFa hΞ΅ hFs,hF0,hFa,hFd,?_β© | |
| intro x hx t | |
| have he := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless (tβ := 0) hv1 | |
| (hFd x) (isMIntegralCurve_const hx) (hF0 x) | |
| exact congrFun he t | |
| theorem exists_uniform_smooth_manifold_families_of_background | |
| {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) (B : β Γ M β M) | |
| (hB : ContMDiff ((π(β,β)).prod π(β,E)) π(β,E) β B) | |
| (hB0 : β x, B (0,x)=x) | |
| (hBd : β x, x β K β IsMIntegralCurve (fun t => B (t,x)) v) : | |
| β Ξ΅ : β, 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β© | |
| | @insert 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αΆ,B,hK.isClosed.isOpen_compl,hx,hB.contMDiffOn, | |
| fun y _ => hB0 y,fun y hy => (hBd y hy).isMIntegralCurveOn _β© | |
| end | |
| section | |
| open scoped ContDiff Manifold Topology | |
| open Set Function Manifold | |
| theorem exists_smooth_scalar_clock_flow {Ο : β β β} (hΟ : ContDiff β β Ο) | |
| (hΟc : HasCompactSupport Ο) : | |
| β C : β Γ β β β, ContDiff β β C β§ (β a, C (0,a)=a) β§ | |
| (β a t, HasDerivAt (fun s => C (s,a)) (Ο (C (t,a))) t) β§ | |
| (β a, Ο a=0 β β t, C (t,a)=a) := by | |
| have hv : ContMDiff π(β,β) (π(β,β)).tangent β | |
| (fun a => (β¨a,Ο aβ© : TangentBundle π(β,β) β)) := | |
| contMDiff_vectorSpace_iff_contDiff.mpr hΟ | |
| obtain β¨C,hC,hC0,_,hCd,hCfixβ© := exists_smooth_global_manifold_flow hv hΟc | |
| (fun _ hx => image_eq_zero_of_notMem_tsupport hx) | |
| refine β¨C,?_,hC0,?_,hCfixβ© | |
| Β· rw [β modelWithCornersSelf_prod,chartedSpaceSelf_prod] at hC | |
| exact contMDiff_iff_contDiff.mp hC | |
| Β· intro a t | |
| have hd := hasMFDerivAt_iff_hasFDerivAt.mp (hCd a t) | |
| rw [hasDerivAt_iff_hasFDerivAt] | |
| exact hd | |
| 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 timeLiftField (Ο : β β β) (V : (p : β Γ M) β TangentSpace π(β,E) p.2) | |
| (p : β Γ M) : TangentSpace ((π(β,β)).prod π(β,E)) p := | |
| Ο p.1 β’ ((1:β),V p) | |
| theorem timeLiftField_smooth {Ο : β β β} (hΟ : ContDiff β β Ο) | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) : | |
| ContMDiff ((π(β,β)).prod π(β,E)) (((π(β,β)).prod π(β,E)).tangent) β | |
| (fun p => (β¨p,timeLiftField Ο V pβ© : TangentBundle ((π(β,β)).prod π(β,E)) (β Γ M))) := by | |
| have hc : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,β)).tangent β | |
| (fun p : β Γ M => (β¨p.1,(1:β)β© : TangentBundle π(β,β) β)) := by | |
| have hp : ContMDiff π(β,β) (π(β,β)).tangent β | |
| (fun r : β => (β¨r,(1:β)β© : TangentBundle π(β,β) β)) := | |
| contMDiff_vectorSpace_iff_contDiff.mpr contDiff_const | |
| exact hp.comp contMDiff_fst | |
| have hu : ContMDiff ((π(β,β)).prod π(β,E)) (((π(β,β)).prod π(β,E)).tangent) β | |
| (fun p : β Γ M => (β¨p,((1:β),V p)β© : TangentBundle ((π(β,β)).prod π(β,E)) (β Γ M))) := | |
| contMDiff_equivTangentBundleProd_symm.comp (hc.prodMk hV) | |
| exact (hΟ.contMDiff.comp contMDiff_fst).smul_section hu | |
| omit [IsManifold π(β,E) β M] in | |
| theorem timeLiftField_clock_derivative {Ο : β β β} | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} {Ξ³ : β β β Γ M} {t : β} | |
| (hd : HasMFDerivAt π(β,β) ((π(β,β)).prod π(β,E)) Ξ³ t | |
| ((1 : β βL[β] β).smulRight (timeLiftField Ο V (Ξ³ t)))) : | |
| HasDerivAt (fun s => (Ξ³ s).1) (Ο (Ξ³ t).1) t := by | |
| rw [hasDerivAt_iff_hasFDerivAt] | |
| apply hasMFDerivAt_iff_hasFDerivAt.mp | |
| apply ((hasMFDerivAt_fst (Ξ³ t)).comp t hd).congr_mfderiv | |
| apply ContinuousLinearMap.ext | |
| intro a | |
| change β at a | |
| change a * (Ο (Ξ³ t).1 * 1) = a * Ο (Ξ³ t).1 | |
| rw [mul_one] | |
| omit [IsManifold π(β,E) β M] in | |
| theorem timeLiftField_spatial_derivative {Ο : β β β} | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} {Ξ³ : β β β Γ M} {t : β} | |
| (hd : HasMFDerivAt π(β,β) ((π(β,β)).prod π(β,E)) Ξ³ t | |
| ((1 : β βL[β] β).smulRight (timeLiftField Ο V (Ξ³ t)))) : | |
| HasMFDerivAt π(β,β) π(β,E) (fun s => (Ξ³ s).2) t | |
| ((1 : β βL[β] β).smulRight (Ο (Ξ³ t).1 β’ V (Ξ³ t))) := by | |
| apply ((hasMFDerivAt_snd (Ξ³ t)).comp t hd).congr_mfderiv | |
| apply ContinuousLinearMap.ext | |
| intro a | |
| rfl | |
| 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 timeLift_constant_spatial_curve {Ο : β β β} | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| {x : M} (hx : β s, V (s,x) = 0) {Ξ³ : β β β} | |
| (hΞ³ : β t, HasDerivAt Ξ³ (Ο (Ξ³ t)) t) : | |
| IsMIntegralCurve (fun t => (Ξ³ t,x)) (timeLiftField Ο V) := by | |
| intro t | |
| have hc : HasMFDerivAt π(β,β) π(β,E) (fun _ : β => x) t 0 := | |
| hasMFDerivAt_const (x := t) x | |
| have hr : HasMFDerivAt π(β,β) π(β,β) Ξ³ t | |
| ((1 : β βL[β] β).smulRight (Ο (Ξ³ t))) := (hΞ³ t).hasFDerivAt.hasMFDerivAt | |
| have hd := hr.prodMk hc | |
| apply hd.congr_mfderiv | |
| apply ContinuousLinearMap.ext | |
| intro a | |
| change β at a | |
| change (a * Ο (Ξ³ t),0) = (a * (Ο (Ξ³ t) * 1),a β’ (Ο (Ξ³ t) β’ V (Ξ³ t,x))) | |
| rw [hx,mul_one,smul_zero,smul_zero] | |
| variable [T2Space M] [IsManifold π(β,E) β M] | |
| theorem timeLift_spatial_stationary {Ο : β β β} (hΟ : ContDiff β β Ο) | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) | |
| {a : β} {x : M} (hx : β s, V (s,x) = 0) | |
| {Ξ³ : β β β Γ M} (hΞ³ : IsMIntegralCurve Ξ³ (timeLiftField Ο V)) | |
| (h0 : Ξ³ 0 = (a,x)) (t : β) : (Ξ³ t).2 = x := by | |
| have hd := timeLift_constant_spatial_curve hx (fun s => timeLiftField_clock_derivative (hΞ³ s)) | |
| have he := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless (tβ := 0) | |
| ((timeLiftField_smooth hΟ hV).of_le (by simp)) hΞ³ hd (by rw [h0]) | |
| exact congrArg Prod.snd (congrFun he t) | |
| end | |
| section | |
| open scoped Topology NNReal | |
| open Set Function | |
| theorem scalar_clock_eq {Ο : β β β} {L : ββ₯0} (hL : LipschitzWith L Ο) | |
| (hΟ : β s β Icc (-3:β) 3, Ο s = 1) | |
| {Ξ³ : β β β} (hd : β t, HasDerivAt Ξ³ (Ο (Ξ³ t)) t) | |
| {a : β} (ha : a β Icc (0:β) 1) (h0 : Ξ³ 0 = a) : | |
| EqOn Ξ³ (fun t => a+t) (Ioo (-2:β) 2) := by | |
| apply ODE_solution_unique_of_mem_Ioo | |
| (s := fun _ => univ) (fun _ _ => hL.lipschitzOnWith) | |
| (tβ := 0) (by constructor <;> norm_num) | |
| (fun t _ => β¨hd t,mem_univ _β©) | |
| Β· intro t ht | |
| have hm : a+t β Icc (-3:β) 3 := by constructor <;> linarith [ha.1,ha.2,ht.1,ht.2] | |
| rw [hΟ _ hm] | |
| exact β¨by simpa only [Function.id_def] using (hasDerivAt_id t).const_add a,mem_univ _β© | |
| Β· simpa only [add_zero] using h0 | |
| 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] [T2Space M] | |
| [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem exists_spatially_compact_time_lift | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) | |
| {K : Set M} (hK : IsCompact K) (hVK : β s x, x β K β V (s,x)=0) : | |
| β (Ο : β β β) (G : β Γ (β Γ M) β β Γ M), | |
| ContDiff β β Ο β§ (β s β Icc (-3:β) 3, Ο s = 1) β§ | |
| ContMDiff ((π(β,β)).prod ((π(β,β)).prod π(β,E))) | |
| ((π(β,β)).prod π(β,E)) β G β§ | |
| (β p, G (0,p) = p) β§ | |
| (β s t p, G (s+t,p) = G (s,G (t,p))) β§ | |
| (β p, IsMIntegralCurve (fun t => G (t,p)) (timeLiftField Ο V)) β§ | |
| (β a β Icc (0:β) 1, β x t, t β Ioo (-2:β) 2 β (G (t,(a,x))).1 = a+t) := by | |
| obtain β¨Ο,hΟ,hΟc,_,hΟone,_β© := exists_smooth_cutoff (isCompact_Icc (a := (-3:β)) (b := 3)) | |
| isOpen_univ (subset_univ _) | |
| have hΟ1 : β s β Icc (-3:β) 3, Ο s = 1 := hΟone.self_of_nhdsSet | |
| obtain β¨L,hLβ© := ContDiff.lipschitzWith_of_hasCompactSupport hΟc hΟ (by simp) | |
| have hprod : IsManifold ((π(β,β)).prod π(β,E)) β (β Γ M) := inferInstance | |
| let instProd : ChartedSpace (β Γ E) (β Γ M) := prodChartedSpace β β E M | |
| have : IsManifold π(β,β Γ E) β (β Γ M) := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using hprod | |
| have hv : ContMDiff π(β,β Γ E) (π(β,β Γ E)).tangent β | |
| (fun p => (β¨p,timeLiftField Ο V pβ© : TangentBundle π(β,β Γ E) (β Γ M))) := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using! timeLiftField_smooth hΟ hV | |
| obtain β¨C,hC,hC0,hCd,hCfixβ© := exists_smooth_scalar_clock_flow hΟ hΟc | |
| let B : β Γ (β Γ M) β β Γ M := fun p => (C (p.1,p.2.1),p.2.2) | |
| have hCm : ContMDiff ((π(β,β)).prod π(β,β)) π(β,β) β C := by | |
| rw [β modelWithCornersSelf_prod,chartedSpaceSelf_prod] | |
| exact hC.contMDiff | |
| have hBm : ContMDiff ((π(β,β)).prod ((π(β,β)).prod π(β,E))) | |
| ((π(β,β)).prod π(β,E)) β B := | |
| (hCm.comp (contMDiff_fst.prodMk (contMDiff_fst.comp contMDiff_snd))).prodMk | |
| (contMDiff_snd.comp contMDiff_snd) | |
| have hB0 (p : β Γ M) : B (0,p)=p := by dsimp [B]; rw [hC0] | |
| have hBd (p : β Γ M) (hp : p β tsupport Ο ΓΛ’ K) : | |
| IsMIntegralCurve (fun t => B (t,p)) (timeLiftField Ο V) := by | |
| by_cases hx : p.2 β K | |
| Β· have ha : p.1 β tsupport Ο := fun ht => hp β¨ht,hxβ© | |
| have hz : Ο p.1=0 := image_eq_zero_of_notMem_tsupport ha | |
| have he : (fun t => B (t,p))=(fun _ => p) := by | |
| funext t | |
| dsimp [B] | |
| rw [hCfix p.1 hz t] | |
| rw [he] | |
| apply isMIntegralCurve_const | |
| rw [timeLiftField,hz,zero_smul] | |
| rfl | |
| Β· exact timeLift_constant_spatial_curve (fun s => hVK s p.2 hx) (hCd p.1) | |
| have hBs : ContMDiff ((π(β,β)).prod π(β,β Γ E)) π(β,β Γ E) β B := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using hBm | |
| have hBd' (p : β Γ M) (hp : p β tsupport Ο ΓΛ’ K) : | |
| IsMIntegralCurve (I := π(β,β Γ E)) (fun t => B (t,p)) (timeLiftField Ο V) := by | |
| intro t | |
| have hderiv := hBd p hp t | |
| simp only [HasMFDerivAt,modelWithCornersSelf_prod] at hderiv β’ | |
| refine β¨hderiv.1,?_β© | |
| convert hderiv.2 using 1 | |
| rfl | |
| obtain β¨Ξ΅,hΞ΅,hfamiliesβ© := exists_uniform_smooth_manifold_families_of_background | |
| hv (hΟc.prod hK) B hBs hB0 hBd' | |
| obtain β¨G,hGs,hG0,hGa,hGd,_β© := exists_smooth_global_manifold_flow_of_uniform_families | |
| hv hΞ΅ hfamilies | |
| have hGs' : ContMDiff ((π(β,β)).prod ((π(β,β)).prod π(β,E))) | |
| ((π(β,β)).prod π(β,E)) β G := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using hGs | |
| have hGd' : β p, IsMIntegralCurve (fun t => G (t,p)) (timeLiftField Ο V) := by | |
| intro p t | |
| have hderiv := hGd p t | |
| simp only [HasMFDerivAt,modelWithCornersSelf_prod] at hderiv β’ | |
| refine β¨hderiv.1,?_β© | |
| convert hderiv.2 using 1 | |
| rfl | |
| refine β¨Ο,G,hΟ,hΟ1,hGs',hG0,hGa,hGd',?_β© | |
| intro a ha x t ht | |
| exact scalar_clock_eq hL hΟ1 (fun s => timeLiftField_clock_derivative (hGd' (a,x) s)) ha | |
| (congrArg Prod.fst (hG0 (a,x))) ht | |
| end | |
| open scoped ContDiff Manifold Topology NNReal | |
| open Set Function Manifold | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] | |
| [ChartedSpace E M] [IsManifold π(β,E) β M] | |
| theorem exists_compact_time_lift | |
| {V : (p : β Γ M) β TangentSpace π(β,E) p.2} | |
| (hV : ContMDiff ((π(β,β)).prod π(β,E)) (π(β,E)).tangent β | |
| (fun p => (β¨p.2,V pβ© : TangentBundle π(β,E) M))) : | |
| β (Ο : β β β) (G : β Γ (β Γ M) β β Γ M), | |
| ContDiff β β Ο β§ (β s β Icc (-3:β) 3, Ο s = 1) β§ | |
| ContMDiff ((π(β,β)).prod ((π(β,β)).prod π(β,E))) | |
| ((π(β,β)).prod π(β,E)) β G β§ | |
| (β p, G (0,p) = p) β§ | |
| (β s t p, G (s+t,p) = G (s,G (t,p))) β§ | |
| (β p, IsMIntegralCurve (fun t => G (t,p)) (timeLiftField Ο V)) β§ | |
| (β a β Icc (0:β) 1, β x t, t β Ioo (-2:β) 2 β (G (t,(a,x))).1 = a+t) := by | |
| obtain β¨Ο,hΟ,hΟc,_,hΟone,_β© := exists_smooth_cutoff (isCompact_Icc (a := (-3:β)) (b := 3)) | |
| isOpen_univ (subset_univ _) | |
| have hΟ1 : β s β Icc (-3:β) 3, Ο s = 1 := hΟone.self_of_nhdsSet | |
| obtain β¨L,hLβ© := ContDiff.lipschitzWith_of_hasCompactSupport hΟc hΟ (by simp) | |
| have hprod : IsManifold ((π(β,β)).prod π(β,E)) β (β Γ M) := inferInstance | |
| let instProd : ChartedSpace (β Γ E) (β Γ M) := prodChartedSpace β β E M | |
| have : IsManifold π(β,β Γ E) β (β Γ M) := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using hprod | |
| have hv : ContMDiff π(β,β Γ E) (π(β,β Γ E)).tangent β | |
| (fun p => (β¨p,timeLiftField Ο V pβ© : TangentBundle π(β,β Γ E) (β Γ M))) := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using! timeLiftField_smooth hΟ hV | |
| have hvK (p : β Γ M) (hp : p β tsupport Ο ΓΛ’ (univ : Set M)) : timeLiftField Ο V p = 0 := by | |
| have hp' : p.1 β tsupport Ο := fun h => hp β¨h,mem_univ _β© | |
| rw [timeLiftField,image_eq_zero_of_notMem_tsupport hp',zero_smul] | |
| rfl | |
| obtain β¨G,hGs,hG0,hGa,hGd,_β© := exists_smooth_global_manifold_flow hv | |
| (hΟc.prod (isCompact_univ : IsCompact (univ : Set M))) hvK | |
| have hGs' : ContMDiff ((π(β,β)).prod ((π(β,β)).prod π(β,E))) | |
| ((π(β,β)).prod π(β,E)) β G := by | |
| simpa only [modelWithCornersSelf_prod,instProd] using hGs | |
| have hGd' : β p, IsMIntegralCurve (fun t => G (t,p)) (timeLiftField Ο V) := by | |
| intro p t | |
| have hderiv := hGd p t | |
| simp only [HasMFDerivAt,modelWithCornersSelf_prod] at hderiv β’ | |
| refine β¨hderiv.1,?_β© | |
| convert hderiv.2 using 1 | |
| rfl | |
| refine β¨Ο,G,hΟ,hΟ1,hGs',hG0,hGa,hGd',?_β© | |
| intro a ha x t ht | |
| exact scalar_clock_eq hL hΟ1 (fun s => timeLiftField_clock_derivative (hGd' (a,x) s)) ha | |
| (congrArg Prod.fst (hG0 (a,x))) ht | |
| end PackingSufficiencySupport.Hamiltonian | |
| end | |
| end OAI | |