cfahlgren1's picture
download
raw
15.8 kB
import OAI.Geometry.IsometricImmersion.Energy.MovingEnergyPropagation
namespace OAI
noncomputable section
open Set Filter MeasureTheory
open scoped ContDiff Topology Interval
namespace SmoothLocal.Hyperbolic
open SmoothLocal.Geometry SmoothLocal.Weighted SmoothLocal.ODE
variable {P S bTheta bXi v R : Coord → ℝ} {radius lo hi xl xr theta0 speed theta : ℝ}
theorem movingEnergy_hasDerivAt_of_sliceEquation
(hP : ContDiffOn ℝ ∞ P (coordinateRectangle radius lo hi))
(hS : ContDiffOn ℝ ∞ S (coordinateRectangle radius lo hi))
(hbt : ContDiffOn ℝ ∞ bTheta (coordinateRectangle radius lo hi))
(hbx : ContDiffOn ℝ ∞ bXi (coordinateRectangle radius lo hi))
(hv : ContDiffOn ℝ ∞ v (coordinateRectangle radius lo hi))
(hR : ContDiffOn ℝ ∞ R (coordinateRectangle radius lo hi))
(hradius : 0 < radius)
(hl : inwardLeft xl theta0 speed theta ∈ Ioo (-radius) radius)
(hr : inwardRight xr theta0 speed theta ∈ Ioo (-radius) radius)
(htheta : theta ∈ Ioo lo hi)
(hEq : ∀ x ∈ uIcc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta),
hyperbolicOperator P S v (coordinatePoint x theta) =
bTheta (coordinatePoint x theta) * coordPartial 1 v (coordinatePoint x theta) +
bXi (coordinatePoint x theta) * coordPartial 0 v (coordinatePoint x theta) +
R (coordinatePoint x theta)) :
HasDerivAt (movingEnergy xl xr theta0 speed S v)
(movingEnergyRate xl xr theta0 speed P S bTheta bXi v R theta) theta := by
let U := coordinateRectangle radius lo hi
have hU : IsOpen U := coordinateRectangle_isOpen radius lo hi
obtain ⟨he, hj, herr⟩ := energy_fields_contDiffOn hU hP hS hbt hbx hv
have hrest : ContDiffOn ℝ ∞
(fun p => energyCoefficientError P S bTheta bXi v p + R p * coordPartial 1 v p) U :=
herr.add (hR.mul (partial_contDiffOn hv hU 1))
have hmem {x : ℝ}
(hx : x ∈ uIcc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta)) :
coordinatePoint x theta ∈ U :=
point_mem_rectangle
⟨lt_of_lt_of_le (lt_min hl.1 hr.1) hx.1,
lt_of_le_of_lt hx.2 (max_lt hl.2 hr.2)⟩ htheta
have hlocal (x : ℝ)
(hx : x ∈ uIcc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta)) :
coordPartial 1 (energyDensity S v) (coordinatePoint x theta) =
coordPartial 0 (energyFlux P S v) (coordinatePoint x theta) +
(energyCoefficientError P S bTheta bXi v (coordinatePoint x theta) +
R (coordinatePoint x theta) * coordPartial 1 v (coordinatePoint x theta)) := by
have hp := hmem hx
have hh := energy_density_flux_identity
((hP.contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp))
((hS.contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp)) hv hU hp (hEq x hx)
linarith
have hint :
(∫ x in inwardLeft xl theta0 speed theta..inwardRight xr theta0 speed theta,
coordPartial 1 (energyDensity S v) (coordinatePoint x theta)) =
energyFlux P S v (coordinatePoint (inwardRight xr theta0 speed theta) theta) -
energyFlux P S v (coordinatePoint (inwardLeft xl theta0 speed theta) theta) +
movingIntervalIntegral (inwardLeft xl theta0 speed) (inwardRight xr theta0 speed)
(fun p => energyCoefficientError P S bTheta bXi v p + R p * coordPartial 1 v p) theta := by
calc
_ = ∫ x in inwardLeft xl theta0 speed theta..inwardRight xr theta0 speed theta,
coordPartial 0 (energyFlux P S v) (coordinatePoint x theta) +
(energyCoefficientError P S bTheta bXi v (coordinatePoint x theta) +
R (coordinatePoint x theta) * coordPartial 1 v (coordinatePoint x theta)) := by
apply intervalIntegral.integral_congr
intro x hx
exact hlocal x hx
_ = _ := by
rw [intervalIntegral.integral_add
(slice_intervalIntegrable (partial_contDiffOn hj hU 0).continuousOn hl hr htheta)
(slice_intervalIntegrable hrest.continuousOn hl hr htheta),
slice_integral_partial_xi hj hl hr htheta]
rfl
have hd := inwardIntervalIntegral_hasDerivAt he hradius hl hr htheta
rw [hint] at hd
convert hd using 1
· rfl
· dsimp only [movingEnergyRate]
ring
theorem moving_source_integral_bound_of_slicePositivity
(hS : ContDiffOn ℝ ∞ S (coordinateRectangle radius lo hi))
(hv : ContDiffOn ℝ ∞ v (coordinateRectangle radius lo hi))
(hR : ContDiffOn ℝ ∞ R (coordinateRectangle radius lo hi))
(hl : inwardLeft xl theta0 speed theta ∈ Ioo (-radius) radius)
(hr : inwardRight xr theta0 speed theta ∈ Ioo (-radius) radius)
(htheta : theta ∈ Ioo lo hi)
(hlr : inwardLeft xl theta0 speed theta ≤ inwardRight xr theta0 speed theta)
(hSpos : ∀ x ∈ Icc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta),
0 ≤ S (coordinatePoint x theta)) :
movingIntervalIntegral (inwardLeft xl theta0 speed) (inwardRight xr theta0 speed)
(fun p => R p * coordPartial 1 v p) theta ≤
Real.sqrt (2 * movingEnergy xl xr theta0 speed S v theta) *
movingSourceNorm xl xr theta0 speed R theta := by
let l := inwardLeft xl theta0 speed theta
let r := inwardRight xr theta0 speed theta
let U := coordinateRectangle radius lo hi
have hU : IsOpen U := coordinateRectangle_isOpen radius lo hi
have hmem {x : ℝ} (hx : x ∈ Icc l r) : coordinatePoint x theta ∈ U :=
point_mem_rectangle ⟨hl.1.trans_le hx.1, hx.2.trans_lt hr.2⟩ htheta
have hvt := partial_contDiffOn hv hU 1
have hx := partial_contDiffOn hv hU 0
have he : ContDiffOn ℝ ∞ (energyDensity S v) U :=
((hvt.pow 2).add (hS.mul (hx.pow 2))).div_const 2
have he2 : ContDiffOn ℝ ∞ (fun p => 2 * energyDensity S v p) U :=
contDiffOn_const.mul he
have hcR : ContinuousOn (fun x => R (coordinatePoint x theta)) (Icc l r) :=
hR.continuousOn.comp (by unfold coordinatePoint; fun_prop) (fun x hx => hmem hx)
have hcvt : ContinuousOn (fun x => coordPartial 1 v (coordinatePoint x theta)) (Icc l r) :=
hvt.continuousOn.comp (by unfold coordinatePoint; fun_prop) (fun x hx => hmem hx)
have hC := interval_product_abs_le_sqrt_squares hlr hcR hcvt
have hkin : (∫ x in l..r, (coordPartial 1 v (coordinatePoint x theta)) ^ 2) ≤
2 * movingEnergy xl xr theta0 speed S v theta := by
have hI := intervalIntegral.integral_mono_on hlr
(slice_intervalIntegrable (hvt.pow 2).continuousOn hl hr htheta)
(slice_intervalIntegrable he2.continuousOn hl hr htheta)
(fun x hx => by
have hs := hSpos x hx
unfold energyDensity
nlinarith [mul_nonneg hs (sq_nonneg (coordPartial 0 v (coordinatePoint x theta)))])
simpa only [movingEnergy, movingIntervalIntegral, intervalIntegral.integral_const_mul] using hI
have hroot := Real.sqrt_le_sqrt hkin
have hmul := mul_le_mul_of_nonneg_left hroot
(Real.sqrt_nonneg (∫ x in l..r, R (coordinatePoint x theta) ^ 2))
unfold movingIntervalIntegral movingSourceNorm
exact (le_abs_self _).trans (hC.trans
(by simpa only [l, r, movingIntervalIntegral, mul_comm] using hmul))
theorem movingEnergyRate_le_of_sliceBounds
(hP : ContDiffOn ℝ ∞ P (coordinateRectangle radius lo hi))
(hS : ContDiffOn ℝ ∞ S (coordinateRectangle radius lo hi))
(hbt : ContDiffOn ℝ ∞ bTheta (coordinateRectangle radius lo hi))
(hbx : ContDiffOn ℝ ∞ bXi (coordinateRectangle radius lo hi))
(hv : ContDiffOn ℝ ∞ v (coordinateRectangle radius lo hi))
(hR : ContDiffOn ℝ ∞ R (coordinateRectangle radius lo hi))
(hl : inwardLeft xl theta0 speed theta ∈ Ioo (-radius) radius)
(hr : inwardRight xr theta0 speed theta ∈ Ioo (-radius) radius)
(htheta : theta ∈ Ioo lo hi)
(hlr : inwardLeft xl theta0 speed theta ≤ inwardRight xr theta0 speed theta)
{s0 M : ℝ} (hs0 : 0 < s0) (hM : 0 ≤ M)
(hSfloor : ∀ x ∈ Icc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta),
s0 ≤ S (coordinatePoint x theta))
(hcoeff : ∀ x ∈ Icc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta),
|bTheta (coordinatePoint x theta)| ≤ M ∧ |bXi (coordinatePoint x theta)| ≤ M ∧
|coordPartial 0 P (coordinatePoint x theta)| ≤ M ∧
|coordPartial 0 S (coordinatePoint x theta)| ≤ M ∧
|coordPartial 1 S (coordinatePoint x theta)| ≤ M)
(hspeed : ∀ x ∈ Icc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta),
|P (coordinatePoint x theta)| + Real.sqrt (S (coordinatePoint x theta)) ≤ speed) :
movingEnergyRate xl xr theta0 speed P S bTheta bXi v R theta ≤
(8 * M * (1 + 1 / s0)) * movingEnergy xl xr theta0 speed S v theta +
Real.sqrt (2 * movingEnergy xl xr theta0 speed S v theta) *
movingSourceNorm xl xr theta0 speed R theta := by
let U := coordinateRectangle radius lo hi
have hU : IsOpen U := coordinateRectangle_isOpen radius lo hi
obtain ⟨he, hj, herr⟩ := energy_fields_contDiffOn hU hP hS hbt hbx hv
have heC : ContDiffOn ℝ ∞
(fun p => (8 * M * (1 + 1 / s0)) * energyDensity S v p) U :=
contDiffOn_const.mul he
have hsource := hR.mul (partial_contDiffOn hv hU 1)
have hmem {x : ℝ}
(hx : x ∈ Icc (inwardLeft xl theta0 speed theta) (inwardRight xr theta0 speed theta)) :
coordinatePoint x theta ∈ U :=
point_mem_rectangle ⟨hl.1.trans_le hx.1, hx.2.trans_lt hr.2⟩ htheta
have hSl := hSfloor _ ⟨le_rfl, hlr⟩
have hSr := hSfloor _ ⟨hlr, le_rfl⟩
have hboundary := inward_boundary_nonpositive (v := v) (hs0.le.trans hSl) (hs0.le.trans hSr)
(hspeed _ ⟨le_rfl, hlr⟩) (hspeed _ ⟨hlr, le_rfl⟩)
have herrI : movingIntervalIntegral (inwardLeft xl theta0 speed) (inwardRight xr theta0 speed)
(energyCoefficientError P S bTheta bXi v) theta ≤
(8 * M * (1 + 1 / s0)) * movingEnergy xl xr theta0 speed S v theta := by
have hh := intervalIntegral.integral_mono_on hlr
(slice_intervalIntegrable herr.continuousOn hl hr htheta)
(slice_intervalIntegrable heC.continuousOn hl hr htheta)
(fun x hx => by
obtain ⟨hbt', hbx', hPx', hSx', hSt'⟩ := hcoeff x hx
exact (le_abs_self _).trans (energyCoefficientError_abs_le hs0
(hSfloor x hx) hM hbt' hbx' hPx' hSx' hSt'))
simpa only [movingIntervalIntegral, movingEnergy, intervalIntegral.integral_const_mul] using hh
have hsourceI := moving_source_integral_bound_of_slicePositivity hS hv hR hl hr htheta hlr
(fun p hp => hs0.le.trans (hSfloor p hp))
unfold movingEnergyRate movingIntervalIntegral
rw [intervalIntegral.integral_add
(slice_intervalIntegrable herr.continuousOn hl hr htheta)
(slice_intervalIntegrable hsource.continuousOn hl hr htheta)]
dsimp only [movingIntervalIntegral] at herrI hsourceI
linarith
def shrinkingSlab (xl xr a b speed : ℝ) : Set Coord :=
{p | p 1 ∈ Icc a b ∧ p 0 ∈ Icc (inwardLeft xl a speed (p 1))
(inwardRight xr a speed (p 1))}
theorem point_mem_shrinkingSlab {xl xr a b speed x t : ℝ}
(ht : t ∈ Icc a b)
(hx : x ∈ Icc (inwardLeft xl a speed t) (inwardRight xr a speed t)) :
coordinatePoint x t ∈ shrinkingSlab xl xr a b speed := by
simpa [shrinkingSlab, coordinatePoint] using And.intro ht hx
theorem shrinkingSlab_subset_rectangle
{xl xr a b speed radius lo hi : ℝ} (hab : a ≤ b) (hspeed : 0 ≤ speed)
(hxl : -radius < xl) (hxr : xr < radius)
(ha : a ∈ Ioo lo hi) (hb : b ∈ Ioo lo hi)
(hlength : 2 * speed * (b - a) < xr - xl) :
shrinkingSlab xl xr a b speed ⊆ coordinateRectangle radius lo hi := by
intro p hp
have hgeo := inward_interval_geometry hab hspeed hxl hxr hlength hp.1
exact ⟨⟨hgeo.1.1.trans_le hp.2.1, hp.2.2.trans_lt hgeo.2.1.2⟩,
⟨ha.1.trans_le hp.1.1, hp.1.2.trans_lt hb.2⟩⟩
theorem moving_slab_energy_propagation
{P S bTheta bXi v R : Coord → ℝ} {radius lo hi xl xr a b speed s0 M : ℝ}
(hP : ContDiffOn ℝ ∞ P (coordinateRectangle radius lo hi))
(hS : ContDiffOn ℝ ∞ S (coordinateRectangle radius lo hi))
(hbt : ContDiffOn ℝ ∞ bTheta (coordinateRectangle radius lo hi))
(hbx : ContDiffOn ℝ ∞ bXi (coordinateRectangle radius lo hi))
(hv : ContDiffOn ℝ ∞ v (coordinateRectangle radius lo hi))
(hR : ContDiffOn ℝ ∞ R (coordinateRectangle radius lo hi))
(hradius : 0 < radius) (hab : a ≤ b) (hspeed : 0 ≤ speed)
(hxl : -radius < xl) (hxr : xr < radius)
(ha : a ∈ Ioo lo hi) (hb : b ∈ Ioo lo hi)
(hlength : 2 * speed * (b - a) < xr - xl)
(hs0 : 0 < s0) (hM : 0 ≤ M)
(hSfloor : ∀ p ∈ shrinkingSlab xl xr a b speed, s0 ≤ S p)
(hcoeff : ∀ p ∈ shrinkingSlab xl xr a b speed,
|bTheta p| ≤ M ∧ |bXi p| ≤ M ∧ |coordPartial 0 P p| ≤ M ∧
|coordPartial 0 S p| ≤ M ∧ |coordPartial 1 S p| ≤ M)
(hchar : ∀ p ∈ shrinkingSlab xl xr a b speed, |P p| + Real.sqrt (S p) ≤ speed)
(hEq : ∀ p ∈ shrinkingSlab xl xr a b speed, hyperbolicOperator P S v p =
bTheta p * coordPartial 1 v p + bXi p * coordPartial 0 v p + R p) :
Real.sqrt (movingEnergy xl xr a speed S v b) ≤
Real.exp ((8 * M * (1 + 1 / s0)) * (b - a)) *
(Real.sqrt (∫ xi in xl..xr, energyDensity S v (coordinatePoint xi a)) +
∫ t in a..b, movingSourceNorm xl xr a speed R t) := by
have htime : Icc a b ⊆ Ioo lo hi :=
fun t ht => ⟨ha.1.trans_le ht.1, ht.2.trans_lt hb.2⟩
have hgeo (t : ℝ) (ht : t ∈ Icc a b) :=
inward_interval_geometry hab hspeed hxl hxr hlength ht
have hleft (t : ℝ) (ht : t ∈ Icc a b) := (hgeo t ht).1
have hright (t : ℝ) (ht : t ∈ Icc a b) := (hgeo t ht).2.1
have horder (t : ℝ) (ht : t ∈ Icc a b) := (hgeo t ht).2.2.1.le
have hderiv (t : ℝ) (ht : t ∈ Icc a b) :
HasDerivAt (movingEnergy xl xr a speed S v)
(movingEnergyRate xl xr a speed P S bTheta bXi v R t) t := by
apply movingEnergy_hasDerivAt_of_sliceEquation hP hS hbt hbx hv hR hradius
(hleft t ht) (hright t ht) (htime ht)
intro x hx
rw [uIcc_of_le (horder t ht)] at hx
exact hEq _ (point_mem_shrinkingSlab ht hx)
have hEcont : ContinuousOn (movingEnergy xl xr a speed S v) (Icc a b) :=
fun t ht => (hderiv t ht).continuousAt.continuousWithinAt
have hEpos (t : ℝ) (ht : t ∈ Icc a b) : 0 ≤ movingEnergy xl xr a speed S v t := by
apply movingEnergy_nonneg (horder t ht)
intro x hx
exact hs0.le.trans (hSfloor _ (point_mem_shrinkingSlab ht hx))
have hforce := movingSourceNorm_continuousOn hR hradius hleft hright htime
have hC : 0 ≤ 8 * M * (1 + 1 / s0) := by positivity
have hbound (t : ℝ) (ht : t ∈ Ioo a b) :
movingEnergyRate xl xr a speed P S bTheta bXi v R t ≤
(8 * M * (1 + 1 / s0)) * movingEnergy xl xr a speed S v t +
Real.sqrt (2 * movingEnergy xl xr a speed S v t) * movingSourceNorm xl xr a speed R t := by
apply movingEnergyRate_le_of_sliceBounds hP hS hbt hbx hv hR
(hleft t ⟨ht.1.le, ht.2.le⟩) (hright t ⟨ht.1.le, ht.2.le⟩)
(htime ⟨ht.1.le, ht.2.le⟩) (horder t ⟨ht.1.le, ht.2.le⟩) hs0 hM
· intro x hx
exact hSfloor _ (point_mem_shrinkingSlab ⟨ht.1.le, ht.2.le⟩ hx)
· intro x hx
exact hcoeff _ (point_mem_shrinkingSlab ⟨ht.1.le, ht.2.le⟩ hx)
· intro x hx
exact hchar _ (point_mem_shrinkingSlab ⟨ht.1.le, ht.2.le⟩ hx)
have hfinal := sqrt_energy_gronwall hab hEcont
(fun t ht => hderiv t ⟨ht.1.le, ht.2.le⟩) hEpos hforce
(fun t _ => Real.sqrt_nonneg _) hC hbound
simpa only [movingEnergy, movingIntervalIntegral, inwardLeft, inwardRight,
sub_self, mul_zero, add_zero, sub_zero] using hfinal
end SmoothLocal.Hyperbolic
end
end OAI

Xet Storage Details

Size:
15.8 kB
·
Xet hash:
6d726991cc70dcb5c70ad153a03ea2931a14f39f6246feab6501e09564bd1a59

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.