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 | # Transport and pressure with a compact spatial weight |
| 5 | |
| 6 | Only the scalar weight has compact support. The velocity, transported field, |
| 7 | and pressure may be arbitrary smooth functions on Euclidean three-space. |
| 8 | -/ |
| 9 | |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set Filter MeasureTheory Function |
| 14 | open scoped Topology BigOperators ContDiff InnerProductSpace |
| 15 | |
| 16 | namespace NavierStokesR3.LocalizedDifferenceEnergy |
| 17 | |
| 18 | open NavierStokes.ProblemStatement |
| 19 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 20 | open NavierStokes.PeriodicUniqueness |
| 21 | |
| 22 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 23 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 24 | |
| 25 | /-- The divergence of a scalar-weighted vector field. -/ |
| 26 | theorem divergence_weighted {χ : Space → ℝ} {v : Space → Space} |
| 27 | (hχ : ContDiff ℝ ∞ χ) (hv : ContDiff ℝ ∞ v) (x : Space) : |
| 28 | (∑ i : Fin 3, spatialPartial i (fun y => χ y • v y) x i) = |
| 29 | fderiv ℝ χ x (v x) + χ x * ∑ i : Fin 3, spatialPartial i v x i := by |
| 30 | have hpartial (i : Fin 3) : |
| 31 | spatialPartial i (fun y => χ y • v y) x i = |
| 32 | χ x * spatialPartial i v x i + spatialPartial i χ x * v x i := by |
| 33 | change (EuclideanSpace.proj i) |
| 34 | (fderiv ℝ (fun y => χ y • v y) x (coordinateVector i)) = _ |
| 35 | rw [fderiv_fun_smul (hχ.differentiable (by simp) x) |
| 36 | (hv.differentiable (by simp) x)] |
| 37 | simp only [_root_.add_apply, _root_.smul_apply, |
| 38 | ContinuousLinearMap.smulRight_apply, map_add, map_smul, smul_eq_mul, |
| 39 | spatialPartial] |
| 40 | rfl |
| 41 | simp_rw [hpartial] |
| 42 | rw [Finset.sum_add_distrib, ← Finset.mul_sum, fderiv_apply_eq_sum] |
| 43 | simp only [spatialPartial] |
| 44 | rw [add_comm] |
| 45 | congr 1 |
| 46 | apply Finset.sum_congr rfl |
| 47 | intro i _ |
| 48 | exact mul_comm _ _ |
| 49 | |
| 50 | /-- A compact scalar weight transfers a directional derivative to the weight |
| 51 | when the vector field is divergence free. -/ |
| 52 | theorem integral_weighted_fderiv_apply {χ f : Space → ℝ} {v : Space → Space} |
| 53 | (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) (hv : ContDiff ℝ ∞ v) |
| 54 | (hcχ : HasCompactSupport χ) |
| 55 | (hdiv : ∀ x, (∑ i : Fin 3, spatialPartial i v x i) = 0) : |
| 56 | (∫ x, χ x * fderiv ℝ f x (v x)) = |
| 57 | -(∫ x, f x * fderiv ℝ χ x (v x)) := by |
| 58 | have h := CompactEnergy.integral_fderiv_apply hf (hχ.smul hv) |
| 59 | (show HasCompactSupport (fun x => χ x • v x) from hcχ.smul_right) |
| 60 | change (∫ x, fderiv ℝ f x (χ x • v x)) = -(∫ x, f x * ∑ i : Fin 3, spatialPartial i (fun y => χ y • v y) x i) at h |
| 61 | simpa only [map_smul, smul_eq_mul, divergence_weighted hχ hv, hdiv, |
| 62 | mul_zero, add_zero] using h |
| 63 | |
| 64 | /-- The transport energy becomes a flux through the compact weight. No support |
| 65 | or global integrability assumption is imposed on either vector field. -/ |
| 66 | theorem integral_weighted_transport {χ : Space → ℝ} {w v : Space → Space} |
| 67 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (hv : ContDiff ℝ ∞ v) |
| 68 | (hcχ : HasCompactSupport χ) |
| 69 | (hdiv : ∀ x, (∑ i : Fin 3, spatialPartial i v x i) = 0) : |
| 70 | (∫ x, χ x * ⟪w x, fderiv ℝ w x (v x)⟫_ℝ) = |
| 71 | -(1 / 2 : ℝ) * ∫ x, ‖w x‖ ^ 2 * fderiv ℝ χ x (v x) := by |
| 72 | have h := integral_weighted_fderiv_apply hχ (hw.norm_sq ℝ) hv hcχ hdiv |
| 73 | have hfun : (fun x => χ x * fderiv ℝ (fun y => ‖w y‖ ^ 2) x (v x)) = |
| 74 | (fun x => 2 * (χ x * ⟪w x, fderiv ℝ w x (v x)⟫_ℝ)) := by |
| 75 | funext x |
| 76 | rw [fderiv_normsq hw] |
| 77 | ring |
| 78 | rw [hfun, integral_const_mul] at h |
| 79 | linarith |
| 80 | |
| 81 | /-- The pressure term becomes a flux through the compact weight. The pressure |
| 82 | need not have compact support or satisfy any bound at infinity. -/ |
| 83 | theorem integral_weighted_pressure {χ π : Space → ℝ} {w : Space → Space} |
| 84 | (hχ : ContDiff ℝ ∞ χ) (hπ : ContDiff ℝ ∞ π) (hw : ContDiff ℝ ∞ w) |
| 85 | (hcχ : HasCompactSupport χ) |
| 86 | (hdiv : ∀ x, (∑ i : Fin 3, spatialPartial i w x i) = 0) : |
| 87 | (∫ x, χ x * fderiv ℝ π x (w x)) = |
| 88 | -(∫ x, π x * fderiv ℝ χ x (w x)) := |
| 89 | integral_weighted_fderiv_apply hχ hπ hw hcχ hdiv |
| 90 | |
| 91 | end NavierStokesR3.LocalizedDifferenceEnergy |