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.FiniteGradeDiagonal |
| 2 | |
| 3 | /-! Which unknown coefficients can enter the slow and fast quadratic terms. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerFiniteGrades |
| 8 | |
| 9 | open Finset |
| 10 | |
| 11 | variable {V W : Type*} [AddCommGroup V] [Module ℝ V] |
| 12 | [AddCommGroup W] [Module ℝ W] |
| 13 | |
| 14 | /-- With zero constant coefficient, the slow grade p depends only on grades below p. -/ |
| 15 | theorem convolution_strict_congr (M p : ℕ) (hp : 0 < p) (hMp : p ≤ M) |
| 16 | (B : V →ₗ[ℝ] V →ₗ[ℝ] W) (u u' : ℕ → V) (hu0 : u 0=0) |
| 17 | (hu : ∀ i < p, u' i=u i) : |
| 18 | convolution M B u' u' p = convolution M B u u p := by |
| 19 | rw [convolution_eq_range M p hMp, convolution_eq_range M p hMp] |
| 20 | apply sum_congr rfl |
| 21 | intro i hi |
| 22 | have hi' : i ≤ p := by have h := mem_range.mp hi; omega |
| 23 | by_cases hi0 : i=0 |
| 24 | · simp only [hi0, hu 0 hp, hu0, map_zero, LinearMap.zero_apply] |
| 25 | by_cases hip : i=p |
| 26 | · simp only [hip, Nat.sub_self, hu 0 hp, hu0, map_zero] |
| 27 | rw [hu i (by omega), hu (p-i) (by omega)] |
| 28 | |
| 29 | /-- The fast grade p has exactly two possible dependencies on the new grade p. -/ |
| 30 | theorem convolution_next_delta (M p : ℕ) (hp : 2 ≤ p) (hMp : p+1 ≤ M) |
| 31 | (B : V →ₗ[ℝ] V →ₗ[ℝ] W) (u u' : ℕ → V) (δ : V) (hu0 : u 0=0) |
| 32 | (hu : ∀ i < p, u' i=u i) (hδ : u' p=u p+δ) : |
| 33 | convolution M B u' u' (p+1) = convolution M B u u (p+1) + |
| 34 | B δ (u 1) + B (u 1) δ := by |
| 35 | rw [convolution_eq_range M (p+1) hMp, convolution_eq_range M (p+1) hMp] |
| 36 | have hterm : ∀ i ∈ range (p+2), |
| 37 | B (u' i) (u' (p+1-i)) = B (u i) (u (p+1-i)) + |
| 38 | (if i=p then B δ (u 1) else 0) + (if i=1 then B (u 1) δ else 0) := by |
| 39 | intro i hi |
| 40 | have hi' : i ≤ p+1 := by have h := mem_range.mp hi; omega |
| 41 | by_cases hi0 : i=0 |
| 42 | · simp [hi0, hu 0 (by omega), hu0, show (0 : ℕ) ≠ p by omega] |
| 43 | by_cases hiend : i=p+1 |
| 44 | · simp [hiend, hu 0 (by omega), hu0, show p ≠ 0 by omega] |
| 45 | by_cases hip : i=p |
| 46 | · simp [hip, hδ, hu 1 (by omega), show p ≠ 1 by omega, map_add, |
| 47 | LinearMap.add_apply] |
| 48 | by_cases hi1 : i=1 |
| 49 | · simp [hi1, hδ, hu 1 (by omega), show 1 ≠ p by omega, map_add] |
| 50 | rw [hu i (by omega), hu (p+1-i) (by omega)] |
| 51 | simp [hip, hi1] |
| 52 | calc |
| 53 | _ = ∑ i ∈ range (p+2), |
| 54 | (B (u i) (u (p+1-i)) + (if i=p then B δ (u 1) else 0) + |
| 55 | (if i=1 then B (u 1) δ else 0)) := sum_congr rfl hterm |
| 56 | _ = _ := by |
| 57 | rw [sum_add_distrib, sum_add_distrib] |
| 58 | simp only [sum_ite_eq', mem_range, show p < p+2 by omega, |
| 59 | show 1 < p+2 by omega, ite_true] |
| 60 | |
| 61 | end EulerFiniteGrades |