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.MeanWeakCurl |
| 2 | import Euler.CanonicalGraphPotential |
| 3 | import Euler.MeanCoefficientMultipliers |
| 4 | import Mathlib.LinearAlgebra.BilinearForm.Properties |
| 5 | import Euler.MeanSmoothRepresentative |
| 6 | |
| 7 | /-! Classical divergence and pressure identities for the reconstructed mean fields. -/ |
| 8 | |
| 9 | /-! ## From `Euler/MeanPressurePotential.lean` |
| 10 | |
| 11 | The text of `Euler/MeanPressurePotential.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! A canonically normalized actual scalar potential for ordinary mean pressure gradients. -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace EulerMeanPressure |
| 20 | |
| 21 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal |
| 22 | EulerCanonicalGraphPotential EulerMeanCoefficients |
| 23 | open scoped ContDiff |
| 24 | |
| 25 | theorem symmetry_of_coordinates (L : Space →L[ℝ] Space) |
| 26 | (hL : ∀ i j, (L (EuclideanSpace.single i 1)) j = (L (EuclideanSpace.single j 1)) i) |
| 27 | (a b : Space) : ⟪L a, b⟫_ℝ = ⟪L b, a⟫_ℝ := by |
| 28 | let B : LinearMap.BilinForm ℝ Space := (innerₗ Space).comp L.toLinearMap |
| 29 | have hB : LinearMap.BilinForm.IsSymm B := |
| 30 | (LinearMap.BilinForm.isSymm_iff_basis (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis).2 (fun i j => by |
| 31 | change ⟪L ((EuclideanSpace.basisFun (Fin 3) ℝ).toBasis i), |
| 32 | (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis j⟫_ℝ = |
| 33 | ⟪L ((EuclideanSpace.basisFun (Fin 3) ℝ).toBasis j), |
| 34 | (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis i⟫_ℝ |
| 35 | simpa only [OrthonormalBasis.coe_toBasis, EuclideanSpace.basisFun_apply, |
| 36 | EuclideanSpace.inner_single_right, RCLike.conj_to_real, one_mul] using hL i j) |
| 37 | exact hB.eq a b |
| 38 | |
| 39 | /-- Smooth representatives of the actual closed gradient space have a genuine scalar potential. -/ |
| 40 | theorem gradientSpace_has_potential (p : L2) (hp : p ∈ gradientSpace) |
| 41 | (g : Space → Space) (hrep : p =ᵐ[volume] g) (hg : ContDiff ℝ ∞ g) : |
| 42 | ∃ q : Space → ℝ, ContDiff ℝ ∞ q ∧ ∀ x, gradient q x = g x := by |
| 43 | apply EulerGraphPullback.smooth_gradient_potential g hg |
| 44 | intro x a b |
| 45 | exact symmetry_of_coordinates (fderiv ℝ g x) |
| 46 | (gradientSpace_classical_curl_zero p hp g hrep hg x) a b |
| 47 | |
| 48 | /-- The concrete radial integral gives a fixed additive normalization, not just an existential pressure. -/ |
| 49 | theorem gradientSpace_radial_potential (p : L2) (hp : p ∈ gradientSpace) |
| 50 | (g : Space → Space) (hrep : p =ᵐ[volume] g) (hg : ContDiff ℝ ∞ g) : |
| 51 | ContDiff ℝ ∞ (radialPotential g) ∧ radialPotential g 0 = 0 ∧ |
| 52 | ∀ x, gradient (radialPotential g) x = g x := by |
| 53 | obtain ⟨q, hq, hgrad⟩ := gradientSpace_has_potential p hp g hrep hg |
| 54 | exact ⟨radialPotential_smooth g hg.continuous q hq hgrad, |
| 55 | radialPotential_zero g, radialPotential_gradient g hg.continuous q hq hgrad⟩ |
| 56 | |
| 57 | /-- An F-adjoint pressure residual is the actual pullback of a scalar gradient. -/ |
| 58 | theorem weighted_pressure_has_potential (F FT : Field) (hFT : ∀ x, FT x = (F x).adjoint) |
| 59 | (r : L2) (hr : (multiplier F).adjoint r ∈ gradientSpace) |
| 60 | (g : Space → Space) (hrep : r =ᵐ[volume] g) |
| 61 | (hg : ContDiff ℝ ∞ (fun x => (F x).adjoint (g x))) : |
| 62 | ContDiff ℝ ∞ (radialPotential (fun x => (F x).adjoint (g x))) ∧ |
| 63 | radialPotential (fun x => (F x).adjoint (g x)) 0 = 0 ∧ |
| 64 | ∀ x, gradient (radialPotential (fun x => (F x).adjoint (g x))) x = |
| 65 | (F x).adjoint (g x) := by |
| 66 | apply gradientSpace_radial_potential ((multiplier F).adjoint r) hr |
| 67 | (fun x => (F x).adjoint (g x)) ?_ hg |
| 68 | rw [← multiplier_adjoint F FT hFT] |
| 69 | filter_upwards [multiplier_ae FT r, hrep] with x hx hrx |
| 70 | rw [hx, hrx, hFT] |
| 71 | |
| 72 | end EulerMeanPressure |
| 73 | end |
| 74 | |
| 75 | end |
| 76 | |
| 77 | noncomputable section |
| 78 | |
| 79 | namespace EulerMeanClassical |
| 80 | |
| 81 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus EulerMeanSolenoidal |
| 82 | EulerMeanSmoothRepresentative EulerMeanPressure EulerCanonicalGraphPotential |
| 83 | open scoped ContDiff |
| 84 | |
| 85 | theorem solenoidal_representative_divergence (u : L2) (hu : u ∈ solenoidalSpace) |
| 86 | (f : Space → Space) (hf : ContDiff ℝ ∞ f) (hrep : u =ᵐ[volume] f) : |
| 87 | ∀ x, divergence f x = 0 := by |
| 88 | have he : divergence f = coordinateTrace ∘ fderiv ℝ f := by |
| 89 | funext x |
| 90 | exact (coordinateTrace_eq_linearTrace (fderiv ℝ f x)).symm |
| 91 | have hc : Continuous (divergence f) := by |
| 92 | rw [he] |
| 93 | exact coordinateTrace.continuous.comp (hf.fderiv_right (m := ∞) (by simp)).continuous |
| 94 | have hz : divergence f =ᵐ[volume] 0 := |
| 95 | ae_eq_zero_of_integral_contDiff_smul_eq_zero hc.locallyIntegrable (fun φ hφ hcφ => by |
| 96 | have hw := weak_divergence_test hu φ hcφ hφ |
| 97 | have hi := gradient_test_integration_by_parts f hf φ hcφ hφ |
| 98 | have heq : (∫ x, ⟪gradient φ x, u x⟫_ℝ) = ∫ x, ⟪gradient φ x, f x⟫_ℝ := by |
| 99 | apply integral_congr_ae |
| 100 | filter_upwards [hrep] with x hx |
| 101 | rw [hx] |
| 102 | change (∫ x, φ x * divergence f x) = 0 |
| 103 | rw [heq, hi] at hw |
| 104 | exact neg_eq_zero.mp hw) |
| 105 | intro x |
| 106 | exact congrFun (Measure.eq_of_ae_eq hz hc continuous_const) x |
| 107 | |
| 108 | /-- The actual smooth representative inherits the weak solenoidal constraint pointwise. -/ |
| 109 | theorem representative_divergence (u : L2) (hu : u ∈ solenoidalSpace) (hs : SmoothOrbit u) : |
| 110 | ∀ x, divergence (representative u hs) x = 0 := |
| 111 | solenoidal_representative_divergence u hu (representative u hs) |
| 112 | (representative_smooth u hs) (representative_ae u hs) |
| 113 | |
| 114 | end EulerMeanClassical |