File size: 4,493 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | 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
|