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 NavierStokes.ProblemStatement |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 3 | import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace |
| 4 | import Mathlib.Topology.Algebra.Support |
| 5 | |
| 6 | /-! |
| 7 | # A uniform spatial square-integral bound for compactly supported forces |
| 8 | |
| 9 | Compact spacetime support gives one compact spatial set supporting all slices. |
| 10 | Continuity of the parameterized integral then supplies a finite bound on the |
| 11 | closed time interval `[0, 1]`. |
| 12 | -/ |
| 13 | |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | |
| 19 | namespace NavierStokesR3.CompactForceBound |
| 20 | |
| 21 | open NavierStokes.ProblemStatement |
| 22 | |
| 23 | /-- A continuous force of compact spacetime support has uniformly bounded |
| 24 | spatial square integrals on the unit time interval. -/ |
| 25 | theorem exists_uniform_l2sq_bound {f : VelocityField} |
| 26 | (hf : Continuous f) (hcf : HasCompactSupport f) : |
| 27 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t ∈ Icc (0 : ℝ) 1, |
| 28 | Integrable (fun x : Space => ‖f (t, x)‖ ^ 2) volume ∧ |
| 29 | (∫ x : Space, ‖f (t, x)‖ ^ 2 ∂volume) ≤ C := by |
| 30 | let K : Set Space := Prod.snd '' tsupport f |
| 31 | have hK : IsCompact K := hcf.isCompact.image continuous_snd |
| 32 | have hzero (t : ℝ) (x : Space) (hx : x ∉ K) : f (t, x) = 0 := by |
| 33 | apply image_eq_zero_of_notMem_tsupport |
| 34 | intro hz |
| 35 | exact hx ⟨(t, x), hz, rfl⟩ |
| 36 | have hcompact (t : ℝ) : HasCompactSupport (fun x : Space => ‖f (t, x)‖ ^ 2) := by |
| 37 | apply HasCompactSupport.intro hK |
| 38 | intro x hx |
| 39 | simp only [hzero t x hx, norm_zero, zero_pow (by decide : 2 ≠ 0)] |
| 40 | have hint (t : ℝ) : Integrable (fun x : Space => ‖f (t, x)‖ ^ 2) volume := by |
| 41 | have hslice : Continuous (fun x : Space => f (t, x)) := |
| 42 | hf.comp (continuous_const.prodMk continuous_id) |
| 43 | exact (hslice.norm.pow 2).integrable_of_hasCompactSupport (hcompact t) |
| 44 | have hcontinuous : |
| 45 | ContinuousOn (fun t : ℝ => ∫ x : Space, ‖f (t, x)‖ ^ 2 ∂volume) |
| 46 | (Icc (0 : ℝ) 1) := by |
| 47 | apply continuousOn_integral_of_compact_support hK |
| 48 | · exact (hf.norm.pow 2).continuousOn |
| 49 | · intro t x _ hx |
| 50 | simp only [hzero t x hx, norm_zero, zero_pow (by decide : 2 ≠ 0)] |
| 51 | obtain ⟨C, hC, hbound⟩ := |
| 52 | (isCompact_Icc.image_of_continuousOn hcontinuous).isBounded.exists_pos_norm_le |
| 53 | refine ⟨C, hC.le, ?_⟩ |
| 54 | intro t ht |
| 55 | refine ⟨hint t, ?_⟩ |
| 56 | have hnorm := hbound _ ⟨t, ht, rfl⟩ |
| 57 | exact (le_abs_self _).trans (by simpa only [Real.norm_eq_abs] using hnorm) |
| 58 | |
| 59 | end NavierStokesR3.CompactForceBound |