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.PacketScaledVelocity |
| 2 | |
| 3 | /-! |
| 4 | The actual scaled velocity supplies the first two equations and the scalar |
| 5 | flux equation used in amplification. Only the first two transport rows are |
| 6 | relevant; the auxiliary third row in the scalar estimate is filled explicitly. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | namespace EulerPacketMovingFrame |
| 13 | |
| 14 | open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay |
| 15 | EulerPacketBridge InnerProductSpace |
| 16 | |
| 17 | /-- A harmless third-row extension of a two-row transport matrix. -/ |
| 18 | def firstTwoRows (C : Fin 3 → Fin 3 → ℝ) (i j : Fin 3) : ℝ := |
| 19 | if i = 0 then C 0 j else C 1 j |
| 20 | |
| 21 | theorem velocityFirstRhs_firstTwoRows (A C : Fin 3 → Fin 3 → ℝ) |
| 22 | (ε P Q N U V : ℝ) : |
| 23 | velocityFirstRhs A (firstTwoRows C) ε P Q N U V = |
| 24 | velocityFirstRhs A C ε P Q N U V := by |
| 25 | simp [velocityFirstRhs, firstTwoRows] |
| 26 | |
| 27 | theorem velocitySecondRhs_firstTwoRows (A C : Fin 3 → Fin 3 → ℝ) |
| 28 | (ε P Q N U V : ℝ) : |
| 29 | velocitySecondRhs A (firstTwoRows C) ε P Q N U V = |
| 30 | velocitySecondRhs A C ε P Q N U V := by |
| 31 | simp [velocitySecondRhs, firstTwoRows] |
| 32 | |
| 33 | /-- The scalar error estimate needs no assumption on the physical third |
| 34 | transport row. -/ |
| 35 | theorem velocity_rhs_error_firstTwo |
| 36 | {A C : Fin 3 → Fin 3 → ℝ} {Θ e ε β P Q N P₀ Q₀ U V : ℝ} |
| 37 | (hΘ : 1 ≤ Θ) (he : 0 ≤ e) (hε : 0 ≤ ε) (hεe : ε ≤ e) |
| 38 | (hsmall : 10000 * e * Θ ^ 5 ≤ 1) (hβ : |β| ≤ 1) |
| 39 | (hA : ∀ i j, |A i j - idealVelocityEntry β i j| ≤ 3 * e) |
| 40 | (hC : ∀ j, |C 0 j - idealUnprojectedEntry 0 j| ≤ 5 * e ∧ |
| 41 | |C 1 j - idealUnprojectedEntry 1 j| ≤ 5 * e) |
| 42 | (hP₀ : |P₀| ≤ Θ ^ 2) (hQ₀ : |Q₀| ≤ 2 * Θ ^ 2) |
| 43 | (hP : |P - P₀| ≤ 800 * e * Θ ^ 5) |
| 44 | (hQ : |Q - Q₀| ≤ 800 * e * Θ ^ 5) |
| 45 | (hN : |N - 1| ≤ 800 * e * Θ ^ 5) : |
| 46 | |velocityFirstRhs A C ε P Q N U V - |
| 47 | (-2 * V + 2 * P₀ * ((P₀ + β) * V + Q₀ * U) / (1 + P₀ ^ 2))| + |
| 48 | |velocitySecondRhs A C ε P Q N U V + U| ≤ |
| 49 | 200000 * e * Θ ^ 12 * (|U| + |V|) := by |
| 50 | have hC' : ∀ i j, |firstTwoRows C i j - idealUnprojectedEntry i j| ≤ 5 * e := by |
| 51 | intro i j |
| 52 | fin_cases i |
| 53 | · simpa [firstTwoRows] using (hC j).1 |
| 54 | · simpa [firstTwoRows] using (hC j).2 |
| 55 | · simpa [firstTwoRows, idealUnprojectedEntry] using (hC j).2 |
| 56 | simpa only [velocityFirstRhs_firstTwoRows, velocitySecondRhs_firstTwoRows] using |
| 57 | velocity_rhs_error hΘ he hε hεe hsmall hβ hA hC' hP₀ hQ₀ hP hQ hN |
| 58 | |
| 59 | /-- The actual tangency constraint removes the third scaled coordinate. -/ |
| 60 | theorem scaledVelocity_firstTwo_hasDerivWithinAt (B M : Space →L[ℝ] Space) |
| 61 | {m v r w : ℝ → Space} {s₀ t₀ a ε τ : ℝ} {S U : Set ℝ} |
| 62 | (ha : a ≠ 0) (hε : ε ≠ 0) (hs₀ : s₀ ≠ 0) |
| 63 | (hmap : MapsTo (physicalTime t₀ a ε) U S) |
| 64 | (hm : HasDerivWithinAt m (-B.adjoint (m (physicalTime t₀ a ε τ))) S (physicalTime t₀ a ε τ)) |
| 65 | (hv : HasDerivWithinAt v (-B (v (physicalTime t₀ a ε τ)) + |
| 66 | (2*⟪m (physicalTime t₀ a ε τ),B (v (physicalTime t₀ a ε τ))⟫_ℝ / |
| 67 | ‖m (physicalTime t₀ a ε τ)‖^2) • m (physicalTime t₀ a ε τ)) S (physicalTime t₀ a ε τ)) |
| 68 | (hw : HasDerivWithinAt w (-M (w (physicalTime t₀ a ε τ)) + |
| 69 | (2*⟪r (physicalTime t₀ a ε τ),M (w (physicalTime t₀ a ε τ))⟫_ℝ / |
| 70 | ‖r (physicalTime t₀ a ε τ)‖^2) • r (physicalTime t₀ a ε τ)) S (physicalTime t₀ a ε τ)) |
| 71 | (hm0 : m (physicalTime t₀ a ε τ) ≠ 0) (hv0 : v (physicalTime t₀ a ε τ) ≠ 0) |
| 72 | (hmv : ⟪m (physicalTime t₀ a ε τ),v (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 73 | (hr0 : r (physicalTime t₀ a ε τ) ≠ 0) |
| 74 | (hrw : ⟪r (physicalTime t₀ a ε τ),w (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 75 | (hN : scaledRay m v r s₀ t₀ a ε τ 2 ≠ 0) : |
| 76 | let R := scaledRay m v r s₀ t₀ a ε τ |
| 77 | let V := scaledVelocity m v w t₀ a ε τ |
| 78 | let A := scaledAction M m v a ε (physicalTime t₀ a ε τ) |
| 79 | let C := scaledTransport B M m v a ε (physicalTime t₀ a ε τ) |
| 80 | HasDerivWithinAt (fun σ => scaledVelocity m v w t₀ a ε σ 0) |
| 81 | (velocityFirstRhs A C ε (R 0) (R 1) (R 2) (V 0) (V 1)) U τ ∧ |
| 82 | HasDerivWithinAt (fun σ => scaledVelocity m v w t₀ a ε σ 1) |
| 83 | (velocitySecondRhs A C ε (R 0) (R 1) (R 2) (V 0) (V 1)) U τ := by |
| 84 | have hthird := thirdVelocity_of_pairing _ _ hN |
| 85 | (scaled_pairing_zero m v r w hs₀ hε hm0 hv0 hmv hrw) |
| 86 | constructor |
| 87 | · have h := scaledVelocity_hasDerivWithinAt B M ha hε hs₀ hmap hm hv hw hm0 hv0 hmv hr0 0 |
| 88 | rw [scaledVelocityRhs_first _ _ _ _ _ hthird] at h |
| 89 | exact h |
| 90 | · have h := scaledVelocity_hasDerivWithinAt B M ha hε hs₀ hmap hm hv hw hm0 hv0 hmv hr0 1 |
| 91 | rw [scaledVelocityRhs_second _ _ _ _ _ hthird] at h |
| 92 | exact h |
| 93 | |
| 94 | /-- The flux identity is valid with the actual one-sided endpoint derivatives |
| 95 | of packet paths, as well as in the interior. -/ |
| 96 | theorem velocity_scalar_flux_within |
| 97 | {β t u₁ v₁ : ℝ} {U V : ℝ → ℝ} {S : Set ℝ} |
| 98 | (hU : HasDerivWithinAt U u₁ S t) (hV : HasDerivWithinAt V v₁ S t) : |
| 99 | HasDerivWithinAt V (-U t + (v₁ + U t)) S t ∧ |
| 100 | HasDerivWithinAt (fun s => (1 + (β * s ^ 2) ^ 2) * (-U s)) |
| 101 | (2 * (1 - β * (β * t ^ 2)) * V t + (1 + (β * t ^ 2) ^ 2) * |
| 102 | (-u₁ + idealVelocityFirst β t (U t) (V t))) S t := by |
| 103 | refine ⟨hV.congr_deriv (by ring), ?_⟩ |
| 104 | have hD : HasDerivAt (fun s : ℝ => 1 + (β * s ^ 2) ^ 2) (4 * β ^ 2 * t ^ 3) t := by |
| 105 | convert! ((((hasDerivAt_id t).pow 2).const_mul β).pow 2).const_add 1 using 1 |
| 106 | simp only [Pi.pow_apply, id_eq] |
| 107 | ring |
| 108 | apply (hD.hasDerivWithinAt.mul hU.neg).congr_deriv |
| 109 | have hden : 1 + (β * t ^ 2) ^ 2 ≠ 0 := by positivity |
| 110 | dsimp [idealVelocityFirst] |
| 111 | field_simp |
| 112 | ring |
| 113 | |
| 114 | end EulerPacketMovingFrame |