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.OrdinarySmoothWords |
| 2 | import Euler.OrdinaryL2Integration |
| 3 | import Euler.MeanOrbitSmoothL2Field |
| 4 | import Euler.MeanClassicalConstraints |
| 5 | |
| 6 | /-! Every genuine derivative word preserves the ordinary Helmholtz |
| 7 | constraint, and consequently the pressure pairing vanishes at every order. -/ |
| 8 | |
| 9 | /-! ## From `Euler/OrdinaryPressureCancellation.lean` |
| 10 | |
| 11 | The text of `Euler/OrdinaryPressureCancellation.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! A genuine smooth L² gradient belongs to the closed ordinary gradient |
| 16 | space, even when its scalar potential is not square-integrable. The |
| 17 | solenoidal remainder is both curl-free and harmonic, hence zero by the |
| 18 | actual L² integration-by-parts identity. -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace EulerOrdinarySobolev |
| 23 | |
| 24 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 25 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanVectorIdentities |
| 26 | EulerMeanSolenoidal EulerMeanSmoothRepresentative EulerMeanPressure EulerMeanClassical |
| 27 | EulerMeanCutoffCurl EulerVectorCalculus Laplacian |
| 28 | open scoped ContDiff ENNReal |
| 29 | |
| 30 | theorem solenoidal_orbit (A : SmoothL2Field Space) : |
| 31 | SmoothOrbit (solenoidalProjection A.toLp) := by |
| 32 | have he : (fun a : Space => EulerMeanSolenoidal.translation a (solenoidalProjection A.toLp))= |
| 33 | solenoidalProjection ∘ (fun a : Space => EulerMeanSolenoidal.translation a A.toLp) := |
| 34 | funext (fun a => solenoidalProjection_translation a A.toLp) |
| 35 | change ContDiff ℝ ∞ _ |
| 36 | rw [he] |
| 37 | exact solenoidalProjection.contDiff.comp A.translation_contDiff |
| 38 | |
| 39 | theorem curl_zero_of_symmetric (A : SmoothL2Field Space) |
| 40 | (hA : ∀ x i j, (fderiv ℝ A.field x (EuclideanSpace.single i 1)) j= |
| 41 | (fderiv ℝ A.field x (EuclideanSpace.single j 1)) i) : |
| 42 | vectorCurl A.field=0 := by |
| 43 | funext x |
| 44 | ext i |
| 45 | change partialDerivative (fun y => A.field y (i+2)) (i+1) x- |
| 46 | partialDerivative (fun y => A.field y (i+1)) (i+2) x=0 |
| 47 | simp only [partialDerivative,fderiv_coordinate A.field x |
| 48 | (A.smooth.differentiable (by simp) x)] |
| 49 | exact sub_eq_zero.mpr (hA x (i+1) (i+2)) |
| 50 | |
| 51 | theorem gradient_mem_of_symmetric (A : SmoothL2Field Space) |
| 52 | (hA : ∀ x i j, (fderiv ℝ A.field x (EuclideanSpace.single i 1)) j= |
| 53 | (fderiv ℝ A.field x (EuclideanSpace.single j 1)) i) : |
| 54 | A.toLp ∈ gradientSpace := by |
| 55 | let B := smoothL2Field (solenoidalProjection A.toLp) (solenoidal_orbit A) |
| 56 | have hB : B.toLp=solenoidalProjection A.toLp := smoothL2Field_toLp _ _ |
| 57 | have hrep : (solenoidalProjection A.toLp : Space → Space)=ᵐ[volume] B.field := by |
| 58 | rw [← hB] |
| 59 | exact B.toLp_ae |
| 60 | have hres : ((A.toLp-solenoidalProjection A.toLp : L2) : Space → Space)=ᵐ[volume] A.field-B.field := by |
| 61 | filter_upwards [Lp.coeFn_sub A.toLp (solenoidalProjection A.toLp),A.toLp_ae,hrep] |
| 62 | with x hs ha hb |
| 63 | simp only [hs,ha,hb,Pi.sub_apply] |
| 64 | have hsym := gradientSpace_classical_curl_zero _ (sub_solenoidalProjection_mem_gradient A.toLp) |
| 65 | (A.field-B.field) hres (A.smooth.sub B.smooth) |
| 66 | have hBc : ∀ x i j, (fderiv ℝ B.field x (EuclideanSpace.single i 1)) j= |
| 67 | (fderiv ℝ B.field x (EuclideanSpace.single j 1)) i := by |
| 68 | intro x i j |
| 69 | have hd := hsym x i j |
| 70 | rw [fderiv_sub (A.smooth.differentiable (by simp) x) (B.smooth.differentiable (by simp) x)] at hd |
| 71 | simp only [sub_apply,PiLp.sub_apply] at hd |
| 72 | linarith [hA x i j] |
| 73 | have hcurl := curl_zero_of_symmetric B hBc |
| 74 | have hdiv : divergence B.field=0 := funext |
| 75 | (solenoidal_representative_divergence _ (solenoidalProjection_mem A.toLp) B.field B.smooth hrep) |
| 76 | have hΔ : ∀ x, Δ B.field x=0 := by |
| 77 | intro x |
| 78 | have h := congrFun (vectorCurl_vectorCurl B.field B.smooth) x |
| 79 | rw [hcurl,hdiv] at h |
| 80 | have hc : vectorCurl (0 : Space → Space) x=0 := by |
| 81 | ext i |
| 82 | simp [vectorCurl,partialDerivative] |
| 83 | have hg : gradient (0 : Space → ℝ) x=0 := by simp [gradient] |
| 84 | simp only [hc,hg,Pi.sub_apply,zero_sub] at h |
| 85 | exact neg_eq_zero.mp h.symm |
| 86 | have hz := field_zero_of_laplacian_zero B hΔ |
| 87 | apply (solenoidalProjection_eq_zero_iff A.toLp).mp |
| 88 | rw [← hB] |
| 89 | apply Lp.ext |
| 90 | filter_upwards [B.toLp_ae,Lp.coeFn_zero Space 2 (volume : Measure Space)] with x hb hzero |
| 91 | rw [hb,hz,Pi.zero_apply,hzero] |
| 92 | rfl |
| 93 | |
| 94 | theorem gradient_mem (A : SmoothL2Field Space) (p : Space → ℝ) |
| 95 | (hp : ContDiff ℝ ∞ p) (hgrad : ∀ x, A.field x=gradient p x) : |
| 96 | A.toLp ∈ gradientSpace := by |
| 97 | apply gradient_mem_of_symmetric A |
| 98 | intro x i j |
| 99 | have hi : (fun y => A.field y i)=partialDerivative p i := |
| 100 | funext (fun y => by rw [hgrad,gradient_coordinate]) |
| 101 | have hj : (fun y => A.field y j)=partialDerivative p j := |
| 102 | funext (fun y => by rw [hgrad,gradient_coordinate]) |
| 103 | have h := partialDerivative_comm p (hp.of_le (by simp)) j i x |
| 104 | rw [← hi,← hj] at h |
| 105 | simpa only [partialDerivative,fderiv_coordinate A.field x |
| 106 | (A.smooth.differentiable (by simp) x)] using h |
| 107 | |
| 108 | theorem potential_smooth (A : SmoothL2Field Space) (p : Space → ℝ) |
| 109 | (hp : Differentiable ℝ p) (hgrad : ∀ x, A.field x=gradient p x) : |
| 110 | ContDiff ℝ ∞ p := by |
| 111 | apply contDiff_infty_iff_fderiv.mpr |
| 112 | refine ⟨hp,?_⟩ |
| 113 | have he : fderiv ℝ p=(toDual ℝ Space) ∘ A.field := by |
| 114 | funext x |
| 115 | rw [Function.comp_apply,hgrad,toDual_gradient] |
| 116 | rw [he] |
| 117 | exact (toDual ℝ Space).contDiff.comp A.smooth |
| 118 | |
| 119 | end EulerOrdinarySobolev |
| 120 | end |
| 121 | |
| 122 | end |
| 123 | |
| 124 | noncomputable section |
| 125 | |
| 126 | namespace EulerOrdinarySobolev |
| 127 | |
| 128 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 129 | EulerLpTranslation.SmoothL2Field EulerParameterWordGevrey EulerMeanSolenoidal |
| 130 | open scoped ContDiff |
| 131 | |
| 132 | theorem word_toLp_eq_orbit (A : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : |
| 133 | (wordField A w).toLp = wordDerivative axis |
| 134 | (fun a : Space => EulerLpTranslation.translation a A.toLp) w 0 := by |
| 135 | apply Lp.ext |
| 136 | filter_upwards [(wordField A w).toLp_ae,A.iteratedFDeriv_translation_ae n 0 (axis ∘ w)] |
| 137 | with x ha hb |
| 138 | rw [ha,wordField_field] |
| 139 | simpa only [wordDerivative,Function.comp_def,add_zero] using hb.symm |
| 140 | |
| 141 | theorem projection_word (A : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : |
| 142 | solenoidalProjection (wordField A w).toLp = wordDerivative axis |
| 143 | (fun a : Space => EulerLpTranslation.translation a (solenoidalProjection A.toLp)) w 0 := by |
| 144 | rw [word_toLp_eq_orbit,← wordDerivative_comp_clm axis solenoidalProjection _ A.translation_contDiff] |
| 145 | congr 2 |
| 146 | funext a |
| 147 | exact (solenoidalProjection_translation a A.toLp).symm |
| 148 | |
| 149 | theorem word_solenoidal (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) |
| 150 | {n : ℕ} (w : Fin n → Fin 3) : (wordField A w).toLp ∈ solenoidalSpace := by |
| 151 | apply solenoidalSpace.starProjection_eq_self_iff.mp |
| 152 | change solenoidalProjection (wordField A w).toLp = _ |
| 153 | rw [projection_word] |
| 154 | have he : solenoidalProjection A.toLp=A.toLp := solenoidalSpace.starProjection_eq_self_iff.mpr hA |
| 155 | rw [he,word_toLp_eq_orbit] |
| 156 | |
| 157 | theorem word_gradient (A : SmoothL2Field Space) (hA : A.toLp ∈ gradientSpace) |
| 158 | {n : ℕ} (w : Fin n → Fin 3) : (wordField A w).toLp ∈ gradientSpace := by |
| 159 | apply (solenoidalProjection_eq_zero_iff _).mp |
| 160 | rw [projection_word,(solenoidalProjection_eq_zero_iff _).mpr hA] |
| 161 | simp only [map_zero] |
| 162 | change (iteratedFDeriv ℝ n (0 : Space → L2) 0) (fun j => axis (w j))=0 |
| 163 | rw [iteratedFDeriv_zero] |
| 164 | rfl |
| 165 | |
| 166 | theorem word_pressure_pairing_zero (P U : SmoothL2Field Space) |
| 167 | (hP : P.toLp ∈ gradientSpace) (hU : U.toLp ∈ solenoidalSpace) |
| 168 | {n : ℕ} (w : Fin n → Fin 3) : |
| 169 | ⟪(wordField P w).toLp,(wordField U w).toLp⟫_ℝ=0 := |
| 170 | pressure_pairing_zero (word_gradient P hP w) (word_solenoidal U hU w) |
| 171 | |
| 172 | end EulerOrdinarySobolev |