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.OrdinaryL2Integration |
| 2 | import Euler.MeanOrbitSmoothL2Field |
| 3 | import Euler.MeanClassicalConstraints |
| 4 | |
| 5 | /-! A genuine smooth L² gradient belongs to the closed ordinary gradient |
| 6 | space, even when its scalar potential is not square-integrable. The |
| 7 | solenoidal remainder is both curl-free and harmonic, hence zero by the |
| 8 | actual L² integration-by-parts identity. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerOrdinarySobolev |
| 13 | |
| 14 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 15 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanVectorIdentities |
| 16 | EulerMeanSolenoidal EulerMeanSmoothRepresentative EulerMeanPressure EulerMeanClassical |
| 17 | EulerMeanCutoffCurl EulerVectorCalculus Laplacian |
| 18 | open scoped ContDiff ENNReal |
| 19 | |
| 20 | theorem solenoidal_orbit (A : SmoothL2Field Space) : |
| 21 | SmoothOrbit (solenoidalProjection A.toLp) := by |
| 22 | have he : (fun a : Space => EulerMeanSolenoidal.translation a (solenoidalProjection A.toLp))= |
| 23 | solenoidalProjection ∘ (fun a : Space => EulerMeanSolenoidal.translation a A.toLp) := |
| 24 | funext (fun a => solenoidalProjection_translation a A.toLp) |
| 25 | change ContDiff ℝ ∞ _ |
| 26 | rw [he] |
| 27 | exact solenoidalProjection.contDiff.comp A.translation_contDiff |
| 28 | |
| 29 | theorem curl_zero_of_symmetric (A : SmoothL2Field Space) |
| 30 | (hA : ∀ x i j, (fderiv ℝ A.field x (EuclideanSpace.single i 1)) j= |
| 31 | (fderiv ℝ A.field x (EuclideanSpace.single j 1)) i) : |
| 32 | vectorCurl A.field=0 := by |
| 33 | funext x |
| 34 | ext i |
| 35 | change partialDerivative (fun y => A.field y (i+2)) (i+1) x- |
| 36 | partialDerivative (fun y => A.field y (i+1)) (i+2) x=0 |
| 37 | simp only [partialDerivative,fderiv_coordinate A.field x |
| 38 | (A.smooth.differentiable (by simp) x)] |
| 39 | exact sub_eq_zero.mpr (hA x (i+1) (i+2)) |
| 40 | |
| 41 | theorem gradient_mem_of_symmetric (A : SmoothL2Field Space) |
| 42 | (hA : ∀ x i j, (fderiv ℝ A.field x (EuclideanSpace.single i 1)) j= |
| 43 | (fderiv ℝ A.field x (EuclideanSpace.single j 1)) i) : |
| 44 | A.toLp ∈ gradientSpace := by |
| 45 | let B := smoothL2Field (solenoidalProjection A.toLp) (solenoidal_orbit A) |
| 46 | have hB : B.toLp=solenoidalProjection A.toLp := smoothL2Field_toLp _ _ |
| 47 | have hrep : (solenoidalProjection A.toLp : Space → Space)=ᵐ[volume] B.field := by |
| 48 | rw [← hB] |
| 49 | exact B.toLp_ae |
| 50 | have hres : ((A.toLp-solenoidalProjection A.toLp : L2) : Space → Space)=ᵐ[volume] A.field-B.field := by |
| 51 | filter_upwards [Lp.coeFn_sub A.toLp (solenoidalProjection A.toLp),A.toLp_ae,hrep] |
| 52 | with x hs ha hb |
| 53 | simp only [hs,ha,hb,Pi.sub_apply] |
| 54 | have hsym := gradientSpace_classical_curl_zero _ (sub_solenoidalProjection_mem_gradient A.toLp) |
| 55 | (A.field-B.field) hres (A.smooth.sub B.smooth) |
| 56 | have hBc : ∀ x i j, (fderiv ℝ B.field x (EuclideanSpace.single i 1)) j= |
| 57 | (fderiv ℝ B.field x (EuclideanSpace.single j 1)) i := by |
| 58 | intro x i j |
| 59 | have hd := hsym x i j |
| 60 | rw [fderiv_sub (A.smooth.differentiable (by simp) x) (B.smooth.differentiable (by simp) x)] at hd |
| 61 | simp only [sub_apply,PiLp.sub_apply] at hd |
| 62 | linarith [hA x i j] |
| 63 | have hcurl := curl_zero_of_symmetric B hBc |
| 64 | have hdiv : divergence B.field=0 := funext |
| 65 | (solenoidal_representative_divergence _ (solenoidalProjection_mem A.toLp) B.field B.smooth hrep) |
| 66 | have hΔ : ∀ x, Δ B.field x=0 := by |
| 67 | intro x |
| 68 | have h := congrFun (vectorCurl_vectorCurl B.field B.smooth) x |
| 69 | rw [hcurl,hdiv] at h |
| 70 | have hc : vectorCurl (0 : Space → Space) x=0 := by |
| 71 | ext i |
| 72 | simp [vectorCurl,curl,partialDerivative] |
| 73 | have hg : gradient (0 : Space → ℝ) x=0 := by simp [gradient] |
| 74 | simp only [hc,hg,Pi.sub_apply,zero_sub] at h |
| 75 | exact neg_eq_zero.mp h.symm |
| 76 | have hz := field_zero_of_laplacian_zero B hΔ |
| 77 | apply (solenoidalProjection_eq_zero_iff A.toLp).mp |
| 78 | rw [← hB] |
| 79 | apply Lp.ext |
| 80 | filter_upwards [B.toLp_ae,Lp.coeFn_zero Space 2 (volume : Measure Space)] with x hb hzero |
| 81 | rw [hb,hz,Pi.zero_apply,hzero] |
| 82 | rfl |
| 83 | |
| 84 | theorem gradient_mem (A : SmoothL2Field Space) (p : Space → ℝ) |
| 85 | (hp : ContDiff ℝ ∞ p) (hgrad : ∀ x, A.field x=gradient p x) : |
| 86 | A.toLp ∈ gradientSpace := by |
| 87 | apply gradient_mem_of_symmetric A |
| 88 | intro x i j |
| 89 | have hi : (fun y => A.field y i)=partialDerivative p i := |
| 90 | funext (fun y => by rw [hgrad,gradient_coordinate]) |
| 91 | have hj : (fun y => A.field y j)=partialDerivative p j := |
| 92 | funext (fun y => by rw [hgrad,gradient_coordinate]) |
| 93 | have h := partialDerivative_comm p (hp.of_le (by simp)) j i x |
| 94 | rw [← hi,← hj] at h |
| 95 | simpa only [partialDerivative,fderiv_coordinate A.field x |
| 96 | (A.smooth.differentiable (by simp) x)] using h |
| 97 | |
| 98 | theorem gradient_pairing_zero (A U : SmoothL2Field Space) (p : Space → ℝ) |
| 99 | (hp : ContDiff ℝ ∞ p) (hgrad : ∀ x, A.field x=gradient p x) |
| 100 | (hdiv : ∀ x, divergence U.field x=0) : ⟪A.toLp,U.toLp⟫_ℝ=0 := |
| 101 | pressure_pairing_zero (gradient_mem A p hp hgrad) |
| 102 | (smooth_mem_solenoidal U.field U.smooth U.memLp hdiv) |
| 103 | |
| 104 | theorem potential_smooth (A : SmoothL2Field Space) (p : Space → ℝ) |
| 105 | (hp : Differentiable ℝ p) (hgrad : ∀ x, A.field x=gradient p x) : |
| 106 | ContDiff ℝ ∞ p := by |
| 107 | apply contDiff_infty_iff_fderiv.mpr |
| 108 | refine ⟨hp,?_⟩ |
| 109 | have he : fderiv ℝ p=(toDual ℝ Space) ∘ A.field := by |
| 110 | funext x |
| 111 | rw [Function.comp_apply,hgrad,toDual_gradient] |
| 112 | rw [he] |
| 113 | exact (toDual ℝ Space).contDiff.comp A.smooth |
| 114 | |
| 115 | theorem gradient_pairing_zero_of_differentiable (A U : SmoothL2Field Space) (p : Space → ℝ) |
| 116 | (hp : Differentiable ℝ p) (hgrad : ∀ x, A.field x=gradient p x) |
| 117 | (hdiv : ∀ x, divergence U.field x=0) : ⟪A.toLp,U.toLp⟫_ℝ=0 := |
| 118 | gradient_pairing_zero A U p (potential_smooth A p hp hgrad) hgrad hdiv |
| 119 | |
| 120 | end EulerOrdinarySobolev |