Download data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowBounds.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.06 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowBounds.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowBounds.lean
-
curl -L -o FlowBounds.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Flows/FlowBounds.lean
6.06 kB
| import OAI.Geometry.IsometricImmersion.Flows.FlowJointSmooth | |
| import Mathlib.Analysis.Calculus.Deriv.MeanValue | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory Function | |
| open scoped ContDiff Topology Interval | |
| namespace SmoothLocal.Flow | |
| open SmoothLocal.Geometry SmoothLocal.ODE SmoothLocal.Weighted | |
| theorem exists_cap_vertical_derivative_bound {q : Coord β β} {U : Set Coord} | |
| (hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U) : | |
| β M : β, 0 β€ M β§ β p β modelSquare, |coordPartial 1 q p| β€ M := by | |
| obtain β¨M, hMβ© := modelSquare_isCompact.exists_bound_of_continuousOn | |
| ((partial_contDiffOn hq hU 1).continuousOn.mono hSU) | |
| refine β¨max M 0, le_max_right _ _, ?_β© | |
| intro p hp | |
| have hh : |coordPartial 1 q p| β€ M := by simpa only [Real.norm_eq_abs] using hM p hp | |
| exact hh.trans (le_max_left _ _) | |
| variable {q : Coord β β} {U : Set Coord} {Y : β β β β β} | |
| theorem flow_initial_integral_bound | |
| (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) | |
| {M : β} (hM : 0 β€ M) (hMq : β p β modelSquare, |coordPartial 1 q p| β€ M) | |
| {s t : β} (hs : s β Icc (-2 : β) 2) (ht : t β Icc (-2 : β) 2) : | |
| IntervalIntegrable (fun r => coordPartial 1 q (coordinatePoint r (Y s r))) volume 0 t β§ | |
| |β« r in 0..t, coordPartial 1 q (coordinatePoint r (Y s r))| β€ 2 * M := by | |
| have hmem (u : β) (hu : u β Icc (-2 : β) 2) : | |
| coordinatePoint u (Y s u) β modelSquare := | |
| coordinatePoint_mem_modelSquare β¨by linarith [hu.1], by linarith [hu.2]β© (hrange s hs u hu) | |
| have hy : ContinuousOn (Y s) (Icc (-2 : β) 2) := | |
| hY.comp (f := fun u : β => (s, u)) (by fun_prop) (fun u hu => β¨hs, huβ©) | |
| have hmap : ContinuousOn (fun u => coordinatePoint u (Y s u)) (Icc (-2 : β) 2) := | |
| (continuousOn_id.smul continuousOn_const).add (hy.smul continuousOn_const) | |
| have hc : ContinuousOn (fun u => coordPartial 1 q (coordinatePoint u (Y s u))) | |
| (Icc (-2 : β) 2) := | |
| (partial_contDiffOn hq hU 1).continuousOn.comp hmap (fun u hu => hSU (hmem u hu)) | |
| have hseg : uIcc (0 : β) t β Icc (-2 : β) 2 := | |
| uIcc_subset_Icc β¨by norm_num, by norm_numβ© ht | |
| refine β¨(hc.mono hseg).intervalIntegrable, ?_β© | |
| have hh := intervalIntegral.norm_integral_le_of_norm_le_const (a := 0) (b := t) (C := M) | |
| (f := fun u => coordPartial 1 q (coordinatePoint u (Y s u))) | |
| (fun u hu => by | |
| rw [Real.norm_eq_abs] | |
| exact hMq _ (hmem u (hseg (uIoc_subset_uIcc hu)))) | |
| have ht2 : |t| β€ 2 := abs_le.mpr ht | |
| calc | |
| _ β€ M * |t| := by simpa only [Real.norm_eq_abs, sub_zero] using hh | |
| _ β€ M * 2 := mul_le_mul_of_nonneg_left ht2 hM | |
| _ = 2 * M := mul_comm _ _ | |
| theorem cap_flow_initial_deriv_bounds | |
| (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) | |
| {M : β} (hM : 0 β€ M) (hMq : β p β modelSquare, |coordPartial 1 q p| β€ M) | |
| {s t : β} (hs : s β Ioo (-2 : β) 2) (ht : t β Ioo (-2 : β) 2) : | |
| Real.exp (-2 * M) β€ deriv (fun u => Y u t) s β§ | |
| deriv (fun u => Y u t) s β€ Real.exp (2 * M) := by | |
| have hI := (flow_initial_integral_bound hq hU hSU hY hrange hM hMq | |
| β¨hs.1.le, hs.2.leβ© β¨ht.1.le, ht.2.leβ©).2 | |
| rw [(cap_flow_hasDerivAt_initial hq hU hSU hY hrange hstart hode hs ht).deriv] | |
| constructor | |
| Β· apply Real.exp_monotone | |
| linarith [(abs_le.mp hI).2] | |
| Β· apply Real.exp_monotone | |
| linarith [(abs_le.mp hI).1] | |
| def triangularFlow (Y : β β β β β) (p : β Γ β) : β Γ β := (p.1, Y p.2 p.1) | |
| theorem cap_flow_strictMonoOn_initial | |
| (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) | |
| {t : β} (ht : t β Ioo (-2 : β) 2) : | |
| StrictMonoOn (fun s => Y s t) (Ioo (-2 : β) 2) := by | |
| have hc : ContinuousOn (fun s => Y s t) (Ioo (-2 : β) 2) := | |
| HasDerivAt.continuousOn | |
| (fun s hs => cap_flow_hasDerivAt_initial hq hU hSU hY hrange hstart hode hs ht) | |
| apply strictMonoOn_of_deriv_pos (convex_Ioo (-2 : β) 2) hc | |
| intro s hs | |
| apply cap_flow_initial_deriv_pos hq hU hSU hY hrange hstart hode _ ht | |
| simpa only [interior_Ioo] using hs | |
| theorem triangularFlow_injOn | |
| (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) : | |
| InjOn (triangularFlow Y) (pairRectangle 2 (-2) 2) := by | |
| intro p hp z hz he | |
| have ht : p.1 = z.1 := by | |
| simpa only [triangularFlow] using congrArg (fun v : β Γ β => v.1) he | |
| have hy : Y p.2 p.1 = Y z.2 z.1 := by | |
| simpa only [triangularFlow] using congrArg (fun v : β Γ β => v.2) he | |
| rw [ht] at hy | |
| exact Prod.ext ht | |
| ((cap_flow_strictMonoOn_initial hq hU hSU hY hrange hstart hode hz.1).injOn hp.2 hz.2 hy) | |
| end SmoothLocal.Flow | |
| end | |
| end OAI | |