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.PacketMatrixContinuity |
| 2 | import Euler.PacketWithinRay |
| 3 | import Euler.PacketTangentInvariant |
| 4 | |
| 5 | /-! |
| 6 | The physical ray and velocity equations, the actual parent rank-one |
| 7 | decomposition, and physical coefficient bounds imply relative amplification |
| 8 | for the scaled primary. No scaled ODE, ray lower bound, or matrix-error |
| 9 | estimate is assumed. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | namespace EulerPacketMovingFrame |
| 16 | |
| 17 | open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay |
| 18 | EulerPacketStage EulerPacketPerturbation InnerProductSpace ContinuousLinearMap |
| 19 | |
| 20 | theorem physical_stage_references |
| 21 | {B B₁ M E : ℝ → Space →L[ℝ] Space} {m v r w : ℝ → Space} |
| 22 | {c s₀ t₀ a ε σ Θ T G d lam : ℝ} {S : Set ℝ} |
| 23 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hT0 : 0 < T) (hT : T ≤ Θ) |
| 24 | (ha : 1/2 ≤ a) (hε : 0 < ε) (hΘ : 1 ≤ Θ) (hG : 1 ≤ G) (hd : 0 ≤ d) |
| 25 | (hs₀ : s₀ ≠ 0) (hlam : 0 ≤ lam) |
| 26 | (hsmall : 1000000*stabilityConstant*(16*(ε*Θ*(4*G)^2+d))*Θ^40 ≤ 1) |
| 27 | (hmap : MapsTo (physicalTime t₀ a ε) (Icc 0 Θ) S) |
| 28 | (hMc : ContinuousOn M S) |
| 29 | (hBd : ∀ t ∈ S, HasDerivWithinAt B (B₁ t) S t) |
| 30 | (hmd : ∀ t ∈ S, HasDerivWithinAt m (-(B t).adjoint (m t)) S t) |
| 31 | (hvd : ∀ t ∈ S, HasDerivWithinAt v (-(B t) (v t)+ |
| 32 | (2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) S t) |
| 33 | (hrd : ∀ t ∈ S, HasDerivWithinAt r (-(M t).adjoint (r t)) S t) |
| 34 | (hwd : ∀ t ∈ S, HasDerivWithinAt w (-(M t) (w t)+ |
| 35 | (2*⟪r t,(M t) (w t)⟫_ℝ/‖r t‖^2) • r t) S t) |
| 36 | (hm0 : ∀ t ∈ S, m t ≠ 0) (hv0 : ∀ t ∈ S, v t ≠ 0) |
| 37 | (hmv : ∀ t ∈ S, ⟪m t,v t⟫_ℝ = 0) (hrw0 : ⟪r t₀,w t₀⟫_ℝ = 0) |
| 38 | (hB : ∀ t ∈ S, ‖B t‖ ≤ G) (hB₁ : ∀ t ∈ S, ‖B₁ t‖ ≤ G^2) |
| 39 | (hE : ∀ t ∈ S, ‖E t‖ ≤ d) |
| 40 | (hparent : ∀ t ∈ S, M t = B t+ |
| 41 | primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))+E t) |
| 42 | (hb0 : rescaledFrame B m v t₀ a ε 0 0 1 = a) |
| 43 | (hk0 : rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2) |
| 44 | (hh0 : rescaledShear c m v t₀ a ε 0 = a/ε^2) |
| 45 | (hrInitial : norm3 (scaledRay m v r s₀ t₀ a ε 0 0) (scaledRay m v r s₀ t₀ a ε 0 1) |
| 46 | (scaledRay m v r s₀ t₀ a ε 0 2-1) ≤ 16*(ε*Θ*(4*G)^2+d)) |
| 47 | (hU0 : scaledVelocity m v w t₀ a ε 0 0 = -lam) |
| 48 | (hV0 : scaledVelocity m v w t₀ a ε 0 1 = 1) : |
| 49 | let e := 16*(ε*Θ*(4*G)^2+d) |
| 50 | let U := fun τ => scaledVelocity m v w t₀ a ε τ 0 |
| 51 | let V := fun τ => scaledVelocity m v w t₀ a ε τ 1 |
| 52 | ∃ F F₁ Z Z₁ : ℝ → ℝ, |
| 53 | F 0 = 1 ∧ F₁ 0 = 0 ∧ Z 0 = 1 ∧ Z₁ 0 = lam ∧ |
| 54 | (∀ t, HasDerivAt F (F₁ t) t) ∧ (∀ t, HasDerivAt Z (Z₁ t) t) ∧ |
| 55 | (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) |
| 56 | (2*(1-σ^2*(σ^2*t^2))*F t) t) ∧ |
| 57 | (∀ t, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 58 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) ∧ |
| 59 | (∀ t ∈ Icc 0 T, |V t-Z t|+|U t+Z₁ t| ≤ 160000000*e*Θ^29*(1+lam)*F t) ∧ |
| 60 | (∀ t ∈ Icc 1 T, 0 < V t ∧ |V t/Z t-1| ≤ stabilityConstant*e*Θ^29 ∧ |
| 61 | |U t/V t+Z₁ t/Z t| ≤ 10*(stabilityConstant*e*Θ^29)) := by |
| 62 | let e := 16*(ε*Θ*(4*G)^2+d) |
| 63 | let Rp := scaledRay m v r s₀ t₀ a ε |
| 64 | let Vp := scaledVelocity m v w t₀ a ε |
| 65 | let Mf := rescaledFrame M m v t₀ a ε |
| 66 | let Bf := rescaledFrame B m v t₀ a ε |
| 67 | let Rmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledRayEntry a ε (Mf τ) (frameSkew (Bf τ)) |
| 68 | let Amat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => scaledVelocityEntry a ε (Mf τ) |
| 69 | let Cmat : ℝ → Fin 3 → Fin 3 → ℝ := fun τ => |
| 70 | scaledVelocityEntry a ε (fun i j => Mf τ i j+frameSkew (Bf τ) i j) |
| 71 | have he : 0 ≤ e := by dsimp [e]; positivity |
| 72 | have hΘ0 : 0 ≤ Θ := by linarith |
| 73 | have hK : 1 ≤ stabilityConstant := le_trans (by norm_num) stabilityConstant_ge |
| 74 | have hbase : 1000000*e*Θ^40 ≤ 1 := by |
| 75 | have hnonneg := mul_nonneg (sub_nonneg.mpr hK) (mul_nonneg he (pow_nonneg hΘ0 40)) |
| 76 | change 1000000*stabilityConstant*e*Θ^40 ≤ 1 at hsmall |
| 77 | nlinarith only [hsmall, hnonneg] |
| 78 | have heΘ : e ≤ e*Θ^40 := by |
| 79 | simpa only [mul_one] using mul_le_mul_of_nonneg_left (one_le_pow₀ hΘ : 1 ≤ Θ^40) he |
| 80 | have heSmall : e ≤ 1 := by nlinarith only [hbase, heΘ, he] |
| 81 | have hpow : e*Θ^5 ≤ e*Θ^40 := |
| 82 | mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hΘ (by decide : 5 ≤ 40)) he |
| 83 | have hsmallRay : 400*(4*e)*Θ^5 ≤ 1 := by |
| 84 | nlinarith only [hbase, hpow, mul_nonneg he (pow_nonneg hΘ0 5)] |
| 85 | have ha0 : 0 < a := by linarith |
| 86 | have hσsq : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 87 | have herr := physical_matrix_errors ha hε hΘ hG hd heSmall hmap hBd hmd hvd hm0 hv0 hmv |
| 88 | hB hB₁ hE hparent hb0 hk0 hh0 |
| 89 | have hsub : Icc (0:ℝ) T ⊆ Icc 0 Θ := fun _ ht => ⟨ht.1, ht.2.trans hT⟩ |
| 90 | have hmapT : MapsTo (physicalTime t₀ a ε) (Icc 0 T) S := fun _ ht => hmap (hsub ht) |
| 91 | have hMf : ∀ i j, ContinuousOn (fun τ => Mf τ i j) (Icc 0 T) := |
| 92 | rescaledFrame_continuousOn B M hmapT hMc hmd hvd hm0 hv0 hmv |
| 93 | have hBf : ∀ i j, ContinuousOn (fun τ => Bf τ i j) (Icc 0 T) := |
| 94 | rescaledFrame_continuousOn B B hmapT (fun t ht => (hBd t ht).continuousWithinAt) |
| 95 | hmd hvd hm0 hv0 hmv |
| 96 | have hSf := frameSkew_continuousOn hBf |
| 97 | have hRmc : ∀ i j, ContinuousOn (fun τ => Rmat τ i j) (Icc 0 T) := |
| 98 | scaledRayEntry_continuousOn a ε hMf hSf |
| 99 | have hAmc : ∀ i j, ContinuousOn (fun τ => Amat τ i j) (Icc 0 T) := |
| 100 | scaledVelocityEntry_continuousOn a ε hMf |
| 101 | have hCmc : ∀ i j, ContinuousOn (fun τ => Cmat τ i j) (Icc 0 T) := |
| 102 | scaledVelocityEntry_continuousOn a ε (fun i j => (hMf i j).add (hSf i j)) |
| 103 | have hRode : ∀ i τ, τ ∈ Icc 0 T → HasDerivWithinAt (fun s => Rp s i) |
| 104 | (∑ j : Fin 3, Rmat τ i j*Rp τ j) (Icc 0 T) τ := by |
| 105 | intro i τ hτ |
| 106 | have ht := hmapT hτ |
| 107 | exact scaledRay_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) (M (physicalTime t₀ a ε τ)) |
| 108 | (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT (hmd _ ht) (hvd _ ht) (hrd _ ht) |
| 109 | (hm0 _ ht) (hv0 _ ht) (hmv _ ht) i |
| 110 | have hP : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 0) |
| 111 | (Rmat τ 0 0*Rp τ 0+Rmat τ 0 1*Rp τ 1+Rmat τ 0 2*Rp τ 2) (Icc 0 T) τ := by |
| 112 | intro τ hτ |
| 113 | simpa only [Fin.sum_univ_three] using hRode 0 τ hτ |
| 114 | have hQ : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 1) |
| 115 | (Rmat τ 1 0*Rp τ 0+Rmat τ 1 1*Rp τ 1+Rmat τ 1 2*Rp τ 2) (Icc 0 T) τ := by |
| 116 | intro τ hτ |
| 117 | simpa only [Fin.sum_univ_three] using hRode 1 τ hτ |
| 118 | have hN : ∀ τ ∈ Icc 0 T, HasDerivWithinAt (fun s => Rp s 2) |
| 119 | (Rmat τ 2 0*Rp τ 0+Rmat τ 2 1*Rp τ 1+Rmat τ 2 2*Rp τ 2) (Icc 0 T) τ := by |
| 120 | intro τ hτ |
| 121 | simpa only [Fin.sum_univ_three] using hRode 2 τ hτ |
| 122 | have hRclose : ∀ τ ∈ Icc 0 T, ∀ i j, |Rmat τ i j-idealRayEntry (σ^2) i j| ≤ 4*e := |
| 123 | fun τ hτ => (herr.2 τ (hsub hτ)).1 |
| 124 | have hnear := ray_closeness_within (sq_nonneg σ) hσsq hΘ hT0 hT |
| 125 | (mul_nonneg (by norm_num : (0:ℝ) ≤ 4) he) hsmallRay hRmc hP hQ hN hRclose |
| 126 | (hrInitial.trans (show e ≤ 4*e by linarith)) |
| 127 | have hrnonzero : ∀ τ ∈ Icc 0 T, r (physicalTime t₀ a ε τ) ≠ 0 := by |
| 128 | intro τ hτ hzero |
| 129 | have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] |
| 130 | apply hNne |
| 131 | simp only [Rp, scaledRay, movingRay, hzero, inner_zero_right, zero_div] |
| 132 | have hpair := rescaled_tangentPairing_zero M hmapT hrd hwd hrnonzero hrw0 |
| 133 | have hUV : ∀ τ ∈ Icc 0 T, |
| 134 | HasDerivWithinAt (fun s => Vp s 0) |
| 135 | (velocityFirstRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ ∧ |
| 136 | HasDerivWithinAt (fun s => Vp s 1) |
| 137 | (velocitySecondRhs (Amat τ) (Cmat τ) ε (Rp τ 0) (Rp τ 1) (Rp τ 2) (Vp τ 0) (Vp τ 1)) (Icc 0 T) τ := by |
| 138 | intro τ hτ |
| 139 | have ht := hmapT hτ |
| 140 | have hNne : Rp τ 2 ≠ 0 := by linarith only [(hnear τ hτ).2] |
| 141 | exact scaledVelocity_firstTwo_hasDerivWithinAt (B (physicalTime t₀ a ε τ)) |
| 142 | (M (physicalTime t₀ a ε τ)) (ne_of_gt ha0) (ne_of_gt hε) hs₀ hmapT |
| 143 | (hmd _ ht) (hvd _ ht) (hwd _ ht) (hm0 _ ht) (hv0 _ ht) (hmv _ ht) |
| 144 | (hrnonzero τ hτ) (hpair τ hτ) hNne |
| 145 | exact controlled_stage_references_within hσ hσsmall hΘ hT0 hT he hε.le herr.1 hlam hsmall |
| 146 | hRmc hAmc hCmc hP hQ hN (fun τ hτ => (hUV τ hτ).1) (fun τ hτ => (hUV τ hτ).2) |
| 147 | hRclose (fun τ hτ => (herr.2 τ (hsub hτ)).2.1) (fun τ hτ => (herr.2 τ (hsub hτ)).2.2) |
| 148 | hrInitial hU0 hV0 |
| 149 | |
| 150 | end EulerPacketMovingFrame |