import Euler.PacketGeometryGuards import Euler.PacketPhysicalSign import Euler.PacketPhysicalSize import Euler.PacketFrameCoefficients import Euler.PacketPhysicalNormBounds import Euler.PacketPhysicalFamily import Euler.PacketPhysicalPropagator import Euler.PacketScaledRay /-! One geometric stage: actual neighboring physical fields, the constructed common scalar reference, and the source amplitude choice. All hypotheses are the literal physical data and explicit scale guards in the data record. -/ /-! ## From `Euler/PacketEarlyPhysical.lean` The text of `Euler/PacketEarlyPhysical.lean`, folded into this file, which was its only importer. -/ section /-! Early physical amplitudes are exponentially small relative to the center target amplitude. The initial scalar slope cancels, including for neighboring initial data controlled by the common reference. -/ noncomputable section namespace EulerPacketMovingFrame open Set Real EulerSmoothLimit EulerPacketRay EulerPacketStage InnerProductSpace theorem early_neighbor_state_bound {α : Type*} (center : α) (U V : α → ℝ → ℝ) {σ Θ T lam δ : ℝ} {F F₁ Z Z₁ : ℝ → ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) (hT : T ≤ Θ) (hTtarget : 1/σ ≤ T) (hlam : 0 ≤ lam) (hδ : 0 ≤ δ) (hδsmall : 4*exp 6*δ ≤ 1) (hF : ∀ t, HasDerivAt F (F₁ t) t) (hZ : ∀ t, HasDerivAt Z (Z₁ t) t) (hfluxF : ∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) (2*(1-σ^2*(σ^2*t^2))*F t) t) (hfluxZ : ∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hZ0 : Z 0 = 1) (hZ₁0 : Z₁ 0 = lam) (herror : ∀ ξ t, t ∈ Icc 0 T → |V ξ t-Z t|+|U ξ t+Z₁ t| ≤ δ*(1+lam)*F t) : 0 < V center T ∧ ∀ ξ s, s ∈ Icc 0 1 → (|U ξ s|+|V ξ s|)/V center T ≤ 84*exp 9*Θ*exp (-(1/(4*σ))) := by have hcenter := early_forward_exponential_suppression hσ hσsmall hΘ hT hTtarget hlam hδ hδsmall hF hZ hfluxF hfluxZ hF0 hF₁0 hZ0 hZ₁0 (herror center) have hTpos : 0 < T := lt_of_lt_of_le (by positivity : 0 < 1/σ) hTtarget have hTnot : ¬T ≤ 1 := by have hh := (div_le_iff₀ hσ).mp hTtarget nlinarith only [hh, hσ, hσsmall, hTpos] refine ⟨hcenter.1, ?_⟩ intro ξ s hs let U' : ℝ → ℝ := fun t => if t ≤ 1 then U ξ t else U center t let V' : ℝ → ℝ := fun t => if t ≤ 1 then V ξ t else V center t have he : ∀ t ∈ Icc 0 T, |V' t-Z t|+|U' t+Z₁ t| ≤ δ*(1+lam)*F t := by intro t ht by_cases h : t ≤ 1 · simpa only [U', V', ite_eq_left h] using herror ξ t ht · simpa only [U', V', ite_eq_right h] using herror center t ht have hh := early_forward_exponential_suppression hσ hσsmall hΘ hT hTtarget hlam hδ hδsmall hF hZ hfluxF hfluxZ hF0 hF₁0 hZ0 hZ₁0 he simpa only [U', V', ite_eq_left hs.2, ite_eq_right hTnot] using hh.2 s hs /-- The early part of source (36) for actual Euclidean norm products. The estimate is uniform over neighboring labels and over the nonnegative initial slope of the common scalar reference. -/ theorem early_physical_size_suppression {α : Type*} (center : α) (m v : ℝ → Space) (r w : α → ℝ → Space) {s₀ t₀ a ε σ Θ T lam δ ρ : ℝ} {F F₁ Z Z₁ : ℝ → ℝ} (hs₀ : 0 < s₀) (hε : 0 < ε) (hε1 : ε ≤ 1) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) (hT : T ≤ Θ) (hTtarget : 1/σ ≤ T) (hlam : 0 ≤ lam) (hδ : 0 ≤ δ) (hδsmall : 4*exp 6*δ ≤ 1) (hρ0 : 0 ≤ ρ) (hρ : ρ ≤ 1/2) (hm : ∀ τ ∈ Icc 0 T, m (physicalTime t₀ a ε τ) ≠ 0) (hv : ∀ τ ∈ Icc 0 T, v (physicalTime t₀ a ε τ) ≠ 0) (hmv : ∀ τ ∈ Icc 0 T, ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hrw : ∀ ξ τ, τ ∈ Icc 0 T → ⟪r ξ (physicalTime t₀ a ε τ),w ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hP : ∀ ξ τ, τ ∈ Icc 0 T → |scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2| ≤ ρ) (hQ : ∀ ξ τ, τ ∈ Icc 0 T → |scaledRay m v (r ξ) s₀ t₀ a ε τ 1-(-2*σ^2*τ)| ≤ ρ) (hN : ∀ ξ τ, τ ∈ Icc 0 T → |scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1| ≤ ρ) (hF : ∀ t, HasDerivAt F (F₁ t) t) (hZ : ∀ t, HasDerivAt Z (Z₁ t) t) (hfluxF : ∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) (2*(1-σ^2*(σ^2*t^2))*F t) t) (hfluxZ : ∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hZ0 : Z 0 = 1) (hZ₁0 : Z₁ 0 = lam) (herror : ∀ ξ τ, τ ∈ Icc 0 T → |scaledVelocity m v (w ξ) t₀ a ε τ 1-Z τ|+ |scaledVelocity m v (w ξ) t₀ a ε τ 0+Z₁ τ| ≤ δ*(1+lam)*F τ) : 0 < ‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖ ∧ ∀ ξ τ, τ ∈ Icc 0 1 → (‖r ξ (physicalTime t₀ a ε τ)‖*‖w ξ (physicalTime t₀ a ε τ)‖)/ (‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖) ≤ 8232*exp 9*Θ^5*exp (-(1/(4*σ))) := by have hstate := early_neighbor_state_bound center (fun ξ τ => scaledVelocity m v (w ξ) t₀ a ε τ 0) (fun ξ τ => scaledVelocity m v (w ξ) t₀ a ε τ 1) hσ hσsmall hΘ hT hTtarget hlam hδ hδsmall hF hZ hfluxF hfluxZ hF0 hF₁0 hZ0 hZ₁0 herror have hTpos : 0 < T := lt_of_lt_of_le (by positivity : 0 < 1/σ) hTtarget have hT1 : 1 ≤ T := by have hh := (div_le_iff₀ hσ).mp hTtarget nlinarith only [hh, hσ, hσsmall, hTpos] have hTT : T ∈ Icc 0 T := ⟨hTpos.le, le_rfl⟩ have hNt : 1/2 ≤ scaledRay m v (r center) s₀ t₀ a ε T 2 := by have hh := (abs_le.mp (hN center T hTT)).1 linarith only [hh, hρ] have htarget := physical_size_ge_second m v (r center) (w center) hs₀ (ne_of_gt hε) (hm T hTT) (hv T hTT) (hmv T hTT) hNt hstate.1.le have htargetpos : 0 < ‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖ := lt_of_lt_of_le (div_pos (mul_pos hs₀ hstate.1) (by norm_num)) htarget refine ⟨htargetpos, ?_⟩ intro ξ τ hτ have hτT : τ ∈ Icc 0 T := ⟨hτ.1, hτ.2.trans hT1⟩ have hΘ2 : 1 ≤ Θ^2 := one_le_pow₀ hΘ have hσ2 : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] have hτ2 : τ^2 ≤ 1 := by nlinarith only [hτ.1, hτ.2] have hP₀ : |σ^2*τ^2| ≤ Θ^2 := by rw [abs_of_nonneg (by positivity : 0 ≤ σ^2*τ^2)] have hh := mul_le_mul hσ2 hτ2 (sq_nonneg τ) (by norm_num : (0:ℝ) ≤ 1) linarith only [hh, hΘ2] have hQ₀ : |-2*σ^2*τ| ≤ 2*Θ^2 := by rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg hτ.1] norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] have hh := mul_le_mul hσ2 hτ.2 hτ.1 (by norm_num : (0:ℝ) ≤ 1) linarith only [hh, hΘ2] have hupper := physical_size_le_scaled_state m v (r ξ) (w ξ) hs₀ hε hε1 (hm τ hτT) (hv τ hτT) (hmv τ hτT) (hrw ξ τ hτT) hΘ hρ0 hρ hP₀ hQ₀ (hP ξ τ hτT) (hQ ξ τ hτT) (hN ξ τ hτT) have hstates := (div_le_iff₀ hstate.1).mp (hstate.2 ξ τ hτ) have hs := mul_le_mul_of_nonneg_left hstates (show 0 ≤ 49*s₀*Θ^4 by positivity) have ht := mul_le_mul_of_nonneg_left htarget (show 0 ≤ 8232*exp 9*Θ^5*exp (-(1/(4*σ))) by positivity) apply (div_le_iff₀ htargetpos).mpr linarith only [hupper, hs, ht] end EulerPacketMovingFrame end end /-! ## From `Euler/PacketPhysicalCompression.lean` The text of `Euler/PacketPhysicalCompression.lean`, folded into this file, which was its only importer. -/ section /-! The source target-compression estimate for the actual next ray. -/ noncomputable section namespace EulerPacketMovingFrame open EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay EulerPacketFrameRenewal EulerPacketTargetCompression InnerProductSpace ContinuousLinearMap theorem normalizedCompression_eq (M : Space →L[ℝ] Space) (m v r : ℝ → Space) {s₀ t₀ a ε τ : ℝ} (hs₀ : s₀ ≠ 0) (hε : ε ≠ 0) (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hD : 0 < rayDenominator ε (scaledRay m v r s₀ t₀ a ε τ 0) (scaledRay m v r s₀ t₀ a ε τ 1) (scaledRay m v r s₀ t₀ a ε τ 2)) : let R := scaledRay m v r s₀ t₀ a ε τ normalizedCoupling M (r (physicalTime t₀ a ε τ)) (r (physicalTime t₀ a ε τ)) = quadraticForm3 (frameMatrix M (unit (m (physicalTime t₀ a ε τ))) (unit (v (physicalTime t₀ a ε τ)))) (R 0) (ε*R 1) (R 2)/rayDenominator ε (R 0) (R 1) (R 2) := by let R := scaledRay m v r s₀ t₀ a ε τ let p := unit (m (physicalTime t₀ a ε τ)) let q := unit (v (physicalTime t₀ a ε τ)) have hp : ⟪p,p⟫_ℝ = 1 := unit_inner_self hm have hq : ⟪q,q⟫_ℝ = 1 := unit_inner_self hv have hpq : ⟪p,q⟫_ℝ = 0 := unit_inner_zero hmv have hnum : ⟪r (physicalTime t₀ a ε τ),M (r (physicalTime t₀ a ε τ))⟫_ℝ = s₀^2*quadraticForm3 (frameMatrix M p q) (R 0) (ε*R 1) (R 2) := by have hf := frame_flux M p q (r (physicalTime t₀ a ε τ)) (r (physicalTime t₀ a ε τ)) hp hq hpq change (∑ i : Fin 3, movingRay m v r (physicalTime t₀ a ε τ) i* (∑ j : Fin 3, frameMatrix M p q i j*movingRay m v r (physicalTime t₀ a ε τ) j)) = _ at hf rw [← hf] simp_rw [← scaledRay_restore m v r hs₀ hε] norm_num [Fin.sum_univ_three, rayScale, quadraticForm3, Fin.ext_iff, R] ring have hnorm := scaledRay_norm_sq m v r hs₀ hε hm hv hmv have hden : ‖r (physicalTime t₀ a ε τ)‖*‖r (physicalTime t₀ a ε τ)‖ = s₀^2*rayDenominator ε (R 0) (R 1) (R 2) := by simpa only [pow_two] using hnorm rw [normalizedCoupling_eq, hnum, hden] have hDne := ne_of_gt hD dsimp only [R, p, q] field_simp theorem physical_parent_compression (B M E : Space →L[ℝ] Space) (h : ℝ) (m v r : ℝ → Space) {s₀ t₀ a ε τ : ℝ} (hs₀ : s₀ ≠ 0) (hε : ε ≠ 0) (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hD : 0 < rayDenominator ε (scaledRay m v r s₀ t₀ a ε τ 0) (scaledRay m v r s₀ t₀ a ε τ 1) (scaledRay m v r s₀ t₀ a ε τ 2)) (hparent : M = B+h • rankOne ℝ (unit (v (physicalTime t₀ a ε τ))) (unit (m (physicalTime t₀ a ε τ)))+E) : let R := scaledRay m v r s₀ t₀ a ε τ normalizedCoupling M (r (physicalTime t₀ a ε τ)) (r (physicalTime t₀ a ε τ)) ≤ h*ε*R 1*R 0/rayDenominator ε (R 0) (R 1) (R 2)+3*(‖B‖+‖E‖) := by have hp := unit_inner_self hm have hq := unit_inner_self hv have hpq := unit_inner_zero hmv rw [normalizedCompression_eq M m v r hs₀ hε hm hv hmv hD, hparent, frameMatrix_parent B E h _ _ hp hq hpq] apply parent_ray_compression hD intro i j exact (abs_add_le _ _).trans (add_le_add (frameMatrix_abs_le B _ _ hp hq hpq i j) (frameMatrix_abs_le E _ _ hp hq hpq i j)) theorem physical_target_compression (B M E : Space →L[ℝ] Space) (h : ℝ) (m v r : ℝ → Space) {s₀ t₀ a ε τ β Θ K e : ℝ} (hs₀ : s₀ ≠ 0) (hε : 0 < ε) (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) (hparent : M = B+h • rankOne ℝ (unit (v (physicalTime t₀ a ε τ))) (unit (m (physicalTime t₀ a ε τ)))+E) (hβ : 0 < β) (hβupper : β ≤ 1) (hτ : 0 < τ) (hτΘ : τ ≤ Θ) (hΘ : 1 ≤ Θ) (hK : 1 ≤ K) (he : 0 ≤ e) (hεe : ε ≤ e) (hh : 0 ≤ h) (hsmall : 1000000*K*e*Θ^40 ≤ 1) (hscale : 1 ≤ β*τ^2) (hP : |scaledRay m v r s₀ t₀ a ε τ 0-β*τ^2| ≤ 800*e*Θ^5) (hQ : |scaledRay m v r s₀ t₀ a ε τ 1+2*β*τ| ≤ 800*e*Θ^5) (hN : |scaledRay m v r s₀ t₀ a ε τ 2-1| ≤ 800*e*Θ^5) : normalizedCoupling M (r (physicalTime t₀ a ε τ)) (r (physicalTime t₀ a ε τ)) ≤ -(h*ε)/(10*τ)+3*(‖B‖+‖E‖) ∧ (30*(‖B‖+‖E‖)*τ < h*ε → normalizedCoupling M (r (physicalTime t₀ a ε τ)) (r (physicalTime t₀ a ε τ)) < 0) := by have hs := target_compression_order40 hβ hβupper hτ hτΘ hΘ hK he hε.le hεe hh hsmall hscale hP hQ hN have hb := physical_parent_compression B M E h m v r hs₀ (ne_of_gt hε) hm hv hmv hs.1 hparent have hbound := hb.trans (add_le_add hs.2 (le_refl (3*(‖B‖+‖E‖)))) refine ⟨hbound, ?_⟩ intro hdom have hd : 3*(‖B‖+‖E‖) < h*ε/(10*τ) := (lt_div_iff₀ (by positivity : 0 < 10*τ)).mpr (by linarith only [hdom]) rw [neg_div] at hbound linarith only [hbound, hd] end EulerPacketMovingFrame end end /-! ## From `Euler/PacketPropagationTime.lean` The text of `Euler/PacketPropagationTime.lean`, folded into this file, which was its only importer. -/ section /-! Exact transfer of relative propagation to physical time and its actual profile. -/ noncomputable section namespace EulerPacketMovingFrame open Set def scaledTime (t₀ a ε t : ℝ) : ℝ := (a/ε)*(t-t₀) def physicalProfile (Z : ℝ → ℝ) (t₀ a ε t : ℝ) : ℝ := Z (scaledTime t₀ a ε t) theorem physicalTime_scaledTime {t₀ a ε t : ℝ} (ha : a ≠ 0) (hε : ε ≠ 0) : physicalTime t₀ a ε (scaledTime t₀ a ε t) = t := by unfold physicalTime scaledTime field_simp ring theorem scaledTime_physicalTime {t₀ a ε τ : ℝ} (ha : a ≠ 0) (hε : ε ≠ 0) : scaledTime t₀ a ε (physicalTime t₀ a ε τ) = τ := by unfold physicalTime scaledTime field_simp ring theorem scaledTime_strictMono {t₀ a ε : ℝ} (ha : 0 < a) (hε : 0 < ε) : StrictMono (scaledTime t₀ a ε) := by intro s t hst exact mul_lt_mul_of_pos_left (sub_lt_sub_right hst t₀) (div_pos ha hε) theorem scaledTime_mem {t₀ a ε T t : ℝ} (ha : 0 < a) (hε : 0 < ε) (ht : t ∈ Icc t₀ (physicalTime t₀ a ε T)) : scaledTime t₀ a ε t ∈ Icc 0 T := by have hm := (scaledTime_strictMono (t₀ := t₀) ha hε).monotone have hl := hm ht.1 have hr := hm ht.2 simp only [scaledTime, sub_self, mul_zero] at hl rw [scaledTime_physicalTime (ne_of_gt ha) (ne_of_gt hε)] at hr exact ⟨hl, hr⟩ theorem physicalProfile_continuousOn {Z : ℝ → ℝ} {t₀ a ε T : ℝ} (ha : 0 < a) (hε : 0 < ε) (hZ : ContinuousOn Z (Icc 0 T)) : ContinuousOn (physicalProfile Z t₀ a ε) (Icc t₀ (physicalTime t₀ a ε T)) := by apply hZ.comp · unfold scaledTime fun_prop · intro t ht exact scaledTime_mem ha hε ht theorem physicalProfile_positive {Z : ℝ → ℝ} {t₀ a ε T : ℝ} (ha : 0 < a) (hε : 0 < ε) (hZ : ∀ t ∈ Icc 0 T, 0 < Z t) : ∀ t ∈ Icc t₀ (physicalTime t₀ a ε T), 0 < physicalProfile Z t₀ a ε t := by intro t ht exact hZ _ (scaledTime_mem ha hε ht) /-- This is only the exact change of the time variable in an already proved propagator estimate; its profile ratio is preserved. -/ theorem physical_propagation_of_scaled {E : Type*} [NormedAddCommGroup E] (w : ℝ → E) (Z : ℝ → ℝ) {t₀ a ε T C : ℝ} (ha : 0 < a) (hε : 0 < ε) (hbound : ∀ s t, 0 ≤ s → s ≤ t → t ≤ T → ‖w (physicalTime t₀ a ε t)‖ ≤ C*(Z t/Z s)*‖w (physicalTime t₀ a ε s)‖) : ∀ s t, s ∈ Icc t₀ (physicalTime t₀ a ε T) → t ∈ Icc t₀ (physicalTime t₀ a ε T) → s ≤ t → ‖w t‖ ≤ C*(physicalProfile Z t₀ a ε t/physicalProfile Z t₀ a ε s)*‖w s‖ := by intro s t hs ht hst have hs' := scaledTime_mem ha hε hs have ht' := scaledTime_mem ha hε ht have hst' := (scaledTime_strictMono (t₀ := t₀) ha hε).monotone hst have h := hbound _ _ hs'.1 hst' ht'.2 simpa only [physicalTime_scaledTime (ne_of_gt ha) (ne_of_gt hε), physicalProfile] using h end EulerPacketMovingFrame end end noncomputable section namespace EulerPacketMovingFrame open Set Real EulerSmoothLimit EulerPacketRay InnerProductSpace PhysicalGeometryData structure PhysicalGeometryConclusion {α : Type*} (D : PhysicalGeometryData α) (F F₁ Z Z₁ : ℝ → ℝ) : Prop where initial_values : F 0 = 1 ∧ F₁ 0 = 0 ∧ Z 0 = 1 ∧ Z₁ 0 = D.lam F_derivative : ∀ t, HasDerivAt F (F₁ t) t Z_derivative : ∀ t, HasDerivAt Z (Z₁ t) t F_flux : ∀ t, HasDerivAt (fun s => (1+(D.σ^2*s^2)^2)*F₁ s) (2*(1-D.σ^2*(D.σ^2*t^2))*F t) t Z_flux : ∀ t, HasDerivAt (fun s => (1+(D.σ^2*s^2)^2)*Z₁ s) (2*(1-D.σ^2*(D.σ^2*t^2))*Z t) t ray_control : ∀ ξ τ, τ ∈ Icc 0 D.H → norm3 (D.ray ξ τ 0-D.σ^2*τ^2) (D.ray ξ τ 1+2*D.σ^2*τ) (D.ray ξ τ 2-1) ≤ 800*D.error*D.Θ^5 ∧ 1/2 ≤ D.ray ξ τ 2 ∧ ⟪D.r ξ (D.time τ),D.w ξ (D.time τ)⟫_ℝ = 0 state_error : ∀ ξ τ, τ ∈ Icc 0 D.H → |D.velocity ξ τ 1-Z τ|+|D.velocity ξ τ 0+Z₁ τ| ≤ 400000000*D.error*D.Θ^29*(1+D.lam)*F τ relative_error : ∀ ξ τ, τ ∈ Icc 1 D.H → 0 < D.velocity ξ τ 1 ∧ |D.velocity ξ τ 1/Z τ-1| ≤ neighborStabilityConstant*D.error*D.Θ^29 ∧ |D.velocity ξ τ 0/D.velocity ξ τ 1+Z₁ τ/Z τ| ≤ 10*(neighborStabilityConstant*D.error*D.Θ^29) positive_pressure : ∀ ξ τ, τ ∈ Icc 1 D.H → 0 < ⟪D.r ξ (D.time τ),(D.M ξ (D.time τ)) (D.w ξ (D.time τ))⟫_ℝ target_positive : 0 < D.targetSize target_growth : D.s₀*exp (1/(4*D.σ)) ≤ 4*D.Θ*D.targetSize horizon_size : ∀ ξ τ, τ ∈ Icc 1 D.H → D.size ξ τ ≤ 64*exp 6*D.targetSize early_size : ∀ ξ τ, τ ∈ Icc 0 1 → D.size ξ τ/D.targetSize ≤ 8232*exp 9*D.Θ^5*exp (-(1/(4*D.σ))) next_frame : |D.nextCoupling/D.a-1| ≤ D.y^4+D.σ^2*D.y^2+8*D.σ*D.y^3+30000000*neighborStabilityConstant*D.error*D.Θ^40 ∧ |(D.y⁻¹)^2*D.nextTilt-1| ≤ 1500*D.σ+30000000*neighborStabilityConstant*D.error*D.Θ^40 compression_bound : D.nextCompression ≤ -(D.targetShear*D.ε)/(10*D.target)+3*(D.G+D.d) compression_negative : D.nextCompression < 0 amplitude_nonneg : 0 ≤ D.amplitude amplitude_normalization : D.amplitude*D.targetSize = D.δ*D.hchild amplitude_exponential : D.amplitude ≤ (4*D.Θ*D.δ*D.hchild/D.s₀)*exp (-(1/(4*D.σ))) amplitude_profile : ∀ τ ∈ Icc 0 D.H, D.amplitude*Z τ ≤ 8*exp 6*D.δ*D.hchild/D.s₀ amplitude_profile_sup : sSup ((fun τ => D.amplitude*Z τ) '' Icc 0 D.H) ≤ 8*exp 6*D.δ*D.hchild/D.s₀ physical_profile_continuous : ContinuousOn (physicalProfile Z D.t₀ D.a D.ε) (Icc D.t₀ (D.time D.H)) physical_profile_positive : ∀ t ∈ Icc D.t₀ (D.time D.H), 0 < physicalProfile Z D.t₀ D.a D.ε t tangent_propagator : ∀ ξ (u : ℝ → Space), (∀ t ∈ D.S, HasDerivWithinAt u (-(D.M ξ t) (u t)+(2*⟪D.r ξ t,(D.M ξ t) (u t)⟫_ℝ/‖D.r ξ t‖^2) • D.r ξ t) D.S t) → ⟪D.r ξ D.t₀,u D.t₀⟫_ℝ = 0 → ∀ s t, s ∈ Icc D.t₀ (D.time D.H) → t ∈ Icc D.t₀ (D.time D.H) → s ≤ t → ‖u t‖ ≤ (560*D.Θ^10/D.ε)* (physicalProfile Z D.t₀ D.a D.ε t/physicalProfile Z D.t₀ D.a D.ε s)*‖u s‖ theorem PhysicalGeometryData.exists_geometry {α : Type*} (D : PhysicalGeometryData α) : ∃ F F₁ Z Z₁ : ℝ → ℝ, PhysicalGeometryConclusion D F F₁ Z Z₁ := by have hK : 1 ≤ neighborStabilityConstant := (by norm_num : (1:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge obtain ⟨F, F₁, Z, Z₁, hF0, hF₁0, hZ0, hZ₁0, hF, hZ, hfluxF, hfluxZ, hray, herr, hrel, _⟩ := physical_family_amplification_and_size D.center D.sigma_pos D.sigma_small D.horizon_one D.horizon_le_Theta D.a_lower D.epsilon_pos D.Theta_lower D.G_lower D.d_nonneg D.ray_scale_pos D.slope_nonneg D.small D.time_maps D.M_continuous D.B_derivative D.old_ray_equation D.old_velocity_equation D.ray_equation D.velocity_equation D.old_ray_nonzero D.old_velocity_nonzero D.old_tangent D.initial_tangent D.B_bound D.B_derivative_bound D.E_bound D.parent_decomposition D.initial_coupling D.initial_tilt D.initial_shear D.initial_ray_error D.initial_velocity_error have hZ₁pos : 0 ≤ Z₁ 0 := by rw [hZ₁0]; exact D.slope_nonneg have hZpos := EulerPacketGrowth.equation30_global_positive D.sigma_pos D.sigma_small (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos have hsub : Icc (1:ℝ) D.H ⊆ Icc 0 D.H := fun _ ht => ⟨by linarith only [ht.1], ht.2⟩ have htarget : D.target ∈ Icc 0 D.H := ⟨D.target_pos.le, D.target_le_horizon⟩ have htarget1 : D.target ∈ Icc 1 D.H := ⟨D.target_one, D.target_le_horizon⟩ have hcoords (ξ : α) (τ : ℝ) (hτ : τ ∈ Icc 0 D.H) : |D.ray ξ τ 0-D.σ^2*τ^2| ≤ 800*D.error*D.Θ^5 ∧ |D.ray ξ τ 1-(-2*D.σ^2*τ)| ≤ 800*D.error*D.Θ^5 ∧ |D.ray ξ τ 2-1| ≤ 800*D.error*D.Θ^5 := by have hh : norm3 (D.ray ξ τ 0-D.σ^2*τ^2) (D.ray ξ τ 1+2*D.σ^2*τ) (D.ray ξ τ 2-1) ≤ 800*D.error*D.Θ^5 := (hray ξ τ hτ).1 rw [show D.ray ξ τ 1-(-2*D.σ^2*τ) = D.ray ξ τ 1+2*D.σ^2*τ by ring] dsimp [norm3] at hh constructor · linarith only [hh, abs_nonneg (D.ray ξ τ 1+2*D.σ^2*τ), abs_nonneg (D.ray ξ τ 2-1)] constructor · linarith only [hh, abs_nonneg (D.ray ξ τ 0-D.σ^2*τ^2), abs_nonneg (D.ray ξ τ 2-1)] · linarith only [hh, abs_nonneg (D.ray ξ τ 0-D.σ^2*τ^2), abs_nonneg (D.ray ξ τ 1+2*D.σ^2*τ)] have htcoords := hcoords D.center D.target htarget have htstate := hrel D.center D.target htarget1 have htframes := D.target_time_mem have hsizeTarget := physical_ideal_size_comparison_order40 D.m D.v (D.r D.center) (D.w D.center) D.ray_scale_pos D.epsilon_pos D.sigma_pos D.sigma_small (D.old_ray_nonzero _ htframes) (D.old_velocity_nonzero _ htframes) (D.old_tangent _ htframes) (hray D.center D.target htarget).2.2 D.Theta_lower hK D.error_nonneg D.epsilon_le_error D.small D.target_one D.target_le_Theta (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos htcoords.1 htcoords.2.1 htcoords.2.2 htstate.2.1 htstate.2.2 have hgrowth := physical_target_exponential_lower D.m D.v (D.r D.center) (D.w D.center) D.ray_scale_pos (ne_of_gt D.epsilon_pos) D.sigma_pos D.sigma_small D.target_from_sigma D.target_le_Theta (D.old_ray_nonzero _ htframes) (D.old_velocity_nonzero _ htframes) (D.old_tangent _ htframes) (hray D.center D.target htarget).2.1 (htstate.2.1.trans D.relative_error_small) (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos have hsize := physical_horizon_size_bound D.center (fun _ => D.m) (fun _ => D.v) D.r D.w D.ray_scale_pos D.epsilon_pos D.sigma_pos D.sigma_small D.target_one D.target_le_horizon D.horizon_le_Theta D.short_extension D.Theta_lower hK D.error_nonneg D.epsilon_le_error D.small (fun _ τ hτ => D.old_ray_nonzero _ (D.time_mem (hsub hτ))) (fun _ τ hτ => D.old_velocity_nonzero _ (D.time_mem (hsub hτ))) (fun _ τ hτ => D.old_tangent _ (D.time_mem (hsub hτ))) (fun ξ τ hτ => (hray ξ τ (hsub hτ)).2.2) (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos (fun ξ τ hτ => (hcoords ξ τ (hsub hτ)).1) (fun ξ τ hτ => (hcoords ξ τ (hsub hτ)).2.1) (fun ξ τ hτ => (hcoords ξ τ (hsub hτ)).2.2) (fun ξ τ hτ => (hrel ξ τ hτ).2.1) (fun ξ τ hτ => (hrel ξ τ hτ).2.2) have htoH : Icc (0:ℝ) D.target ⊆ Icc 0 D.H := fun _ ht => ⟨ht.1, ht.2.trans D.target_le_horizon⟩ have hearly := early_physical_size_suppression D.center D.m D.v D.r D.w D.ray_scale_pos D.epsilon_pos D.epsilon_le_one D.sigma_pos D.sigma_small D.Theta_lower D.target_le_Theta D.target_from_sigma D.slope_nonneg (show 0 ≤ 400000000*D.error*D.Θ^29 by positivity [D.error_nonneg, D.Theta_pos]) D.scalar_error_small (show 0 ≤ 800*D.error*D.Θ^5 by positivity [D.error_nonneg, D.Theta_pos]) D.ray_error_small (fun τ hτ => D.old_ray_nonzero _ (D.time_mem (htoH hτ))) (fun τ hτ => D.old_velocity_nonzero _ (D.time_mem (htoH hτ))) (fun τ hτ => D.old_tangent _ (D.time_mem (htoH hτ))) (fun ξ τ hτ => (hray ξ τ (htoH hτ)).2.2) (fun ξ τ hτ => (hcoords ξ τ (htoH hτ)).1) (fun ξ τ hτ => (hcoords ξ τ (htoH hτ)).2.1) (fun ξ τ hτ => (hcoords ξ τ (htoH hτ)).2.2) hF hZ hfluxF hfluxZ hF0 hF₁0 hZ0 hZ₁0 (fun ξ τ hτ => herr ξ τ (htoH hτ)) have hPeq : D.σ^2*D.target^2 = (D.y⁻¹)^2 := by dsimp [target] field_simp [ne_of_gt D.sigma_pos] have hQeq : 2*D.σ^2*D.target = 2*D.σ*D.y⁻¹ := by dsimp [target] field_simp [ne_of_gt D.sigma_pos] have hframeP : |D.ray D.center D.target 0-(D.y⁻¹)^2| ≤ 800*D.error*D.Θ^5 := by simpa only [hPeq] using htcoords.1 have hframeQ : |D.ray D.center D.target 1+2*D.σ*D.y⁻¹| ≤ 800*D.error*D.Θ^5 := by simpa only [neg_mul, sub_neg_eq_add, hQeq] using htcoords.2.1 have hframe := physical_frame_renewal_order40 (D.M D.center D.targetTime) D.m D.v (D.r D.center) (D.w D.center) (ne_of_gt D.a_pos) D.ray_scale_pos D.epsilon_pos (D.old_ray_nonzero _ htframes) (D.old_velocity_nonzero _ htframes) (D.old_tangent _ htframes) (hray D.center D.target htarget).2.2 htstate.1 D.sigma_pos D.sigma_small D.y_pos D.y_small D.Theta_lower hK D.error_nonneg D.epsilon_le_error D.target_le_Theta D.small (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos hframeP hframeQ htcoords.2.2 htstate.2.2 (D.action_error D.center htarget) have hcompressQ : |D.ray D.center D.target 1+2*D.σ^2*D.target| ≤ 800*D.error*D.Θ^5 := by simpa only [neg_mul, sub_neg_eq_add] using htcoords.2.1 have hcomp := physical_target_compression (D.B D.targetTime) (D.M D.center D.targetTime) (D.E D.center D.targetTime) D.targetShear D.m D.v (D.r D.center) (ne_of_gt D.ray_scale_pos) D.epsilon_pos (D.old_ray_nonzero _ htframes) (D.old_velocity_nonzero _ htframes) (D.old_tangent _ htframes) (D.parent_decomposition D.center _ htframes) (sq_pos_of_pos D.sigma_pos) (by nlinarith only [D.sigma_pos, D.sigma_small] : D.σ^2 ≤ 1) D.target_pos D.target_le_Theta D.Theta_lower hK D.error_nonneg D.epsilon_le_error D.target_shear_pos.le D.small D.target_scale htcoords.1 hcompressQ htcoords.2.2 have hampProfile := primaryAmplitude_profile_bound (D.r D.center) (D.w D.center) (targetTime := D.targetTime) D.delta_nonneg D.child_nonneg D.ray_scale_pos D.sigma_pos D.sigma_small D.target_one D.short_extension (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos hsizeTarget.1 have hzcont : ContinuousOn Z (Icc 0 D.H) := fun t ht => (hZ t).continuousAt.continuousWithinAt refine ⟨F, F₁, Z, Z₁, { initial_values := ⟨hF0, hF₁0, hZ0, hZ₁0⟩ F_derivative := hF Z_derivative := hZ F_flux := hfluxF Z_flux := hfluxZ ray_control := hray state_error := herr relative_error := hrel positive_pressure := ?_ target_positive := hgrowth.1 target_growth := hgrowth.2 horizon_size := hsize early_size := hearly.2 next_frame := hframe compression_bound := ?_ compression_negative := hcomp.2 D.compression_domination amplitude_nonneg := primaryAmplitude_nonneg _ _ _ _ _ D.delta_nonneg D.child_nonneg amplitude_normalization := primaryAmplitude_target_identity _ _ _ _ _ hgrowth.1 amplitude_exponential := primaryAmplitude_exponential_bound _ _ D.delta_nonneg D.child_nonneg D.ray_scale_pos D.Theta_pos hgrowth.2 amplitude_profile := hampProfile amplitude_profile_sup := ?_ physical_profile_continuous := physicalProfile_continuousOn D.a_pos D.epsilon_pos hzcont physical_profile_positive := physicalProfile_positive D.a_pos D.epsilon_pos (fun t ht => hZpos t ht.1) tangent_propagator := ?_ }⟩ · intro ξ τ hτ have hp := hcoords ξ τ (hsub hτ) have hv := hrel ξ τ hτ exact (physical_pressure_positive_order40 (D.M ξ (D.time τ)) D.m D.v (D.r ξ) (D.w ξ) D.a_pos D.ray_scale_pos D.epsilon_pos (D.old_ray_nonzero _ (D.time_mem (hsub hτ))) (D.old_velocity_nonzero _ (D.time_mem (hsub hτ))) (D.old_tangent _ (D.time_mem (hsub hτ))) (hray ξ τ (hsub hτ)).2.2 hv.1 D.sigma_pos D.sigma_small D.Theta_lower hK D.error_nonneg D.sigma_Theta hτ.1 (hτ.2.trans D.horizon_le_Theta) D.small (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos hp.1 hp.2.1 hp.2.2 hv.2.2 (D.action_error ξ (hsub hτ))).2 · have hn := add_le_add (D.B_bound _ htframes) (D.E_bound D.center _ htframes) exact hcomp.1.trans (by linarith only [hn]) · apply csSup_le · exact ⟨D.amplitude*Z 0, 0, ⟨le_rfl, D.horizon_pos.le⟩, rfl⟩ · rintro _ ⟨τ, hτ, rfl⟩ exact hampProfile τ hτ · intro ξ u hu hutangent have hp := physical_tangent_propagator D.sigma_pos D.sigma_small D.horizon_pos D.horizon_le_Theta D.a_lower D.epsilon_pos D.Theta_lower D.G_lower D.d_nonneg (ne_of_gt D.ray_scale_pos) D.propagator_small D.time_maps (D.M_continuous ξ) D.B_derivative D.old_ray_equation D.old_velocity_equation (D.ray_equation ξ) hu D.old_ray_nonzero D.old_velocity_nonzero D.old_tangent hutangent D.B_bound D.B_derivative_bound (D.E_bound ξ) (D.parent_decomposition ξ) D.initial_coupling D.initial_tilt D.initial_shear (D.initial_ray_error ξ) (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 hZ₁pos exact physical_propagation_of_scaled u Z D.a_pos D.epsilon_pos hp.2.2 end EulerPacketMovingFrame