import Euler.PacketPhysicalStage import Euler.PacketNeighborControlled import Euler.PacketBeforeTargetSize import Euler.EulerProof /-! Uniform neighboring amplification and before-target size control from the actual physical equations. The scalar reference is shared by uniqueness, so its choice is independent of the physical label. -/ /-! ## From `Euler/PacketPhysicalNeighbor.lean` The text of `Euler/PacketPhysicalNeighbor.lean`, folded into this file, which was its only importer. -/ section /-! Actual neighboring physical primaries satisfy the amplification estimate with their genuine initial discrepancy. The source moving frame is the center frame. Its neighboring matrix perturbation is part of the actual parent error; all scaled coefficient and ray bounds are derived here. -/ noncomputable section namespace EulerPacketMovingFrame open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay EulerPacketStage EulerPacketPerturbation InnerProductSpace ContinuousLinearMap theorem physical_neighbor_stage_references {B B₁ M E : ℝ → Space →L[ℝ] Space} {m v r w : ℝ → Space} {c s₀ t₀ a ε σ Θ T G d lam : ℝ} {S : Set ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT0 : 0 < T) (hT : T ≤ Θ) (ha : 1/2 ≤ a) (hε : 0 < ε) (hΘ : 1 ≤ Θ) (hG : 1 ≤ G) (hd : 0 ≤ d) (hs₀ : s₀ ≠ 0) (hlam : 0 ≤ lam) (hsmall : 1000000*neighborStabilityConstant*(16*(ε*Θ*(4*G)^2+d))*Θ^40 ≤ 1) (hmap : MapsTo (physicalTime t₀ a ε) (Icc 0 Θ) S) (hMc : ContinuousOn M S) (hBd : ∀ t ∈ S, HasDerivWithinAt B (B₁ t) S t) (hmd : ∀ t ∈ S, HasDerivWithinAt m (-(B t).adjoint (m t)) S t) (hvd : ∀ t ∈ S, HasDerivWithinAt v (-(B t) (v t)+ (2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) S t) (hrd : ∀ t ∈ S, HasDerivWithinAt r (-(M t).adjoint (r t)) S t) (hwd : ∀ t ∈ S, HasDerivWithinAt w (-(M t) (w t)+ (2*⟪r t,(M t) (w t)⟫_ℝ/‖r t‖^2) • r t) S t) (hm0 : ∀ t ∈ S, m t ≠ 0) (hv0 : ∀ t ∈ S, v t ≠ 0) (hmv : ∀ t ∈ S, ⟪m t,v t⟫_ℝ = 0) (hrw0 : ⟪r t₀,w t₀⟫_ℝ = 0) (hB : ∀ t ∈ S, ‖B t‖ ≤ G) (hB₁ : ∀ t ∈ S, ‖B₁ t‖ ≤ G^2) (hE : ∀ t ∈ S, ‖E t‖ ≤ d) (hparent : ∀ t ∈ S, M t = B t+ primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))+E t) (hb0 : rescaledFrame B m v t₀ a ε 0 0 1 = a) (hk0 : rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2) (hh0 : rescaledShear c m v t₀ a ε 0 = a/ε^2) (hrInitial : 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)) (hvelocityInitial : |scaledVelocity m v w t₀ a ε 0 1-1|+ |scaledVelocity m v w t₀ a ε 0 0+lam| ≤ 16*(ε*Θ*(4*G)^2+d)) : let e := 16*(ε*Θ*(4*G)^2+d) let U := fun τ => scaledVelocity m v w t₀ a ε τ 0 let V := fun τ => scaledVelocity m v w t₀ a ε τ 1 (∀ τ ∈ Icc 0 T, norm3 (scaledRay m v r s₀ t₀ a ε τ 0-σ^2*τ^2) (scaledRay m v r s₀ t₀ a ε τ 1+2*σ^2*τ) (scaledRay m v r s₀ t₀ a ε τ 2-1) ≤ 800*e*Θ^5 ∧ 1/2 ≤ scaledRay m v r s₀ t₀ a ε τ 2 ∧ ⟪r (physicalTime t₀ a ε τ), w (physicalTime t₀ a ε τ)⟫_ℝ = 0) ∧ ∃ F F₁ Z Z₁ : ℝ → ℝ, F 0 = 1 ∧ F₁ 0 = 0 ∧ Z 0 = 1 ∧ Z₁ 0 = lam ∧ (∀ t, HasDerivAt F (F₁ t) t) ∧ (∀ t, HasDerivAt Z (Z₁ t) t) ∧ (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) (2*(1-σ^2*(σ^2*t^2))*F t) t) ∧ (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) ∧ (∀ t ∈ Icc 0 T, |V t-Z t|+|U t+Z₁ t| ≤ 400000000*e*Θ^29*(1+lam)*F t) ∧ (∀ t ∈ Icc 1 T, 0 < V t ∧ |V t/Z t-1| ≤ neighborStabilityConstant*e*Θ^29 ∧ |U t/V t+Z₁ t/Z t| ≤ 10*(neighborStabilityConstant*e*Θ^29)) := by let e := 16*(ε*Θ*(4*G)^2+d) let Rp := scaledRay m v r s₀ t₀ a ε let Vp := scaledVelocity m v w t₀ a ε let Mf := rescaledFrame M m v t₀ a ε let Bf := rescaledFrame B m v t₀ a ε let Rmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledRayEntry a ε (Mf τ) (frameSkew (Bf τ)) let Amat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledVelocityEntry a ε (Mf τ) let Cmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledVelocityEntry a ε (fun i j => Mf τ i j+frameSkew (Bf τ) i j) have he : 0 ≤ e := by dsimp [e]; positivity have hΘ0 : 0 ≤ Θ := by linarith have hK : 1 ≤ neighborStabilityConstant := le_trans (by norm_num) neighborStabilityConstant_ge have hbase : 1000000*e*Θ^40 ≤ 1 := by have hnonneg := mul_nonneg (sub_nonneg.mpr hK) (mul_nonneg he (pow_nonneg hΘ0 40)) change 1000000*neighborStabilityConstant*e*Θ^40 ≤ 1 at hsmall linarith only [hsmall, hnonneg] have heΘ : e ≤ e*Θ^40 := by simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^40) he have heSmall : e ≤ 1 := by linarith only [hbase, heΘ, he] have hpow : e*Θ^5 ≤ e*Θ^40 := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 40)) he have hsmallRay : 400*(4*e)*Θ^5 ≤ 1 := by linarith only [hbase, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] have ha0 : 0 < a := by linarith have hσsq : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] have herr := physical_matrix_errors ha hε hΘ hG hd heSmall hmap hBd hmd hvd hm0 hv0 hmv hB hB₁ hE hparent hb0 hk0 hh0 have hsub : Icc (0:ℝ) T ⊆ Icc 0 Θ := fun _ ht => ⟨ht.1, ht.2.trans hT⟩ have hmapT : MapsTo (physicalTime t₀ a ε) (Icc 0 T) S := fun _ ht => hmap (hsub ht) have hMf : ∀ i j, ContinuousOn (fun τ => Mf τ i j) (Icc 0 T) := rescaledFrame_continuousOn B M hmapT hMc hmd hvd hm0 hv0 hmv have hBf : ∀ i j, ContinuousOn (fun τ => Bf τ i j) (Icc 0 T) := rescaledFrame_continuousOn B B hmapT (fun t ht => (hBd t ht).continuousWithinAt) hmd hvd hm0 hv0 hmv have hSf := frameSkew_continuousOn hBf have hRmc : ∀ i j, ContinuousOn (fun τ => Rmat τ i j) (Icc 0 T) := scaledRayEntry_continuousOn a ε hMf hSf have hAmc : ∀ i j, ContinuousOn (fun τ => Amat τ i j) (Icc 0 T) := scaledVelocityEntry_continuousOn a ε hMf have hCmc : ∀ i j, ContinuousOn (fun τ => Cmat τ i j) (Icc 0 T) := scaledVelocityEntry_continuousOn a ε (fun i j => (hMf i j).add (hSf i j)) have hRode : ∀ i τ, τ ∈ Icc 0 T → HasDerivWithinAt (fun s => Rp s i) (∑ j : Fin 3, Rmat τ i j*Rp τ j) (Icc 0 T) τ := by intro i τ hτ have ht := hmapT hτ exact scaledRay_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) (M (physicalTime t₀ a ε τ)) (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT (hmd _ ht) (hvd _ ht) (hrd _ ht) (hm0 _ ht) (hv0 _ ht) (hmv _ ht) i have hP : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 0) (Rmat τ 0 0*Rp τ 0+Rmat τ 0 1*Rp τ 1+Rmat τ 0 2*Rp τ 2) (Icc 0 T) τ := by intro τ hτ simpa only [Fin.sum_univ_three] using hRode 0 τ hτ have hQ : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 1) (Rmat τ 1 0*Rp τ 0+Rmat τ 1 1*Rp τ 1+Rmat τ 1 2*Rp τ 2) (Icc 0 T) τ := by intro τ hτ simpa only [Fin.sum_univ_three] using hRode 1 τ hτ have hN : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 2) (Rmat τ 2 0*Rp τ 0+Rmat τ 2 1*Rp τ 1+Rmat τ 2 2*Rp τ 2) (Icc 0 T) τ := by intro τ hτ simpa only [Fin.sum_univ_three] using hRode 2 τ hτ have hRclose : ∀ τ ∈ Icc 0 T, ∀ i j, |Rmat τ i j-idealRayEntry (σ^2) i j| ≤ 4*e := fun τ hτ => (herr.2 τ (hsub hτ)).1 have hnear := ray_closeness_within (sq_nonneg σ) hσsq hΘ hT0 hT (mul_nonneg (by norm_num : (0:ℝ) ≤ 4) he) hsmallRay hRmc hP hQ hN hRclose (hrInitial.trans (show e ≤ 4*e by linarith)) have hrnonzero : ∀ τ ∈ Icc 0 T, r (physicalTime t₀ a ε τ) ≠ 0 := by intro τ hτ hzero have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] apply hNne simp only [Rp, scaledRay, movingRay, hzero, inner_zero_right, zero_div] have hpair := rescaled_tangentPairing_zero M hmapT hrd hwd hrnonzero hrw0 have hUV : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Vp s 0) (velocityFirstRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ ∧ HasDerivWithinAt (fun s => Vp s 1) (velocitySecondRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ := by intro τ hτ have ht := hmapT hτ have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] exact scaledVelocity_firstTwo_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) (M (physicalTime t₀ a ε τ)) (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT (hmd _ ht) (hvd _ ht) (hwd _ ht) (hm0 _ ht) (hv0 _ ht) (hmv _ ht) (hrnonzero τ hτ) (hpair τ hτ) hNne refine ⟨?_, ?_⟩ · intro τ hτ refine ⟨?_, (hnear τ hτ).2, hpair τ hτ⟩ linarith only [(hnear τ hτ).1] · exact controlled_neighbor_stage_references_within hσ hσsmall hΘ hT0 hT he hε.le herr.1 hlam hsmall hRmc hAmc hCmc hP hQ hN (fun τ hτ => (hUV τ hτ).1) (fun τ hτ => (hUV τ hτ).2) hRclose (fun τ hτ => (herr.2 τ (hsub hτ)).2.1) (fun τ hτ => (herr.2 τ (hsub hτ)).2.2) hrInitial hvelocityInitial end EulerPacketMovingFrame end end /-! ## From `Euler/PacketScalarUniqueness.lean` The text of `Euler/PacketScalarUniqueness.lean`, folded into this file, which was its only importer. -/ section /-! Uniqueness of the actual scalar comparison equation, including its state. -/ noncomputable section namespace EulerPacketMovingFrame open Set EulerPacketGrowth EulerPacketExistence /-- The scalar equation and its initial state determine both state components on the forward half-line. This lets independently constructed neighbor comparisons use one common reference. -/ theorem equation30_state_eq_of_initial {σ : ℝ} {Z Z₁ W W₁ : ℝ → ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) (hW : ∀ t, 0 ≤ t → HasDerivAt W (W₁ 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) (hfluxW : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*W₁ s) (2*(1-σ^2*(σ^2*t^2))*W t) t) (hi : Z 0 = W 0) (hi₁ : Z₁ 0 = W₁ 0) : ∀ t, 0 ≤ t → Z t = W t ∧ Z₁ t = W₁ t := by have hσ2 : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] obtain ⟨F, F₁, hF0, hF₁0, hF, hfluxF⟩ := equation30_exists_global (sq_nonneg σ) hσ2 1 0 intro t ht have hdiff : ∀ s ∈ Icc 0 t, HasDerivAt (fun x => Z x-W x) (Z₁ s-W₁ s) s := by intro s hs exact (hZ s hs.1).sub (hW s hs.1) have hfluxdiff : ∀ s ∈ Icc 0 t, HasDerivAt (fun x => (1+(σ^2*x^2)^2)*(Z₁ x-W₁ x)) (2*(1-σ^2*(σ^2*s^2))*(Z s-W s)) s := by intro s hs convert! (hfluxZ s hs.1).sub (hfluxW s hs.1) using 1 · ext x dsimp only [Pi.sub_apply] ring · ring have hb := equation30_relative_propagator hσ hσsmall (le_max_left 1 t) (by norm_num : (0:ℝ) ≤ 0) ht (le_max_right 1 t) (fun s _ => hF s) (fun s _ => hfluxF s) hF0 hF₁0 hdiff hfluxdiff simp only [hi, hi₁, sub_self, abs_zero, add_zero, mul_zero] at hb have hz : |Z t-W t| = 0 := by linarith only [hb, abs_nonneg (Z t-W t), abs_nonneg (Z₁ t-W₁ t)] have hz₁ : |Z₁ t-W₁ t| = 0 := by linarith only [hb, abs_nonneg (Z t-W t), abs_nonneg (Z₁ t-W₁ t)] exact ⟨sub_eq_zero.mp (abs_eq_zero.mp hz), sub_eq_zero.mp (abs_eq_zero.mp hz₁)⟩ end EulerPacketMovingFrame end end noncomputable section namespace EulerPacketMovingFrame open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay InnerProductSpace ContinuousLinearMap theorem physical_family_amplification_and_size {α : Type*} (center : α) {B B₁ : ℝ → Space →L[ℝ] Space} {M E : α → ℝ → Space →L[ℝ] Space} {m v : ℝ → Space} {r w : α → ℝ → Space} {c s₀ t₀ a ε σ Θ T G d lam : ℝ} {S : Set ℝ} (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT0 : 1 ≤ T) (hT : T ≤ Θ) (ha : 1/2 ≤ a) (hε : 0 < ε) (hΘ : 1 ≤ Θ) (hG : 1 ≤ G) (hd : 0 ≤ d) (hs₀ : 0 < s₀) (hlam : 0 ≤ lam) (hsmall : 1000000*neighborStabilityConstant*(16*(ε*Θ*(4*G)^2+d))*Θ^40 ≤ 1) (hmap : MapsTo (physicalTime t₀ a ε) (Icc 0 Θ) S) (hMc : ∀ ξ, ContinuousOn (M ξ) S) (hBd : ∀ t ∈ S, HasDerivWithinAt B (B₁ t) S t) (hmd : ∀ t ∈ S, HasDerivWithinAt m (-(B t).adjoint (m t)) S t) (hvd : ∀ t ∈ S, HasDerivWithinAt v (-(B t) (v t)+ (2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) S t) (hrd : ∀ ξ t, t ∈ S → HasDerivWithinAt (r ξ) (-(M ξ t).adjoint (r ξ t)) S t) (hwd : ∀ ξ t, t ∈ S → HasDerivWithinAt (w ξ) (-(M ξ t) (w ξ t)+ (2*⟪r ξ t,(M ξ t) (w ξ t)⟫_ℝ/‖r ξ t‖^2) • r ξ t) S t) (hm0 : ∀ t ∈ S, m t ≠ 0) (hv0 : ∀ t ∈ S, v t ≠ 0) (hmv : ∀ t ∈ S, ⟪m t,v t⟫_ℝ = 0) (hrw0 : ∀ ξ, ⟪r ξ t₀,w ξ t₀⟫_ℝ = 0) (hB : ∀ t ∈ S, ‖B t‖ ≤ G) (hB₁ : ∀ t ∈ S, ‖B₁ t‖ ≤ G^2) (hE : ∀ ξ t, t ∈ S → ‖E ξ t‖ ≤ d) (hparent : ∀ ξ t, t ∈ S → M ξ t = B t+ primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))+E ξ t) (hb0 : rescaledFrame B m v t₀ a ε 0 0 1 = a) (hk0 : rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2) (hh0 : rescaledShear c m v t₀ a ε 0 = a/ε^2) (hrInitial : ∀ ξ, 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)) (hvelocityInitial : ∀ ξ, |scaledVelocity m v (w ξ) t₀ a ε 0 1-1|+ |scaledVelocity m v (w ξ) t₀ a ε 0 0+lam| ≤ 16*(ε*Θ*(4*G)^2+d)) : let e := 16*(ε*Θ*(4*G)^2+d) ∃ F F₁ Z Z₁ : ℝ → ℝ, F 0 = 1 ∧ F₁ 0 = 0 ∧ Z 0 = 1 ∧ Z₁ 0 = lam ∧ (∀ t, HasDerivAt F (F₁ t) t) ∧ (∀ t, HasDerivAt Z (Z₁ t) t) ∧ (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) (2*(1-σ^2*(σ^2*t^2))*F t) t) ∧ (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) (2*(1-σ^2*(σ^2*t^2))*Z t) t) ∧ (∀ ξ τ, τ ∈ Icc 0 T → norm3 (scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2) (scaledRay m v (r ξ) s₀ t₀ a ε τ 1+2*σ^2*τ) (scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1) ≤ 800*e*Θ^5 ∧ 1/2 ≤ scaledRay m v (r ξ) s₀ t₀ a ε τ 2 ∧ ⟪r ξ (physicalTime t₀ a ε τ), w ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) ∧ (∀ ξ τ, τ ∈ Icc 0 T → |scaledVelocity m v (w ξ) t₀ a ε τ 1-Z τ|+ |scaledVelocity m v (w ξ) t₀ a ε τ 0+Z₁ τ| ≤ 400000000*e*Θ^29*(1+lam)*F τ) ∧ (∀ ξ τ, τ ∈ Icc 1 T → 0 < scaledVelocity m v (w ξ) t₀ a ε τ 1 ∧ |scaledVelocity m v (w ξ) t₀ a ε τ 1/Z τ-1| ≤ neighborStabilityConstant*e*Θ^29 ∧ |scaledVelocity m v (w ξ) t₀ a ε τ 0/scaledVelocity m v (w ξ) t₀ a ε τ 1+Z₁ τ/Z τ| ≤ 10*(neighborStabilityConstant*e*Θ^29)) ∧ (∀ ξ τ, τ ∈ Icc 1 T → ‖r ξ (physicalTime t₀ a ε τ)‖*‖w ξ (physicalTime t₀ a ε τ)‖ ≤ 64*(‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖)) := by let e := 16*(ε*Θ*(4*G)^2+d) have hTpos : 0 < T := by linarith only [hT0] have hall (ξ : α) := physical_neighbor_stage_references hσ hσsmall hTpos hT ha hε hΘ hG hd (ne_of_gt hs₀) hlam hsmall hmap (hMc ξ) hBd hmd hvd (hrd ξ) (hwd ξ) hm0 hv0 hmv (hrw0 ξ) hB hB₁ (hE ξ) (hparent ξ) hb0 hk0 hh0 (hrInitial ξ) (hvelocityInitial ξ) obtain ⟨_, F, F₁, Z, Z₁, hF0, hF₁0, hZ0, hZ₁0, hF, hZ, hfluxF, hfluxZ, _, _⟩ := hall center have hcommon (ξ : α) : (∀ τ ∈ Icc 0 T, norm3 (scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2) (scaledRay m v (r ξ) s₀ t₀ a ε τ 1+2*σ^2*τ) (scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1) ≤ 800*e*Θ^5 ∧ 1/2 ≤ scaledRay m v (r ξ) s₀ t₀ a ε τ 2 ∧ ⟪r ξ (physicalTime t₀ a ε τ), w ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) ∧ (∀ τ ∈ Icc 0 T, |scaledVelocity m v (w ξ) t₀ a ε τ 1-Z τ|+ |scaledVelocity m v (w ξ) t₀ a ε τ 0+Z₁ τ| ≤ 400000000*e*Θ^29*(1+lam)*F τ) ∧ (∀ τ ∈ Icc 1 T, 0 < scaledVelocity m v (w ξ) t₀ a ε τ 1 ∧ |scaledVelocity m v (w ξ) t₀ a ε τ 1/Z τ-1| ≤ neighborStabilityConstant*e*Θ^29 ∧ |scaledVelocity m v (w ξ) t₀ a ε τ 0/scaledVelocity m v (w ξ) t₀ a ε τ 1+Z₁ τ/Z τ| ≤ 10*(neighborStabilityConstant*e*Θ^29)) := by obtain ⟨hray, F', F₁', Z', Z₁', hF0', hF₁0', hZ0', hZ₁0', hF', hZ', hfluxF', hfluxZ', herr, hrel⟩ := hall ξ have hFeq := equation30_state_eq_of_initial hσ hσsmall (fun t _ => hF' t) (fun t _ => hF t) (fun t _ => hfluxF' t) (fun t _ => hfluxF t) (hF0'.trans hF0.symm) (hF₁0'.trans hF₁0.symm) have hZeq := equation30_state_eq_of_initial hσ hσsmall (fun t _ => hZ' t) (fun t _ => hZ t) (fun t _ => hfluxZ' t) (fun t _ => hfluxZ t) (hZ0'.trans hZ0.symm) (hZ₁0'.trans hZ₁0.symm) refine ⟨hray, ?_, ?_⟩ · intro τ hτ simpa only [(hFeq τ hτ.1).1, (hZeq τ hτ.1).1, (hZeq τ hτ.1).2] using herr τ hτ · intro τ hτ have ht0 : 0 ≤ τ := by linarith only [hτ.1] simpa only [(hZeq τ ht0).1, (hZeq τ ht0).2] using hrel τ hτ refine ⟨F, F₁, Z, Z₁, hF0, hF₁0, hZ0, hZ₁0, hF, hZ, hfluxF, hfluxZ, (fun ξ => (hcommon ξ).1), (fun ξ => (hcommon ξ).2.1), (fun ξ => (hcommon ξ).2.2), ?_⟩ have he : 0 ≤ e := by dsimp [e]; positivity have hεe : ε ≤ e := by have hg : 1 ≤ (4*G)^2 := by linarith only [hG, sq_nonneg (G-1)] have hc : 1 ≤ Θ*(4*G)^2 := by simpa only [one_mul] using mul_le_mul hΘ hg (by norm_num : (0:ℝ) ≤ 1) (by linarith only [hΘ] : 0 ≤ Θ) have hh := mul_le_mul_of_nonneg_left hc hε.le dsimp [e] linarith only [hh, hd, hε] have hK : 1 ≤ neighborStabilityConstant := (by norm_num : (1:ℝ) ≤ 1000000000).trans neighborStabilityConstant_ge have hsub : Icc (1:ℝ) T ⊆ Icc 0 T := fun _ ht => ⟨by linarith only [ht.1], ht.2⟩ have htime {τ : ℝ} (hτ : τ ∈ Icc 1 T) : physicalTime t₀ a ε τ ∈ S := hmap ⟨(hsub hτ).1, hτ.2.trans hT⟩ have hrays (ξ : α) (τ : ℝ) (hτ : τ ∈ Icc 1 T) : |scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2| ≤ 800*e*Θ^5 ∧ |scaledRay m v (r ξ) s₀ t₀ a ε τ 1-(-2*σ^2*τ)| ≤ 800*e*Θ^5 ∧ |scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1| ≤ 800*e*Θ^5 := by have hh := ((hcommon ξ).1 τ (hsub hτ)).1 unfold norm3 at hh have hqeq : scaledRay m v (r ξ) s₀ t₀ a ε τ 1-(-2*σ^2*τ) = scaledRay m v (r ξ) s₀ t₀ a ε τ 1+2*σ^2*τ := by ring rw [hqeq] constructor · linarith only [hh, abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 1+2*σ^2*τ), abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1)] constructor · linarith only [hh, abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2), abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 2-1)] · linarith only [hh, abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2), abs_nonneg (scaledRay m v (r ξ) s₀ t₀ a ε τ 1+2*σ^2*τ)] exact physical_before_target_size_bound center (fun _ => m) (fun _ => v) r w hs₀ hε hσ hσsmall hT0 hT hΘ hK he hεe hsmall (fun _ _ hτ => hm0 _ (htime hτ)) (fun _ _ hτ => hv0 _ (htime hτ)) (fun _ _ hτ => hmv _ (htime hτ)) (fun ξ τ hτ => ((hcommon ξ).1 τ (hsub hτ)).2.2) (fun t _ => hZ t) (fun t _ => hfluxZ t) hZ0 (by rw [hZ₁0]; exact hlam) (fun ξ τ hτ => (hrays ξ τ hτ).1) (fun ξ τ hτ => (hrays ξ τ hτ).2.1) (fun ξ τ hτ => (hrays ξ τ hτ).2.2) (fun ξ τ hτ => ((hcommon ξ).2.2 τ hτ).2.1) (fun ξ τ hτ => ((hcommon ξ).2.2 τ hτ).2.2) end EulerPacketMovingFrame