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 Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 3 | |
| 4 | /-! Unbounded finite partial integrals of a nonnegative function force |
| 5 | its extended integral on the half-open interval to be infinite. Local |
| 6 | integrability is explicit, so no totalized real integral is used as a |
| 7 | substitute for an improper integral. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerNonnegativeImproperIntegral |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | open scoped ENNReal |
| 15 | |
| 16 | theorem ofReal_partial_le_lintegral (f : ℝ → ℝ) {S T : ℝ} |
| 17 | (hS : 0 ≤ S) (hST : S < T) (hf : IntervalIntegrable f volume 0 S) |
| 18 | (hnonneg : ∀ x ∈ Ioc (0 : ℝ) S, 0 ≤ f x) : |
| 19 | ENNReal.ofReal (∫ x in (0 : ℝ)..S, f x) ≤ |
| 20 | ∫⁻ x in Ico (0 : ℝ) T, ENNReal.ofReal (f x) := by |
| 21 | rw [intervalIntegral.integral_of_le hS, |
| 22 | ofReal_integral_eq_lintegral_ofReal hf.1 |
| 23 | (ae_restrict_of_forall_mem measurableSet_Ioc hnonneg)] |
| 24 | exact lintegral_mono_set (fun _ hx => ⟨hx.1.le,hx.2.trans_lt hST⟩) |
| 25 | |
| 26 | theorem lintegral_eq_top_of_unbounded_partials (f : ℝ → ℝ) (T : ℝ) |
| 27 | (hf : ∀ S : ℝ, 0 < S → S < T → IntervalIntegrable f volume 0 S) |
| 28 | (hnonneg : ∀ x ∈ Ico (0 : ℝ) T, 0 ≤ f x) |
| 29 | (hunbounded : ∀ K : ℝ, ∃ S : ℝ, 0 < S ∧ S < T ∧ |
| 30 | K < ∫ x in (0 : ℝ)..S, f x) : |
| 31 | (∫⁻ x in Ico (0 : ℝ) T, ENNReal.ofReal (f x))=⊤ := by |
| 32 | by_contra hfinite |
| 33 | obtain ⟨S,hS,hST,hK⟩ := hunbounded |
| 34 | (∫⁻ x in Ico (0 : ℝ) T, ENNReal.ofReal (f x)).toReal |
| 35 | have hb := ofReal_partial_le_lintegral f hS.le hST (hf S hS hST) |
| 36 | (fun x hx => hnonneg x ⟨hx.1.le,hx.2.trans_lt hST⟩) |
| 37 | exact (not_lt_of_ge hb) ((ENNReal.lt_ofReal_iff_toReal_lt hfinite).mpr hK) |
| 38 | |
| 39 | end EulerNonnegativeImproperIntegral |