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.PacketLowGrades |
| 2 | import Euler.FiniteGradeAssembly |
| 3 | |
| 4 | /-! The coefficient equations of the literal assembled packet give the force in (14). -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketResidual |
| 9 | |
| 10 | open Finset EulerFiniteGrades |
| 11 | |
| 12 | variable {V Q W : Type*} [AddCommGroup V] [Module ℝ V] |
| 13 | [AddCommGroup Q] [Module ℝ Q] [AddCommGroup W] [Module ℝ W] |
| 14 | |
| 15 | theorem assembled_fast_pressure (N p : ℕ) (hp : p ≤ N) |
| 16 | (H : Q →ₗ[ℝ] W) (q π : ℕ → Q) (hq : ∀ i ≤ N, H (q i)=0) : |
| 17 | H (assemble N q π (p+1)) = H (π p) := by |
| 18 | by_cases h : p+1 ≤ N |
| 19 | · rw [assemble_interior N (p+1) (by omega) h, Nat.add_sub_cancel, map_add, |
| 20 | hq (p+1) h, zero_add] |
| 21 | · have hpN : p=N := by omega |
| 22 | rw [hpN, assemble_last] |
| 23 | |
| 24 | /-- Both pressure contributions and the final corrector are retained in this identity. -/ |
| 25 | theorem coefficient_assembled (N p : ℕ) (hp : 1 ≤ p) (hpN : p ≤ N) |
| 26 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 27 | (a b c : ℕ → V) (q π : ℕ → Q) (hq : ∀ i ≤ N, H (q i)=0) : |
| 28 | coefficient (N+1) L G H B C (assemble N (fun i => a i+b i) c) (assemble N q π) p = |
| 29 | (L (a p)+H (π p)) + (L (b p)+G (q p)) + (L (c (p-1))+G (π (p-1))) + |
| 30 | convolution (N+1) B (assemble N (fun i => a i+b i) c) |
| 31 | (assemble N (fun i => a i+b i) c) p + |
| 32 | convolution (N+1) C (assemble N (fun i => a i+b i) c) |
| 33 | (assemble N (fun i => a i+b i) c) (p+1) := by |
| 34 | unfold coefficient shiftDown |
| 35 | rw [truncate_of_le (N+1) p _ (by omega), truncate_of_le (N+1) p _ (by omega), |
| 36 | truncate_of_le (N+1) (p+1) _ (by omega), |
| 37 | truncate_of_le (2*(N+1)) (p+1) _ (by omega), |
| 38 | assemble_interior N p hp hpN, assemble_interior N p hp hpN, |
| 39 | assembled_fast_pressure N p hpN H q π hq] |
| 40 | simp only [map_add] |
| 41 | abel |
| 42 | |
| 43 | /-- The two actual linear equations imply cancellation; no residual equation is assumed. -/ |
| 44 | theorem coefficient_assembled_eq_zero (N p : ℕ) (hp : 1 ≤ p) (hpN : p ≤ N) |
| 45 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 46 | (a b c : ℕ → V) (q π : ℕ → Q) (hq : ∀ i ≤ N, H (q i)=0) (fmean : W) |
| 47 | (hmean : L (b p)+G (q p)=fmean) |
| 48 | (hhigh : L (a p)+H (π p)= |
| 49 | -(L (c (p-1))+G (π (p-1))+ |
| 50 | convolution (N+1) B (assemble N (fun i => a i+b i) c) |
| 51 | (assemble N (fun i => a i+b i) c) p+ |
| 52 | convolution (N+1) C (assemble N (fun i => a i+b i) c) |
| 53 | (assemble N (fun i => a i+b i) c) (p+1))-fmean) : |
| 54 | coefficient (N+1) L G H B C (assemble N (fun i => a i+b i) c) (assemble N q π) p=0 := by |
| 55 | rw [coefficient_assembled N p hp hpN L G H B C a b c q π hq, hmean, hhigh] |
| 56 | abel |
| 57 | |
| 58 | theorem coefficient_zero_grade (N : ℕ) (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) |
| 59 | (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) (u : ℕ → V) (q : ℕ → Q) |
| 60 | (hu0 : u 0=0) (hq0 : G (q 0)=0) (hq1 : H (q 1)=0) : |
| 61 | coefficient (N+1) L G H B C u q 0=0 := by |
| 62 | rw [coefficient_eq_diagonal (N+1) 0 (by omega)] |
| 63 | simp [hu0, hq0, hq1, sum_range_succ] |
| 64 | |
| 65 | end EulerPacketResidual |