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.ViscousEnergyBalance |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | open Set Filter MeasureTheory Function |
| 6 | open scoped Topology BigOperators ContDiff |
| 7 | |
| 8 | namespace NavierStokesR3.H3Compact |
| 9 | |
| 10 | open ProblemStatement |
| 11 | open NavierStokes.ProblemStatement (coordinateVector) |
| 12 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 13 | open NavierStokes.PeriodicUniqueness (slab spatial_smooth) |
| 14 | |
| 15 | /-- Coordinate derivatives are genuine spatial derivatives, including at a |
| 16 | closed time interval's endpoints. -/ |
| 17 | def partialField (i : Fin 3) (u : VelocityField) : VelocityField := |
| 18 | fun z => spatialPartial i (fun y => u (z.1, y)) z.2 |
| 19 | |
| 20 | private theorem infinity_add_one_le : (∞ : WithTop ℕ∞) + 1 ≤ ∞ := by |
| 21 | simpa only [ENat.coe_top_add_one] using (le_rfl : (∞ : WithTop ℕ∞) ≤ ∞) |
| 22 | |
| 23 | theorem partialField_contDiffOn {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 24 | (hu : ContDiffOn ℝ ∞ u (slab a b)) (i : Fin 3) : |
| 25 | ContDiffOn ℝ ∞ (partialField i u) (slab a b) := by |
| 26 | have hs : UniqueDiffOn ℝ (slab a b) := |
| 27 | (uniqueDiffOn_Icc hab).prod uniqueDiffOn_univ |
| 28 | have hc := (hu.fderivWithin hs infinity_add_one_le).clm_apply |
| 29 | (show ContDiffOn ℝ ∞ (fun _ : SpaceTime => ((0 : ℝ), coordinateVector i)) |
| 30 | (slab a b) from contDiffOn_const) |
| 31 | apply hc.congr |
| 32 | intro z hz |
| 33 | change NavierStokes.ProblemStatement.spatialDerivative u z.1 z.2 (coordinateVector i) = _ |
| 34 | rw [NavierStokes.PeriodicUniqueness.spatialDerivative_eq_within_comp hu hz.1 z.2] |
| 35 | rfl |
| 36 | |
| 37 | theorem partialField_support {a b : ℝ} {u : VelocityField} {K : Set Space} |
| 38 | (hsupp : ∀ t ∈ Icc a b, tsupport (fun x => u (t, x)) ⊆ K) (i : Fin 3) : |
| 39 | ∀ t ∈ Icc a b, tsupport (fun x => partialField i u (t, x)) ⊆ K := by |
| 40 | intro t ht |
| 41 | change tsupport (fun x => fderiv ℝ (fun y => u (t, y)) x (coordinateVector i)) ⊆ K |
| 42 | exact (tsupport_fderiv_apply_subset ℝ (coordinateVector i)).trans (hsupp t ht) |
| 43 | |
| 44 | /-- An arbitrary ordered word of ordinary coordinate derivatives. -/ |
| 45 | def partialWord : List (Fin 3) → VelocityField → VelocityField |
| 46 | | [], u => u |
| 47 | | i :: is, u => partialField i (partialWord is u) |
| 48 | |
| 49 | theorem partialWord_contDiffOn {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 50 | (hu : ContDiffOn ℝ ∞ u (slab a b)) (is : List (Fin 3)) : |
| 51 | ContDiffOn ℝ ∞ (partialWord is u) (slab a b) := by |
| 52 | induction is with |
| 53 | | nil => exact hu |
| 54 | | cons i is ih => exact partialField_contDiffOn hab ih i |
| 55 | |
| 56 | theorem partialWord_support {a b : ℝ} {u : VelocityField} {K : Set Space} |
| 57 | (hsupp : ∀ t ∈ Icc a b, tsupport (fun x => u (t, x)) ⊆ K) |
| 58 | (is : List (Fin 3)) : |
| 59 | ∀ t ∈ Icc a b, tsupport (fun x => partialWord is u (t, x)) ⊆ K := by |
| 60 | induction is with |
| 61 | | nil => exact hsupp |
| 62 | | cons i is ih => exact partialField_support ih i |
| 63 | |
| 64 | theorem partialWord_square_integrable {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 65 | {K : Set Space} (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 66 | (hsupp : ∀ t ∈ Icc a b, tsupport (fun x => u (t, x)) ⊆ K) |
| 67 | (is : List (Fin 3)) {t : ℝ} (ht : t ∈ Icc a b) : |
| 68 | Integrable (fun x : Space => ‖partialWord is u (t, x)‖ ^ 2) := by |
| 69 | exact CompactEnergy.integrable_norm_sq |
| 70 | (spatial_smooth (partialWord_contDiffOn hab hu is) ht).continuous |
| 71 | (CompactEnergy.slice_compact hK (partialWord_support hsupp is t ht)) |
| 72 | |
| 73 | theorem partialWord_square_continuousOn {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 74 | {K : Set Space} (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 75 | (hsupp : ∀ t ∈ Icc a b, tsupport (fun x => u (t, x)) ⊆ K) |
| 76 | (is : List (Fin 3)) : |
| 77 | ContinuousOn (fun t => ∫ x : Space, ‖partialWord is u (t, x)‖ ^ 2) (Icc a b) := by |
| 78 | apply CompactTimeIntegral.continuousOn_integral hK |
| 79 | ((partialWord_contDiffOn hab hu is).continuousOn.norm.pow 2) |
| 80 | intro t ht x hx |
| 81 | change ‖partialWord is u (t, x)‖ ^ 2 = 0 |
| 82 | rw [CompactEnergy.zero_outside (partialWord_support hsupp is t ht) hx] |
| 83 | simp |
| 84 | |
| 85 | end NavierStokesR3.H3Compact |