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.MeanLocalL2Energy |
| 2 | |
| 3 | /-! Integrating the source's different lower bounds inside and outside the core. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal EulerLiftedPressure |
| 10 | open scoped NNReal |
| 11 | |
| 12 | theorem localized_coefficient_lower (M : Space → Space →L[ℝ] Space) |
| 13 | (hM : AEStronglyMeasurable M volume) (C : ℝ≥0) (hC : ∀ x, ‖M x‖ ≤ C) |
| 14 | (s : Set Space) (hs : MeasurableSet s) (Be Bc : ℝ) (hBe : 0 ≤ Be) |
| 15 | (hext : ∀ x, x ∉ s → ∀ v : Space, -Be * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 16 | (hcore : ∀ x, x ∈ s → ∀ v : Space, -Bc * ‖v‖^2 ≤ ⟪M x v, v⟫_ℝ) |
| 17 | (z : L2) : |
| 18 | -Be * ‖z‖^2 - Bc * localL2Energy s z ≤ |
| 19 | ⟪coefficientOperator M hM C hC z, z⟫_ℝ := by |
| 20 | have hi := integrable_norm_sq_L2 z |
| 21 | have his := hi.indicator hs |
| 22 | have hieq : (∫ x, -Be * ‖z x‖^2 - Bc * s.indicator (fun y => ‖z y‖^2) x) = |
| 23 | -Be * ‖z‖^2 - Bc * localL2Energy s z := by |
| 24 | rw [integral_sub (hi.const_mul (-Be)) (his.const_mul Bc), integral_const_mul, |
| 25 | integral_const_mul, integral_indicator hs, integral_norm_sq_L2] |
| 26 | rfl |
| 27 | rw [← hieq, MeasureTheory.L2.inner_def] |
| 28 | apply integral_mono_ae ((hi.const_mul (-Be)).sub (his.const_mul Bc)) |
| 29 | (MeasureTheory.L2.integrable_inner (coefficientOperator M hM C hC z) z) |
| 30 | filter_upwards [coefficientOperator_ae M hM C hC z] with x hx |
| 31 | change -Be * ‖z x‖^2 - Bc * s.indicator (fun y => ‖z y‖^2) x ≤ |
| 32 | ⟪(coefficientOperator M hM C hC z) x, z x⟫_ℝ |
| 33 | rw [hx] |
| 34 | by_cases hxs : x ∈ s |
| 35 | · rw [Set.indicator_of_mem hxs] |
| 36 | have H := hcore x hxs (z x) |
| 37 | nlinarith only [H, mul_nonneg hBe (sq_nonneg ‖z x‖)] |
| 38 | · rw [Set.indicator_of_notMem hxs, mul_zero, sub_zero] |
| 39 | exact hext x hxs (z x) |
| 40 | |
| 41 | end EulerMeanHarmonic |