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.MeanHarmonicSmallBall |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Convolution |
| 4 | import Mathlib.MeasureTheory.Measure.Haar.NormedSpace |
| 5 | |
| 6 | /-! A fixed shrinking compact mollifier and distributional scalar harmonicity. -/ |
| 7 | |
| 8 | /-! ## From `Euler/MeanScalarMollification.lean` |
| 9 | |
| 10 | The text of `Euler/MeanScalarMollification.lean`, folded into this file, which was its only importer. -/ |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Actual compact mollification on R³ is smooth and contractive on scalar L². -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace EulerMeanHarmonic |
| 19 | |
| 20 | open MeasureTheory InnerProductSpace EulerSmoothLimit |
| 21 | open scoped ContDiff Convolution |
| 22 | |
| 23 | def scalarMollification (φ : ContDiffBump (0 : Space)) (f : Space → ℝ) : Space → ℝ := |
| 24 | φ.normed volume ⋆[ContinuousLinearMap.lsmul ℝ ℝ, volume] f |
| 25 | |
| 26 | theorem scalarMollification_smooth (φ : ContDiffBump (0 : Space)) |
| 27 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 28 | ContDiff ℝ ∞ (scalarMollification φ f) := |
| 29 | φ.hasCompactSupport_normed.contDiff_convolution_left (ContinuousLinearMap.lsmul ℝ ℝ) |
| 30 | φ.contDiff_normed (hf.locallyIntegrable (by norm_num)) |
| 31 | |
| 32 | /-- The elementary variance inequality for the actual normalized convolution. -/ |
| 33 | theorem scalarMollification_sq_le (φ : ContDiffBump (0 : Space)) |
| 34 | (f : Space → ℝ) (hf : MemLp f 2 volume) (x : Space) : |
| 35 | scalarMollification φ f x ^ 2 ≤ scalarMollification φ (fun y => f y ^ 2) x := by |
| 36 | let m := scalarMollification φ f x |
| 37 | have hi : Integrable (fun y => φ.normed volume y * f (x-y)) volume := |
| 38 | φ.hasCompactSupport_normed.convolutionExists_left (ContinuousLinearMap.lsmul ℝ ℝ) |
| 39 | (φ.contDiff_normed (n := (⊤ : ℕ∞))).continuous (hf.locallyIntegrable (by norm_num)) x |
| 40 | have hf2 : Integrable (fun y => f y ^ 2) volume := |
| 41 | (memLp_two_iff_integrable_sq hf.aestronglyMeasurable).1 hf |
| 42 | have hi2 : Integrable (fun y => φ.normed volume y * f (x-y)^2) volume := |
| 43 | φ.hasCompactSupport_normed.convolutionExists_left (ContinuousLinearMap.lsmul ℝ ℝ) |
| 44 | (φ.contDiff_normed (n := (⊤ : ℕ∞))).continuous hf2.locallyIntegrable x |
| 45 | have hi0 := φ.integrable_normed (μ := (volume : Measure Space)) |
| 46 | have H : (∫ y, (2*m) * (φ.normed volume y * f (x-y)) - |
| 47 | m^2 * φ.normed volume y) ≤ ∫ y, φ.normed volume y * f (x-y)^2 := by |
| 48 | apply integral_mono ((hi.const_mul (2*m)).sub (hi0.const_mul (m^2))) hi2 |
| 49 | intro y |
| 50 | change (2*m) * (φ.normed volume y * f (x-y)) - |
| 51 | m^2 * φ.normed volume y ≤ φ.normed volume y * f (x-y)^2 |
| 52 | have h := mul_nonneg (φ.nonneg_normed (μ := (volume : Measure Space)) y) |
| 53 | (sq_nonneg (f (x-y)-m)) |
| 54 | linarith |
| 55 | rw [integral_sub (hi.const_mul (2*m)) (hi0.const_mul (m^2)), |
| 56 | integral_const_mul, integral_const_mul, φ.integral_normed] at H |
| 57 | have hm : (∫ y, φ.normed volume y * f (x-y)) = m := rfl |
| 58 | rw [hm] at H |
| 59 | change m^2 ≤ ∫ y, φ.normed volume y * f (x-y)^2 |
| 60 | linarith |
| 61 | |
| 62 | theorem scalarMollification_sq_integrable (φ : ContDiffBump (0 : Space)) |
| 63 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 64 | Integrable (fun x => scalarMollification φ f x ^ 2) volume := by |
| 65 | have hf2 : Integrable (fun y => f y ^ 2) volume := |
| 66 | (memLp_two_iff_integrable_sq hf.aestronglyMeasurable).1 hf |
| 67 | have hc : Integrable (scalarMollification φ (fun y => f y ^ 2)) volume := |
| 68 | φ.integrable_normed.integrable_convolution (ContinuousLinearMap.lsmul ℝ ℝ) hf2 |
| 69 | apply hc.mono' ((scalarMollification_smooth φ f hf).continuous.pow 2).aestronglyMeasurable |
| 70 | filter_upwards [] with x |
| 71 | change ‖scalarMollification φ f x ^ 2‖ ≤ _ |
| 72 | simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg (scalarMollification φ f x))] using |
| 73 | scalarMollification_sq_le φ f hf x |
| 74 | |
| 75 | theorem scalarMollification_memLp (φ : ContDiffBump (0 : Space)) |
| 76 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 77 | MemLp (scalarMollification φ f) 2 volume := |
| 78 | (memLp_two_iff_integrable_sq |
| 79 | (scalarMollification_smooth φ f hf).continuous.aestronglyMeasurable).2 |
| 80 | (scalarMollification_sq_integrable φ f hf) |
| 81 | |
| 82 | theorem scalarMollification_energy_le (φ : ContDiffBump (0 : Space)) |
| 83 | (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 84 | lpNorm (scalarMollification φ f) 2 volume ^ 2 ≤ lpNorm f 2 volume ^ 2 := by |
| 85 | rw [lpNorm_sq_eq_integral_sq _ (scalarMollification_memLp φ f hf), |
| 86 | lpNorm_sq_eq_integral_sq _ hf] |
| 87 | have hf2 : Integrable (fun y => f y ^ 2) volume := |
| 88 | (memLp_two_iff_integrable_sq hf.aestronglyMeasurable).1 hf |
| 89 | calc |
| 90 | _ ≤ ∫ x, scalarMollification φ (fun y => f y ^ 2) x := |
| 91 | integral_mono (scalarMollification_sq_integrable φ f hf) |
| 92 | (φ.integrable_normed.integrable_convolution (ContinuousLinearMap.lsmul ℝ ℝ) hf2) |
| 93 | (scalarMollification_sq_le φ f hf) |
| 94 | _ = _ := by |
| 95 | rw [scalarMollification, integral_convolution (ContinuousLinearMap.lsmul ℝ ℝ) |
| 96 | φ.integrable_normed hf2, φ.integral_normed] |
| 97 | simp only [ContinuousLinearMap.lsmul_apply, one_smul] |
| 98 | |
| 99 | end EulerMeanHarmonic |
| 100 | end |
| 101 | |
| 102 | end |
| 103 | |
| 104 | /-! ## From `Euler/MeanHarmonicScaling.lean` |
| 105 | |
| 106 | The text of `Euler/MeanHarmonicScaling.lean`, folded into this file, which was its only importer. -/ |
| 107 | |
| 108 | section |
| 109 | |
| 110 | /-! Scaling the actual Laplacian and harmonic interior estimates on R³. -/ |
| 111 | |
| 112 | noncomputable section |
| 113 | |
| 114 | namespace EulerMeanHarmonic |
| 115 | |
| 116 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit |
| 117 | open scoped ContDiff |
| 118 | |
| 119 | theorem laplacian_comp_const_smul (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 120 | (a : ℝ) (x : Space) : Δ (fun y => f (a • y)) x = a^2 * Δ f (a • x) := by |
| 121 | rw [laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ), |
| 122 | laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ)] |
| 123 | rw [iteratedFDeriv_comp_const_smul a (hf.of_le (by simp))] |
| 124 | simp only [smul_apply, smul_eq_mul, Finset.mul_sum] |
| 125 | |
| 126 | def halfScale (f : Space → ℝ) : Space → ℝ := fun x => f ((1/2 : ℝ) • x) |
| 127 | |
| 128 | theorem halfScale_smooth (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) : |
| 129 | ContDiff ℝ ∞ (halfScale f) := hf.comp (contDiff_id.const_smul (1/2 : ℝ)) |
| 130 | |
| 131 | theorem halfScale_memLp (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 132 | (hLp : MemLp f 2 volume) : MemLp (halfScale f) 2 volume := by |
| 133 | apply (memLp_two_iff_integrable_sq (halfScale_smooth f hf).continuous.aestronglyMeasurable).2 |
| 134 | exact ((memLp_two_iff_integrable_sq hLp.aestronglyMeasurable).1 hLp).comp_smul |
| 135 | (R := (1/2 : ℝ)) (by norm_num) |
| 136 | |
| 137 | theorem halfScale_energy (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 138 | (hLp : MemLp f 2 volume) : |
| 139 | lpNorm (halfScale f) 2 volume ^ 2 = 8 * lpNorm f 2 volume ^ 2 := by |
| 140 | rw [lpNorm_sq_eq_integral_sq _ (halfScale_memLp f hf hLp), |
| 141 | lpNorm_sq_eq_integral_sq _ hLp] |
| 142 | change (∫ x, f ((1/2 : ℝ) • x) ^ 2) = _ |
| 143 | rw [Measure.integral_comp_smul volume (fun x => f x ^ 2) (1/2 : ℝ)] |
| 144 | norm_num [Space, smul_eq_mul] |
| 145 | |
| 146 | theorem halfScale_harmonic (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 147 | (hharmonic : ∀ x ∈ Metric.ball 0 (1/2 : ℝ), Δ f x = 0) : |
| 148 | ∀ x ∈ Metric.ball 0 (1 : ℝ), Δ (halfScale f) x = 0 := by |
| 149 | intro x hx |
| 150 | change Δ (fun y => f ((1/2 : ℝ) • y)) x = 0 |
| 151 | rw [laplacian_comp_const_smul f hf] |
| 152 | have hx' : (1/2 : ℝ) • x ∈ Metric.ball (0 : Space) (1/2 : ℝ) := by |
| 153 | simp only [Metric.mem_ball, dist_zero_right] at hx ⊢ |
| 154 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by norm_num : 0 < (1/2 : ℝ))] |
| 155 | linarith |
| 156 | rw [hharmonic _ hx', mul_zero] |
| 157 | |
| 158 | def harmonicQuarterBallConstant : ℝ := 8 * harmonicInteriorConstant ^ 2 |
| 159 | |
| 160 | theorem harmonicQuarterBallConstant_nonneg : 0 ≤ harmonicQuarterBallConstant := by |
| 161 | unfold harmonicQuarterBallConstant |
| 162 | positivity |
| 163 | |
| 164 | /-- A squared pointwise bound with room for a compact mollifier near the boundary. -/ |
| 165 | theorem harmonic_pointwise_quarterBall_sq (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 166 | (hLp : MemLp f 2 volume) (hharmonic : ∀ x ∈ Metric.ball 0 (1/2 : ℝ), Δ f x = 0) |
| 167 | (x : Space) (hx : x ∈ Metric.closedBall 0 (1/4 : ℝ)) : |
| 168 | f x ^ 2 ≤ harmonicQuarterBallConstant * lpNorm f 2 volume ^ 2 := by |
| 169 | have hx' : (2 : ℝ) • x ∈ Metric.closedBall (0 : Space) (1/2 : ℝ) := by |
| 170 | simp only [Metric.mem_closedBall, dist_zero_right] at hx ⊢ |
| 171 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by norm_num : 0 < (2 : ℝ))] |
| 172 | linarith |
| 173 | have H := harmonic_pointwise_halfBall (halfScale f) (halfScale_smooth f hf) |
| 174 | (halfScale_memLp f hf hLp) (halfScale_harmonic f hf hharmonic) ((2 : ℝ) • x) hx' |
| 175 | have heval : halfScale f ((2 : ℝ) • x) = f x := by |
| 176 | simp [halfScale, smul_smul] |
| 177 | rw [heval] at H |
| 178 | have H2 := pow_le_pow_left₀ (abs_nonneg (f x)) H 2 |
| 179 | rw [sq_abs, mul_pow, halfScale_energy f hf hLp] at H2 |
| 180 | unfold harmonicQuarterBallConstant |
| 181 | linarith |
| 182 | |
| 183 | end EulerMeanHarmonic |
| 184 | end |
| 185 | |
| 186 | end |
| 187 | |
| 188 | noncomputable section |
| 189 | |
| 190 | namespace EulerMeanHarmonic |
| 191 | |
| 192 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerNoncompactTransport |
| 193 | open scoped ContDiff Convolution Topology |
| 194 | |
| 195 | /-- Harmonicity tested against genuine smooth compactly supported scalar functions. -/ |
| 196 | def ScalarWeakHarmonicOn (U : Set Space) (f : Space → ℝ) : Prop := |
| 197 | ∀ φ : Space → ℝ, HasCompactSupport φ → ContDiff ℝ ∞ φ → tsupport φ ⊆ U → |
| 198 | (∫ x, f x * Δ φ x) = 0 |
| 199 | |
| 200 | def interiorMollifier (n : ℕ) : ContDiffBump (0 : Space) where |
| 201 | rIn := (1/16 : ℝ) * cutoffScale n |
| 202 | rOut := (1/8 : ℝ) * cutoffScale n |
| 203 | rIn_pos := mul_pos (by norm_num) (cutoffScale_pos n) |
| 204 | rIn_lt_rOut := by |
| 205 | have hc := cutoffScale_pos n |
| 206 | nlinarith |
| 207 | |
| 208 | theorem interiorMollifier_rOut_le (n : ℕ) : (interiorMollifier n).rOut ≤ 1/4 := by |
| 209 | change (1/8 : ℝ) * cutoffScale n ≤ 1/4 |
| 210 | have hc := cutoffScale_le_one n |
| 211 | linarith |
| 212 | |
| 213 | theorem interiorMollifier_rOut_tendsto : |
| 214 | Filter.Tendsto (fun n => (interiorMollifier n).rOut) Filter.atTop (𝓝 (0 : ℝ)) := by |
| 215 | simpa only [interiorMollifier, mul_zero] using cutoffScale_tendsto.const_mul (1/8 : ℝ) |
| 216 | |
| 217 | theorem interiorMollifier_shape (n : ℕ) : |
| 218 | (interiorMollifier n).rOut ≤ 2 * (interiorMollifier n).rIn := by |
| 219 | change (1/8 : ℝ) * cutoffScale n ≤ 2 * ((1/16 : ℝ) * cutoffScale n) |
| 220 | ring_nf |
| 221 | exact le_rfl |
| 222 | |
| 223 | /-- The classical smooth convolutions recover every scalar L² function almost everywhere. -/ |
| 224 | theorem scalarMollification_ae_tendsto (f : Space → ℝ) (hf : MemLp f 2 volume) : |
| 225 | ∀ᵐ x ∂volume, Filter.Tendsto (fun n => scalarMollification (interiorMollifier n) f x) |
| 226 | Filter.atTop (𝓝 (f x)) := |
| 227 | ContDiffBump.ae_convolution_tendsto_right_of_locallyIntegrable |
| 228 | interiorMollifier_rOut_tendsto (Filter.Eventually.of_forall interiorMollifier_shape) |
| 229 | (hf.locallyIntegrable (by norm_num)) |
| 230 | |
| 231 | /-- A uniform squared pointwise bound passes from these genuine mollifiers to f. -/ |
| 232 | theorem ae_bound_of_scalarMollification_bound (f : Space → ℝ) (hf : MemLp f 2 volume) |
| 233 | (U : Set Space) (C : ℝ) |
| 234 | (hbound : ∀ n x, x ∈ U → scalarMollification (interiorMollifier n) f x ^ 2 ≤ C) : |
| 235 | ∀ᵐ x ∂volume, x ∈ U → f x ^ 2 ≤ C := by |
| 236 | filter_upwards [scalarMollification_ae_tendsto f hf] with x hx |
| 237 | intro hxU |
| 238 | exact le_of_tendsto (hx.pow 2) (Filter.Eventually.of_forall fun n => hbound n x hxU) |
| 239 | |
| 240 | end EulerMeanHarmonic |