File size: 5,094 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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | import OAI.Geometry.IsometricImmersion.Flows.FlowParameter
namespace OAI
noncomputable section
open Set Metric Filter Function MeasureTheory
open scoped ContDiff Topology Interval
namespace SmoothLocal.Flow
open SmoothLocal.Geometry SmoothLocal.ODE SmoothLocal.Weighted
theorem continuous_intervalIntegral_of_joint
{X : Type*} [TopologicalSpace X] [FirstCountableTopology X] [LocallyCompactSpace X]
{a b : β} (hab : a β€ b) {f : X β β β β}
(hf : Continuous (fun p : X Γ Icc a b => f p.1 p.2)) :
Continuous (fun x => β« u in a..b, f x u) := by
let g : X β β β β := fun x u => f x (projIcc a b hab u)
have hg : Continuous (uncurry g) :=
hf.comp (continuous_fst.prodMk ((continuous_projIcc (h := hab)).comp continuous_snd))
have hc : Continuous (fun x => β« u in Icc a b, g x u) :=
continuous_parametric_integral_of_continuous hg isCompact_Icc
apply hc.congr
intro x
calc
(β« u in Icc a b, g x u) = β« u in a..b, g x u := by
rw [intervalIntegral.integral_of_le hab, integral_Icc_eq_integral_Ioc]
_ = β« u in a..b, f x u := by
apply intervalIntegral.integral_congr
intro u hu
have hu' : u β Icc a b := by simpa only [uIcc_of_le hab] using hu
simp only [g, projIcc_of_mem hab hu']
abbrev CapInterval := Icc (-2 : β) 2
abbrev VerticalInterval := Icc (-3 : β) 3
theorem verticalAverageDerivative_continuous {q : Coord β β} {U : Set Coord}
(hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U) :
Continuous (fun p : CapInterval Γ (VerticalInterval Γ VerticalInterval) =>
verticalAverageDerivative q p.1 p.2.1 p.2.2) := by
apply continuous_intervalIntegral_of_joint (show (0 : β) β€ 1 by norm_num)
have hmap : Continuous
(fun p : (CapInterval Γ (VerticalInterval Γ VerticalInterval)) Γ Icc (0 : β) 1 =>
coordinatePoint p.1.1 ((p.1.2.1 : β) + p.2 * ((p.1.2.2 : β) - p.1.2.1))) := by
unfold coordinatePoint
fun_prop
exact (partial_contDiffOn hq hU 1).continuousOn.comp_continuous hmap
(fun p => hSU (verticalSegment_mem_modelSquare p.1.1.2 p.1.2.1.2 p.1.2.2.2 p.2.2))
def flowAverageCoefficient (q : Coord β β) (Y : β β β β β) (s0 s1 t : β) : β :=
verticalAverageDerivative q t (Y s0 t) (Y s1 t)
theorem flowAverageCoefficient_continuous {q : Coord β β} {U : Set Coord}
(hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U)
{Y : β β β β β}
(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) :
Continuous (fun p : CapInterval Γ (CapInterval Γ CapInterval) =>
flowAverageCoefficient q Y p.1 p.2.1 p.2.2) := by
have hy0 : Continuous (fun p : CapInterval Γ (CapInterval Γ CapInterval) =>
Y p.1 p.2.2) :=
hY.comp_continuous
(f := fun p : CapInterval Γ (CapInterval Γ CapInterval) => ((p.1 : β), (p.2.2 : β)))
(by fun_prop) (fun p => β¨p.1.2, p.2.2.2β©)
have hy1 : Continuous (fun p : CapInterval Γ (CapInterval Γ CapInterval) =>
Y p.2.1 p.2.2) :=
hY.comp_continuous
(f := fun p : CapInterval Γ (CapInterval Γ CapInterval) => ((p.2.1 : β), (p.2.2 : β)))
(by fun_prop) (fun p => β¨p.2.1.2, p.2.2.2β©)
have hmap : Continuous
(fun p : CapInterval Γ (CapInterval Γ CapInterval) =>
(p.2.2, ((β¨Y p.1 p.2.2, hrange _ p.1.2 _ p.2.2.2β©,
β¨Y p.2.1 p.2.2, hrange _ p.2.1.2 _ p.2.2.2β©) :
VerticalInterval Γ VerticalInterval))) :=
(continuous_snd.snd).prodMk
((hy0.subtype_mk _).prodMk (hy1.subtype_mk _))
exact (verticalAverageDerivative_continuous hq hU hSU).comp hmap
theorem flowAverageIntegral_continuous {q : Coord β β} {U : Set Coord}
(hq : ContDiffOn β β q U) (hU : IsOpen U) (hSU : modelSquare β U)
{Y : β β β β β}
(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) {t : β} (ht : t β Icc (-2 : β) 2) :
Continuous (fun p : CapInterval Γ CapInterval =>
β« u in 0..t, flowAverageCoefficient q Y p.1 p.2 u) := by
have hcoeff := flowAverageCoefficient_continuous hq hU hSU hY hrange
have haux (a b : β) (hab : a β€ b) (ha : -2 β€ a) (hb : b β€ 2) :
Continuous (fun p : CapInterval Γ CapInterval =>
β« u in a..b, flowAverageCoefficient q Y p.1 p.2 u) := by
apply continuous_intervalIntegral_of_joint hab
have hmap : Continuous
(fun p : (CapInterval Γ CapInterval) Γ Icc a b =>
(p.1.1, (p.1.2, (β¨p.2, β¨ha.trans p.2.2.1, p.2.2.2.trans hbβ©β© : CapInterval)))) := by
fun_prop
exact hcoeff.comp hmap
by_cases ht0 : 0 β€ t
Β· exact haux 0 t ht0 (by norm_num) ht.2
Β· have hc := (haux t 0 (le_of_not_ge ht0) ht.1 (by norm_num)).neg
apply hc.congr
intro p
exact (intervalIntegral.integral_symm _ _).symm
end SmoothLocal.Flow
end
end OAI
|