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.MeanHarmonicInterior |
| 2 | import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls |
| 3 | |
| 4 | /-! A dimensional r³ localization estimate, derived from the interior bound. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanHarmonic |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | def harmonicSmallBallConstant : ℝ := |
| 14 | (Real.pi * 4 / 3) * harmonicInteriorConstant ^ 2 |
| 15 | |
| 16 | theorem harmonicSmallBallConstant_nonneg : 0 ≤ harmonicSmallBallConstant := by |
| 17 | unfold harmonicSmallBallConstant |
| 18 | positivity |
| 19 | |
| 20 | theorem volume_ball_toReal (r : ℝ) (hr : 0 ≤ r) : |
| 21 | (volume (Metric.ball (0 : Space) r)).toReal = r ^ 3 * (Real.pi * 4 / 3) := by |
| 22 | rw [EuclideanSpace.volume_ball_fin_three, ENNReal.toReal_mul, ENNReal.toReal_pow, |
| 23 | ENNReal.toReal_ofReal hr, ENNReal.toReal_ofReal (by positivity)] |
| 24 | |
| 25 | /-- The mass on a ball of radius r is bounded by r³ times the global L² mass. -/ |
| 26 | theorem harmonic_smallBall_energy (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) |
| 27 | (hLp : MemLp h 2 volume) (hharmonic : ∀ x ∈ Metric.ball 0 (1 : ℝ), Δ h x = 0) |
| 28 | (r : ℝ) (hr : 0 ≤ r) (hrhalf : r ≤ 1/2) : |
| 29 | (∫ x in Metric.ball (0 : Space) r, h x ^ 2) ≤ |
| 30 | harmonicSmallBallConstant * r ^ 3 * lpNorm h 2 volume ^ 2 := by |
| 31 | have hi : Integrable (fun x => h x ^ 2) volume := |
| 32 | (memLp_two_iff_integrable_sq hLp.aestronglyMeasurable).1 hLp |
| 33 | have hbound : ∀ x ∈ Metric.ball (0 : Space) r, |
| 34 | h x ^ 2 ≤ (harmonicInteriorConstant * lpNorm h 2 volume) ^ 2 := by |
| 35 | intro x hx |
| 36 | have hx' : x ∈ Metric.closedBall (0 : Space) (1/2 : ℝ) := |
| 37 | (Metric.ball_subset_closedBall.trans (Metric.closedBall_subset_closedBall hrhalf)) hx |
| 38 | have H := harmonic_pointwise_halfBall h hh hLp hharmonic x hx' |
| 39 | calc |
| 40 | h x ^ 2 = |h x| ^ 2 := (sq_abs _).symm |
| 41 | _ ≤ _ := pow_le_pow_left₀ (abs_nonneg _) H 2 |
| 42 | calc |
| 43 | _ ≤ ∫ _x in Metric.ball (0 : Space) r, |
| 44 | (harmonicInteriorConstant * lpNorm h 2 volume) ^ 2 := by |
| 45 | apply setIntegral_mono_on hi.integrableOn (integrableOn_const (measure_ball_lt_top.ne)) |
| 46 | Metric.isOpen_ball.measurableSet hbound |
| 47 | _ = _ := by |
| 48 | rw [setIntegral_const, smul_eq_mul] |
| 49 | change (volume (Metric.ball (0 : Space) r)).toReal * _ = _ |
| 50 | rw [volume_ball_toReal r hr] |
| 51 | unfold harmonicSmallBallConstant |
| 52 | ring |
| 53 | |
| 54 | end EulerMeanHarmonic |