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.R3CompactEnergy |
| 2 | import NavierStokes.R3CompactParametricIntegral |
| 3 | import NavierStokes.R3LocalizedEnergyLimit |
| 4 | |
| 5 | /-! |
| 6 | # Time evolution of the actual localized kinetic energy |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | namespace NavierStokes.R3LocalEnergyEvolution |
| 11 | |
| 12 | open Set MeasureTheory ProblemStatement InnerProductSpace |
| 13 | open R3LocalizedEnergyLimit R3CompactParametricIntegral |
| 14 | open scoped ContDiff RealInnerProductSpace |
| 15 | |
| 16 | def energyRate (χ : Space → ℝ) (w : VelocityField) (t : ℝ) : ℝ := |
| 17 | 2 * ∫ x : Space, χ x * ⟪w (t, x), temporalDerivative w t x⟫_ℝ |
| 18 | |
| 19 | theorem energy_continuousOn {I : Set ℝ} {χ : Space → ℝ} {w : VelocityField} |
| 20 | (hI : IsCompact I) (hχ : Continuous χ) (hc : HasCompactSupport χ) |
| 21 | (hw : ContDiffOn ℝ ∞ w (I ×ˢ (univ : Set Space))) : |
| 22 | ContinuousOn (fun t => localizedEnergy χ (fun x => w (t, x))) I := by |
| 23 | apply integral_continuousOn hI hc |
| 24 | ((hχ.comp continuous_snd).continuousOn.mul (hw.norm_sq ℝ).continuousOn) |
| 25 | intro t ht x hx |
| 26 | simp [image_eq_zero_of_notMem_tsupport hx] |
| 27 | |
| 28 | theorem energy_hasDerivAt {I : Set ℝ} {χ : Space → ℝ} {w : VelocityField} |
| 29 | (hI : IsOpen I) (hχ : ContDiff ℝ ∞ χ) (hc : HasCompactSupport χ) |
| 30 | (hw : ContDiffOn ℝ ∞ w (I ×ˢ (univ : Set Space))) {t : ℝ} (ht : t ∈ I) : |
| 31 | HasDerivAt (fun s => localizedEnergy χ (fun x => w (s, x))) (energyRate χ w t) t := by |
| 32 | have hF : ContDiffOn ℝ 1 (fun z : ℝ × Space => χ z.2 * ‖w z‖ ^ 2) |
| 33 | (I ×ˢ (univ : Set Space)) := |
| 34 | (((hχ.comp contDiff_snd).contDiffOn).mul (hw.norm_sq ℝ)).of_le (by simp) |
| 35 | have h := integral_hasDerivAt_of_contDiffOn hI hc hF |
| 36 | (fun s hs x hx => by simp [image_eq_zero_of_notMem_tsupport hx]) ht |
| 37 | have he (x : Space) : deriv (fun s : ℝ => χ x * ‖w (s, x)‖ ^ 2) t = |
| 38 | 2 * (χ x * ⟪w (t, x), temporalDerivative w t x⟫_ℝ) := by |
| 39 | have hd : DifferentiableAt ℝ (fun s : ℝ => w (s, x)) t := |
| 40 | ((hw.contDiffAt ((hI.prod isOpen_univ).mem_nhds ⟨ht, mem_univ x⟩)).comp t |
| 41 | (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt (by simp) |
| 42 | rw [((PeriodicUniqueness.energy_density_derivative hd).const_mul (χ x)).deriv] |
| 43 | ring |
| 44 | simpa only [he, integral_const_mul, localizedEnergy, energyRate] using h |
| 45 | |
| 46 | /-- Smooth solutions of the same forced equation satisfy the localized |
| 47 | energy identity, without global pressure or derivative integrability. -/ |
| 48 | theorem difference_energy_balance {χ : Space → ℝ} {u v : VelocityField} |
| 49 | {p q : PressureField} {t : ℝ} (hχ : ContDiff ℝ ∞ χ) (hc : HasCompactSupport χ) |
| 50 | (hu : ContDiff ℝ ∞ (fun x : Space => u (t, x))) |
| 51 | (hv : ContDiff ℝ ∞ (fun x : Space => v (t, x))) |
| 52 | (hp : ContDiff ℝ ∞ (fun x : Space => p (t, x))) |
| 53 | (hq : ContDiff ℝ ∞ (fun x : Space => q (t, x))) |
| 54 | (htu : ∀ x, DifferentiableAt ℝ (fun s => u (s, x)) t) |
| 55 | (htv : ∀ x, DifferentiableAt ℝ (fun s => v (s, x)) t) |
| 56 | (hdu : ∀ x, spatialDivergence u t x = 0) |
| 57 | (hdv : ∀ x, spatialDivergence v t x = 0) |
| 58 | (heq : ∀ x, navierStokesResidual u p t x = navierStokesResidual v q t x) : |
| 59 | energyRate χ (u - v) t = |
| 60 | -2 * R3CompactEnergy.dissipation χ (fun x => (u - v) (t, x)) - |
| 61 | 2 * R3CompactEnergy.diffusionFlux χ (fun x => (u - v) (t, x)) + |
| 62 | R3CompactEnergy.transportFlux χ (fun x => (u - v) (t, x)) (fun x => v (t, x)) - |
| 63 | 2 * R3CompactEnergy.coupling χ (fun x => (u - v) (t, x)) (fun x => u (t, x)) + |
| 64 | 2 * R3CompactEnergy.pressureFlux χ (fun x => (u - v) (t, x)) (fun x => (p - q) (t, x)) := by |
| 65 | apply R3CompactEnergy.energy_balance hχ (hp.sub hq) (hu.sub hv) hu hv hc |
| 66 | · intro x |
| 67 | change spatialDivergence (u - v) t x = 0 |
| 68 | rw [PeriodicUniqueness.spatialDivergence_sub hu hv, hdu, hdv, sub_self] |
| 69 | · exact hdv |
| 70 | · intro x |
| 71 | have h := PeriodicUniqueness.difference_equation hu hv hp hq (htu x) (htv x) (heq x) |
| 72 | change temporalDerivative (u - v) t x = spatialLaplacian (u - v) t x - |
| 73 | spatialDerivative (u - v) t x (v (t, x)) - |
| 74 | spatialDerivative u t x ((u - v) (t, x)) - pressureGradient (p - q) t x |
| 75 | rw [h] |
| 76 | abel |
| 77 | |
| 78 | end NavierStokes.R3LocalEnergyEvolution |