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.SobolevLaplacian |
| 2 | |
| 3 | /-! Genuine gradient energy and maximal-regularity estimates for smooth Sobolev heat solutions. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerHeatGradientEnergy |
| 8 | |
| 9 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 10 | EulerCylinderSobolev EulerCylinderSobolevSpace EulerSobolevLaplacian EulerSobolevHeatGenerator |
| 11 | EulerLiftedWeakDerivative |
| 12 | open scoped Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The actual sum of the four first-derivative L² energies. -/ |
| 17 | def gradientEnergy (u : SobolevSpace period 1) : ℝ := |
| 18 | ∑ i : Fin 4, ‖value period (derivativeOperator period 0 i u)‖ ^ 2 |
| 19 | |
| 20 | /-- Gradient energy is nonnegative. -/ |
| 21 | theorem gradientEnergy_nonneg (u : SobolevSpace period 1) : 0 ≤ gradientEnergy period u := |
| 22 | Finset.sum_nonneg (fun _ _ => sq_nonneg _) |
| 23 | |
| 24 | /-- Gradient energy is a continuous function of the actual H¹ field. -/ |
| 25 | theorem gradientEnergy_continuous : Continuous (gradientEnergy period) := by |
| 26 | apply continuous_finsetSum |
| 27 | intro i _ |
| 28 | exact (((valueOperator period 0).continuous.comp (derivativeOperator period 0 i).continuous).norm).pow 2 |
| 29 | |
| 30 | /-- Genuine strong-derivative integration by parts identifies the full gradient pairing with the Laplacian. -/ |
| 31 | theorem gradient_pairing (u : SobolevSpace period 2) (v : SobolevSpace period 1) : |
| 32 | (∑ i : Fin 4, ⟪value period (derivativeOperator period 1 i u), |
| 33 | value period (derivativeOperator period 0 i v)⟫_ℝ) = |
| 34 | -⟪laplacianEvaluation period 2 (by norm_num) u, value period v⟫_ℝ := by |
| 35 | have hi (i : Fin 4) : ⟪value period (derivativeOperator period 1 i u), |
| 36 | value period (derivativeOperator period 0 i v)⟫_ℝ = |
| 37 | -⟪value period (derivativeOperator period 0 i (derivativeOperator period 1 i u)), value period v⟫_ℝ := by |
| 38 | have h := translation_derivative_pairing period (standardDirection i) |
| 39 | (value period (derivativeOperator period 1 i u)) |
| 40 | (value period (derivativeOperator period 0 i (derivativeOperator period 1 i u))) |
| 41 | (value period v) (value period (derivativeOperator period 0 i v)) |
| 42 | (derivativeOperator_hasDerivAt period i (derivativeOperator period 1 i u)) |
| 43 | (derivativeOperator_hasDerivAt period i v) |
| 44 | linarith |
| 45 | rw [← laplacianOperator_value period u, laplacianOperator_apply] |
| 46 | change _ = -⟪(valueOperator period 0) (∑ i : Fin 4, _), value period v⟫_ℝ |
| 47 | rw [map_sum, sum_inner] |
| 48 | simp only [hi, Finset.sum_neg_distrib] |
| 49 | rfl |
| 50 | |
| 51 | /-- Actual L² time derivatives of the first spatial derivatives determine the gradient-energy derivative. -/ |
| 52 | theorem gradient_energy_hasDerivAt (u : ℝ → SobolevSpace period 2) (v : SobolevSpace period 1) (t : ℝ) |
| 53 | (hd : ∀ i : Fin 4, HasDerivAt (fun s => value period (derivativeOperator period 1 i (u s))) |
| 54 | (value period (derivativeOperator period 0 i v)) t) : |
| 55 | HasDerivAt (fun s => gradientEnergy period (truncateOperator period 1 (u s))) |
| 56 | (-2 * ⟪laplacianEvaluation period 2 (by norm_num) (u t), value period v⟫_ℝ) t := by |
| 57 | have h := HasDerivAt.fun_sum (u := Finset.univ) (fun i (_ : i ∈ (Finset.univ : Finset (Fin 4))) => (hd i).norm_sq) |
| 58 | have he : (∑ i : Fin 4, 2 * ⟪value period (derivativeOperator period 1 i (u t)), |
| 59 | value period (derivativeOperator period 0 i v)⟫_ℝ) = |
| 60 | -2 * ⟪laplacianEvaluation period 2 (by norm_num) (u t), value period v⟫_ℝ := by |
| 61 | rw [← Finset.mul_sum, gradient_pairing] |
| 62 | ring |
| 63 | rw [he] at h |
| 64 | exact h |
| 65 | |
| 66 | omit [Fact (0 < period)] in |
| 67 | /-- The scalar Young bound with the exact viscosity scaling used by maximal regularity. -/ |
| 68 | theorem viscosity_young (ν x y : ℝ) (hν : 0 < ν) : 2*x*y ≤ ν*x^2 + ν⁻¹*y^2 := by |
| 69 | have h := div_nonneg (sq_nonneg (ν*x-y)) hν.le |
| 70 | have he : (ν*x-y)^2 / ν = ν*x^2 - 2*x*y + ν⁻¹*y^2 := by |
| 71 | field_simp |
| 72 | ring |
| 73 | rw [he] at h |
| 74 | linarith |
| 75 | |
| 76 | /-- The true heat gradient energy absorbs the source without differentiating the source in its bound. -/ |
| 77 | theorem heat_gradient_energy_hasDerivAt (u : ℝ → SobolevSpace period 3) |
| 78 | (f : SobolevSpace period 1) (ν t : ℝ) |
| 79 | (hd : ∀ i : Fin 4, HasDerivAt (fun s => value period (derivativeOperator period 2 i (u s))) |
| 80 | (value period (derivativeOperator period 0 i (ν • laplacianOperator period 1 (u t) + f))) t) : |
| 81 | HasDerivAt (fun s => gradientEnergy period (restrictOperator period (by norm_num : 1 ≤ 3) (u s))) |
| 82 | (-2 * ⟪laplacianEvaluation period 3 (by norm_num) (u t), |
| 83 | ν • laplacianEvaluation period 3 (by norm_num) (u t) + value period f⟫_ℝ) t := by |
| 84 | have h := gradient_energy_hasDerivAt period (fun s => truncateOperator period 2 (u s)) |
| 85 | (ν • laplacianOperator period 1 (u t) + f) t hd |
| 86 | have he : laplacianEvaluation period 2 (by norm_num) (truncateOperator period 2 (u t)) = |
| 87 | laplacianEvaluation period 3 (by norm_num) (u t) := by |
| 88 | rw [laplacianEvaluation_apply, laplacianEvaluation_apply] |
| 89 | rfl |
| 90 | change HasDerivAt _ (-2 * ⟪laplacianEvaluation period 2 _ (truncateOperator period 2 (u t)), |
| 91 | ν • value period (laplacianOperator period 1 (u t)) + value period f⟫_ℝ) t at h |
| 92 | rw [he, laplacianOperator_value] at h |
| 93 | exact h |
| 94 | |
| 95 | /-- The actual derivative of gradient energy controls the full L² Laplacian with no source derivative loss. -/ |
| 96 | theorem heat_gradient_energy_bound (u : ℝ → SobolevSpace period 3) |
| 97 | (f : SobolevSpace period 1) (ν t : ℝ) (hν : 0 < ν) |
| 98 | (hd : ∀ i : Fin 4, HasDerivAt (fun s => value period (derivativeOperator period 2 i (u s))) |
| 99 | (value period (derivativeOperator period 0 i (ν • laplacianOperator period 1 (u t) + f))) t) : |
| 100 | deriv (fun s => gradientEnergy period (restrictOperator period (by norm_num : 1 ≤ 3) (u s))) t ≤ |
| 101 | -ν * ‖laplacianEvaluation period 3 (by norm_num) (u t)‖^2 + ν⁻¹ * ‖value period f‖^2 := by |
| 102 | rw [(heat_gradient_energy_hasDerivAt period u f ν t hd).deriv, inner_add_right, inner_smul_right, |
| 103 | real_inner_self_eq_norm_sq] |
| 104 | have hb := norm_inner_le_norm (𝕜 := ℝ) (laplacianEvaluation period 3 (by norm_num) (u t)) (value period f) |
| 105 | rw [Real.norm_eq_abs] at hb |
| 106 | have hc := neg_le_abs ⟪laplacianEvaluation period 3 (by norm_num) (u t), value period f⟫_ℝ |
| 107 | have hy := viscosity_young ν ‖laplacianEvaluation period 3 (by norm_num) (u t)‖ ‖value period f‖ hν |
| 108 | nlinarith |
| 109 | |
| 110 | |
| 111 | end EulerHeatGradientEnergy |