Download data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowJointSmooth.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.49 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowJointSmooth.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowJointSmooth.lean
-
curl -L -o FlowJointSmooth.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowJointSmooth.lean
4.49 kB
| import OAI.Geometry.IsometricImmersion.Flows.FlowVariation | |
| import OAI.Geometry.IsometricImmersion.Calculus.FinitePrimitive | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory Function | |
| open scoped ContDiff Topology Interval | |
| namespace SmoothLocal.Flow | |
| open SmoothLocal.Geometry SmoothLocal.ODE SmoothLocal.Weighted | |
| def flowCoordinateMap (Y : β β β β β) (p : β Γ β) : Coord := | |
| coordinatePoint p.1 (Y p.2 p.1) | |
| variable {q : Coord β β} {U : Set Coord} {Y : β β β β β} | |
| theorem cap_flow_joint_contDiffOn | |
| (hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U) | |
| (hY : ContinuousOn (uncurry Y) (Icc (-2 : β) 2 ΓΛ’ Icc (-2 : β) 2)) | |
| (hrange : β s β Icc (-2 : β) 2, β t β Icc (-2 : β) 2, | |
| Y s t β Icc (-3 : β) 3) | |
| (hstart : β s β Icc (-2 : β) 2, Y s 0 = s) | |
| (hode : β s β Icc (-2 : β) 2, β t β Icc (-2 : β) 2, | |
| HasDerivWithinAt (Y s) (-q (coordinatePoint t (Y s t))) (Icc (-2 : β) 2) t) : | |
| ContDiffOn β β (fun p : β Γ β => Y p.2 p.1) (pairRectangle 2 (-2) 2) := by | |
| let D := pairRectangle 2 (-2) 2 | |
| let F (p : β Γ β) := Y p.2 p.1 | |
| let B (p : β Γ β) := coordPartial 1 q (flowCoordinateMap Y p) | |
| have hmem : MapsTo (flowCoordinateMap Y) D U := by | |
| intro p hp | |
| exact hSU (coordinatePoint_mem_modelSquare | |
| β¨by linarith [hp.1.1], by linarith [hp.1.2]β© | |
| (hrange p.2 β¨hp.2.1.le, hp.2.2.leβ© p.1 β¨hp.1.1.le, hp.1.2.leβ©)) | |
| have hdx (p : β Γ β) (hp : p β D) : | |
| HasDerivAt (fun x => F (x, p.2)) (-q (flowCoordinateMap Y p)) p.1 := by | |
| exact (hode p.2 β¨hp.2.1.le, hp.2.2.leβ© p.1 β¨hp.1.1.le, hp.1.2.leβ©).hasDerivAt | |
| (Icc_mem_nhds hp.1.1 hp.1.2) | |
| have hdy (p : β Γ β) (hp : p β D) : | |
| HasDerivAt (fun y => F (p.1, y)) (Real.exp (-pairPrimitive B p)) p.2 := by | |
| exact cap_flow_hasDerivAt_initial hq hU hSU hY hrange hstart hode hp.2 hp.1 | |
| have hnat : β n : β, ContDiffOn β n F D := by | |
| intro n | |
| induction n with | |
| | zero => | |
| have hc : ContinuousOn F D := hY.comp continuous_swap.continuousOn | |
| (fun p hp => β¨β¨hp.2.1.le, hp.2.2.leβ©, β¨hp.1.1.le, hp.1.2.leβ©β©) | |
| simpa only [Nat.cast_zero, contDiffOn_zero] using hc | |
| | succ n hn => | |
| have horder : (n : ββΟ) β€ β := WithTop.coe_le_coe.mpr le_top | |
| have hmap : ContDiffOn β n (flowCoordinateMap Y) D := by | |
| exact (contDiffOn_fst.smul contDiffOn_const).add (hn.smul contDiffOn_const) | |
| have hfx : ContDiffOn β n (fun p => -q (flowCoordinateMap Y p)) D := | |
| ((hq.of_le horder).comp hmap hmem).neg | |
| have hB : ContDiffOn β n B D := | |
| ((partial_contDiffOn hq hU 1).of_le horder).comp hmap hmem | |
| have hfy : ContDiffOn β n (fun p => Real.exp (-pairPrimitive B p)) D := | |
| ((pairPrimitive_contDiffOn_nat n hB).neg).exp | |
| exact contDiffOn_succ_of_continuous_partials (pairRectangle_isOpen 2 (-2) 2) n | |
| hfx hfy hdx hdy | |
| exact contDiffOn_infty.mpr hnat | |
| theorem exists_smooth_cap_flow | |
| (hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U) | |
| (hsmall : β p β modelSquare, |q p| β€ (1 : β) / 100) : | |
| β Y : β β β β β, | |
| ContDiffOn β β (fun p : β Γ β => Y p.2 p.1) (pairRectangle 2 (-2) 2) β§ | |
| (β s β Icc (-2 : β) 2, Y s 0 = s) β§ | |
| (β s β Icc (-2 : β) 2, β t β Icc (-2 : β) 2, | |
| HasDerivWithinAt (Y s) (-q (coordinatePoint t (Y s t))) (Icc (-2 : β) 2) t) β§ | |
| (β s β Icc (-2 : β) 2, β t β Icc (-2 : β) 2, | |
| |Y s t - s| β€ (1 : β) / 50) β§ | |
| (β s β Ioo (-2 : β) 2, β t β Ioo (-2 : β) 2, | |
| HasDerivAt (fun u => Y u t) | |
| (Real.exp (-(β« r in 0..t, coordPartial 1 q (coordinatePoint r (Y s r))))) s β§ | |
| 0 < deriv (fun u => Y u t) s) := by | |
| obtain β¨Y, hY, htime, hstart, hode, hdisp, hdisp', hrange, hLipβ© := | |
| exists_cap_flow hq hU hSU hsmall | |
| have hrange' (s : β) (hs : s β Icc (-2 : β) 2) (t : β) | |
| (ht : t β Icc (-2 : β) 2) : Y s t β Icc (-3 : β) 3 := | |
| abs_le.mp ((hrange s hs t ht).1.trans (by norm_num)) | |
| refine β¨Y, cap_flow_joint_contDiffOn hq hU hSU hY hrange' hstart hode, | |
| hstart, hode, hdisp', ?_β© | |
| intro s hs t ht | |
| exact β¨cap_flow_hasDerivAt_initial hq hU hSU hY hrange' hstart hode hs ht, | |
| cap_flow_initial_deriv_pos hq hU hSU hY hrange' hstart hode hs htβ© | |
| end SmoothLocal.Flow | |
| end | |
| end OAI | |