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 Euler.SobolevHeatKernel |
| 2 | import Euler.VolterraFixedPoint |
| 3 | |
| 4 | /-! The actual cylinder heat kernel in the singular Volterra existence theorem. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSobolevHeat |
| 9 | |
| 10 | open EulerCylinderSobolevSpace EulerVolterraConvolution EulerGaussianCylinderHeat MeasureTheory Set |
| 11 | open scoped Topology NNReal |
| 12 | |
| 13 | /-- Positive physical time converted to positive Gaussian variance for viscosity ν. -/ |
| 14 | def positiveVariance (ν : ℝ) (hν : 0 < ν) (t : {t : ℝ // 0 < t}) : {v : ℝ≥0 // 0 < v} := |
| 15 | ⟨⟨2 * ν * t.val, by have ht := t.property; positivity⟩, |
| 16 | by change (0 : ℝ) < 2 * ν * t.val; have ht := t.property; positivity⟩ |
| 17 | |
| 18 | /-- Physical time to Gaussian variance is continuous on positive times. -/ |
| 19 | theorem positiveVariance_continuous (ν : ℝ) (hν : 0 < ν) : Continuous (positiveVariance ν hν) := by |
| 20 | apply Continuous.subtype_mk |
| 21 | apply Continuous.subtype_mk |
| 22 | exact continuous_const.mul continuous_subtype_val |
| 23 | |
| 24 | variable (period : ℝ) [Fact (0 < period)] |
| 25 | |
| 26 | /-- The actual one-derivative heat kernel is jointly continuous at every positive physical time. -/ |
| 27 | theorem heatKernel_joint_continuous (q : ℕ) (ν : ℝ) (hν : 0 < ν) : |
| 28 | ContinuousOn (fun p : ℝ × SobolevSpace period q => heatKernel period q ν hν p.1 p.2) |
| 29 | (Ioi 0 ×ˢ (univ : Set (SobolevSpace period q))) := by |
| 30 | rw [continuousOn_iff_continuous_domRestrict] |
| 31 | let P := {p : ℝ × SobolevSpace period q // p ∈ Ioi 0 ×ˢ (univ : Set (SobolevSpace period q))} |
| 32 | let τ : P → {t : ℝ // 0 < t} := fun p => ⟨p.val.1, p.property.1⟩ |
| 33 | have hτ : Continuous τ := Continuous.subtype_mk (continuous_fst.comp continuous_subtype_val) _ |
| 34 | let Φ : P → {v : ℝ≥0 // 0 < v} × SobolevSpace period q := |
| 35 | fun p => (positiveVariance ν hν (τ p), p.val.2) |
| 36 | have hΦ : Continuous Φ := ((positiveVariance_continuous ν hν).comp hτ).prodMk |
| 37 | (continuous_snd.comp continuous_subtype_val) |
| 38 | have hh := Continuous.comp |
| 39 | (g := fun p : {v : ℝ≥0 // 0 < v} × SobolevSpace period q => |
| 40 | heatGain period q p.1.val p.1.property p.2) |
| 41 | (f := Φ) (heatGain_joint_continuous period q) hΦ |
| 42 | convert hh using 1 |
| 43 | funext p |
| 44 | change heatKernel period q ν hν p.val.1 p.val.2 = _ |
| 45 | have ht : 0 < p.val.1 := p.property.1 |
| 46 | rw [heatKernel, dite_eq_left ht] |
| 47 | rfl |
| 48 | |
| 49 | /-- The free viscous heat evolution is an actual continuous path in every Sobolev space. -/ |
| 50 | def freeHeatPath (q : ℕ) (ν T : ℝ) (u₀ : SobolevSpace period q) : C(Icc (0 : ℝ) T, SobolevSpace period q) where |
| 51 | toFun t := heatOperator period q (2 * ν * t.val).toNNReal u₀ |
| 52 | continuous_toFun := (heatOperator_continuous period u₀).comp |
| 53 | (continuous_real_toNNReal.comp (continuous_const.mul continuous_subtype_val)) |
| 54 | |
| 55 | /-- The free heat path obeys the initial-data bound in the actual uniform Sobolev norm. -/ |
| 56 | theorem freeHeatPath_bound (q : ℕ) (ν T : ℝ) (u₀ : SobolevSpace period q) : |
| 57 | ‖freeHeatPath period q ν T u₀‖ ≤ ‖u₀‖ := by |
| 58 | apply (ContinuousMap.norm_le _ (norm_nonneg u₀)).mpr |
| 59 | intro t |
| 60 | exact heatOperator_bound period _ u₀ |
| 61 | |
| 62 | /-- The actual viscous heat equation has a local mild solution for every continuous locally Lipschitz derivative-losing source satisfying the explicit time budget. -/ |
| 63 | theorem exists_viscous_mild_solution (q : ℕ) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 64 | (u₀ : SobolevSpace period (q + 1)) |
| 65 | (F : Icc (0 : ℝ) T → SobolevSpace period (q + 1) → SobolevSpace period q) |
| 66 | (hF : Continuous (fun p : Icc (0 : ℝ) T × SobolevSpace period (q + 1) => F p.1 p.2)) |
| 67 | (R M L : ℝ) (hR : 0 ≤ R) (hM : 0 ≤ M) (hL : 0 ≤ L) |
| 68 | (hFM : ∀ t x, ‖x‖ ≤ R → ‖F t x‖ ≤ M) |
| 69 | (hFL : ∀ t x y, ‖x‖ ≤ R → ‖y‖ ≤ R → ‖F t x - F t y‖ ≤ L * ‖x - y‖) |
| 70 | (hbudget : ‖u₀‖ + (T + 2 * parabolicConstant ν * Real.sqrt T) * M ≤ R) |
| 71 | (hsmall : (T + 2 * parabolicConstant ν * Real.sqrt T) * L < 1) : |
| 72 | ∃ u : C(Icc (0 : ℝ) T, SobolevSpace period (q + 1)), ‖u‖ ≤ R ∧ |
| 73 | ∀ t : Icc (0 : ℝ) T, |
| 74 | u t = heatOperator period (q + 1) (2 * ν * t.val).toNNReal u₀ + |
| 75 | ∫ r in (0 : ℝ)..t.val, |
| 76 | heatKernel period q ν hν r |
| 77 | (F (projIcc 0 T hT (t.val - r)) (u (projIcc 0 T hT (t.val - r)))) := by |
| 78 | have hmass : kernelMass T (parabolicKernelBound ν) = T + 2 * parabolicConstant ν * Real.sqrt T := |
| 79 | parabolicKernelBound_integral ν T hT |
| 80 | apply exists_mild_solution T hT (heatKernel period q ν hν) (parabolicKernelBound ν) |
| 81 | (heatKernel_joint_continuous period q ν hν) (parabolicKernelBound_integrable ν T hT) |
| 82 | (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 83 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) |
| 84 | (freeHeatPath period (q + 1) ν T u₀) F hF R M L hR hM hL hFM hFL |
| 85 | · rw [hmass] |
| 86 | have hf := freeHeatPath_bound period (q + 1) ν T u₀ |
| 87 | linarith |
| 88 | · rwa [hmass] |
| 89 | |
| 90 | end EulerSobolevHeat |