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.PacketScaledVelocityAlgebra |
| 2 | import Mathlib.LinearAlgebra.CrossProduct |
| 3 | |
| 4 | /-! Exact scaled cross and pressure algebra used by physical frame renewal. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | |
| 9 | namespace EulerPacketMovingFrame |
| 10 | |
| 11 | open EulerPacketRay EulerPacketFrameStability |
| 12 | |
| 13 | theorem velocityNumerator_homogeneous (A : Fin 3 → Fin 3 → ℝ) |
| 14 | (P Q N U V W : ℝ) (hV : V ≠ 0) : |
| 15 | velocityNumerator A P Q N U V W = |
| 16 | V*velocityNumerator A P Q N (U/V) 1 (W/V) := by |
| 17 | unfold velocityNumerator |
| 18 | field_simp |
| 19 | |
| 20 | theorem scaling_cross_flux {a : ℝ} (ha : a ≠ 0) (s₀ ε : ℝ) |
| 21 | (M : Fin 3 → Fin 3 → ℝ) (R V : Fin 3 → ℝ) (hV : V 1 ≠ 0) : |
| 22 | (∑ i : Fin 3, |
| 23 | (_root_.crossProduct (fun j => s₀*rayScale ε j*R j) (fun j => velocityScale ε j*V j)) i * |
| 24 | (∑ j : Fin 3, M i j*(velocityScale ε j*V j))) = |
| 25 | s₀*a*(V 1)^2*frameCrossNumerator ε (R 0) (R 1) (R 2) (V 0/V 1) (V 2/V 1) |
| 26 | (rowAction (scaledVelocityEntry a ε M) 0 (V 0/V 1) (V 2/V 1)) |
| 27 | (rowAction (scaledVelocityEntry a ε M) 1 (V 0/V 1) (V 2/V 1)) |
| 28 | (rowAction (scaledVelocityEntry a ε M) 2 (V 0/V 1) (V 2/V 1)) := by |
| 29 | norm_num [Fin.sum_univ_three, _root_.cross_apply, velocityScale, rayScale, |
| 30 | scaledVelocityEntry, frameCrossNumerator, rowAction, Fin.ext_iff, |
| 31 | Matrix.cons_val_two, Matrix.tail_cons, Matrix.head_cons] |
| 32 | field_simp |
| 33 | ring |
| 34 | |
| 35 | theorem scaling_pressure_ratio {a : ℝ} (ha : a ≠ 0) (s₀ ε : ℝ) |
| 36 | (M : Fin 3 → Fin 3 → ℝ) (R V : Fin 3 → ℝ) (hV : V 1 ≠ 0) : |
| 37 | (∑ i : Fin 3, (s₀*rayScale ε i*R i)*(∑ j : Fin 3, M i j*(velocityScale ε j*V j))) = |
| 38 | s₀*a*(V 1)*velocityNumerator (scaledVelocityEntry a ε M) |
| 39 | (R 0) (R 1) (R 2) (V 0/V 1) 1 (V 2/V 1) := by |
| 40 | rw [scaling_flux ha, velocityNumerator_homogeneous _ _ _ _ _ _ _ hV] |
| 41 | ring |
| 42 | |
| 43 | end EulerPacketMovingFrame |