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.R3.H3BoxIntegral |
| 2 | import Mathlib.MeasureTheory.Group.Integral |
| 3 | |
| 4 | /-! # The whole-space H³ supremum estimate |
| 5 | |
| 6 | The unit-cube fundamental-theorem-of-calculus estimate is applied after |
| 7 | translation to an arbitrary point. Each local derivative integral is bounded |
| 8 | by its genuine Lebesgue integral over all of ℝ³. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | open scoped BigOperators ContDiff |
| 15 | |
| 16 | namespace NavierStokesR3.H3Embedding |
| 17 | |
| 18 | open NavierStokes.ProblemStatement NavierStokes.PeriodicIntegration |
| 19 | |
| 20 | theorem spatialPartial_translate (i : Fin 3) (f : Space → Space) (a : Space) : |
| 21 | spatialPartial i (fun x => f (x + a)) = fun x => spatialPartial i f (x + a) := by |
| 22 | funext x |
| 23 | exact congrArg (fun L : Space →L[ℝ] Space => L (coordinateVector i)) |
| 24 | (fderiv_comp_add_right a) |
| 25 | |
| 26 | theorem squareEnergy_translate (f : Space → Space) (a : Space) : |
| 27 | squareEnergy (fun x => f (x + a)) = squareEnergy f := |
| 28 | integral_add_right_eq_self (fun x => ‖f x‖ ^ 2) a |
| 29 | |
| 30 | theorem mixedEnergy_translate (f : Space → Space) (a : Space) : |
| 31 | mixedEnergy (fun x => f (x + a)) = mixedEnergy f := by |
| 32 | simp only [mixedEnergy, spatialPartial_translate, squareEnergy_translate] |
| 33 | |
| 34 | theorem HasFiniteH3.translate {f : Space → Space} (h : HasFiniteH3 f) (a : Space) : |
| 35 | HasFiniteH3 (fun x => f (x + a)) := by |
| 36 | have hi {g : Space → ℝ} (hg : Integrable g) : Integrable (fun x => g (x + a)) := |
| 37 | ((measurePreserving_add_right volume a).integrable_comp hg.aestronglyMeasurable).2 hg |
| 38 | refine ⟨hi h.1, ?_, ?_, ?_⟩ |
| 39 | · intro i |
| 40 | simpa only [spatialPartial_translate] using hi (h.2.1 i) |
| 41 | · intro i j |
| 42 | simpa only [spatialPartial_translate] using hi (h.2.2.1 i j) |
| 43 | · intro i j k |
| 44 | simpa only [spatialPartial_translate] using hi (h.2.2.2 i j k) |
| 45 | |
| 46 | theorem cubeMixedEnergy_le_mixedEnergy {f : Space → Space} |
| 47 | (hf : ContDiff ℝ ∞ f) (hi : HasFiniteH3 f) : |
| 48 | NavierStokes.PeriodicSobolev.mixedEnergy f ≤ mixedEnergy f := by |
| 49 | have hd (g : Space → Space) (hg : ContDiff ℝ ∞ g) (i : Fin 3) := |
| 50 | NavierStokes.PeriodicUniqueness.spatial_partial_contDiff hg i |
| 51 | have h0 := hd f hf 0 |
| 52 | have h1 := hd f hf 1 |
| 53 | have h2 := hd f hf 2 |
| 54 | have h10 := hd _ h0 1 |
| 55 | have h20 := hd _ h0 2 |
| 56 | have h21 := hd _ h1 2 |
| 57 | have h210 := hd _ h10 2 |
| 58 | have hb {g : Space → Space} (hg : Continuous g) |
| 59 | (hgi : Integrable (fun x => ‖g x‖ ^ 2)) : |
| 60 | NavierStokes.PeriodicSobolev.boxIntegral |
| 61 | (NavierStokes.PeriodicSobolev.sqField g) ≤ squareEnergy g := |
| 62 | boxIntegral_le_integral (hg.norm.pow 2) hgi (fun x => sq_nonneg _) |
| 63 | exact add_le_add (add_le_add (add_le_add (add_le_add (add_le_add (add_le_add |
| 64 | (add_le_add (hb hf.continuous hi.1) (hb h0.continuous (hi.2.1 0))) |
| 65 | (hb h1.continuous (hi.2.1 1))) (hb h2.continuous (hi.2.1 2))) |
| 66 | (hb h10.continuous (hi.2.2.1 1 0))) (hb h20.continuous (hi.2.2.1 2 0))) |
| 67 | (hb h21.continuous (hi.2.2.1 2 1))) (hb h210.continuous (hi.2.2.2 2 1 0)) |
| 68 | |
| 69 | /-- H³(ℝ³) controls the value at every spatial point, with a universal |
| 70 | constant independent of the support or of the chosen point. -/ |
| 71 | theorem norm_sq_le_eight_derivativeH3Energy {f : Space → Space} |
| 72 | (hf : ContDiff ℝ ∞ f) (hi : HasFiniteH3 f) (x : Space) : |
| 73 | ‖f x‖ ^ 2 ≤ 8 * derivativeH3Energy f := by |
| 74 | have hs : ContDiff ℝ ∞ (fun y => f (y + x)) := |
| 75 | hf.comp (contDiff_id.add contDiff_const) |
| 76 | have hlocal := NavierStokes.PeriodicSobolev.norm_sq_le_eight_mixedEnergy_on_cube hs 0 |
| 77 | (fun _ => by simp) |
| 78 | have hglobal := cubeMixedEnergy_le_mixedEnergy hs (hi.translate x) |
| 79 | rw [mixedEnergy_translate] at hglobal |
| 80 | have hm := mixedEnergy_le_derivativeH3Energy f |
| 81 | simpa only [zero_add] using hlocal.trans (mul_le_mul_of_nonneg_left |
| 82 | (hglobal.trans hm) (by norm_num : (0 : ℝ) ≤ 8)) |
| 83 | |
| 84 | /-- A convenient linear form of the whole-space Sobolev bound. -/ |
| 85 | theorem norm_le_three_derivativeH3Norm {f : Space → Space} |
| 86 | (hf : ContDiff ℝ ∞ f) (hi : HasFiniteH3 f) (x : Space) : |
| 87 | ‖f x‖ ≤ 3 * derivativeH3Norm f := by |
| 88 | have he := norm_sq_le_eight_derivativeH3Energy hf hi x |
| 89 | have hn := derivativeH3Norm_nonneg f |
| 90 | have hs : derivativeH3Norm f ^ 2 = derivativeH3Energy f := |
| 91 | Real.sq_sqrt (derivativeH3Energy_nonneg f) |
| 92 | nlinarith [derivativeH3Energy_nonneg f] |
| 93 | |
| 94 | end NavierStokesR3.H3Embedding |