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.MeasureTheory.Measure.Haar.NormedSpace |
| 3 | |
| 4 | /-! Scaling the actual Laplacian and harmonic interior estimates on R³. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanHarmonic |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | theorem laplacian_comp_const_smul (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 14 | (a : ℝ) (x : Space) : Δ (fun y => f (a • y)) x = a^2 * Δ f (a • x) := by |
| 15 | rw [laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ), |
| 16 | laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin 3) ℝ)] |
| 17 | rw [iteratedFDeriv_comp_const_smul a (hf.of_le (by simp))] |
| 18 | simp only [smul_apply, smul_eq_mul, Finset.mul_sum] |
| 19 | |
| 20 | def halfScale (f : Space → ℝ) : Space → ℝ := fun x => f ((1/2 : ℝ) • x) |
| 21 | |
| 22 | theorem halfScale_smooth (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) : |
| 23 | ContDiff ℝ ∞ (halfScale f) := by |
| 24 | exact hf.comp (contDiff_id.const_smul (1/2 : ℝ)) |
| 25 | |
| 26 | theorem halfScale_memLp (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 27 | (hLp : MemLp f 2 volume) : MemLp (halfScale f) 2 volume := by |
| 28 | apply (memLp_two_iff_integrable_sq (halfScale_smooth f hf).continuous.aestronglyMeasurable).2 |
| 29 | exact ((memLp_two_iff_integrable_sq hLp.aestronglyMeasurable).1 hLp).comp_smul |
| 30 | (R := (1/2 : ℝ)) (by norm_num) |
| 31 | |
| 32 | theorem halfScale_energy (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 33 | (hLp : MemLp f 2 volume) : |
| 34 | lpNorm (halfScale f) 2 volume ^ 2 = 8 * lpNorm f 2 volume ^ 2 := by |
| 35 | rw [lpNorm_sq_eq_integral_sq _ (halfScale_memLp f hf hLp), |
| 36 | lpNorm_sq_eq_integral_sq _ hLp] |
| 37 | change (∫ x, f ((1/2 : ℝ) • x) ^ 2) = _ |
| 38 | rw [Measure.integral_comp_smul volume (fun x => f x ^ 2) (1/2 : ℝ)] |
| 39 | norm_num [Space, smul_eq_mul] |
| 40 | |
| 41 | theorem halfScale_harmonic (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 42 | (hharmonic : ∀ x ∈ Metric.ball 0 (1/2 : ℝ), Δ f x = 0) : |
| 43 | ∀ x ∈ Metric.ball 0 (1 : ℝ), Δ (halfScale f) x = 0 := by |
| 44 | intro x hx |
| 45 | change Δ (fun y => f ((1/2 : ℝ) • y)) x = 0 |
| 46 | rw [laplacian_comp_const_smul f hf] |
| 47 | have hx' : (1/2 : ℝ) • x ∈ Metric.ball (0 : Space) (1/2 : ℝ) := by |
| 48 | simp only [Metric.mem_ball, dist_zero_right] at hx ⊢ |
| 49 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by norm_num : 0 < (1/2 : ℝ))] |
| 50 | linarith |
| 51 | rw [hharmonic _ hx', mul_zero] |
| 52 | |
| 53 | def harmonicQuarterBallConstant : ℝ := 8 * harmonicInteriorConstant ^ 2 |
| 54 | |
| 55 | theorem harmonicQuarterBallConstant_nonneg : 0 ≤ harmonicQuarterBallConstant := by |
| 56 | unfold harmonicQuarterBallConstant |
| 57 | positivity |
| 58 | |
| 59 | /-- A squared pointwise bound with room for a compact mollifier near the boundary. -/ |
| 60 | theorem harmonic_pointwise_quarterBall_sq (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 61 | (hLp : MemLp f 2 volume) (hharmonic : ∀ x ∈ Metric.ball 0 (1/2 : ℝ), Δ f x = 0) |
| 62 | (x : Space) (hx : x ∈ Metric.closedBall 0 (1/4 : ℝ)) : |
| 63 | f x ^ 2 ≤ harmonicQuarterBallConstant * lpNorm f 2 volume ^ 2 := by |
| 64 | have hx' : (2 : ℝ) • x ∈ Metric.closedBall (0 : Space) (1/2 : ℝ) := by |
| 65 | simp only [Metric.mem_closedBall, dist_zero_right] at hx ⊢ |
| 66 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (by norm_num : 0 < (2 : ℝ))] |
| 67 | linarith |
| 68 | have H := harmonic_pointwise_halfBall (halfScale f) (halfScale_smooth f hf) |
| 69 | (halfScale_memLp f hf hLp) (halfScale_harmonic f hf hharmonic) ((2 : ℝ) • x) hx' |
| 70 | have heval : halfScale f ((2 : ℝ) • x) = f x := by |
| 71 | simp [halfScale, smul_smul] |
| 72 | rw [heval] at H |
| 73 | have H2 := pow_le_pow_left₀ (abs_nonneg (f x)) H 2 |
| 74 | rw [sq_abs, mul_pow, halfScale_energy f hf hLp] at H2 |
| 75 | unfold harmonicQuarterBallConstant |
| 76 | nlinarith |
| 77 | |
| 78 | end EulerMeanHarmonic |