Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.PacketPhysicalStage |
| 2 | import Euler.PacketNeighborControlled |
| 3 | import Euler.EulerProof |
| 4 | import Euler.PacketNeighborStability |
| 5 | import Euler.PacketPhysicalNormBounds |
| 6 | |
| 7 | /-! |
| 8 | The arbitrary physical tangent propagator has polynomial loss relative to |
| 9 | the actual primary scalar profile. All scaled coefficients and tangency |
| 10 | properties are derived from the physical ODEs and parent decomposition. |
| 11 | -/ |
| 12 | |
| 13 | /-! ## From `Euler/PacketVelocityPropagator.lean` |
| 14 | |
| 15 | The text of `Euler/PacketVelocityPropagator.lean`, folded into this file, which was its only importer. -/ |
| 16 | |
| 17 | section |
| 18 | |
| 19 | /-! Relative propagator estimates on arbitrary subintervals for actual velocity states. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | |
| 24 | namespace EulerPacketMovingFrame |
| 25 | |
| 26 | open Set EulerPacketBridge EulerPacketPerturbation EulerClosedIntervalDerivativeExtension |
| 27 | |
| 28 | theorem velocity_propagator_bound |
| 29 | {σ Θ s t δ : ℝ} {F F₁ G G₁ U U₁ V V₁ : ℝ → ℝ} |
| 30 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) |
| 31 | (hs : 0 ≤ s) (hst : s ≤ t) (ht : t ≤ Θ) (hδ : 0 ≤ δ) |
| 32 | (hsmall : 20*Θ^8*δ*(t-s) ≤ 1/2) |
| 33 | (hF : ∀ x, 0 ≤ x → HasDerivAt F (F₁ x) x) |
| 34 | (hG : ∀ x, 0 ≤ x → HasDerivAt G (G₁ x) x) |
| 35 | (hfluxF : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*F₁ u) |
| 36 | (2*(1-σ^2*(σ^2*x^2))*F x) x) |
| 37 | (hfluxG : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*G₁ u) |
| 38 | (2*(1-σ^2*(σ^2*x^2))*G x) x) |
| 39 | (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hG₁0 : G₁ 0 = 1) |
| 40 | (hU : ∀ x ∈ Icc s t, HasDerivAt U (U₁ x) x) |
| 41 | (hV : ∀ x ∈ Icc s t, HasDerivAt V (V₁ x) x) |
| 42 | (hU₁c : ContinuousOn U₁ (Icc s t)) (hV₁c : ContinuousOn V₁ (Icc s t)) |
| 43 | (herror : ∀ x ∈ Icc s t, |
| 44 | |U₁ x-idealVelocityFirst (σ^2) x (U x) (V x)|+|V₁ x+U x| ≤ δ*(|U x|+|V x|)) : |
| 45 | |U t|+|V t| ≤ 40*Θ^8*(F t/F s)*(|U s|+|V s|) := by |
| 46 | let f : ℝ → ℝ := fun x => V₁ x+U x |
| 47 | let g : ℝ → ℝ := fun x => -U₁ x+idealVelocityFirst (σ^2) x (U x) (V x) |
| 48 | have hUc : ContinuousOn U (Icc s t) := fun x hx => (hU x hx).continuousAt.continuousWithinAt |
| 49 | have hVc : ContinuousOn V (Icc s t) := fun x hx => (hV x hx).continuousAt.continuousWithinAt |
| 50 | have hfc : ContinuousOn f (Icc s t) := hV₁c.add hUc |
| 51 | have hgc : ContinuousOn g (Icc s t) := hU₁c.neg.add (continuousOn_idealVelocityFirst hUc hVc) |
| 52 | have hY : ∀ x ∈ Icc s t, HasDerivAt V (-U x+f x) x := by |
| 53 | intro x hx |
| 54 | exact (velocity_scalar_flux (β := σ^2) (hU x hx) (hV x hx)).1 |
| 55 | have hfluxY : ∀ x ∈ Icc s t, HasDerivAt (fun u => (1+(σ^2*u^2)^2)*(-U u)) |
| 56 | (2*(1-σ^2*(σ^2*x^2))*V x+(1+(σ^2*x^2)^2)*g x) x := by |
| 57 | intro x hx |
| 58 | exact (velocity_scalar_flux (β := σ^2) (hU x hx) (hV x hx)).2 |
| 59 | have hforcing : ∀ x ∈ Icc s t, |f x|+|g x| ≤ δ*(|V x|+|-U x|) := by |
| 60 | intro x hx |
| 61 | have hg : |g x| = |U₁ x-idealVelocityFirst (σ^2) x (U x) (V x)| := by |
| 62 | dsimp [g] |
| 63 | rw [neg_add_eq_sub, abs_sub_comm] |
| 64 | rw [hg, abs_neg] |
| 65 | dsimp [f] |
| 66 | linarith only [herror x hx] |
| 67 | have hb := equation30_perturbed_bound hσ hσsmall hΘ hs hst ht hδ hsmall |
| 68 | hF hG hfluxF hfluxG hF0 hF₁0 hG₁0 hY hfluxY hfc hgc hforcing t ⟨hst, le_rfl⟩ |
| 69 | simpa only [abs_neg, add_comm] using hb |
| 70 | |
| 71 | theorem velocity_propagator_bound_within |
| 72 | {σ Θ T e : ℝ} {F F₁ G G₁ U U₁ V V₁ : ℝ → ℝ} |
| 73 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) |
| 74 | (hT0 : 0 < T) (hT : T ≤ Θ) (he : 0 ≤ e) (hsmall : 40*e*Θ^21 ≤ 1) |
| 75 | (hF : ∀ x, 0 ≤ x → HasDerivAt F (F₁ x) x) |
| 76 | (hG : ∀ x, 0 ≤ x → HasDerivAt G (G₁ x) x) |
| 77 | (hfluxF : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*F₁ u) |
| 78 | (2*(1-σ^2*(σ^2*x^2))*F x) x) |
| 79 | (hfluxG : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*G₁ u) |
| 80 | (2*(1-σ^2*(σ^2*x^2))*G x) x) |
| 81 | (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hG₁0 : G₁ 0 = 1) |
| 82 | (hU : ∀ x ∈ Icc 0 T, HasDerivWithinAt U (U₁ x) (Icc 0 T) x) |
| 83 | (hV : ∀ x ∈ Icc 0 T, HasDerivWithinAt V (V₁ x) (Icc 0 T) x) |
| 84 | (hU₁c : ContinuousOn U₁ (Icc 0 T)) (hV₁c : ContinuousOn V₁ (Icc 0 T)) |
| 85 | (herror : ∀ x ∈ Icc 0 T, |
| 86 | |U₁ x-idealVelocityFirst (σ^2) x (U x) (V x)|+|V₁ x+U x| ≤ (e*Θ^12)*(|U x|+|V x|)) : |
| 87 | ∀ s t, 0 ≤ s → s ≤ t → t ≤ T → |
| 88 | |U t|+|V t| ≤ 40*Θ^8*(F t/F s)*(|U s|+|V s|) := by |
| 89 | obtain ⟨U', hUeq, hU'⟩ := exists_extension hT0 hU |
| 90 | obtain ⟨V', hVeq, hV'⟩ := exists_extension hT0 hV |
| 91 | intro s t hs hst ht |
| 92 | have hsub : Icc s t ⊆ Icc 0 T := fun x hx => ⟨hs.trans hx.1, hx.2.trans ht⟩ |
| 93 | have hδ : 0 ≤ e*Θ^12 := by positivity |
| 94 | have hspan : t-s ≤ Θ := by linarith only [ht, hT, hs] |
| 95 | have hsmall' : 20*Θ^8*(e*Θ^12)*(t-s) ≤ 1/2 := by |
| 96 | have hh := mul_le_mul_of_nonneg_left hspan (show 0 ≤ 20*e*Θ^20 by positivity) |
| 97 | linarith only [hh, hsmall] |
| 98 | have he' : ∀ x ∈ Icc s t, |
| 99 | |U₁ x-idealVelocityFirst (σ^2) x (U' x) (V' x)|+|V₁ x+U' x| ≤ |
| 100 | (e*Θ^12)*(|U' x|+|V' x|) := by |
| 101 | intro x hx |
| 102 | simpa only [hUeq (hsub hx), hVeq (hsub hx)] using herror x (hsub hx) |
| 103 | have hb := velocity_propagator_bound hσ hσsmall hΘ hs hst (ht.trans hT) hδ hsmall' |
| 104 | hF hG hfluxF hfluxG hF0 hF₁0 hG₁0 (fun x hx => hU' x (hsub hx)) |
| 105 | (fun x hx => hV' x (hsub hx)) (hU₁c.mono hsub) (hV₁c.mono hsub) he' |
| 106 | have hsT : s ∈ Icc 0 T := ⟨hs, hst.trans ht⟩ |
| 107 | have htT : t ∈ Icc 0 T := ⟨hs.trans hst, ht⟩ |
| 108 | simpa only [hUeq htT, hVeq htT, hUeq hsT, hVeq hsT] using hb |
| 109 | |
| 110 | end EulerPacketMovingFrame |
| 111 | end |
| 112 | |
| 113 | end |
| 114 | |
| 115 | /-! ## From `Euler/PacketReferenceRatio.lean` |
| 116 | |
| 117 | The text of `Euler/PacketReferenceRatio.lean`, folded into this file, which was its only importer. -/ |
| 118 | |
| 119 | section |
| 120 | |
| 121 | /-! Relative growth of the primary scalar reference dominates zero slope. -/ |
| 122 | |
| 123 | noncomputable section |
| 124 | |
| 125 | |
| 126 | namespace EulerPacketMovingFrame |
| 127 | |
| 128 | open Set EulerPacketGrowth |
| 129 | |
| 130 | theorem equation30_slope_ratio_dominates |
| 131 | {σ lam s t : ℝ} {F F₁ Z Z₁ : ℝ → ℝ} |
| 132 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hlam : 0 ≤ lam) |
| 133 | (hF : ∀ x, 0 ≤ x → HasDerivAt F (F₁ x) x) |
| 134 | (hZ : ∀ x, 0 ≤ x → HasDerivAt Z (Z₁ x) x) |
| 135 | (hfluxF : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*F₁ u) |
| 136 | (2*(1-σ^2*(σ^2*x^2))*F x) x) |
| 137 | (hfluxZ : ∀ x, 0 ≤ x → HasDerivAt (fun u => (1+(σ^2*u^2)^2)*Z₁ u) |
| 138 | (2*(1-σ^2*(σ^2*x^2))*Z x) x) |
| 139 | (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hZ0 : Z 0 = 1) (hZ₁0 : Z₁ 0 = lam) |
| 140 | (hs : 0 ≤ s) (hst : s ≤ t) : |
| 141 | F t/F s ≤ Z t/Z s := by |
| 142 | have hFp := equation30_global_positive hσ hσsmall hF hfluxF hF0 (by rw [hF₁0]) |
| 143 | have hZp := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 (by rw [hZ₁0]; exact hlam) |
| 144 | have ht : 0 ≤ t := hs.trans hst |
| 145 | let D : ℝ → ℝ := fun x => 1+(σ^2*x^2)^2 |
| 146 | have hquotient : ∀ x ∈ Icc 0 t, |
| 147 | HasDerivAt (fun u => Z u/F u) (lam/(D x*(F x)^2)) x := by |
| 148 | have hh := quotient_derivative_of_flux |
| 149 | (D := D) (c := fun x => 2*(1-σ^2*(σ^2*x^2))) |
| 150 | (fun x (hx : x ∈ Icc 0 t) => hF x hx.1) |
| 151 | (fun x hx => hZ x hx.1) (fun x hx => hfluxF x hx.1) (fun x hx => hfluxZ x hx.1) |
| 152 | (fun _ _ => by dsimp [D]; positivity) |
| 153 | (fun x hx => ne_of_gt (hFp x hx.1)) |
| 154 | intro x hx |
| 155 | simpa only [hF0, hF₁0, hZ₁0, D, zero_pow (by decide : 2 ≠ 0), mul_zero, zero_mul, |
| 156 | add_zero, one_mul, sub_zero] using hh x hx |
| 157 | have hmono : MonotoneOn (fun x => Z x/F x) (Icc 0 t) := by |
| 158 | apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Icc (0:ℝ) t) |
| 159 | (fun x hx => (hquotient x hx).continuousAt.continuousWithinAt) |
| 160 | (fun x hx => (hquotient x (interior_subset hx)).hasDerivWithinAt) |
| 161 | intro x _ |
| 162 | exact div_nonneg hlam (by dsimp [D]; positivity) |
| 163 | have hr := hmono ⟨hs, hst⟩ ⟨ht, le_rfl⟩ hst |
| 164 | have hp := (div_le_div_iff₀ (hFp s hs) (hFp t ht)).mp hr |
| 165 | apply (div_le_div_iff₀ (hFp s hs) (hZp s hs)).mpr |
| 166 | linarith only [hp] |
| 167 | |
| 168 | end EulerPacketMovingFrame |
| 169 | end |
| 170 | |
| 171 | end |
| 172 | |
| 173 | /-! ## From `Euler/PacketControlledPropagator.lean` |
| 174 | |
| 175 | The text of `Euler/PacketControlledPropagator.lean`, folded into this file, which was its only importer. -/ |
| 176 | |
| 177 | section |
| 178 | |
| 179 | /-! The actual controlled velocity system has polynomial relative propagation. -/ |
| 180 | |
| 181 | noncomputable section |
| 182 | |
| 183 | |
| 184 | namespace EulerPacketMovingFrame |
| 185 | |
| 186 | open Set EulerPacketRay EulerPacketBridge EulerPacketExistence |
| 187 | |
| 188 | /-- No initial velocity restriction is imposed. The reference can have |
| 189 | any nonnegative initial slope, and the bound retains its ratio. -/ |
| 190 | theorem controlled_velocity_propagator_within |
| 191 | {σ Θ T e ε : ℝ} {Z Z₁ U V P Q N : ℝ → ℝ} |
| 192 | {R A C : ℝ → Fin 3 → Fin 3 → ℝ} |
| 193 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) |
| 194 | (hT0 : 0 < T) (hT : T ≤ Θ) (he : 0 ≤ e) (hε : 0 ≤ ε) (hεe : ε ≤ e) |
| 195 | (hsmall : 8000000*e*Θ^21 ≤ 1) |
| 196 | (hRc : ∀ i j, ContinuousOn (fun t => R t i j) (Icc 0 T)) |
| 197 | (hAc : ∀ i j, ContinuousOn (fun t => A t i j) (Icc 0 T)) |
| 198 | (hCc : ∀ i j, ContinuousOn (fun t => C t i j) (Icc 0 T)) |
| 199 | (hP : ∀ t ∈ Icc 0 T, HasDerivWithinAt P |
| 200 | (R t 0 0*P t+R t 0 1*Q t+R t 0 2*N t) (Icc 0 T) t) |
| 201 | (hQ : ∀ t ∈ Icc 0 T, HasDerivWithinAt Q |
| 202 | (R t 1 0*P t+R t 1 1*Q t+R t 1 2*N t) (Icc 0 T) t) |
| 203 | (hN : ∀ t ∈ Icc 0 T, HasDerivWithinAt N |
| 204 | (R t 2 0*P t+R t 2 1*Q t+R t 2 2*N t) (Icc 0 T) t) |
| 205 | (hU : ∀ t ∈ Icc 0 T, HasDerivWithinAt U |
| 206 | (velocityFirstRhs (A t) (C t) ε (P t) (Q t) (N t) (U t) (V t)) (Icc 0 T) t) |
| 207 | (hV : ∀ t ∈ Icc 0 T, HasDerivWithinAt V |
| 208 | (velocitySecondRhs (A t) (C t) ε (P t) (Q t) (N t) (U t) (V t)) (Icc 0 T) t) |
| 209 | (hRclose : ∀ t ∈ Icc 0 T, ∀ i j, |R t i j-idealRayEntry (σ^2) i j| ≤ 4*e) |
| 210 | (hAclose : ∀ t ∈ Icc 0 T, ∀ i j, |A t i j-idealVelocityEntry (σ^2) i j| ≤ 3*e) |
| 211 | (hCclose : ∀ t ∈ Icc 0 T, ∀ j, |
| 212 | |C t 0 j-idealUnprojectedEntry 0 j| ≤ 5*e ∧ |
| 213 | |C t 1 j-idealUnprojectedEntry 1 j| ≤ 5*e) |
| 214 | (hrayInitial : norm3 (P 0) (Q 0) (N 0-1) ≤ e) |
| 215 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 216 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 217 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 218 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) : |
| 219 | ∀ s t, 0 ≤ s → s ≤ t → t ≤ T → |
| 220 | |U t|+|V t| ≤ 40*Θ^8*(Z t/Z s)*(|U s|+|V s|) := by |
| 221 | have hσ2 : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 222 | obtain ⟨F, F₁, G, G₁, hF0, hF₁0, _, hG₁0, hF, hG, hfluxF, hfluxG⟩ := |
| 223 | equation30_exists_fundamental_system (sq_nonneg σ) hσ2 |
| 224 | have hΘ0 : 0 ≤ Θ := by linarith only [hΘ] |
| 225 | have hgeom : 10000*e*Θ^5 ≤ 1 := by |
| 226 | have hh := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 21)) he |
| 227 | linarith only [hsmall, hh, mul_nonneg he (pow_nonneg hΘ0 21)] |
| 228 | have hcontrol := ray_controlled_velocity_error_within (sq_nonneg σ) hσ2 hΘ hT0 hT |
| 229 | he hε hεe hgeom hRc hP hQ hN hRclose hAclose hCclose hrayInitial |
| 230 | have hPc : ContinuousOn P (Icc 0 T) := fun t ht => (hP t ht).continuousWithinAt |
| 231 | have hQc : ContinuousOn Q (Icc 0 T) := fun t ht => (hQ t ht).continuousWithinAt |
| 232 | have hNc : ContinuousOn N (Icc 0 T) := fun t ht => (hN t ht).continuousWithinAt |
| 233 | have hUc : ContinuousOn U (Icc 0 T) := fun t ht => (hU t ht).continuousWithinAt |
| 234 | have hVc : ContinuousOn V (Icc 0 T) := fun t ht => (hV t ht).continuousWithinAt |
| 235 | have hNne : ∀ t ∈ Icc 0 T, N t ≠ 0 := by |
| 236 | intro t ht |
| 237 | linarith only [(hcontrol t ht).1.2] |
| 238 | obtain ⟨hU₁c, hV₁c⟩ := continuousOn_velocity_rhs (ε := ε) hAc hCc hPc hQc hNc hUc hVc hNne |
| 239 | have hs : 40*(200000*e)*Θ^21 ≤ 1 := by linarith only [hsmall] |
| 240 | have hprop := velocity_propagator_bound_within hσ hσsmall hΘ hT0 hT |
| 241 | (show 0 ≤ 200000*e by positivity) hs (fun t _ => hF t) (fun t _ => hG t) |
| 242 | (fun t _ => hfluxF t) (fun t _ => hfluxG t) hF0 hF₁0 hG₁0 hU hV hU₁c hV₁c |
| 243 | (fun t ht => (hcontrol t ht).2 (U t) (V t)) |
| 244 | intro s t hstart hst ht |
| 245 | have hratio := equation30_slope_ratio_dominates hσ hσsmall hZ₁0 |
| 246 | (fun x _ => hF x) hZ (fun x _ => hfluxF x) hfluxZ hF0 hF₁0 hZ0 rfl hstart hst |
| 247 | have hcompare := mul_le_mul_of_nonneg_right |
| 248 | (mul_le_mul_of_nonneg_left hratio (show 0 ≤ 40*Θ^8 by positivity)) |
| 249 | (add_nonneg (abs_nonneg (U s)) (abs_nonneg (V s))) |
| 250 | exact (hprop s t hstart hst ht).trans hcompare |
| 251 | |
| 252 | end EulerPacketMovingFrame |
| 253 | end |
| 254 | |
| 255 | end |
| 256 | |
| 257 | /-! ## From `Euler/PacketTangentNorm.lean` |
| 258 | |
| 259 | The text of `Euler/PacketTangentNorm.lean`, folded into this file, which was its only importer. -/ |
| 260 | |
| 261 | section |
| 262 | |
| 263 | /-! Polynomial conversion between physical tangent vectors and the two-state system. -/ |
| 264 | |
| 265 | noncomputable section |
| 266 | |
| 267 | |
| 268 | namespace EulerPacketMovingFrame |
| 269 | |
| 270 | open EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay InnerProductSpace |
| 271 | |
| 272 | theorem scaled_pair_le_physical_norm (m v w : ℝ → Space) {t₀ a ε τ : ℝ} |
| 273 | (hε : 0 < ε) (hε1 : ε ≤ 1) |
| 274 | (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) |
| 275 | (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) : |
| 276 | |scaledVelocity m v w t₀ a ε τ 0|+|scaledVelocity m v w t₀ a ε τ 1| ≤ |
| 277 | (2/ε)*‖w (physicalTime t₀ a ε τ)‖ := by |
| 278 | have hU := frame_coordinate_abs_le_norm (unit (m (physicalTime t₀ a ε τ))) |
| 279 | (unit (v (physicalTime t₀ a ε τ))) (w (physicalTime t₀ a ε τ)) |
| 280 | (unit_inner_self hm) (unit_inner_self hv) (unit_inner_zero hmv) 0 |
| 281 | have hV := frame_coordinate_abs_le_norm (unit (m (physicalTime t₀ a ε τ))) |
| 282 | (unit (v (physicalTime t₀ a ε τ))) (w (physicalTime t₀ a ε τ)) |
| 283 | (unit_inner_self hm) (unit_inner_self hv) (unit_inner_zero hmv) 1 |
| 284 | change |movingVelocity m v w (physicalTime t₀ a ε τ) 0| ≤ _ at hU |
| 285 | change |movingVelocity m v w (physicalTime t₀ a ε τ) 1| ≤ _ at hV |
| 286 | rw [← scaledVelocity_restore m v w (ne_of_gt hε) 0] at hU |
| 287 | rw [← scaledVelocity_restore m v w (ne_of_gt hε) 1] at hV |
| 288 | norm_num [velocityScale, Fin.ext_iff, abs_mul, abs_of_pos hε] at hU hV |
| 289 | have hεV := mul_le_mul_of_nonneg_left hV hε.le |
| 290 | have hεnorm := mul_le_mul_of_nonneg_right hε1 (norm_nonneg (w (physicalTime t₀ a ε τ))) |
| 291 | have hh : |scaledVelocity m v w t₀ a ε τ 0|+|scaledVelocity m v w t₀ a ε τ 1| ≤ |
| 292 | (2*‖w (physicalTime t₀ a ε τ)‖)/ε := by |
| 293 | apply (le_div_iff₀ hε).mpr |
| 294 | linarith only [hU, hεV, hεnorm] |
| 295 | convert! hh using 1 |
| 296 | ring |
| 297 | |
| 298 | theorem physical_velocity_le_scaled_state (m v r w : ℝ → Space) |
| 299 | {s₀ t₀ a ε τ Θ ρ P₀ Q₀ : ℝ} |
| 300 | (hs₀ : s₀ ≠ 0) (hε : 0 < ε) (hε1 : ε ≤ 1) |
| 301 | (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) |
| 302 | (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 303 | (hrw : ⟪r (physicalTime t₀ a ε τ),w (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 304 | (hΘ : 1 ≤ Θ) (hρ0 : 0 ≤ ρ) (hρ : ρ ≤ 1/2) |
| 305 | (hP₀ : |P₀| ≤ Θ^2) (hQ₀ : |Q₀| ≤ 2*Θ^2) |
| 306 | (hP : |scaledRay m v r s₀ t₀ a ε τ 0-P₀| ≤ ρ) |
| 307 | (hQ : |scaledRay m v r s₀ t₀ a ε τ 1-Q₀| ≤ ρ) |
| 308 | (hN : |scaledRay m v r s₀ t₀ a ε τ 2-1| ≤ ρ) : |
| 309 | ‖w (physicalTime t₀ a ε τ)‖ ≤ |
| 310 | 7*Θ^2*(|scaledVelocity m v w t₀ a ε τ 0|+|scaledVelocity m v w t₀ a ε τ 1|) := by |
| 311 | let R := scaledRay m v r s₀ t₀ a ε τ |
| 312 | let V := scaledVelocity m v w t₀ a ε τ |
| 313 | have hpair := scaled_pairing_zero m v r w hs₀ (ne_of_gt hε) hm hv hmv hrw |
| 314 | obtain ⟨hn, _, _, _, hw, _, _⟩ := ray_geometric_bounds (ε := ε) (U := V 0) (V := V 1) |
| 315 | hΘ hρ0 hρ hP₀ hQ₀ hP hQ hN |
| 316 | have hNne : R 2 ≠ 0 := by linarith only [hn] |
| 317 | have hthird := thirdVelocity_of_pairing R V hNne hpair |
| 318 | rw [← hthird] at hw |
| 319 | have hΘ2 : 1 ≤ Θ^2 := one_le_pow₀ hΘ |
| 320 | have hV : norm3 (V 0) (V 1) (V 2) ≤ 7*Θ^2*(|V 0|+|V 1|) := by |
| 321 | dsimp [norm3] |
| 322 | have ht := mul_le_mul_of_nonneg_right hΘ2 (add_nonneg (abs_nonneg (V 0)) (abs_nonneg (V 1))) |
| 323 | linarith only [hw, ht] |
| 324 | exact (scaledVelocity_norm_le_norm3 m v w hε hε1 hm hv hmv).trans hV |
| 325 | |
| 326 | end EulerPacketMovingFrame |
| 327 | end |
| 328 | |
| 329 | end |
| 330 | |
| 331 | noncomputable section |
| 332 | |
| 333 | |
| 334 | namespace EulerPacketMovingFrame |
| 335 | |
| 336 | open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay |
| 337 | EulerPacketStage EulerPacketPerturbation InnerProductSpace ContinuousLinearMap |
| 338 | |
| 339 | theorem physical_tangent_propagator |
| 340 | {B B₁ M E : ℝ → Space →L[ℝ] Space} {m v r w : ℝ → Space} |
| 341 | {c s₀ t₀ a ε σ Θ T G d : ℝ} {S : Set ℝ} |
| 342 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT0 : 0 < T) (hT : T ≤ Θ) |
| 343 | (ha : 1/2 ≤ a) (hε : 0 < ε) (hΘ : 1 ≤ Θ) (hG : 1 ≤ G) (hd : 0 ≤ d) |
| 344 | (hs₀ : s₀ ≠ 0) |
| 345 | (hsmall : 8000000*(16*(ε*Θ*(4*G)^2+d))*Θ^21 ≤ 1) |
| 346 | (hmap : MapsTo (physicalTime t₀ a ε) (Icc 0 Θ) S) |
| 347 | (hMc : ContinuousOn M S) |
| 348 | (hBd : ∀ t ∈ S, HasDerivWithinAt B (B₁ t) S t) |
| 349 | (hmd : ∀ t ∈ S, HasDerivWithinAt m (-(B t).adjoint (m t)) S t) |
| 350 | (hvd : ∀ t ∈ S, HasDerivWithinAt v (-(B t) (v t)+ |
| 351 | (2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) S t) |
| 352 | (hrd : ∀ t ∈ S, HasDerivWithinAt r (-(M t).adjoint (r t)) S t) |
| 353 | (hwd : ∀ t ∈ S, HasDerivWithinAt w (-(M t) (w t)+ |
| 354 | (2*⟪r t,(M t) (w t)⟫_ℝ/‖r t‖^2) • r t) S t) |
| 355 | (hm0 : ∀ t ∈ S, m t ≠ 0) (hv0 : ∀ t ∈ S, v t ≠ 0) |
| 356 | (hmv : ∀ t ∈ S, ⟪m t,v t⟫_ℝ = 0) (hrw0 : ⟪r t₀,w t₀⟫_ℝ = 0) |
| 357 | (hB : ∀ t ∈ S, ‖B t‖ ≤ G) (hB₁ : ∀ t ∈ S, ‖B₁ t‖ ≤ G^2) |
| 358 | (hE : ∀ t ∈ S, ‖E t‖ ≤ d) |
| 359 | (hparent : ∀ t ∈ S, M t = B t+ |
| 360 | primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))+E t) |
| 361 | (hb0 : rescaledFrame B m v t₀ a ε 0 0 1 = a) |
| 362 | (hk0 : rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2) |
| 363 | (hh0 : rescaledShear c m v t₀ a ε 0 = a/ε^2) |
| 364 | (hrInitial : norm3 (scaledRay m v r s₀ t₀ a ε 0 0) (scaledRay m v r s₀ t₀ a ε 0 1) |
| 365 | (scaledRay m v r s₀ t₀ a ε 0 2-1) ≤ 16*(ε*Θ*(4*G)^2+d)) |
| 366 | {Z Z₁ : ℝ → ℝ} |
| 367 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 368 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 369 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 370 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) : |
| 371 | ContinuousOn Z (Icc 0 T) ∧ (∀ t ∈ Icc 0 T, 0 < Z t) ∧ |
| 372 | ∀ s t, 0 ≤ s → s ≤ t → t ≤ T → |
| 373 | ‖w (physicalTime t₀ a ε t)‖ ≤ |
| 374 | (560*Θ^10/ε)*(Z t/Z s)*‖w (physicalTime t₀ a ε s)‖ := by |
| 375 | let e := 16*(ε*Θ*(4*G)^2+d) |
| 376 | let Rp := scaledRay m v r s₀ t₀ a ε |
| 377 | let Vp := scaledVelocity m v w t₀ a ε |
| 378 | let Mf := rescaledFrame M m v t₀ a ε |
| 379 | let Bf := rescaledFrame B m v t₀ a ε |
| 380 | let Rmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledRayEntry a ε (Mf τ) (frameSkew (Bf τ)) |
| 381 | let Amat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledVelocityEntry a ε (Mf τ) |
| 382 | let Cmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => |
| 383 | scaledVelocityEntry a ε (fun i j => Mf τ i j+frameSkew (Bf τ) i j) |
| 384 | have he : 0 ≤ e := by dsimp [e]; positivity |
| 385 | have hΘ0 : 0 ≤ Θ := by linarith |
| 386 | change 8000000*e*Θ^21 ≤ 1 at hsmall |
| 387 | have heΘ : e ≤ e*Θ^21 := by |
| 388 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^21) he |
| 389 | have heSmall : e ≤ 1 := by linarith only [hsmall, heΘ, he] |
| 390 | have hpow : e*Θ^5 ≤ e*Θ^21 := |
| 391 | mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 21)) he |
| 392 | have hsmallRay : 400*(4*e)*Θ^5 ≤ 1 := by |
| 393 | linarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] |
| 394 | have ha0 : 0 < a := by linarith |
| 395 | have hσsq : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 396 | have herr := physical_matrix_errors ha hε hΘ hG hd heSmall hmap hBd hmd hvd hm0 hv0 hmv |
| 397 | hB hB₁ hE hparent hb0 hk0 hh0 |
| 398 | have hsub : Icc (0:ℝ) T ⊆ Icc 0 Θ := fun _ ht => ⟨ht.1, ht.2.trans hT⟩ |
| 399 | have hmapT : MapsTo (physicalTime t₀ a ε) (Icc 0 T) S := fun _ ht => hmap (hsub ht) |
| 400 | have hMf : ∀ i j, ContinuousOn (fun τ => Mf τ i j) (Icc 0 T) := |
| 401 | rescaledFrame_continuousOn B M hmapT hMc hmd hvd hm0 hv0 hmv |
| 402 | have hBf : ∀ i j, ContinuousOn (fun τ => Bf τ i j) (Icc 0 T) := |
| 403 | rescaledFrame_continuousOn B B hmapT (fun t ht => (hBd t ht).continuousWithinAt) |
| 404 | hmd hvd hm0 hv0 hmv |
| 405 | have hSf := frameSkew_continuousOn hBf |
| 406 | have hRmc : ∀ i j, ContinuousOn (fun τ => Rmat τ i j) (Icc 0 T) := |
| 407 | scaledRayEntry_continuousOn a ε hMf hSf |
| 408 | have hAmc : ∀ i j, ContinuousOn (fun τ => Amat τ i j) (Icc 0 T) := |
| 409 | scaledVelocityEntry_continuousOn a ε hMf |
| 410 | have hCmc : ∀ i j, ContinuousOn (fun τ => Cmat τ i j) (Icc 0 T) := |
| 411 | scaledVelocityEntry_continuousOn a ε (fun i j => (hMf i j).add (hSf i j)) |
| 412 | have hRode : ∀ i τ, τ ∈ Icc 0 T → HasDerivWithinAt (fun s => Rp s i) |
| 413 | (∑ j : Fin 3, Rmat τ i j*Rp τ j) (Icc 0 T) τ := by |
| 414 | intro i τ hτ |
| 415 | have ht := hmapT hτ |
| 416 | exact scaledRay_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) (M (physicalTime t₀ a ε τ)) |
| 417 | (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT (hmd _ ht) (hvd _ ht) (hrd _ ht) |
| 418 | (hm0 _ ht) (hv0 _ ht) (hmv _ ht) i |
| 419 | have hP : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 0) |
| 420 | (Rmat τ 0 0*Rp τ 0+Rmat τ 0 1*Rp τ 1+Rmat τ 0 2*Rp τ 2) (Icc 0 T) τ := by |
| 421 | intro τ hτ |
| 422 | simpa only [Fin.sum_univ_three] using hRode 0 τ hτ |
| 423 | have hQ : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 1) |
| 424 | (Rmat τ 1 0*Rp τ 0+Rmat τ 1 1*Rp τ 1+Rmat τ 1 2*Rp τ 2) (Icc 0 T) τ := by |
| 425 | intro τ hτ |
| 426 | simpa only [Fin.sum_univ_three] using hRode 1 τ hτ |
| 427 | have hN : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 2) |
| 428 | (Rmat τ 2 0*Rp τ 0+Rmat τ 2 1*Rp τ 1+Rmat τ 2 2*Rp τ 2) (Icc 0 T) τ := by |
| 429 | intro τ hτ |
| 430 | simpa only [Fin.sum_univ_three] using hRode 2 τ hτ |
| 431 | have hRclose : ∀ τ ∈ Icc 0 T, ∀ i j, |Rmat τ i j-idealRayEntry (σ^2) i j| ≤ 4*e := |
| 432 | fun τ hτ => (herr.2 τ (hsub hτ)).1 |
| 433 | have hnear := ray_closeness_within (sq_nonneg σ) hσsq hΘ hT0 hT |
| 434 | (mul_nonneg (by norm_num : (0:ℝ) ≤ 4) he) hsmallRay hRmc hP hQ hN hRclose |
| 435 | (hrInitial.trans (show e ≤ 4*e by linarith)) |
| 436 | have hrnonzero : ∀ τ ∈ Icc 0 T, r (physicalTime t₀ a ε τ) ≠ 0 := by |
| 437 | intro τ hτ hzero |
| 438 | have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] |
| 439 | apply hNne |
| 440 | simp only [Rp, scaledRay, movingRay, hzero, inner_zero_right, zero_div] |
| 441 | have hpair := rescaled_tangentPairing_zero M hmapT hrd hwd hrnonzero hrw0 |
| 442 | have hUV : ∀ τ ∈ Icc 0 T, |
| 443 | HasDerivWithinAt (fun s => Vp s 0) |
| 444 | (velocityFirstRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ ∧ |
| 445 | HasDerivWithinAt (fun s => Vp s 1) |
| 446 | (velocitySecondRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ := by |
| 447 | intro τ hτ |
| 448 | have ht := hmapT hτ |
| 449 | have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] |
| 450 | exact scaledVelocity_firstTwo_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) |
| 451 | (M (physicalTime t₀ a ε τ)) (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT |
| 452 | (hmd _ ht) (hvd _ ht) (hwd _ ht) (hm0 _ ht) (hv0 _ ht) (hmv _ ht) |
| 453 | (hrnonzero τ hτ) (hpair τ hτ) hNne |
| 454 | have hprop := controlled_velocity_propagator_within hσ hσsmall hΘ hT0 hT he hε.le herr.1 hsmall |
| 455 | hRmc hAmc hCmc hP hQ hN (fun τ hτ => (hUV τ hτ).1) (fun τ hτ => (hUV τ hτ).2) |
| 456 | hRclose (fun τ hτ => (herr.2 τ (hsub hτ)).2.1) (fun τ hτ => (herr.2 τ (hsub hτ)).2.2) |
| 457 | hrInitial hZ hfluxZ hZ0 hZ₁0 |
| 458 | have hZpos := EulerPacketGrowth.equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 459 | refine ⟨(fun τ hτ => (hZ τ hτ.1).continuousAt.continuousWithinAt), |
| 460 | (fun τ hτ => hZpos τ hτ.1), ?_⟩ |
| 461 | intro s t hs hst ht |
| 462 | have hsT : s ∈ Icc 0 T := ⟨hs, hst.trans ht⟩ |
| 463 | have htT : t ∈ Icc 0 T := ⟨hs.trans hst, ht⟩ |
| 464 | have htimeS := hmapT hsT |
| 465 | have htimeT := hmapT htT |
| 466 | have hε1 : ε ≤ 1 := herr.1.trans heSmall |
| 467 | have hρ0 : 0 ≤ 800*e*Θ^5 := by positivity |
| 468 | have hρ : 800*e*Θ^5 ≤ 1/2 := by |
| 469 | linarith only [hsmall, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] |
| 470 | have hrt : norm3 (Rp t 0-σ^2*t^2) (Rp t 1+2*σ^2*t) (Rp t 2-1) ≤ 800*e*Θ^5 := by |
| 471 | linarith only [(hnear t htT).1] |
| 472 | have hPt : |Rp t 0-σ^2*t^2| ≤ 800*e*Θ^5 := by |
| 473 | dsimp [norm3] at hrt |
| 474 | linarith only [hrt, abs_nonneg (Rp t 1+2*σ^2*t), abs_nonneg (Rp t 2-1)] |
| 475 | have hQt : |Rp t 1-(-2*σ^2*t)| ≤ 800*e*Θ^5 := by |
| 476 | rw [show Rp t 1-(-2*σ^2*t) = Rp t 1+2*σ^2*t by ring] |
| 477 | dsimp [norm3] at hrt |
| 478 | linarith only [hrt, abs_nonneg (Rp t 0-σ^2*t^2), abs_nonneg (Rp t 2-1)] |
| 479 | have hNt : |Rp t 2-1| ≤ 800*e*Θ^5 := by |
| 480 | dsimp [norm3] at hrt |
| 481 | linarith only [hrt, abs_nonneg (Rp t 0-σ^2*t^2), abs_nonneg (Rp t 1+2*σ^2*t)] |
| 482 | have htΘ : t ≤ Θ := ht.trans hT |
| 483 | have ht2 : t^2 ≤ Θ^2 := (sq_le_sq₀ htT.1 hΘ0).mpr htΘ |
| 484 | have hP₀ : |σ^2*t^2| ≤ Θ^2 := by |
| 485 | rw [abs_of_nonneg (by positivity : 0 ≤ σ^2*t^2)] |
| 486 | linarith only [mul_le_mul_of_nonneg_right hσsq (sq_nonneg t), ht2] |
| 487 | have hQ₀ : |-2*σ^2*t| ≤ 2*Θ^2 := by |
| 488 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg htT.1] |
| 489 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 490 | linarith only [mul_le_mul_of_nonneg_right hσsq htT.1, htΘ, hΘ, sq_nonneg (Θ-1)] |
| 491 | have hfinish := physical_velocity_le_scaled_state m v r w hs₀ hε hε1 |
| 492 | (hm0 _ htimeT) (hv0 _ htimeT) (hmv _ htimeT) (hpair t htT) hΘ hρ0 hρ hP₀ hQ₀ hPt hQt hNt |
| 493 | have hstart := scaled_pair_le_physical_norm m v w hε hε1 (hm0 _ htimeS) (hv0 _ htimeS) (hmv _ htimeS) |
| 494 | have hratio : 0 ≤ Z t/Z s := div_nonneg (hZpos t htT.1).le (hZpos s hs).le |
| 495 | have h1 := mul_le_mul_of_nonneg_left (hprop s t hs hst ht) (show 0 ≤ 7*Θ^2 by positivity) |
| 496 | have h2 := mul_le_mul_of_nonneg_left hstart (show 0 ≤ 280*Θ^10*(Z t/Z s) by positivity) |
| 497 | calc |
| 498 | _ ≤ 7*Θ^2*(|Vp t 0|+|Vp t 1|) := hfinish |
| 499 | _ ≤ 7*Θ^2*(40*Θ^8*(Z t/Z s)*(|Vp s 0|+|Vp s 1|)) := h1 |
| 500 | _ = 280*Θ^10*(Z t/Z s)*(|Vp s 0|+|Vp s 1|) := by ring |
| 501 | _ ≤ 280*Θ^10*(Z t/Z s)*((2/ε)*‖w (physicalTime t₀ a ε s)‖) := h2 |
| 502 | _ = _ := by ring |
| 503 | |
| 504 | end EulerPacketMovingFrame |