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.CompactEnergy |
| 2 | |
| 3 | /-! |
| 4 | # Compact whole-space energy balance at arbitrary viscosity |
| 5 | |
| 6 | The dissipation is retained explicitly, so integrating the identity also |
| 7 | controls the total dissipation up to a possible singular time. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter MeasureTheory Function |
| 13 | open scoped Topology BigOperators ContDiff InnerProductSpace |
| 14 | |
| 15 | namespace NavierStokesR3.CompactEnergy |
| 16 | |
| 17 | open NavierStokes.ProblemStatement |
| 18 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 19 | open NavierStokes.PeriodicUniqueness |
| 20 | |
| 21 | /-- The exact compact-support energy identity with the viscosity retained. -/ |
| 22 | theorem energy_balance_viscosity {ν : ℝ} {u f : VelocityField} {p : PressureField} {t : ℝ} |
| 23 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 24 | (hp : ContDiff ℝ ∞ (fun x : Space => p (t, x))) |
| 25 | (hf : Continuous (fun x : Space => f (t, x))) |
| 26 | (hcu : HasCompactSupport (fun x : Space => u (t, x))) |
| 27 | (hdiv : ∀ x, spatialDivergence u t x = 0) |
| 28 | (hNS : ∀ x, ProblemStatement.navierStokesResidual ν u p t x = f (t, x)) : |
| 29 | energyRate u t = -2 * ν * dissipation u t + |
| 30 | 2 * ∫ x, ⟪u (t, x), f (t, x)⟫_ℝ := by |
| 31 | let g : VelocityField := fun z => f z + (ν - 1) • spatialLaplacian u z.1 z.2 |
| 32 | have hg : Continuous (fun x : Space => g (t, x)) := |
| 33 | hf.add ((spatialLaplacian_contDiff hu).continuous.const_smul (ν - 1)) |
| 34 | have hNSg : ∀ x, navierStokesResidual u p t x = g (t, x) := by |
| 35 | intro x |
| 36 | dsimp only [g] |
| 37 | rw [← hNS x] |
| 38 | unfold ProblemStatement.navierStokesResidual navierStokesResidual |
| 39 | rw [sub_smul, one_smul] |
| 40 | abel |
| 41 | have hbalance := energy_balance hu hp hg hcu hdiv hNSg |
| 42 | have hiF := integrable_inner_left hu.continuous hf hcu |
| 43 | have hiL := integrable_inner_left hu.continuous (spatialLaplacian_contDiff hu).continuous hcu |
| 44 | have hwork : (∫ x, ⟪u (t, x), g (t, x)⟫_ℝ) = |
| 45 | (∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) - (ν - 1) * dissipation u t := by |
| 46 | simp only [g, inner_add_right, inner_smul_right] |
| 47 | rw [integral_add hiF (hiL.const_mul (ν - 1)), integral_const_mul, |
| 48 | integral_laplacian_energy hu hcu] |
| 49 | simp only [dissipation] |
| 50 | ring |
| 51 | rw [hwork] at hbalance |
| 52 | rw [hbalance] |
| 53 | ring |
| 54 | |
| 55 | /-- Differentiation of the energy and integration by parts at viscosity `ν`. -/ |
| 56 | theorem hasDerivAt_energy_balance_viscosity {ν a b t : ℝ} {u f : VelocityField} |
| 57 | {p : PressureField} {K : Set Space} |
| 58 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 59 | (hp : ContDiffOn ℝ ∞ p (slab a b)) |
| 60 | (hf : Continuous (fun x : Space => f (t, x))) |
| 61 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 62 | (ht : t ∈ Ioo a b) |
| 63 | (hdiv : ∀ x, spatialDivergence u t x = 0) |
| 64 | (hNS : ∀ x, ProblemStatement.navierStokesResidual ν u p t x = f (t, x)) : |
| 65 | HasDerivAt (l2Sq u) |
| 66 | (-2 * ν * dissipation u t + 2 * ∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) t := by |
| 67 | have h := energy_hasDerivAt hK hu hsupp ht |
| 68 | rw [energy_balance_viscosity (spatial_smooth hu ⟨ht.1.le, ht.2.le⟩) |
| 69 | (spatial_smooth hp ⟨ht.1.le, ht.2.le⟩) hf |
| 70 | (slice_compact hK (hsupp t ⟨ht.1.le, ht.2.le⟩)) hdiv hNS] at h |
| 71 | exact h |
| 72 | |
| 73 | /-- Force work varies continuously on a closed smooth time slab. -/ |
| 74 | theorem forceWork_continuousOn {a b : ℝ} {u f : VelocityField} {K : Set Space} |
| 75 | (hK : IsCompact K) (hu : ContinuousOn u (slab a b)) |
| 76 | (hf : ContinuousOn f (slab a b)) |
| 77 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) : |
| 78 | ContinuousOn (fun t => ∫ x, ⟪u (t, x), f (t, x)⟫_ℝ) (Icc a b) := by |
| 79 | apply CompactTimeIntegral.continuousOn_integral (F := fun z => ⟪u z, f z⟫_ℝ) hK (hu.inner hf) |
| 80 | intro t ht x hx |
| 81 | rw [zero_outside (hsupp t ht) hx, inner_zero_left] |
| 82 | |
| 83 | /-- Spatial partial derivatives are jointly continuous even at slab endpoints. -/ |
| 84 | theorem spatialPartial_continuousOn_slab {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 85 | (hu : ContDiffOn ℝ ∞ u (slab a b)) (i : Fin 3) : |
| 86 | ContinuousOn (fun z : SpaceTime => spatialPartial i (fun y => u (z.1, y)) z.2) |
| 87 | (slab a b) := by |
| 88 | have hs : UniqueDiffOn ℝ (slab a b) := (uniqueDiffOn_Icc hab).prod uniqueDiffOn_univ |
| 89 | have horder : (∞ : WithTop ℕ∞) + 1 ≤ ∞ := by |
| 90 | simpa only [ENat.coe_top_add_one] using (le_rfl : (∞ : WithTop ℕ∞) ≤ ∞) |
| 91 | have hc := (hu.fderivWithin hs horder).continuousOn.clm_apply |
| 92 | (show ContinuousOn (fun _ : SpaceTime => ((0 : ℝ), coordinateVector i)) (slab a b) |
| 93 | from continuousOn_const) |
| 94 | apply hc.congr |
| 95 | intro z hz |
| 96 | change spatialDerivative u z.1 z.2 (coordinateVector i) = _ |
| 97 | rw [spatialDerivative_eq_within_comp hu hz.1 z.2] |
| 98 | rfl |
| 99 | |
| 100 | /-- The spatially integrated dissipation is continuous on every nondegenerate |
| 101 | closed time slab with smooth velocity and a fixed compact spatial support. -/ |
| 102 | theorem dissipation_continuousOn {a b : ℝ} (hab : a < b) {u : VelocityField} |
| 103 | {K : Set Space} (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 104 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) : |
| 105 | ContinuousOn (dissipation u) (Icc a b) := by |
| 106 | apply continuousOn_finsetSum |
| 107 | intro i _ |
| 108 | apply CompactTimeIntegral.continuousOn_integral hK |
| 109 | ((spatialPartial_continuousOn_slab hab hu i).norm.pow 2) |
| 110 | intro t ht x hx |
| 111 | have hnot : x ∉ tsupport (fun y => u (t, y)) := fun h => hx (hsupp t ht h) |
| 112 | simp [spatialPartial, fderiv_of_notMem_tsupport ℝ hnot] |
| 113 | |
| 114 | end NavierStokesR3.CompactEnergy |