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.MeanHarmonicLaplacian |
| 2 | |
| 3 | /-! Scalar coordinate product rules for the localized harmonic estimates. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open InnerProductSpace EulerSmoothLimit EulerVectorCalculus |
| 10 | open scoped ContDiff |
| 11 | |
| 12 | theorem partialDerivative_add {f g : Space → ℝ} {x : Space} |
| 13 | (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (i : Fin 3) : |
| 14 | partialDerivative (f + g) i x = partialDerivative f i x + partialDerivative g i x := by |
| 15 | unfold partialDerivative |
| 16 | rw [(hf.hasFDerivAt.add hg.hasFDerivAt).fderiv] |
| 17 | rfl |
| 18 | |
| 19 | theorem partialDerivative_mul {f g : Space → ℝ} {x : Space} |
| 20 | (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (i : Fin 3) : |
| 21 | partialDerivative (f * g) i x = g x * partialDerivative f i x + f x * partialDerivative g i x := by |
| 22 | rw [← gradient_coordinate, gradient_mul hf hg] |
| 23 | simp only [PiLp.add_apply, PiLp.smul_apply, smul_eq_mul, gradient_coordinate] |
| 24 | |
| 25 | theorem secondPartial_mul (f g : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 26 | (hg : ContDiff ℝ ∞ g) (i : Fin 3) (x : Space) : |
| 27 | partialDerivative (partialDerivative (f * g) i) i x = |
| 28 | g x * partialDerivative (partialDerivative f i) i x + |
| 29 | 2 * partialDerivative f i x * partialDerivative g i x + |
| 30 | f x * partialDerivative (partialDerivative g i) i x := by |
| 31 | have heq : partialDerivative (f * g) i = |
| 32 | g * partialDerivative f i + f * partialDerivative g i := by |
| 33 | funext y |
| 34 | exact partialDerivative_mul ((hf.differentiable (by simp)).differentiableAt) |
| 35 | ((hg.differentiable (by simp)).differentiableAt) i |
| 36 | have hdf := contDiff_partialDerivative f hf i |
| 37 | have hdg := contDiff_partialDerivative g hg i |
| 38 | have h₁ : DifferentiableAt ℝ (g * partialDerivative f i) x := |
| 39 | ((hg.mul hdf).differentiable (by simp)).differentiableAt |
| 40 | have h₂ : DifferentiableAt ℝ (f * partialDerivative g i) x := |
| 41 | ((hf.mul hdg).differentiable (by simp)).differentiableAt |
| 42 | rw [heq, partialDerivative_add h₁ h₂ i, |
| 43 | partialDerivative_mul (f := g) (g := partialDerivative f i) |
| 44 | ((hg.differentiable (by simp)).differentiableAt) |
| 45 | ((hdf.differentiable (by simp)).differentiableAt), |
| 46 | partialDerivative_mul (f := f) (g := partialDerivative g i) |
| 47 | ((hf.differentiable (by simp)).differentiableAt) |
| 48 | ((hdg.differentiable (by simp)).differentiableAt)] |
| 49 | ring |
| 50 | |
| 51 | theorem sq_add_three_le (a b c : ℝ) : (a + b + c) ^ 2 ≤ 3 * (a ^ 2 + b ^ 2 + c ^ 2) := by |
| 52 | nlinarith [sq_nonneg (a - b), sq_nonneg (a - c), sq_nonneg (b - c)] |
| 53 | |
| 54 | end EulerMeanHarmonic |