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.CompactSchwartz |
| 2 | import NavierStokes.R3.ComparisonFourierSetup |
| 3 | import Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff |
| 4 | |
| 5 | /-! |
| 6 | # Weak uniqueness for the weighted Fourier representation |
| 7 | |
| 8 | Compact smooth functions are Schwartz functions, so a locally integrable |
| 9 | function annihilating every Schwartz test vanishes almost everywhere. Applied |
| 10 | to the weighted conjugate of an `L²` function, this removes the Fourier |
| 11 | Laplacian multiplier away from its single zero at the origin. |
| 12 | -/ |
| 13 | |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped ContDiff ENNReal |
| 19 | |
| 20 | namespace NavierStokesR3.WeakFourierUniqueness |
| 21 | |
| 22 | open ProblemStatement |
| 23 | |
| 24 | /-- The real-test fundamental lemma, with multiplication written in `ℂ`. -/ |
| 25 | theorem ae_eq_zero_of_integral_real_test_mul_eq_zero |
| 26 | (h : Space → ℂ) (hh : LocallyIntegrable h (volume : Measure Space)) |
| 27 | (hzero : ∀ g : Space → ℝ, ContDiff ℝ ∞ g → HasCompactSupport g → |
| 28 | (∫ x : Space, (g x : ℂ) * h x) = 0) : |
| 29 | h =ᵐ[volume] 0 := by |
| 30 | apply ae_eq_zero_of_integral_contDiff_smul_eq_zero hh |
| 31 | intro g hg hs |
| 32 | have hsmul : (fun x : Space => g x • h x) = |
| 33 | (fun x : Space => (g x : ℂ) * h x) := by |
| 34 | funext x |
| 35 | apply Complex.ext <;> simp |
| 36 | rw [hsmul] |
| 37 | exact hzero g hg hs |
| 38 | |
| 39 | /-- A locally integrable function is determined by its Schwartz pairings. -/ |
| 40 | theorem ae_eq_zero_of_integral_schwartz_test_mul_eq_zero |
| 41 | (h : Space → ℂ) (hh : LocallyIntegrable h (volume : Measure Space)) |
| 42 | (hzero : ∀ ψ : Comparison.ComplexTest, (∫ x : Space, h x * ψ x) = 0) : |
| 43 | h =ᵐ[volume] 0 := by |
| 44 | apply ae_eq_zero_of_integral_real_test_mul_eq_zero h hh |
| 45 | intro g hg hs |
| 46 | have hgC : ContDiff ℝ ∞ (fun x : Space => (g x : ℂ)) := |
| 47 | Complex.ofRealCLM.contDiff.comp hg |
| 48 | have hsC : HasCompactSupport (fun x : Space => (g x : ℂ)) := |
| 49 | hs.comp_left (g := Complex.ofReal) Complex.ofReal_zero |
| 50 | have htest := |
| 51 | hzero (CompactSchwartz.ofCompactSupport (fun x : Space => (g x : ℂ)) hgC hsC) |
| 52 | change (∫ x : Space, h x * (g x : ℂ)) = 0 at htest |
| 53 | simpa only [mul_comm] using htest |
| 54 | |
| 55 | /-- Polynomial weights preserve the local integrability of an `L²` function. -/ |
| 56 | theorem locallyIntegrable_weighted_star (q : Lp ℂ 2 (volume : Measure Space)) : |
| 57 | LocallyIntegrable (fun ξ : Space => |
| 58 | star (q ξ) * (((1 + ‖ξ‖ ^ 2) ^ 2 : ℝ) : ℂ) * ((‖ξ‖ ^ 2 : ℝ) : ℂ)) |
| 59 | (volume : Measure Space) := by |
| 60 | have hqstar : LocallyIntegrable (fun ξ : Space => star (q ξ)) |
| 61 | (volume : Measure Space) := |
| 62 | (Complex.conjCLE.toContinuousLinearMap.comp_memLp q).locallyIntegrable (by norm_num) |
| 63 | have hw : Continuous (fun ξ : Space => (((1 + ‖ξ‖ ^ 2) ^ 2 : ℝ) : ℂ)) := |
| 64 | Complex.ofRealCLM.continuous.comp |
| 65 | ((continuous_const.add (continuous_norm.pow 2)).pow 2) |
| 66 | have hn : Continuous (fun ξ : Space => ((‖ξ‖ ^ 2 : ℝ) : ℂ)) := |
| 67 | Complex.ofRealCLM.continuous.comp (continuous_norm.pow 2) |
| 68 | exact locallyIntegrableOn_univ.mp |
| 69 | (((hqstar.locallyIntegrableOn univ).mul_continuousOn hw.continuousOn |
| 70 | isClosed_univ.isLocallyClosed).mul_continuousOn hn.continuousOn |
| 71 | isClosed_univ.isLocallyClosed) |
| 72 | |
| 73 | /-- If the weighted Fourier Laplacian pairings of an `L²` function vanish, |
| 74 | the function is zero in `L²`. No regularity beyond membership in `L²` is used. -/ |
| 75 | theorem eq_zero_of_integral_weight_normSq_test_eq_zero |
| 76 | (q : Lp ℂ 2 (volume : Measure Space)) |
| 77 | (hq : ∀ ψ : Comparison.ComplexTest, |
| 78 | (∫ ξ : Space, star (q ξ) * (((1 + ‖ξ‖ ^ 2) ^ 2 : ℝ) : ℂ) * |
| 79 | ((‖ξ‖ ^ 2 : ℝ) : ℂ) * ψ ξ) = 0) : |
| 80 | q = 0 := by |
| 81 | have hz : (fun ξ : Space => |
| 82 | star (q ξ) * (((1 + ‖ξ‖ ^ 2) ^ 2 : ℝ) : ℂ) * ((‖ξ‖ ^ 2 : ℝ) : ℂ)) |
| 83 | =ᵐ[volume] 0 := |
| 84 | ae_eq_zero_of_integral_schwartz_test_mul_eq_zero _ |
| 85 | (locallyIntegrable_weighted_star q) hq |
| 86 | have hne : ∀ᵐ ξ : Space ∂volume, ξ ≠ 0 := by |
| 87 | simp [ae_iff] |
| 88 | apply Lp.eq_zero_iff_ae_eq_zero.mpr |
| 89 | filter_upwards [hz, hne] with ξ hξ hξne |
| 90 | have hwR : (1 + ‖ξ‖ ^ 2) ^ 2 ≠ (0 : ℝ) := |
| 91 | pow_ne_zero 2 (ne_of_gt (add_pos_of_pos_of_nonneg zero_lt_one (sq_nonneg _))) |
| 92 | have hw : (((1 + ‖ξ‖ ^ 2) ^ 2 : ℝ) : ℂ) ≠ 0 := by |
| 93 | simpa only [ne_eq, Complex.ofReal_eq_zero] using hwR |
| 94 | have hnR : ‖ξ‖ ^ 2 ≠ (0 : ℝ) := |
| 95 | pow_ne_zero 2 (norm_ne_zero_iff.mpr hξne) |
| 96 | have hn : ((‖ξ‖ ^ 2 : ℝ) : ℂ) ≠ 0 := by |
| 97 | simpa only [ne_eq, Complex.ofReal_eq_zero] using hnR |
| 98 | have hs : star (q ξ) = 0 := |
| 99 | (mul_eq_zero.mp ((mul_eq_zero.mp hξ).resolve_right hn)).resolve_right hw |
| 100 | simpa only [star_star, star_zero, Pi.zero_apply] using congrArg star hs |
| 101 | |
| 102 | end NavierStokesR3.WeakFourierUniqueness |