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 | |
| 3 | /-! Local energies of actual L² fields, including the decomposition estimate. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal |
| 10 | |
| 11 | def localL2Energy (s : Set Space) (u : L2) : ℝ := ∫ x in s, ‖u x‖ ^ 2 |
| 12 | |
| 13 | theorem lpNorm_coe_L2 (u : L2) : lpNorm (u : Space → Space) 2 volume = ‖u‖ := by |
| 14 | rw [Lp.norm_def, toReal_eLpNorm (Lp.memLp u).aestronglyMeasurable] |
| 15 | |
| 16 | theorem integrable_norm_sq_L2 (u : L2) : Integrable (fun x => ‖u x‖ ^ 2) volume := |
| 17 | (memLp_two_iff_integrable_sq (Lp.memLp u).norm.aestronglyMeasurable).1 (Lp.memLp u).norm |
| 18 | |
| 19 | theorem integral_norm_sq_L2 (u : L2) : (∫ x, ‖u x‖ ^ 2) = ‖u‖ ^ 2 := by |
| 20 | rw [← lpNorm_sq_eq_integral_norm_sq _ (Lp.memLp u), lpNorm_coe_L2] |
| 21 | |
| 22 | theorem localL2Energy_nonneg (s : Set Space) (u : L2) : 0 ≤ localL2Energy s u := |
| 23 | integral_nonneg (fun _ => sq_nonneg _) |
| 24 | |
| 25 | theorem localL2Energy_le (s : Set Space) (u : L2) : localL2Energy s u ≤ ‖u‖ ^ 2 := by |
| 26 | rw [← integral_norm_sq_L2] |
| 27 | exact setIntegral_le_integral (integrable_norm_sq_L2 u) |
| 28 | (Filter.Eventually.of_forall fun _ => sq_nonneg _) |
| 29 | |
| 30 | theorem norm_add_sq_le_twice (a b : Space) : |
| 31 | ‖a+b‖ ^ 2 ≤ 2 * ‖a‖ ^ 2 + 2 * ‖b‖ ^ 2 := by |
| 32 | have h := norm_add_le a b |
| 33 | have ha := norm_nonneg a |
| 34 | have hb := norm_nonneg b |
| 35 | have hab := norm_nonneg (a+b) |
| 36 | nlinarith [sq_nonneg (‖a‖-‖b‖)] |
| 37 | |
| 38 | theorem localL2Energy_add_le (s : Set Space) (u v : L2) : |
| 39 | localL2Energy s (u+v) ≤ 2 * localL2Energy s u + 2 * localL2Energy s v := by |
| 40 | have hu := (integrable_norm_sq_L2 u).integrableOn (s := s) |
| 41 | have hv := (integrable_norm_sq_L2 v).integrableOn (s := s) |
| 42 | calc |
| 43 | _ ≤ ∫ x in s, 2 * ‖u x‖^2 + 2 * ‖v x‖^2 := by |
| 44 | apply integral_mono_ae (integrable_norm_sq_L2 (u+v)).integrableOn |
| 45 | ((hu.const_mul 2).add (hv.const_mul 2)) |
| 46 | filter_upwards [ae_restrict_of_ae (Lp.coeFn_add u v)] with x hx |
| 47 | rw [hx] |
| 48 | exact norm_add_sq_le_twice (u x) (v x) |
| 49 | _ = _ := by |
| 50 | rw [integral_add (hu.const_mul 2) (hv.const_mul 2), integral_const_mul, integral_const_mul] |
| 51 | rfl |
| 52 | |
| 53 | theorem localL2Energy_le_of_decomposition (s : Set Space) (z w : L2) : |
| 54 | localL2Energy s z ≤ 2 * localL2Energy s (z-w) + 2 * ‖w‖^2 := by |
| 55 | have H := localL2Energy_add_le s (z-w) w |
| 56 | rw [sub_add_cancel] at H |
| 57 | have hw := localL2Energy_le s w |
| 58 | linarith |
| 59 | |
| 60 | theorem localL2Energy_ball_le_of_ae_bound (u : L2) (C r : ℝ) (hr : 0 ≤ r) |
| 61 | (hbound : ∀ᵐ x ∂volume, x ∈ Metric.ball (0 : Space) r → ‖u x‖^2 ≤ C) : |
| 62 | localL2Energy (Metric.ball (0 : Space) r) u ≤ (Real.pi * 4 / 3) * r^3 * C := by |
| 63 | calc |
| 64 | _ ≤ ∫ _x in Metric.ball (0 : Space) r, C := by |
| 65 | apply integral_mono_ae (integrable_norm_sq_L2 u).integrableOn |
| 66 | (integrableOn_const (measure_ball_lt_top.ne)) |
| 67 | exact (ae_restrict_iff' Metric.isOpen_ball.measurableSet).2 hbound |
| 68 | _ = _ := by |
| 69 | rw [setIntegral_const, smul_eq_mul] |
| 70 | change (volume (Metric.ball (0 : Space) r)).toReal * C = _ |
| 71 | rw [volume_ball_toReal r hr] |
| 72 | ring |
| 73 | |
| 74 | end EulerMeanHarmonic |