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 NavierStokes.SpatialCurl |
| 2 | import NavierStokes.ResidualStability |
| 3 | import NavierStokes.CurlGeometry |
| 4 | import NavierStokes.JetBounds |
| 5 | import Mathlib.Analysis.InnerProductSpace.Calculus |
| 6 | import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv |
| 7 | |
| 8 | /-! |
| 9 | # Real oscillatory curl realization |
| 10 | |
| 11 | The potential and curl below use actual Euclidean spatial derivatives. The |
| 12 | oscillatory carrier is kept separate from the stripped remainder coefficient. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.OscillatoryCurl |
| 18 | |
| 19 | open ProblemStatement Set Filter |
| 20 | open scoped Topology BigOperators ContDiff InnerProductSpace |
| 21 | |
| 22 | |
| 23 | /-- Cross product on the same Euclidean space as the PDE target, as a bounded |
| 24 | bilinear map. -/ |
| 25 | def crossLinear : Space →L[ℝ] Space →L[ℝ] Space := |
| 26 | (EuclideanSpace.proj 1).smulRight ((EuclideanSpace.proj 2).smulRight (coordinateVector 0)) - |
| 27 | (EuclideanSpace.proj 2).smulRight ((EuclideanSpace.proj 1).smulRight (coordinateVector 0)) + |
| 28 | (EuclideanSpace.proj 2).smulRight ((EuclideanSpace.proj 0).smulRight (coordinateVector 1)) - |
| 29 | (EuclideanSpace.proj 0).smulRight ((EuclideanSpace.proj 2).smulRight (coordinateVector 1)) + |
| 30 | (EuclideanSpace.proj 0).smulRight ((EuclideanSpace.proj 1).smulRight (coordinateVector 2)) - |
| 31 | (EuclideanSpace.proj 1).smulRight ((EuclideanSpace.proj 0).smulRight (coordinateVector 2)) |
| 32 | |
| 33 | def cross (u v : Space) : Space := crossLinear u v |
| 34 | |
| 35 | |
| 36 | theorem cross_apply (u v : Space) : |
| 37 | cross u v = |
| 38 | u 1 • (v 2 • coordinateVector 0) - u 2 • (v 1 • coordinateVector 0) + |
| 39 | u 2 • (v 0 • coordinateVector 1) - u 0 • (v 2 • coordinateVector 1) + |
| 40 | u 0 • (v 1 • coordinateVector 2) - u 1 • (v 0 • coordinateVector 2) := rfl |
| 41 | |
| 42 | @[simp] theorem cross_zero (u v : Space) : (cross u v) 0 = u 1 * v 2 - u 2 * v 1 := by |
| 43 | rw [cross_apply] |
| 44 | simp [coordinateVector] |
| 45 | |
| 46 | @[simp] theorem cross_one (u v : Space) : (cross u v) 1 = u 2 * v 0 - u 0 * v 2 := by |
| 47 | rw [cross_apply] |
| 48 | simp [coordinateVector] |
| 49 | |
| 50 | @[simp] theorem cross_two (u v : Space) : (cross u v) 2 = u 0 * v 1 - u 1 * v 0 := by |
| 51 | rw [cross_apply] |
| 52 | simp [coordinateVector] |
| 53 | |
| 54 | @[simp] theorem cross_smul_left (c : ℝ) (u v : Space) : |
| 55 | cross (c • u) v = c • cross u v := by simp [cross] |
| 56 | |
| 57 | @[simp] theorem cross_smul_right (c : ℝ) (u v : Space) : |
| 58 | cross u (c • v) = c • cross u v := by simp [cross] |
| 59 | |
| 60 | @[simp] theorem cross_zero_right (u : Space) : cross u 0 = 0 := by simp [cross] |
| 61 | |
| 62 | theorem inner_coordinates (u v : Space) : |
| 63 | ⟪u, v⟫_ℝ = u 0 * v 0 + u 1 * v 1 + u 2 * v 2 := by |
| 64 | simp [PiLp.inner_apply, Fin.sum_univ_three, mul_comm] |
| 65 | |
| 66 | /-- The inverse-square-normal coefficient used by the real potential. -/ |
| 67 | def normalCoefficient (n a : Space) : Space := (‖n‖ ^ 2)⁻¹ • cross n a |
| 68 | |
| 69 | /-- The actual Euclidean gradient map applied to a scalar derivative. -/ |
| 70 | def gradientLinear : (Space →L[ℝ] ℝ) →L[ℝ] Space := |
| 71 | ∑ i : Fin 3, (ContinuousLinearMap.apply ℝ ℝ (coordinateVector i)).smulRight (coordinateVector i) |
| 72 | |
| 73 | @[simp] theorem gradientLinear_apply (L : Space →L[ℝ] ℝ) (i : Fin 3) : |
| 74 | (gradientLinear L) i = L (coordinateVector i) := by |
| 75 | fin_cases i <;> simp [gradientLinear, Fin.sum_univ_three, coordinateVector] |
| 76 | |
| 77 | def carrier (k s : ℝ) : ℝ := -Real.sin (k * s) / k |
| 78 | |
| 79 | /-- Physical spatial phase normal, with time held fixed. -/ |
| 80 | def phaseNormal (Φ : PressureField) : VelocityField := |
| 81 | fun z => gradientLinear (fderiv ℝ (fun y : Space => Φ (z.1, y)) z.2) |
| 82 | |
| 83 | def coefficient (Φ : PressureField) (a : VelocityField) : VelocityField := |
| 84 | fun z => normalCoefficient (phaseNormal Φ z) (a z) |
| 85 | |
| 86 | /-- `-sin(k Φ) (n × a)/(k |n|²)`, expressed by scalar multiplication. -/ |
| 87 | def potential (k : ℝ) (Φ : PressureField) (a : VelocityField) : VelocityField := |
| 88 | fun z => carrier k (Φ z) • coefficient Φ a z |
| 89 | |
| 90 | def wave (k : ℝ) (Φ : PressureField) (a : VelocityField) : VelocityField := |
| 91 | SpatialCurl.spatialCurl (potential k Φ a) |
| 92 | |
| 93 | end NavierStokes.OscillatoryCurl |