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.FiniteGradeSupport |
| 2 | |
| 3 | /-! |
| 4 | Exact grade expansion of a finite packet's momentum residual. The operators |
| 5 | may be instantiated by the actual value/derivative jets at each space-time |
| 6 | point; this file proves the finite algebra and does not assume an Euler solve. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketResidual |
| 12 | |
| 13 | open Finset EulerFiniteGrades |
| 14 | |
| 15 | variable {V Q W : Type*} [AddCommGroup V] [Module ℝ V] |
| 16 | [AddCommGroup Q] [Module ℝ Q] [AddCommGroup W] [Module ℝ W] |
| 17 | |
| 18 | def residual (M : ℕ) (κ : ℝ) (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) |
| 19 | (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) (u : ℕ → V) (p : ℕ → Q) : W := |
| 20 | L (evaluate M κ u) + G (evaluate M κ p) + κ⁻¹ • H (evaluate M κ p) + |
| 21 | B (evaluate M κ u) (evaluate M κ u) + κ⁻¹ • C (evaluate M κ u) (evaluate M κ u) |
| 22 | |
| 23 | def coefficient (M : ℕ) (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) |
| 24 | (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) (u : ℕ → V) (p : ℕ → Q) (n : ℕ) : W := |
| 25 | truncate M (fun j => L (u j)) n + truncate M (fun j => G (p j)) n + |
| 26 | shiftDown M (fun j => H (p j)) n + convolution M B u u n + |
| 27 | shiftDown (2*M) (convolution M C u u) n |
| 28 | |
| 29 | /-- The fast terms lose one grade, with their potentially negative grade proved absent. -/ |
| 30 | theorem residual_eq_evaluate (M : ℕ) (κ : ℝ) (hκ : κ ≠ 0) |
| 31 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 32 | (u : ℕ → V) (p : ℕ → Q) (hu : u 0=0) (hp : H (p 0)=0) : |
| 33 | residual M κ L G H B C u p = evaluate (2*M) κ (coefficient M L G H B C u p) := by |
| 34 | have hL := evaluate_truncate_extend M (2*M) (by omega) κ (fun j => L (u j)) |
| 35 | have hG := evaluate_truncate_extend M (2*M) (by omega) κ (fun j => G (p j)) |
| 36 | have hH := inverse_evaluate_shiftDown_extend M (2*M) (by omega) κ hκ (fun j => H (p j)) hp |
| 37 | have hC := inverse_evaluate_shiftDown (2*M) κ hκ (convolution M C u u) |
| 38 | (convolution_zero M C u u hu) |
| 39 | unfold residual |
| 40 | rw [bilinear_evaluate M κ B u u, bilinear_evaluate M κ C u u] |
| 41 | rw [map_evaluate M κ L u, map_evaluate M κ G p, map_evaluate M κ H p] |
| 42 | rw [← hL, ← hG, hH, hC] |
| 43 | simp only [coefficient, evaluate, smul_add, sum_add_distrib] |
| 44 | |
| 45 | /-- Cancellation of each low coefficient removes precisely those grades from the actual residual. -/ |
| 46 | theorem residual_eq_tail (M K : ℕ) (hK : K ≤ 2*M+1) (κ : ℝ) (hκ : κ ≠ 0) |
| 47 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 48 | (u : ℕ → V) (p : ℕ → Q) (hu : u 0=0) (hp : H (p 0)=0) |
| 49 | (hcancel : ∀ n < K, coefficient M L G H B C u p n=0) : |
| 50 | residual M κ L G H B C u p = |
| 51 | ∑ n ∈ Ico K (2*M+1), κ^n • coefficient M L G H B C u p n := by |
| 52 | rw [residual_eq_evaluate M κ hκ L G H B C u p hu hp] |
| 53 | exact evaluate_eq_tail (2*M) K hK κ _ hcancel |
| 54 | |
| 55 | /-- For N profiles plus the last divergence corrector, the remaining grades are N+1 through 2N+2. -/ |
| 56 | theorem packet_residual_eq_tail (N : ℕ) (κ : ℝ) (hκ : κ ≠ 0) |
| 57 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 58 | (u : ℕ → V) (p : ℕ → Q) (hu : u 0=0) (hp : H (p 0)=0) |
| 59 | (hcancel : ∀ n ≤ N, coefficient (N+1) L G H B C u p n=0) : |
| 60 | residual (N+1) κ L G H B C u p = |
| 61 | ∑ n ∈ Ico (N+1) (2*N+3), κ^n • coefficient (N+1) L G H B C u p n := by |
| 62 | have h := residual_eq_tail (N+1) (N+1) (by omega) κ hκ L G H B C u p hu hp |
| 63 | (fun n hn => hcancel n (by omega)) |
| 64 | simpa only [show 2*(N+1)+1 = 2*N+3 by omega] using h |
| 65 | |
| 66 | end EulerPacketResidual |