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.MeanBoundaryOperator |
| 2 | import Mathlib.Analysis.InnerProductSpace.Symmetric |
| 3 | |
| 4 | noncomputable section |
| 5 | |
| 6 | open EulerSmoothLimit |
| 7 | open scoped RealInnerProductSpace |
| 8 | |
| 9 | namespace EulerMeanBoundary |
| 10 | |
| 11 | /-- The curl vanishes precisely when the real derivative matrix is symmetric. -/ |
| 12 | theorem curlMatrix_eq_zero_iff_isSymmetric (A : Space →L[ℝ] Space) : |
| 13 | curlMatrix A = 0 ↔ A.IsSymmetric := by |
| 14 | constructor |
| 15 | · intro h |
| 16 | have hc (i : Fin 3) : |
| 17 | (A (EuclideanSpace.single (i+1) 1)) (i+2) - |
| 18 | (A (EuclideanSpace.single (i+2) 1)) (i+1) = 0 := by |
| 19 | exact congrArg (fun v : Space => v i) h |
| 20 | have h0 := hc 0 |
| 21 | have h1 := hc 1 |
| 22 | have h2 := hc 2 |
| 23 | change (A (EuclideanSpace.single 1 1)) 2 - (A (EuclideanSpace.single 2 1)) 1 = 0 at h0 |
| 24 | change (A (EuclideanSpace.single 2 1)) 0 - (A (EuclideanSpace.single 0 1)) 2 = 0 at h1 |
| 25 | change (A (EuclideanSpace.single 0 1)) 1 - (A (EuclideanSpace.single 1 1)) 0 = 0 at h2 |
| 26 | have heq (i j : Fin 3) : |
| 27 | (A (EuclideanSpace.single i 1)) j = (A (EuclideanSpace.single j 1)) i := by |
| 28 | fin_cases i <;> fin_cases j <;> |
| 29 | first | rfl | exact sub_eq_zero.mp h0 | exact sub_eq_zero.mp h1 | |
| 30 | exact sub_eq_zero.mp h2 | exact (sub_eq_zero.mp h0).symm | |
| 31 | exact (sub_eq_zero.mp h1).symm | exact (sub_eq_zero.mp h2).symm |
| 32 | intro x y |
| 33 | have hx := (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr x |
| 34 | have hy := (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr y |
| 35 | rw [← hx, ← hy] |
| 36 | simp only [map_sum, map_smul, sum_inner, inner_sum, real_inner_smul_left, |
| 37 | inner_smul_right, EuclideanSpace.basisFun_apply, EuclideanSpace.inner_single_left, |
| 38 | EuclideanSpace.inner_single_right, map_one, one_mul, PiLp.smul_apply, smul_eq_mul, starRingEnd_apply, star_trivial] |
| 39 | apply Finset.sum_congr rfl |
| 40 | intro i _ |
| 41 | congr 1 |
| 42 | apply Finset.sum_congr rfl |
| 43 | intro j _ |
| 44 | congr 1 |
| 45 | exact heq j i |
| 46 | · intro h |
| 47 | ext i |
| 48 | have hi := h (EuclideanSpace.single (i+1) 1) (EuclideanSpace.single (i+2) 1) |
| 49 | simpa [curlMatrix, EuclideanSpace.inner_single_left, |
| 50 | EuclideanSpace.inner_single_right, sub_eq_zero] using hi |
| 51 | |
| 52 | end EulerMeanBoundary |