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 Mathlib.Data.Complex.Basic |
| 2 | import Mathlib.LinearAlgebra.Matrix.Notation |
| 3 | import Mathlib.Tactic.FieldSimp |
| 4 | import Mathlib.Tactic.FinCases |
| 5 | import Mathlib.Tactic.Linarith |
| 6 | import Mathlib.Tactic.Ring |
| 7 | |
| 8 | /-! |
| 9 | # Algebra of the curl realization in Lemma 8.8 |
| 10 | |
| 11 | The dot product below is bilinear, including over `ℂ`: for a real phase normal |
| 12 | its self-product is the real squared length. These results check the principal |
| 13 | symbol and the algebraic divergence cancellation. They do not establish |
| 14 | regularity, bounds for the differentiated amplitude, or descent from the lift. |
| 15 | -/ |
| 16 | |
| 17 | namespace NavierStokes.CurlGeometry |
| 18 | |
| 19 | abbrev Vec3 (R : Type*) := Fin 3 → R |
| 20 | |
| 21 | def dot {R : Type*} [CommRing R] (u v : Vec3 R) : R := |
| 22 | u 0 * v 0 + u 1 * v 1 + u 2 * v 2 |
| 23 | |
| 24 | def cross {R : Type*} [CommRing R] (u v : Vec3 R) : Vec3 R := |
| 25 | ![u 1 * v 2 - u 2 * v 1, |
| 26 | u 2 * v 0 - u 0 * v 2, |
| 27 | u 0 * v 1 - u 1 * v 0] |
| 28 | |
| 29 | /-- The vector triple-product identity, before imposing tangency. -/ |
| 30 | theorem triple_product {R : Type*} [CommRing R] (n a : Vec3 R) : |
| 31 | cross n (cross n a) = dot n a • n - dot n n • a := by |
| 32 | funext j |
| 33 | fin_cases j <;> simp [cross, dot] <;> ring |
| 34 | |
| 35 | /-- Tangency is exactly the hypothesis eliminating the longitudinal term. -/ |
| 36 | theorem tangent_double_cross {R : Type*} [CommRing R] (n a : Vec3 R) |
| 37 | (ha : dot n a = 0) : |
| 38 | cross n (cross n a) = -(dot n n • a) := by |
| 39 | rw [triple_product, ha, zero_smul, zero_sub] |
| 40 | |
| 41 | theorem cross_smul {R : Type*} [CommRing R] (s t : R) (u v : Vec3 R) : |
| 42 | cross (s • u) (t • v) = (s * t) • cross u v := by |
| 43 | funext j |
| 44 | fin_cases j <;> simp [cross] <;> ring |
| 45 | |
| 46 | /-- A nonzero real normal has nonzero squared length, as required in (30). -/ |
| 47 | theorem real_dot_self_ne_zero {n : Vec3 ℝ} (hn : n ≠ 0) : dot n n ≠ 0 := by |
| 48 | intro h |
| 49 | have h0 : n 0 = 0 := by |
| 50 | dsimp [dot] at h |
| 51 | nlinarith [sq_nonneg (n 0), sq_nonneg (n 1), sq_nonneg (n 2)] |
| 52 | have h1 : n 1 = 0 := by |
| 53 | dsimp [dot] at h |
| 54 | nlinarith [sq_nonneg (n 0), sq_nonneg (n 1), sq_nonneg (n 2)] |
| 55 | have h2 : n 2 = 0 := by |
| 56 | dsimp [dot] at h |
| 57 | nlinarith [sq_nonneg (n 0), sq_nonneg (n 1), sq_nonneg (n 2)] |
| 58 | apply hn |
| 59 | funext j |
| 60 | fin_cases j <;> simp_all |
| 61 | |
| 62 | /-- The normalized double cross product displayed in Lemma 8.8. -/ |
| 63 | theorem normalized_double_cross {R : Type*} [Field R] (n a : Vec3 R) |
| 64 | (hn : dot n n ≠ 0) (ha : dot n a = 0) : |
| 65 | (-1 / dot n n) • cross n (cross n a) = a := by |
| 66 | rw [tangent_double_cross n a ha] |
| 67 | funext j |
| 68 | simp only [Pi.smul_apply, Pi.neg_apply, smul_eq_mul] |
| 69 | field_simp |
| 70 | |
| 71 | noncomputable def curlSymbol (ξ A : Vec3 ℂ) : Vec3 ℂ := |
| 72 | cross (Complex.I • ξ) A |
| 73 | |
| 74 | /-- The coefficient of the potential (30), with the oscillatory exponential |
| 75 | factored out. `k` is its nonzero frequency and `n` its phase normal. -/ |
| 76 | noncomputable def potentialCoefficient (k : ℂ) (n a : Vec3 ℂ) : Vec3 ℂ := |
| 77 | (Complex.I / (k * dot n n)) • cross n a |
| 78 | |
| 79 | /-- The two factors of `i` and the vector triple product give the amplitude |
| 80 | with the positive sign claimed in (30). -/ |
| 81 | theorem principal_symbol_realizes (k : ℂ) (n a : Vec3 ℂ) |
| 82 | (hk : k ≠ 0) (hn : dot n n ≠ 0) (ha : dot n a = 0) : |
| 83 | curlSymbol (k • n) (potentialCoefficient k n a) = a := by |
| 84 | unfold curlSymbol potentialCoefficient |
| 85 | rw [smul_smul, cross_smul] |
| 86 | have hs : (Complex.I * k) * (Complex.I / (k * dot n n)) = |
| 87 | -1 / dot n n := by |
| 88 | calc |
| 89 | _ = (Complex.I * Complex.I) * (k / (k * dot n n)) := by ring |
| 90 | _ = _ := by rw [Complex.I_mul_I]; field_simp |
| 91 | rw [hs] |
| 92 | exact normalized_double_cross n a hn ha |
| 93 | |
| 94 | def complexify (n : Vec3 ℝ) : Vec3 ℂ := fun j => (n j : ℂ) |
| 95 | |
| 96 | /-! ## Cylindrical differential cancellation |
| 97 | |
| 98 | This is a conditional identity for three additive differential operators on a |
| 99 | commutative ring of coefficient functions. In the application `q = 1/R`. |
| 100 | The assumptions state pairwise commutation and precisely the radial/axial |
| 101 | product rules for multiplication by `q` used by the calculation. They must |
| 102 | still be established for the manuscript's graph derivatives. |
| 103 | -/ |
| 104 | |
| 105 | def cylindricalCurl {F : Type*} [CommRing F] |
| 106 | (Dr Dθ Dz : F →+ F) (q : F) (A : Vec3 F) : Vec3 F := |
| 107 | ![q * Dθ (A 2) - Dz (A 1), |
| 108 | Dz (A 0) - Dr (A 2), |
| 109 | Dr (A 1) + q * A 1 - q * Dθ (A 0)] |
| 110 | |
| 111 | end NavierStokes.CurlGeometry |