import Euler.PacketPhysicalFamily import Euler.PacketBeforeTargetSize import Euler.PacketPhysicalNormBounds /-! Literal physical data and scale guards for one geometric propagation stage. The record contains no amplification, sign, size, or frame-renewal conclusion. -/ /-! ## From `Euler/PacketHorizonSize.lean` The text of `Euler/PacketHorizonSize.lean`, folded into this file, which was its only importer. -/ section /-! The primary size remains controlled on the short interval after target. The actual scalar ODE gives the needed uniform logarithmic growth bound; there is no separate post-target growth hypothesis. -/ noncomputable section namespace EulerPacketMovingFrame open Set Real EulerSmoothLimit EulerPacketGrowth EulerPacketFrameStability InnerProductSpace theorem equation30_short_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hZ : ∀ x, 0 ≤ x → HasDerivAt Z (Z₁ x) x) (hfluxZ : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*Z₁ u) (2*(1-σ^2*(σ^2*x^2))*Z x) x) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) (hs : 1 ≤ s) (hst : s ≤ t) (hshort : t-s ≤ 1) : idealPrimarySize σ Z t ≤ 2*exp 6*idealPrimarySize σ Z s := by let W : ℝ → ℝ := fun x => (1+σ^2*x^2)*Z x let W₁ : ℝ → ℝ := fun x => (2*σ^2*x)*Z x+(1+σ^2*x^2)*Z₁ x have hzpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 have hW (x : ℝ) (hx : 0 ≤ x) : HasDerivAt W (W₁ x) x := by convert! (((((hasDerivAt_id x).pow 2).const_mul (σ^2)).const_add 1).mul (hZ x hx)) using 1 dsimp ring have hWpos (x : ℝ) (hx : 0 ≤ x) : 0 < W x := mul_pos (by positivity) (hzpos x hx) have hderivBound (x : ℝ) (hx : 1 ≤ x) : |W₁ x| ≤ 6*W x := by have hx0 : 0 ≤ x := by linarith only [hx] have hlog := equation30_primary_logderivative_bound hσ hσsmall hZ hfluxZ hZ0 hZ₁0 x hx have hzx := hzpos x hx0 rw [abs_div, abs_of_pos hzx, div_le_iff₀ hzx] at hlog have ht := abs_add_le ((2*σ^2*x)*Z x) ((1+σ^2*x^2)*Z₁ x) rw [abs_of_nonneg (by positivity : 0 ≤ (2*σ^2*x)*Z x), abs_mul, abs_of_pos (by positivity : 0 < 1+σ^2*x^2)] at ht have hh := mul_le_mul_of_nonneg_left hlog (show 0 ≤ 1+σ^2*x^2 by positivity) have hx2 : x ≤ x^2 := by nlinarith only [hx] have hcoef := mul_le_mul_of_nonneg_right hx2 (show 0 ≤ 2*σ^2*Z x by positivity) dsimp [W] linarith only [ht, hh, hcoef, hzx] have hcont : ContinuousOn W (Icc s t) := fun x hx => (hW x (by linarith only [hs, hx.1])).continuousAt.continuousWithinAt have hright : ∀ x ∈ Ico s t, HasDerivWithinAt W (W₁ x) (Ici x) x := fun x hx => (hW x (by linarith only [hs, hx.1])).hasDerivWithinAt have hs0 : 0 ≤ s := by linarith only [hs] have ht0 : 0 ≤ t := hs0.trans hst have hbound : ∀ x ∈ Ico s t, ‖W₁ x‖ ≤ 6*‖W x‖+0 := by intro x hx have hx1 : 1 ≤ x := hs.trans hx.1 simpa only [Real.norm_eq_abs, abs_of_pos (hWpos x (by linarith only [hx1])), add_zero] using hderivBound x hx1 have hg := norm_le_gronwallBound_of_norm_deriv_right_le hcont hright (show ‖W s‖ ≤ W s by rw [Real.norm_eq_abs, abs_of_pos (hWpos s hs0)]) hbound t ⟨hst, le_rfl⟩ rw [gronwallBound_ε0, Real.norm_eq_abs, abs_of_pos (hWpos t ht0)] at hg have hexp : exp (6*(t-s)) ≤ exp 6 := exp_le_exp.mpr (by linarith only [hshort]) have hgrowth : W t ≤ W s*exp 6 := hg.trans (mul_le_mul_of_nonneg_left hexp (hWpos s hs0).le) have htWeight := (quadratic_weight_sqrt (show 0 ≤ σ^2*t^2 by positivity)).1 have hsWeight := (quadratic_weight_sqrt (show 0 ≤ σ^2*s^2 by positivity)).2 have hleft := mul_le_mul_of_nonneg_right htWeight (hzpos t ht0).le have hright' := mul_le_mul_of_nonneg_right hsWeight (hzpos s hs0).le have hrightExp := mul_le_mul_of_nonneg_right hright' (exp_pos (6:ℝ)).le dsimp [W] at hgrowth dsimp [idealPrimarySize] linarith only [hleft, hgrowth, hrightExp] theorem equation30_horizon_size_comparison {σ T H τ : ℝ} {Z Z₁ : ℝ → ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hZ : ∀ x, 0 ≤ x → HasDerivAt Z (Z₁ x) x) (hfluxZ : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*Z₁ u) (2*(1-σ^2*(σ^2*x^2))*Z x) x) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) (hT : 1 ≤ T) (hshort : H-T ≤ 1) (hτ : 0 ≤ τ) (hτH : τ ≤ H) : idealPrimarySize σ Z τ ≤ 2*exp 6*idealPrimarySize σ Z T := by by_cases hpre : τ ≤ T · have hbound := equation30_ideal_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hτ hpre have hpos : 0 ≤ idealPrimarySize σ Z T := mul_nonneg (sqrt_nonneg _) (equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 T (by linarith only [hT])).le have he : 1 ≤ exp (6:ℝ) := one_le_exp_iff.mpr (by norm_num) have hh := mul_le_mul_of_nonneg_right he hpos linarith only [hbound, hh] · exact equation30_short_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hT (le_of_not_ge hpre) (by linarith only [hshort, hτH]) theorem physical_horizon_size_bound {α : Type*} (center : α) (m v r w : α → ℝ → Space) {s₀ t₀ a ε T H Θ K e σ : ℝ} {Z Z₁ : ℝ → ℝ} (hs₀ : 0 < s₀) (hε : 0 < ε) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT : 1 ≤ T) (hTH : T ≤ H) (hHΘ : H ≤ Θ) (hshort : H-T ≤ 1) (hΘ : 1 ≤ Θ) (hK : 1 ≤ K) (he : 0 ≤ e) (hεe : ε ≤ e) (hsmall : 1000000*K*e*Θ^40 ≤ 1) (hm : ∀ ξ τ, τ ∈ Icc 1 H → m ξ (physicalTime t₀ a ε τ) ≠ 0) (hv : ∀ ξ τ, τ ∈ Icc 1 H → v ξ (physicalTime t₀ a ε τ) ≠ 0) (hmv : ∀ ξ τ, τ ∈ Icc 1 H → ⟪m ξ (physicalTime t₀ a ε τ), v ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hrw : ∀ ξ τ, τ ∈ Icc 1 H → ⟪r ξ (physicalTime t₀ a ε τ), w ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) (hP : ∀ ξ τ, τ ∈ Icc 1 H → |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2| ≤ 800*e*Θ^5) (hQ : ∀ ξ τ, τ ∈ Icc 1 H → |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 1-(-2*σ^2*τ)| ≤ 800*e*Θ^5) (hN : ∀ ξ τ, τ ∈ Icc 1 H → |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 2-1| ≤ 800*e*Θ^5) (hVrel : ∀ ξ τ, τ ∈ Icc 1 H → |scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 1/Z τ-1| ≤ K*e*Θ^29) (hratio : ∀ ξ τ, τ ∈ Icc 1 H → |scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 0/scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 1+Z₁ τ/Z τ| ≤ 10*(K*e*Θ^29)) : ∀ ξ τ, τ ∈ Icc 1 H → ‖r ξ (physicalTime t₀ a ε τ)‖*‖w ξ (physicalTime t₀ a ε τ)‖ ≤ 64*exp 6*(‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖) := by have hcomparison (ξ : α) (τ : ℝ) (hτ : τ ∈ Icc 1 H) := physical_ideal_size_comparison_order40 (m ξ) (v ξ) (r ξ) (w ξ) hs₀ hε hσ hσsmall (hm ξ τ hτ) (hv ξ τ hτ) (hmv ξ τ hτ) (hrw ξ τ hτ) hΘ hK he hεe hsmall hτ.1 (hτ.2.trans hHΘ) hZ hfluxZ hZ0 hZ₁0 (hP ξ τ hτ) (hQ ξ τ hτ) (hN ξ τ hτ) (hVrel ξ τ hτ) (hratio ξ τ hτ) have htarget := (hcomparison center T ⟨hT, hTH⟩).1 intro ξ τ hτ have hcurrent := (hcomparison ξ τ hτ).2 have hideal := equation30_horizon_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hT hshort (by linarith only [hτ.1] : 0 ≤ τ) hτ.2 have hh := mul_le_mul_of_nonneg_left hideal hs₀.le have ht := mul_le_mul_of_nonneg_left htarget (exp_pos (6:ℝ)).le linarith only [ht, hcurrent, hh] end EulerPacketMovingFrame end end /-! ## From `Euler/PacketTargetAmplification.lean` The text of `Euler/PacketTargetAmplification.lean`, folded into this file, which was its only importer. -/ section /-! Actual target amplification and the resulting exponential gain for bounded history sizes and the packet amplitude chosen at target. -/ noncomputable section namespace EulerPacketMovingFrame open Set Real EulerSmoothLimit EulerPacketGrowth InnerProductSpace theorem equation30_target_exp_le {σ T Θ : ℝ} {Z Z₁ : ℝ → ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hTtarget : 1/σ ≤ T) (hTΘ : T ≤ Θ) (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) : exp (1/(4*σ)) ≤ Θ*Z T := by have hTpos : 0 < T := lt_of_lt_of_le (by positivity : 0 < 1/σ) hTtarget have hx : 1 ≤ σ*T := by have hh := (div_le_iff₀ hσ).mp hTtarget linarith only [hh] have hxpos : 0 < σ*T := by positivity have hgrowth := equation30_endpoint_exponential (sq_pos_of_pos hσ) (by nlinarith only [hσ, hσsmall] : σ^2 ≤ 1/16) (fun t ht => hZ t ht.1) (fun t ht => hfluxZ t ht.1) hZ0 hZ₁0 rw [sqrt_sq hσ.le] at hgrowth have hpost := equation30_post_inversion_lower hσ hσsmall hZ hfluxZ hZ0 hZ₁0 (σ*T) hx rw [mul_div_cancel_left₀ T (ne_of_gt hσ)] at hpost have hraw : exp (1/(4*σ)) ≤ (σ*T)*Z T := by have hh := (div_le_iff₀ hxpos).mp hpost.1 linarith only [hgrowth, hh] have hcoeff : σ*T ≤ Θ := by have hh := mul_le_mul_of_nonneg_right (show σ ≤ 1 by linarith only [hσsmall]) hTpos.le linarith only [hh, hTΘ] exact hraw.trans (mul_le_mul_of_nonneg_right hcoeff hpost.2.le) theorem physical_target_exponential_lower (m v r w : ℝ → Space) {s₀ t₀ a ε σ T Θ : ℝ} {Z Z₁ : ℝ → ℝ} (hs₀ : 0 < s₀) (hε : ε ≠ 0) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hTtarget : 1/σ ≤ T) (hTΘ : T ≤ Θ) (hm : m (physicalTime t₀ a ε T) ≠ 0) (hv : v (physicalTime t₀ a ε T) ≠ 0) (hmv : ⟪m (physicalTime t₀ a ε T),v (physicalTime t₀ a ε T)⟫_ℝ = 0) (hN : 1/2 ≤ scaledRay m v r s₀ t₀ a ε T 2) (hV : |scaledVelocity m v w t₀ a ε T 1/Z T-1| ≤ 1/2) (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) : 0 < ‖r (physicalTime t₀ a ε T)‖*‖w (physicalTime t₀ a ε T)‖ ∧ s₀*exp (1/(4*σ)) ≤ 4*Θ*(‖r (physicalTime t₀ a ε T)‖*‖w (physicalTime t₀ a ε T)‖) := by have hTpos : 0 < T := lt_of_lt_of_le (by positivity : 0 < 1/σ) hTtarget have hΘpos : 0 < Θ := hTpos.trans_le hTΘ have hZpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 T hTpos.le have hVlower : Z T/2 ≤ scaledVelocity m v w t₀ a ε T 1 := by have hh := (abs_le.mp hV).1 have hr : 1/2 ≤ scaledVelocity m v w t₀ a ε T 1/Z T := by linarith only [hh] have hb := (le_div_iff₀ hZpos).mp hr linarith only [hb] have hVpos : 0 < scaledVelocity m v w t₀ a ε T 1 := by linarith only [hVlower, hZpos] have hsize := physical_size_ge_second m v r w hs₀ hε hm hv hmv hN hVpos.le have hsizepos : 0 < ‖r (physicalTime t₀ a ε T)‖*‖w (physicalTime t₀ a ε T)‖ := lt_of_lt_of_le (by positivity) hsize have hexp := equation30_target_exp_le hσ hσsmall hTtarget hTΘ hZ hfluxZ hZ0 hZ₁0 have h1 := mul_le_mul_of_nonneg_left hexp hs₀.le have h2 := mul_le_mul_of_nonneg_left hVlower (show 0 ≤ 2*s₀*Θ by positivity) have h3 := mul_le_mul_of_nonneg_left hsize (show 0 ≤ 4*Θ by positivity) exact ⟨hsizepos, by linarith only [h1, h2, h3]⟩ /-- A bounded physical history size, or the numerator used to choose a packet amplitude, gains the actual target's exponential factor. -/ theorem ratio_bound_from_target_growth {s₀ Θ x target value bound : ℝ} (hs₀ : 0 < s₀) (hΘ : 0 < Θ) (hbound : 0 ≤ bound) (hvalue : value ≤ bound) (hgrowth : s₀*exp x ≤ 4*Θ*target) : 0 < target ∧ value/target ≤ (4*Θ*bound/s₀)*exp (-x) := by have hleft : 0 < s₀*exp x := mul_pos hs₀ (exp_pos x) have htarget : 0 < target := by by_contra hn have hnon : target ≤ 0 := le_of_not_gt hn have hmul : 4*Θ*target ≤ 0 := mul_nonpos_of_nonneg_of_nonpos (by positivity) hnon linarith only [hleft, hgrowth, hmul] have hexp : exp x*exp (-x) = 1 := by rw [← exp_add]; simp have hscaled : s₀ ≤ 4*Θ*target*exp (-x) := by have hh := mul_le_mul_of_nonneg_right hgrowth (exp_pos (-x)).le simpa only [mul_assoc, hexp, mul_one] using hh have hb : bound ≤ ((4*Θ*bound/s₀)*exp (-x))*target := by calc bound = (bound/s₀)*s₀ := by field_simp _ ≤ (bound/s₀)*(4*Θ*target*exp (-x)) := mul_le_mul_of_nonneg_left hscaled (div_nonneg hbound hs₀.le) _ = _ := by ring exact ⟨htarget, (div_le_iff₀ htarget).mpr (hvalue.trans hb)⟩ end EulerPacketMovingFrame end end /-! ## From `Euler/PacketAmplitudeBounds.lean` The text of `Euler/PacketAmplitudeBounds.lean`, folded into this file, which was its only importer. -/ section /-! Bounds for the actual source choice of the packet amplitude. -/ noncomputable section namespace EulerPacketMovingFrame open Set Real EulerSmoothLimit EulerPacketGrowth def primaryAmplitude (δ hchild : ℝ) (r w : ℝ → Space) (t : ℝ) : ℝ := δ*hchild/(‖r t‖*‖w t‖) theorem primaryAmplitude_nonneg (δ hchild : ℝ) (r w : ℝ → Space) (t : ℝ) (hδ : 0 ≤ δ) (hh : 0 ≤ hchild) : 0 ≤ primaryAmplitude δ hchild r w t := by unfold primaryAmplitude positivity theorem primaryAmplitude_target_identity (δ hchild : ℝ) (r w : ℝ → Space) (t : ℝ) (ht : 0 < ‖r t‖*‖w t‖) : primaryAmplitude δ hchild r w t*(‖r t‖*‖w t‖) = δ*hchild := by unfold primaryAmplitude exact div_mul_cancel₀ _ (ne_of_gt ht) theorem primaryAmplitude_exponential_bound (r w : ℝ → Space) {δ hchild s₀ Θ x t : ℝ} (hδ : 0 ≤ δ) (hh : 0 ≤ hchild) (hs₀ : 0 < s₀) (hΘ : 0 < Θ) (hgrowth : s₀*exp x ≤ 4*Θ*(‖r t‖*‖w t‖)) : primaryAmplitude δ hchild r w t ≤ (4*Θ*δ*hchild/s₀)*exp (-x) := by have hb := (ratio_bound_from_target_growth hs₀ hΘ (mul_nonneg hδ hh) le_rfl hgrowth).2 simpa only [primaryAmplitude, mul_assoc] using hb /-- The profile-weighted amplitude is bounded uniformly on the full forward horizon, including before scaled time one. -/ theorem primaryAmplitude_profile_bound (r w : ℝ → Space) {δ hchild s₀ σ T H targetTime : ℝ} {Z Z₁ : ℝ → ℝ} (hδ : 0 ≤ δ) (hh : 0 ≤ hchild) (hs₀ : 0 < s₀) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT : 1 ≤ T) (hshort : H-T ≤ 1) (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) (hlower : s₀*idealPrimarySize σ Z T/4 ≤ ‖r targetTime‖*‖w targetTime‖) : ∀ τ ∈ Icc 0 H, primaryAmplitude δ hchild r w targetTime*Z τ ≤ 8*exp 6*δ*hchild/s₀ := by let A := primaryAmplitude δ hchild r w targetTime have hA : 0 ≤ A := primaryAmplitude_nonneg δ hchild r w targetTime hδ hh have hZpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 have hT0 : 0 ≤ T := by linarith only [hT] have hIpos : 0 < idealPrimarySize σ Z T := mul_pos (sqrt_pos.mpr (by positivity)) (hZpos T hT0) have htarget : 0 < ‖r targetTime‖*‖w targetTime‖ := lt_of_lt_of_le (div_pos (mul_pos hs₀ hIpos) (by norm_num)) hlower have hid : A*(‖r targetTime‖*‖w targetTime‖) = δ*hchild := primaryAmplitude_target_identity δ hchild r w targetTime htarget have hl : s₀*A*idealPrimarySize σ Z T ≤ 4*δ*hchild := by have hb := mul_le_mul_of_nonneg_left hlower hA rw [hid] at hb linarith only [hb] intro τ hτ have hroot : 1 ≤ sqrt (1+(σ^2*τ^2)^2) := one_le_sqrt.mpr (by linarith [sq_nonneg (σ^2*τ^2)]) have hz : Z τ ≤ idealPrimarySize σ Z τ := by have hb := mul_le_mul_of_nonneg_right hroot (hZpos τ hτ.1).le simpa only [one_mul, idealPrimarySize] using hb have hi := equation30_horizon_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hT hshort hτ.1 hτ.2 have hz' := hz.trans hi have h1 := mul_le_mul_of_nonneg_left hz' (mul_nonneg hs₀.le hA) have h2 := mul_le_mul_of_nonneg_left hl (show 0 ≤ 2*exp (6:ℝ) by positivity) apply (le_div_iff₀ hs₀).mpr change A*Z τ*s₀ ≤ 8*exp 6*δ*hchild linarith only [h1, h2] end EulerPacketMovingFrame end end noncomputable section namespace EulerPacketMovingFrame open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay InnerProductSpace ContinuousLinearMap structure PhysicalGeometryData (α : Type*) where center : α B : ℝ → Space →L[ℝ] Space B₁ : ℝ → Space →L[ℝ] Space M : α → ℝ → Space →L[ℝ] Space E : α → ℝ → Space →L[ℝ] Space m : ℝ → Space v : ℝ → Space r : α → ℝ → Space w : α → ℝ → Space c : ℝ s₀ : ℝ t₀ : ℝ a : ℝ ε : ℝ σ : ℝ y : ℝ Θ : ℝ H : ℝ G : ℝ d : ℝ lam : ℝ δ : ℝ hchild : ℝ S : Set ℝ sigma_pos : 0 < σ sigma_small : σ ≤ 1/4 y_pos : 0 < y y_small : y ≤ 1/2 target_le_horizon : y⁻¹/σ ≤ H horizon_le_Theta : H ≤ Θ short_extension : H-y⁻¹/σ ≤ 1 a_lower : 1/2 ≤ a epsilon_pos : 0 < ε Theta_lower : 1 ≤ Θ G_lower : 1 ≤ G d_nonneg : 0 ≤ d ray_scale_pos : 0 < s₀ slope_nonneg : 0 ≤ lam delta_nonneg : 0 ≤ δ child_nonneg : 0 ≤ hchild small : 1000000*neighborStabilityConstant*(16*(ε*Θ*(4*G)^2+d))*Θ^40 ≤ 1 compression_guard : 60*(G+d)*(y⁻¹/σ)*ε < a time_maps : MapsTo (physicalTime t₀ a ε) (Icc 0 Θ) S M_continuous : ∀ ξ, ContinuousOn (M ξ) S B_derivative : ∀ t ∈ S, HasDerivWithinAt B (B₁ t) S t old_ray_equation : ∀ t ∈ S, HasDerivWithinAt m (-(B t).adjoint (m t)) S t old_velocity_equation : ∀ t ∈ S, HasDerivWithinAt v (-(B t) (v t)+(2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) S t ray_equation : ∀ ξ t, t ∈ S → HasDerivWithinAt (r ξ) (-(M ξ t).adjoint (r ξ t)) S t velocity_equation : ∀ ξ t, t ∈ S → HasDerivWithinAt (w ξ) (-(M ξ t) (w ξ t)+(2*⟪r ξ t,(M ξ t) (w ξ t)⟫_ℝ/‖r ξ t‖^2) • r ξ t) S t old_ray_nonzero : ∀ t ∈ S, m t ≠ 0 old_velocity_nonzero : ∀ t ∈ S, v t ≠ 0 old_tangent : ∀ t ∈ S, ⟪m t,v t⟫_ℝ = 0 initial_tangent : ∀ ξ, ⟪r ξ t₀,w ξ t₀⟫_ℝ = 0 B_bound : ∀ t ∈ S, ‖B t‖ ≤ G B_derivative_bound : ∀ t ∈ S, ‖B₁ t‖ ≤ G^2 E_bound : ∀ ξ t, t ∈ S → ‖E ξ t‖ ≤ d parent_decomposition : ∀ ξ t, t ∈ S → M ξ t = B t+ primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))+E ξ t initial_coupling : rescaledFrame B m v t₀ a ε 0 0 1 = a initial_tilt : rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2 initial_shear : rescaledShear c m v t₀ a ε 0 = a/ε^2 initial_ray_error : ∀ ξ, norm3 (scaledRay m v (r ξ) s₀ t₀ a ε 0 0) (scaledRay m v (r ξ) s₀ t₀ a ε 0 1) (scaledRay m v (r ξ) s₀ t₀ a ε 0 2-1) ≤ 16*(ε*Θ*(4*G)^2+d) initial_velocity_error : ∀ ξ, |scaledVelocity m v (w ξ) t₀ a ε 0 1-1|+ |scaledVelocity m v (w ξ) t₀ a ε 0 0+lam| ≤ 16*(ε*Θ*(4*G)^2+d) namespace PhysicalGeometryData variable {α : Type*} def error (D : PhysicalGeometryData α) : ℝ := 16*(D.ε*D.Θ*(4*D.G)^2+D.d) def target (D : PhysicalGeometryData α) : ℝ := D.y⁻¹/D.σ def time (D : PhysicalGeometryData α) (τ : ℝ) : ℝ := physicalTime D.t₀ D.a D.ε τ def targetTime (D : PhysicalGeometryData α) : ℝ := D.time D.target def ray (D : PhysicalGeometryData α) (ξ : α) (τ : ℝ) : Fin 3 → ℝ := scaledRay D.m D.v (D.r ξ) D.s₀ D.t₀ D.a D.ε τ def velocity (D : PhysicalGeometryData α) (ξ : α) (τ : ℝ) : Fin 3 → ℝ := scaledVelocity D.m D.v (D.w ξ) D.t₀ D.a D.ε τ def size (D : PhysicalGeometryData α) (ξ : α) (τ : ℝ) : ℝ := ‖D.r ξ (D.time τ)‖*‖D.w ξ (D.time τ)‖ def targetSize (D : PhysicalGeometryData α) : ℝ := D.size D.center D.target def amplitude (D : PhysicalGeometryData α) : ℝ := primaryAmplitude D.δ D.hchild (D.r D.center) (D.w D.center) D.targetTime def nextCoupling (D : PhysicalGeometryData α) : ℝ := normalizedCoupling (D.M D.center D.targetTime) (D.r D.center D.targetTime) (D.w D.center D.targetTime) def nextTilt (D : PhysicalGeometryData α) : ℝ := normalizedTilt (D.M D.center D.targetTime) (D.r D.center D.targetTime) (D.w D.center D.targetTime) def nextCompression (D : PhysicalGeometryData α) : ℝ := normalizedCoupling (D.M D.center D.targetTime) (D.r D.center D.targetTime) (D.r D.center D.targetTime) def targetShear (D : PhysicalGeometryData α) : ℝ := primaryShear D.c D.m D.v D.targetTime end PhysicalGeometryData end EulerPacketMovingFrame