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.MeanMollifierLimit |
| 2 | |
| 3 | /-! Differentiating an actual compact mollifier transfers the distributional Laplacian to the kernel. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus |
| 10 | open scoped ContDiff Convolution |
| 11 | |
| 12 | theorem partialDerivative_convolution_right (f g : Space → ℝ) |
| 13 | (hf : LocallyIntegrable f volume) (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) |
| 14 | (i : Fin 3) : |
| 15 | partialDerivative (f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] g) i = |
| 16 | f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] partialDerivative g i := by |
| 17 | funext x |
| 18 | unfold partialDerivative |
| 19 | rw [(hgc.hasFDerivAt_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) hf |
| 20 | (hg.of_le (by simp)) x).fderiv] |
| 21 | exact convolution_precompR_apply (ContinuousLinearMap.lsmul ℝ ℝ) hf (hgc.fderiv ℝ) |
| 22 | (hg.fderiv_right (m := ∞) (by simp)).continuous x (EuclideanSpace.single i 1) |
| 23 | |
| 24 | /-- Two genuine differentiations under the compact-kernel convolution integral. -/ |
| 25 | theorem laplacian_convolution_right (f g : Space → ℝ) |
| 26 | (hf : LocallyIntegrable f volume) (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) : |
| 27 | Δ (f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] g) = |
| 28 | f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] Δ g := by |
| 29 | have hc : ContDiff ℝ ∞ (f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] g) := |
| 30 | hgc.contDiff_convolution_right (ContinuousLinearMap.lsmul ℝ ℝ) hf hg |
| 31 | have hd (i : Fin 3) : ContDiff ℝ ∞ (partialDerivative g i) := |
| 32 | contDiff_partialDerivative g hg i |
| 33 | have hdc (i : Fin 3) : HasCompactSupport (partialDerivative g i) := |
| 34 | hgc.fderiv_apply ℝ (EuclideanSpace.single i 1) |
| 35 | funext x |
| 36 | rw [laplacian_eq_coordinate_sum _ hc] |
| 37 | simp_rw [partialDerivative_convolution_right f g hf hg hgc, |
| 38 | partialDerivative_convolution_right f _ hf (hd _) (hdc _)] |
| 39 | simp only [convolution_def, ContinuousLinearMap.lsmul_apply, smul_eq_mul] |
| 40 | simp_rw [laplacian_eq_coordinate_sum g hg, Finset.mul_sum] |
| 41 | have hi (i : Fin 3) : Integrable |
| 42 | (fun y => f y * partialDerivative (partialDerivative g i) i (x-y)) volume := |
| 43 | ((hdc i).fderiv_apply ℝ (EuclideanSpace.single i 1)).convolutionExists_right |
| 44 | (ContinuousLinearMap.lsmul ℝ ℝ) hf (contDiff_partialDerivative _ (hd i) i).continuous x |
| 45 | exact (integral_finsetSum Finset.univ (fun i _ => hi i)).symm |
| 46 | |
| 47 | theorem laplacian_comp_add_left (g : Space → ℝ) (a x : Space) : |
| 48 | Δ (fun y => g (a+y)) x = Δ g (a+x) := by |
| 49 | rw [laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ), |
| 50 | laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ)] |
| 51 | simp only [iteratedFDeriv_comp_add_left] |
| 52 | |
| 53 | /-- Reflection contributes two minus signs to the scalar Laplacian. -/ |
| 54 | theorem laplacian_comp_const_sub (g : Space → ℝ) (hg : ContDiff ℝ ∞ g) (a x : Space) : |
| 55 | Δ (fun y => g (a-y)) x = Δ g (a-x) := by |
| 56 | have h := laplacian_comp_const_smul (fun y => g (a+y)) |
| 57 | (hg.comp (contDiff_const.add contDiff_id)) (-1) x |
| 58 | rw [laplacian_comp_add_left] at h |
| 59 | simpa only [neg_one_smul, neg_one_sq, one_mul, sub_eq_add_neg] using h |
| 60 | |
| 61 | /-- A compact kernel contained in the weak-harmonic region produces a classical harmonic value. -/ |
| 62 | theorem convolution_harmonic_at (U : Set Space) (f g : Space → ℝ) |
| 63 | (hf : LocallyIntegrable f volume) (hh : ScalarWeakHarmonicOn U f) |
| 64 | (hg : ContDiff ℝ ∞ g) (hgc : HasCompactSupport g) (x : Space) |
| 65 | (hsupport : tsupport (fun y => g (x-y)) ⊆ U) : |
| 66 | Δ (f ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] g) x = 0 := by |
| 67 | rw [laplacian_convolution_right f g hf hg hgc, convolution_def] |
| 68 | change (∫ y, f y * Δ g (x-y)) = 0 |
| 69 | have hc : HasCompactSupport (fun y => g (x-y)) := |
| 70 | hgc.comp_homeomorph (Homeomorph.subLeft x) |
| 71 | have hs : ContDiff ℝ ∞ (fun y => g (x-y)) := |
| 72 | hg.comp (contDiff_const.sub contDiff_id) |
| 73 | have H := hh (fun y => g (x-y)) hc hs hsupport |
| 74 | simpa only [laplacian_comp_const_sub g hg] using H |
| 75 | |
| 76 | theorem normed_reflected_support (φ : ContDiffBump (0 : Space)) (x : Space) : |
| 77 | tsupport (fun y => φ.normed volume (x-y)) ⊆ Metric.closedBall x φ.rOut := by |
| 78 | apply closure_minimal _ Metric.isClosed_closedBall |
| 79 | intro y hy |
| 80 | have hnorm : ‖x-y‖ < φ.rOut := by |
| 81 | have hy' : x-y ∈ Function.support (φ.normed (volume : Measure Space)) := hy |
| 82 | simpa only [φ.support_normed_eq, Metric.mem_ball, dist_zero_right] using hy' |
| 83 | change ‖y-x‖ ≤ φ.rOut |
| 84 | rw [norm_sub_rev] |
| 85 | exact hnorm.le |
| 86 | |
| 87 | /-- Actual compact mollification turns weak harmonicity into classical harmonicity in the interior. -/ |
| 88 | theorem scalarMollification_harmonic (φ : ContDiffBump (0 : Space)) |
| 89 | (f : Space → ℝ) (hf : MemLp f 2 volume) |
| 90 | (hh : ScalarWeakHarmonicOn (Metric.ball (0 : Space) 1) f) |
| 91 | (hr : φ.rOut ≤ 1/4) : |
| 92 | ∀ x ∈ Metric.ball (0 : Space) (1/2 : ℝ), Δ (scalarMollification φ f) x = 0 := by |
| 93 | have hflip : (ContinuousLinearMap.lsmul ℝ ℝ).flip = ContinuousLinearMap.lsmul ℝ ℝ := by |
| 94 | apply ContinuousLinearMap.ext |
| 95 | intro a |
| 96 | apply ContinuousLinearMap.ext |
| 97 | intro b |
| 98 | exact mul_comm b a |
| 99 | have heq := convolution_flip (L := ContinuousLinearMap.lsmul ℝ ℝ) |
| 100 | (μ := (volume : Measure Space)) (f := f) (g := φ.normed volume) |
| 101 | rw [hflip] at heq |
| 102 | change ∀ x ∈ Metric.ball (0 : Space) (1/2 : ℝ), |
| 103 | Δ (φ.normed volume ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] f) x = 0 |
| 104 | rw [heq] |
| 105 | intro x hx |
| 106 | apply convolution_harmonic_at (Metric.ball (0 : Space) 1) f (φ.normed volume) |
| 107 | (hf.locallyIntegrable (by norm_num)) hh φ.contDiff_normed φ.hasCompactSupport_normed x |
| 108 | intro y hy |
| 109 | have hd := normed_reflected_support φ x hy |
| 110 | have htriangle := dist_triangle y x (0 : Space) |
| 111 | simp only [Metric.mem_ball, Metric.mem_closedBall, dist_zero_right] at hx hd htriangle ⊢ |
| 112 | linarith |
| 113 | |
| 114 | theorem interiorMollifier_harmonic (f : Space → ℝ) (hf : MemLp f 2 volume) |
| 115 | (hh : ScalarWeakHarmonicOn (Metric.ball (0 : Space) 1) f) (n : ℕ) : |
| 116 | ∀ x ∈ Metric.ball (0 : Space) (1/2 : ℝ), |
| 117 | Δ (scalarMollification (interiorMollifier n) f) x = 0 := |
| 118 | scalarMollification_harmonic (interiorMollifier n) f hf hh (interiorMollifier_rOut_le n) |
| 119 | |
| 120 | end EulerMeanHarmonic |