Download data/lean/OAI/Geometry/IsometricImmersion/Caps/CapFlowUniqueness.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.48 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Caps/CapFlowUniqueness.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Caps/CapFlowUniqueness.lean
-
curl -L -o CapFlowUniqueness.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Caps/CapFlowUniqueness.lean
5.48 kB
| import OAI.Geometry.IsometricImmersion.Flows.FlowTransport | |
| import OAI.Geometry.IsometricImmersion.Metrics.MetricLocality | |
| import Mathlib.Analysis.ODE.ExistUnique | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter Function Metric | |
| open scoped ContDiff Topology | |
| namespace SmoothLocal.Flow | |
| open SmoothLocal.Geometry SmoothLocal.ODE SmoothLocal.Weighted | |
| theorem cap_trajectory_mem_ball_of_displacement {Y : β β β β β} | |
| (hdisp : β p β capChartDomain, |capFlowHeight Y p-p 1| β€ (1:β)/50) | |
| {s t : β} (hs : s β Ioo (-2:β) 2) (ht : t β Ioo (-2:β) 2) : | |
| Y s t β closedBall (0:β) 3 := by | |
| have hp : coordinatePoint t s β capChartDomain := by | |
| change coordinatePoint t s 0 β Ioo (-2:β) 2 β§ coordinatePoint t s 1 β Ioo (-2:β) 2 | |
| simpa [coordinatePoint] using (show t β Ioo (-2:β) 2 β§ s β Ioo (-2:β) 2 from β¨ht,hsβ©) | |
| have hd : |Y s t-s| β€ (1:β)/50 := by | |
| simpa [capFlowHeight,coordinatePoint] using hdisp (coordinatePoint t s) hp | |
| have hy : |Y s t| β€ 3 := by | |
| have hh : |Y s t| β€ |Y s t-s|+|s| := by | |
| simpa only [sub_add_cancel] using abs_add_le (Y s t-s) s | |
| have hs' : |s| < 2 := abs_lt.mpr hs | |
| linarith | |
| simpa only [mem_closedBall,Real.dist_eq,sub_zero] using hy | |
| theorem capChart_eqOn_of_same_ode | |
| {q : Coord β β} {U : Set Coord} {Y Z : β β β β β} | |
| (hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U) | |
| (hYstart : β s β Icc (-2:β) 2, Y s 0 = s) | |
| (hYode : β s β Icc (-2:β) 2, β t β Icc (-2:β) 2, | |
| HasDerivWithinAt (Y s) (-q (coordinatePoint t (Y s t))) (Icc (-2:β) 2) t) | |
| (hYdisp : β p β capChartDomain, |capFlowHeight Y p-p 1| β€ (1:β)/50) | |
| (hZstart : β s β Icc (-2:β) 2, Z s 0 = s) | |
| (hZode : β s β Icc (-2:β) 2, β t β Icc (-2:β) 2, | |
| HasDerivWithinAt (Z s) (-q (coordinatePoint t (Z s t))) (Icc (-2:β) 2) t) | |
| (hZdisp : β p β capChartDomain, |capFlowHeight Z p-p 1| β€ (1:β)/50) : | |
| EqOn (capChart Y) (capChart Z) capChartDomain := by | |
| obtain β¨K,hKβ© := exists_flowField_lipschitz hq hU hSU | |
| have hsame (s : β) (hs : s β Ioo (-2:β) 2) : EqOn (Y s) (Z s) (Ioo (-2:β) 2) := by | |
| have hs' : s β Icc (-2:β) 2 := β¨hs.1.le,hs.2.leβ© | |
| apply ODE_solution_unique_of_mem_Ioo | |
| (v := flowField q) (s := fun _ => closedBall (0:β) 3) | |
| (fun t ht => hK t β¨ht.1.le,ht.2.leβ©) (tβ := 0) (by norm_num) | |
| Β· intro t ht | |
| exact β¨(hYode s hs' t β¨ht.1.le,ht.2.leβ©).hasDerivAt (Icc_mem_nhds ht.1 ht.2), | |
| cap_trajectory_mem_ball_of_displacement hYdisp hs htβ© | |
| Β· intro t ht | |
| exact β¨(hZode s hs' t β¨ht.1.le,ht.2.leβ©).hasDerivAt (Icc_mem_nhds ht.1 ht.2), | |
| cap_trajectory_mem_ball_of_displacement hZdisp hs htβ© | |
| Β· rw [hYstart s hs',hZstart s hs'] | |
| intro p hp | |
| unfold capChart capFlowHeight | |
| rw [hsame (p 1) hp.2 hp.1] | |
| theorem capPullback_eventuallyEq_of_chart_eqOn {Y Z : β β β β β} | |
| (heq : EqOn (capChart Y) (capChart Z) capChartDomain) | |
| (f : Coord β β) {p : Coord} (hp : p β capChartDomain) : | |
| capPullback Y f =αΆ [π p] capPullback Z f := by | |
| filter_upwards [capChartDomain_isOpen.mem_nhds hp] with r hr | |
| exact congrArg f (heq hr) | |
| theorem capPullback_all_jets_eq_of_chart_eqOn {Y Z : β β β β β} | |
| (heq : EqOn (capChart Y) (capChart Z) capChartDomain) | |
| (f : Coord β β) (dirs : List (Fin 2)) {p : Coord} (hp : p β capChartDomain) : | |
| iteratedCoordPartial dirs (capPullback Y f) p = iteratedCoordPartial dirs (capPullback Z f) p := | |
| (iteratedCoordPartial_eventuallyEq (capPullback_eventuallyEq_of_chart_eqOn heq f hp) dirs).self_of_nhds | |
| theorem capChart_images_eq_of_eqOn {Y Z : β β β β β} | |
| (heq : EqOn (capChart Y) (capChart Z) capChartDomain) | |
| {S : Set Coord} (hS : S β capChartDomain) : capChart Y '' S = capChart Z '' S := | |
| Set.image_congr (fun _ hp => heq (hS hp)) | |
| theorem capPullback_square_rectangle_eq_of_chart_eqOn {Y Z : β β β β β} | |
| (heq : EqOn (capChart Y) (capChart Z) capChartDomain) | |
| (f : Coord β β) {tl tr sb st : β} (ht : tl β€ tr) (hs : sb β€ st) | |
| (hbox : closedRectangle tl tr sb st β capChartDomain) : | |
| rectangleIntegral tl tr sb st (fun p => (capPullback Y f p)^2) = | |
| rectangleIntegral tl tr sb st (fun p => (capPullback Z f p)^2) := by | |
| apply rectangleIntegral_congr ht hs | |
| intro p hp | |
| exact congrArg (fun x : Coord => (f x)^2) (heq (hbox hp)) | |
| theorem capPullback_gradient_rectangle_eq_of_chart_eqOn {Y Z : β β β β β} | |
| (heq : EqOn (capChart Y) (capChart Z) capChartDomain) | |
| (f : Coord β β) {tl tr sb st : β} (ht : tl β€ tr) (hs : sb β€ st) | |
| (hbox : closedRectangle tl tr sb st β capChartDomain) : | |
| rectangleIntegral tl tr sb st (fun p => (coordPartial 0 (capPullback Y f) p)^2+ | |
| (coordPartial 1 (capPullback Y f) p)^2) = | |
| rectangleIntegral tl tr sb st (fun p => (coordPartial 0 (capPullback Z f) p)^2+ | |
| (coordPartial 1 (capPullback Z f) p)^2) := by | |
| apply rectangleIntegral_congr ht hs | |
| intro p hp | |
| change (coordPartial 0 (capPullback Y f) p)^2 + (coordPartial 1 (capPullback Y f) p)^2 = | |
| (coordPartial 0 (capPullback Z f) p)^2 + (coordPartial 1 (capPullback Z f) p)^2 | |
| rw [coordPartial_eq_of_eventuallyEq (capPullback_eventuallyEq_of_chart_eqOn heq f (hbox hp)) 0, | |
| coordPartial_eq_of_eventuallyEq (capPullback_eventuallyEq_of_chart_eqOn heq f (hbox hp)) 1] | |
| end SmoothLocal.Flow | |
| end | |
| end OAI | |