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.R3.ComparisonFourierSetup |
| 2 | |
| 3 | /-! |
| 4 | # Spatial derivatives of Fourier test functions |
| 5 | |
| 6 | These operators use the same coordinate vectors and spatial partial derivatives |
| 7 | as the equation. Their Fourier identities include the `2π` normalization of |
| 8 | Mathlib's Fourier transform. |
| 9 | -/ |
| 10 | |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open MeasureTheory |
| 15 | open scoped BigOperators FourierTransform |
| 16 | |
| 17 | namespace NavierStokesR3.HarmonicTestFunctionals |
| 18 | |
| 19 | open ProblemStatement Comparison |
| 20 | |
| 21 | /-- Coordinate differentiation on Schwartz tests. -/ |
| 22 | def partialCLM (i : Fin 3) : ComplexTest →L[ℂ] ComplexTest := |
| 23 | LineDeriv.lineDerivOpCLM ℂ ComplexTest (NavierStokes.ProblemStatement.coordinateVector i) |
| 24 | |
| 25 | /-- The ordinary spatial Laplacian acting on Schwartz tests. -/ |
| 26 | def laplacianCLM : ComplexTest →L[ℂ] ComplexTest := |
| 27 | ∑ i : Fin 3, (partialCLM i).comp (partialCLM i) |
| 28 | |
| 29 | @[simp] theorem partialCLM_apply (i : Fin 3) (ψ : ComplexTest) (x : Space) : |
| 30 | partialCLM i ψ x = |
| 31 | NavierStokes.PeriodicIntegration.spatialPartial i (ψ : Space → ℂ) x := rfl |
| 32 | |
| 33 | @[simp] theorem laplacianCLM_apply (ψ : ComplexTest) (x : Space) : |
| 34 | laplacianCLM ψ x = |
| 35 | ∑ i : Fin 3, NavierStokes.PeriodicIntegration.spatialPartial i |
| 36 | (fun y => NavierStokes.PeriodicIntegration.spatialPartial i (ψ : Space → ℂ) y) x := by |
| 37 | simp [laplacianCLM, Fin.sum_univ_succ, partialCLM, |
| 38 | NavierStokes.PeriodicIntegration.spatialPartial, SchwartzMap.lineDerivOp_apply_eq_fderiv] |
| 39 | rfl |
| 40 | |
| 41 | /-- Fourier transform of a coordinate derivative. -/ |
| 42 | theorem fourier_partialCLM_apply (i : Fin 3) (ψ : ComplexTest) (ξ : Space) : |
| 43 | FourierTransform.fourierCLE ℂ ComplexTest (partialCLM i ψ) ξ = |
| 44 | (2 * (Real.pi : ℂ) * Complex.I * (ξ i : ℂ)) * |
| 45 | FourierTransform.fourierCLE ℂ ComplexTest ψ ξ := by |
| 46 | have hd : Integrable (fderiv ℝ (ψ : Space → ℂ)) := by |
| 47 | exact (SchwartzMap.fderivCLM ℂ Space ℂ ψ).integrable |
| 48 | change 𝓕 (fun x => fderiv ℝ (ψ : Space → ℂ) x |
| 49 | (NavierStokes.ProblemStatement.coordinateVector i)) ξ = _ |
| 50 | rw [← Real.fourier_continuousLinearMap_apply hd, |
| 51 | Real.fourier_fderiv ψ.integrable ψ.differentiable hd] |
| 52 | simp [VectorFourier.fourierSMulRight_apply, SchwartzMap.fourier_coe, |
| 53 | NavierStokes.ProblemStatement.coordinateVector, |
| 54 | smul_eq_mul, mul_assoc] |
| 55 | left |
| 56 | change inner ℝ ξ (EuclideanSpace.single i 1) = ξ i |
| 57 | simpa using! (EuclideanSpace.inner_single_right i (1 : ℝ) ξ) |
| 58 | |
| 59 | /-- The ordinary Laplacian has Fourier multiplier `-4π²‖ξ‖²`. -/ |
| 60 | theorem fourier_laplacianCLM_apply (ψ : ComplexTest) (ξ : Space) : |
| 61 | FourierTransform.fourierCLE ℂ ComplexTest (laplacianCLM ψ) ξ = |
| 62 | (-(4 * (Real.pi : ℂ) ^ 2) * ((‖ξ‖ ^ 2 : ℝ) : ℂ)) * |
| 63 | FourierTransform.fourierCLE ℂ ComplexTest ψ ξ := by |
| 64 | have hnorm : ‖ξ‖ ^ 2 = (ξ 0) ^ 2 + (ξ 1) ^ 2 + (ξ 2) ^ 2 := by |
| 65 | simp [PiLp.norm_sq_eq_of_L2, Fin.sum_univ_succ, Real.norm_eq_abs, sq_abs, add_assoc] |
| 66 | have hsplit : laplacianCLM ψ = partialCLM 0 (partialCLM 0 ψ) + |
| 67 | (partialCLM 1 (partialCLM 1 ψ) + partialCLM 2 (partialCLM 2 ψ)) := by |
| 68 | simp [laplacianCLM, Fin.sum_univ_succ] |
| 69 | rw [hsplit, map_add, map_add] |
| 70 | change FourierTransform.fourierCLE ℂ ComplexTest (partialCLM 0 (partialCLM 0 ψ)) ξ + |
| 71 | (FourierTransform.fourierCLE ℂ ComplexTest (partialCLM 1 (partialCLM 1 ψ)) ξ + |
| 72 | FourierTransform.fourierCLE ℂ ComplexTest (partialCLM 2 (partialCLM 2 ψ)) ξ) = _ |
| 73 | simp_rw [fourier_partialCLM_apply] |
| 74 | rw [hnorm] |
| 75 | push_cast |
| 76 | ring_nf |
| 77 | simp [Complex.I_sq] |
| 78 | ring |
| 79 | |
| 80 | end NavierStokesR3.HarmonicTestFunctionals |