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.FiniteGradeAlgebra |
| 2 | import Mathlib.Algebra.BigOperators.NatAntidiagonal |
| 3 | |
| 4 | /-! The finite residual convolution is exactly the source's sum over i+j=n. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerFiniteGrades |
| 9 | |
| 10 | open Finset Finset.HasAntidiagonal |
| 11 | |
| 12 | variable {V W Q : Type*} [AddCommGroup V] [Module ℝ V] |
| 13 | [AddCommGroup W] [Module ℝ W] [AddCommGroup Q] [Module ℝ Q] |
| 14 | |
| 15 | theorem bounded_pairs_eq_antidiagonal (M n : ℕ) (hn : n ≤ M) : |
| 16 | ((range (M+1)) ×ˢ (range (M+1))).filter (fun ij => ij.1+ij.2=n) = antidiagonal n := by |
| 17 | ext ij |
| 18 | simp only [mem_filter, mem_product, mem_range, mem_antidiagonal] |
| 19 | constructor |
| 20 | · exact fun h => h.2 |
| 21 | · intro h |
| 22 | exact ⟨⟨by omega, by omega⟩, h⟩ |
| 23 | |
| 24 | theorem convolution_eq_antidiagonal (M n : ℕ) (hn : n ≤ M) |
| 25 | (B : V →ₗ[ℝ] W →ₗ[ℝ] Q) (u : ℕ → V) (v : ℕ → W) : |
| 26 | convolution M B u v n = ∑ ij ∈ antidiagonal n, B (u ij.1) (v ij.2) := by |
| 27 | rw [← bounded_pairs_eq_antidiagonal M n hn] |
| 28 | simp only [sum_filter, sum_product, convolution] |
| 29 | |
| 30 | theorem convolution_eq_range (M n : ℕ) (hn : n ≤ M) |
| 31 | (B : V →ₗ[ℝ] W →ₗ[ℝ] Q) (u : ℕ → V) (v : ℕ → W) : |
| 32 | convolution M B u v n = ∑ i ∈ range (n+1), B (u i) (v (n-i)) := by |
| 33 | rw [convolution_eq_antidiagonal M n hn] |
| 34 | exact Finset.Nat.sum_antidiagonal_eq_sum_range_succ (fun i j => B (u i) (v j)) n |
| 35 | |
| 36 | /-- No coefficient above the target grade enters its slow convolution. -/ |
| 37 | theorem convolution_congr_below (M n : ℕ) (hn : n ≤ M) |
| 38 | (B : V →ₗ[ℝ] W →ₗ[ℝ] Q) (u u' : ℕ → V) (v v' : ℕ → W) |
| 39 | (hu : ∀ i ≤ n, u i=u' i) (hv : ∀ i ≤ n, v i=v' i) : |
| 40 | convolution M B u v n = convolution M B u' v' n := by |
| 41 | rw [convolution_eq_range M n hn, convolution_eq_range M n hn] |
| 42 | apply sum_congr rfl |
| 43 | intro i hi |
| 44 | rw [hu i (by have h := mem_range.mp hi; omega), hv (n-i) (Nat.sub_le n i)] |
| 45 | |
| 46 | end EulerFiniteGrades |