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.MeanSolenoidalSpace |
| 2 | import Mathlib.Analysis.InnerProductSpace.Harmonic.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Local energy identities for the harmonic part of the mean inverse |
| 6 | |
| 7 | The mean inverse requires an interior L² estimate for a genuinely harmonic |
| 8 | field. This file starts that argument with the classical localized energy |
| 9 | identity, proved by ordinary-space integration by parts. No interior estimate |
| 10 | or mean-value formula is assumed. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerMeanHarmonic |
| 16 | |
| 17 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal |
| 18 | open scoped ContDiff |
| 19 | |
| 20 | theorem gradient_mul {f g : Space → ℝ} {x : Space} |
| 21 | (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) : |
| 22 | gradient (f * g) x = |
| 23 | g x • gradient f x + f x • gradient g x := by |
| 24 | apply ext_inner_right ℝ |
| 25 | intro v |
| 26 | rw [inner_gradient_left, (hf.hasFDerivAt.mul hg.hasFDerivAt).fderiv, |
| 27 | inner_add_left, real_inner_smul_left, real_inner_smul_left, |
| 28 | inner_gradient_left, inner_gradient_left] |
| 29 | simp only [add_apply, smul_apply, smul_eq_mul] |
| 30 | ring |
| 31 | |
| 32 | theorem localized_gradient_identity (η h : Space → ℝ) |
| 33 | (hη : ContDiff ℝ ∞ η) (hh : ContDiff ℝ ∞ h) (x : Space) : |
| 34 | ‖gradient (η * h) x‖ ^ 2 = |
| 35 | ⟪gradient (η * (η * h)) x, gradient h x⟫_ℝ + |
| 36 | h x ^ 2 * ‖gradient η x‖ ^ 2 := by |
| 37 | have hdη : DifferentiableAt ℝ η x := (hη.differentiable (by simp)).differentiableAt |
| 38 | have hdh : DifferentiableAt ℝ h x := (hh.differentiable (by simp)).differentiableAt |
| 39 | rw [← real_inner_self_eq_norm_sq, |
| 40 | gradient_mul hdη hdh, gradient_mul hdη (hdη.mul hdh), gradient_mul hdη hdh] |
| 41 | simp only [Pi.mul_apply, inner_add_left, inner_add_right, real_inner_smul_left, |
| 42 | real_inner_smul_right, real_inner_self_eq_norm_sq, norm_smul, Real.norm_eq_abs, |
| 43 | mul_pow, sq_abs] |
| 44 | rw [real_inner_comm (gradient h x) (gradient η x)] |
| 45 | ring |
| 46 | |
| 47 | /-- Exact localized Dirichlet-energy identity for a classical harmonic scalar. -/ |
| 48 | theorem caccioppoli_identity (η h : Space → ℝ) |
| 49 | (hcη : HasCompactSupport η) (hη : ContDiff ℝ ∞ η) (hh : ContDiff ℝ ∞ h) |
| 50 | (hharmonic : ∀ x ∈ tsupport η, divergence (gradient h) x = 0) : |
| 51 | (∫ x, ‖gradient (η * h) x‖ ^ 2) = |
| 52 | ∫ x, h x ^ 2 * ‖gradient η x‖ ^ 2 := by |
| 53 | have hcProduct : HasCompactSupport (η * h) := hcη.mul_right (f' := h) |
| 54 | have hcGradient : HasCompactSupport (gradient (η * h)) := compactSupport_gradient hcProduct |
| 55 | have hcGradientη : HasCompactSupport (gradient η) := compactSupport_gradient hcη |
| 56 | have hcSquaredη : HasCompactSupport (fun x => ‖gradient η x‖ ^ 2) := |
| 57 | hcGradientη.comp_left (g := fun v : Space => ‖v‖ ^ 2) (by simp) |
| 58 | have hcompactA : HasCompactSupport (fun x => ‖gradient (η * h) x‖ ^ 2) := |
| 59 | hcGradient.comp_left (g := fun v : Space => ‖v‖ ^ 2) (by simp) |
| 60 | have hcompactC : HasCompactSupport (fun x => h x ^ 2 * ‖gradient η x‖ ^ 2) := |
| 61 | hcSquaredη.mul_left (f := fun x => h x ^ 2) |
| 62 | have hA : Integrable (fun x => ‖gradient (η * h) x‖ ^ 2) := |
| 63 | ((contDiff_gradient (hη.mul hh)).continuous.norm.pow 2).integrable_of_hasCompactSupport hcompactA |
| 64 | have hC : Integrable (fun x => h x ^ 2 * ‖gradient η x‖ ^ 2) := |
| 65 | ((hh.continuous.pow 2).mul ((contDiff_gradient hη).continuous.norm.pow 2)).integrable_of_hasCompactSupport |
| 66 | hcompactC |
| 67 | have hcTest : HasCompactSupport (η * (η * h)) := hcη.mul_right (f' := η * h) |
| 68 | have hip := gradient_test_integration_by_parts (gradient h) (contDiff_gradient hh) |
| 69 | (η * (η * h)) hcTest (hη.mul (hη.mul hh)) |
| 70 | have hzero (x : Space) : η x * (η x * h x) * divergence (gradient h) x = 0 := by |
| 71 | by_cases hx : x ∈ tsupport η |
| 72 | · rw [hharmonic x hx, mul_zero] |
| 73 | · rw [image_eq_zero_of_notMem_tsupport hx] |
| 74 | ring |
| 75 | simp only [Pi.mul_apply] at hip |
| 76 | simp_rw [hzero] at hip |
| 77 | simp only [integral_zero, neg_zero] at hip |
| 78 | have hrewrite : (fun x => |
| 79 | ⟪gradient (η * (η * h)) x, gradient h x⟫_ℝ) = |
| 80 | (fun x => ‖gradient (η * h) x‖ ^ 2 - h x ^ 2 * ‖gradient η x‖ ^ 2) := by |
| 81 | funext x |
| 82 | linarith [localized_gradient_identity η h hη hh x] |
| 83 | rw [hrewrite, integral_sub hA hC] at hip |
| 84 | exact sub_eq_zero.mp hip |
| 85 | |
| 86 | end EulerMeanHarmonic |