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.OrdinaryH3Energy |
| 2 | import Euler.OrdinaryWordConstraints |
| 3 | import Euler.SmoothFieldSobolevTime |
| 4 | import Euler.CylinderSobolevOperators |
| 5 | import Mathlib.Analysis.InnerProductSpace.Calculus |
| 6 | import Euler.SmoothEulerEvolution |
| 7 | |
| 8 | /-! Actual Euler evolutions and their genuine H³ difference-energy law. |
| 9 | The record contains only the fields, their classical Euler equation, |
| 10 | the Helmholtz constraints, and continuity of their ordinary L² jets. -/ |
| 11 | |
| 12 | /-! ## From `Euler/OrdinaryWordTime.lean` |
| 13 | |
| 14 | The text of `Euler/OrdinaryWordTime.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! Strong time differentiation of every actual ordinary L² word, |
| 19 | derived from the pointwise evolution and continuous L² spatial jets. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerOrdinarySobolev |
| 24 | |
| 25 | open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 26 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanOrdinaryLift |
| 27 | EulerMeanSmoothRepresentative EulerCylinderSobolevSpace EulerLiftedGradientSpace |
| 28 | EulerSmoothFieldSobolevTime EulerVolterraConvolution Finset |
| 29 | open scoped ContDiff |
| 30 | |
| 31 | private local instance : Fact (0 < (1 : ℝ)) := ⟨by norm_num⟩ |
| 32 | |
| 33 | def ordinaryWordOperator {n : ℕ} (w : Fin n → Fin 3) : |
| 34 | SobolevSpace 1 n →L[ℝ] EulerMeanSolenoidal.L2 := |
| 35 | ordinaryLift.toContinuousLinearMap.adjoint.comp |
| 36 | (wordOperator 1 ⟨⟨n, Nat.lt_succ_self n⟩,fun i => (w i).succ⟩) |
| 37 | |
| 38 | theorem ordinaryWordOperator_apply (A : SmoothL2Field Space) {n : ℕ} (w : Fin n → Fin 3) : |
| 39 | ordinaryWordOperator w (ordinarySobolev n A.toLp A.translation_contDiff)= |
| 40 | (wordField A w).toLp := by |
| 41 | change ordinaryLift.toContinuousLinearMap.adjoint |
| 42 | ((ordinarySobolev n A.toLp A.translation_contDiff).val |
| 43 | ⟨⟨n,Nat.lt_succ_self n⟩,fun i => (w i).succ⟩)=_ |
| 44 | erw [ordinarySobolev_coordinate] |
| 45 | have he (u : EulerMeanSolenoidal.L2) : ordinaryLift.toContinuousLinearMap.adjoint (ordinaryLift u)=u := |
| 46 | congrArg (fun L : EulerMeanSolenoidal.L2 →L[ℝ] EulerMeanSolenoidal.L2 => L u) |
| 47 | ordinaryLift.adjoint_comp_self |
| 48 | rw [he,word_toLp_eq_orbit] |
| 49 | have hc : coordinateTuple (fun i => (w i).succ)=(fun i => axis (w i)) := by |
| 50 | funext i |
| 51 | simp only [coordinateTuple,EulerCylinderSobolev.standardDirection_succ,axis] |
| 52 | change iteratedFDeriv ℝ n (fun a => EulerMeanSolenoidal.translation a A.toLp) 0 |
| 53 | (coordinateTuple (fun i => (w i).succ)) = _ |
| 54 | rw [hc] |
| 55 | rfl |
| 56 | |
| 57 | variable {K : Type*} [TopologicalSpace K] |
| 58 | |
| 59 | def ordinaryWordPath (A : K → SmoothL2Field Space) |
| 60 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) {n : ℕ} (w : Fin n → Fin 3) : |
| 61 | C(K,EulerMeanSolenoidal.L2) := |
| 62 | ⟨fun t => ordinaryWordOperator w (sobolevPath A hA n t), |
| 63 | (ordinaryWordOperator w).continuous.comp (sobolevPath A hA n).continuous⟩ |
| 64 | |
| 65 | @[simp] theorem ordinaryWordPath_apply (A : K → SmoothL2Field Space) |
| 66 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) {n : ℕ} (w : Fin n → Fin 3) (t : K) : |
| 67 | ordinaryWordPath A hA w t=(wordField (A t) w).toLp := |
| 68 | ordinaryWordOperator_apply (A t) w |
| 69 | |
| 70 | theorem wordEnergy_continuous (A : K → SmoothL2Field Space) |
| 71 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) (s : ℕ) : |
| 72 | Continuous (fun t => wordEnergy s (A t)) := by |
| 73 | apply continuous_finsetSum |
| 74 | intro n _ |
| 75 | apply continuous_finsetSum |
| 76 | intro w _ |
| 77 | have hc : Continuous (fun t => (wordField (A t) w).toLp) := by |
| 78 | exact (ordinaryWordPath A hA w).continuous.congr (ordinaryWordPath_apply A hA w) |
| 79 | exact hc.norm.pow 2 |
| 80 | |
| 81 | variable (T : ℝ) (hT : 0 ≤ T) |
| 82 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 83 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 84 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) |
| 85 | (hd : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 86 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).field x) |
| 87 | ((B ⟨t,ht.1.le,ht.2.le⟩).field x) t) |
| 88 | |
| 89 | include hA hB hd in |
| 90 | theorem ordinaryWord_hasDerivWithinAt {n : ℕ} (w : Fin n → Fin 3) (t : Icc (0 : ℝ) T) : |
| 91 | HasDerivWithinAt (fun r => (wordField (A (projIcc 0 T hT r)) w).toLp) |
| 92 | (wordField (B t) w).toLp (Icc (0 : ℝ) T) t := by |
| 93 | have h := (ordinaryWordOperator w).hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) |
| 94 | (sobolevPath_hasDerivWithinAt T hT A B hA hB hd n t) |
| 95 | simpa only [Function.comp_def,extendPath,sobolevPath,ContinuousMap.coe_mk, |
| 96 | ordinaryWordOperator_apply] using h |
| 97 | |
| 98 | include hA hB hd in |
| 99 | theorem wordEnergy_hasDerivWithinAt (s : ℕ) (t : Icc (0 : ℝ) T) : |
| 100 | HasDerivWithinAt (fun r => wordEnergy s (A (projIcc 0 T hT r))) |
| 101 | (2*(∑ n ∈ range (s+1), ∑ w : Fin n → Fin 3, |
| 102 | ⟪(wordField (A t) w).toLp,(wordField (B t) w).toLp⟫_ℝ)) (Icc (0 : ℝ) T) t := by |
| 103 | have hw (n : ℕ) (w : Fin n → Fin 3) := |
| 104 | (ordinaryWord_hasDerivWithinAt T hT A B hA hB hd w t).norm_sq |
| 105 | have hp : projIcc 0 T hT (t : ℝ)=t := projIcc_of_mem hT t.property |
| 106 | simp only [hp] at hw |
| 107 | have hs := HasDerivWithinAt.fun_sum (u := range (s+1)) |
| 108 | (fun n _ => HasDerivWithinAt.fun_sum (u := univ) (fun w _ => hw n w)) |
| 109 | simpa only [wordEnergy,← Finset.mul_sum] using hs |
| 110 | |
| 111 | end EulerOrdinarySobolev |
| 112 | end |
| 113 | |
| 114 | end |
| 115 | |
| 116 | noncomputable section |
| 117 | |
| 118 | namespace EulerOrdinarySobolev |
| 119 | |
| 120 | open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 121 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerMeanClassical |
| 122 | EulerVolterraConvolution Finset |
| 123 | open scoped ContDiff |
| 124 | |
| 125 | private local instance : NormedAddCommGroup Space := inferInstance |
| 126 | private local instance : NormedSpace ℝ Space := inferInstance |
| 127 | |
| 128 | structure Evolution (T : ℝ) (hT : 0 ≤ T) where |
| 129 | velocity : Icc (0 : ℝ) T → SmoothL2Field Space |
| 130 | pressureForce : Icc (0 : ℝ) T → SmoothL2Field Space |
| 131 | velocity_continuous : ∀ n, Continuous (fun t => (velocity t).jetLp n) |
| 132 | pressure_continuous : ∀ n, Continuous (fun t => (pressureForce t).jetLp n) |
| 133 | solenoidal : ∀ t, (velocity t).toLp ∈ solenoidalSpace |
| 134 | gradient : ∀ t, (pressureForce t).toLp ∈ gradientSpace |
| 135 | time_law : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 136 | HasDerivAt (fun r => (velocity (projIcc 0 T hT r)).field x) |
| 137 | (-fderiv ℝ (velocity ⟨t,ht.1.le,ht.2.le⟩).field x |
| 138 | ((velocity ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 139 | (pressureForce ⟨t,ht.1.le,ht.2.le⟩).field x) t |
| 140 | |
| 141 | theorem continuous_jet_fieldSub {K : Type*} [TopologicalSpace K] |
| 142 | (A B : K → SmoothL2Field Space) |
| 143 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 144 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) (n : ℕ) : |
| 145 | Continuous (fun t => (fieldSub (A t) (B t)).jetLp n) := |
| 146 | continuous_jetLp_addField A (fun t => fieldNeg (B t)) hA |
| 147 | (continuous_jetLp_mapField _ B hB) n |
| 148 | |
| 149 | namespace Evolution |
| 150 | |
| 151 | variable {T : ℝ} {hT : 0 ≤ T} |
| 152 | |
| 153 | def derivative (U : Evolution T hT) : Icc (0 : ℝ) T → SmoothL2Field Space := |
| 154 | EulerSmoothEulerEvolution.rhs U.velocity U.velocity_continuous U.pressureForce |
| 155 | |
| 156 | theorem derivative_field (U : Evolution T hT) (t : Icc (0 : ℝ) T) (x : Space) : |
| 157 | (U.derivative t).field x = -fderiv ℝ (U.velocity t).field x ((U.velocity t).field x)- |
| 158 | (U.pressureForce t).field x := |
| 159 | EulerSmoothEulerEvolution.rhs_field U.velocity U.velocity_continuous U.pressureForce t x |
| 160 | |
| 161 | theorem derivative_continuous (U : Evolution T hT) (n : ℕ) : |
| 162 | Continuous (fun t => (U.derivative t).jetLp n) := |
| 163 | EulerSmoothEulerEvolution.rhs_jet_continuous U.velocity U.velocity_continuous |
| 164 | U.pressureForce U.pressure_continuous n |
| 165 | |
| 166 | def difference (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 167 | fieldSub (V.velocity t) (U.velocity t) |
| 168 | |
| 169 | def pressureDifference (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 170 | fieldSub (V.pressureForce t) (U.pressureForce t) |
| 171 | |
| 172 | def differenceDerivative (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : SmoothL2Field Space := |
| 173 | fieldSub (V.derivative t) (U.derivative t) |
| 174 | |
| 175 | theorem difference_continuous (U V : Evolution T hT) (n : ℕ) : |
| 176 | Continuous (fun t => (U.difference V t).jetLp n) := |
| 177 | continuous_jet_fieldSub V.velocity U.velocity V.velocity_continuous U.velocity_continuous n |
| 178 | |
| 179 | theorem differenceDerivative_continuous (U V : Evolution T hT) (n : ℕ) : |
| 180 | Continuous (fun t => (U.differenceDerivative V t).jetLp n) := |
| 181 | continuous_jet_fieldSub V.derivative U.derivative V.derivative_continuous U.derivative_continuous n |
| 182 | |
| 183 | theorem differenceDerivative_eq (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 184 | U.differenceDerivative V t = |
| 185 | differenceRhs (U.velocity t) (U.difference V t) (U.pressureDifference V t) := by |
| 186 | apply field_ext |
| 187 | funext x |
| 188 | have he : (U.difference V t).field=(V.velocity t).field-(U.velocity t).field := |
| 189 | funext (fieldSub_field (V.velocity t) (U.velocity t)) |
| 190 | rw [differenceRhs_field,he,fderiv_sub ((V.velocity t).smooth.differentiable (by simp) x) |
| 191 | ((U.velocity t).smooth.differentiable (by simp) x)] |
| 192 | simp only [differenceDerivative,pressureDifference,fieldSub_field, |
| 193 | derivative_field,Pi.sub_apply,sub_apply,map_sub] |
| 194 | abel_nf |
| 195 | |
| 196 | theorem difference_time_law (U V : Evolution T hT) : |
| 197 | ∀ t (ht : t ∈ Ioo 0 T) x, |
| 198 | HasDerivAt (fun r => (U.difference V (projIcc 0 T hT r)).field x) |
| 199 | ((U.differenceDerivative V ⟨t,ht.1.le,ht.2.le⟩).field x) t := by |
| 200 | intro t ht x |
| 201 | have h := (V.time_law t ht x).sub (U.time_law t ht x) |
| 202 | convert! h using 1 |
| 203 | simp only [differenceDerivative,fieldSub_field,derivative_field] |
| 204 | |
| 205 | def energyPath (U V : Evolution T hT) : C(Icc (0 : ℝ) T,ℝ) := |
| 206 | ⟨fun t => wordEnergy 3 (U.difference V t),wordEnergy_continuous _ (U.difference_continuous V) 3⟩ |
| 207 | |
| 208 | def energyDerivative (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : ℝ := |
| 209 | energyProduction (U.difference V t) (U.differenceDerivative V t) |
| 210 | |
| 211 | theorem energy_hasDerivWithinAt (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 212 | HasDerivWithinAt (extendPath T hT (U.energyPath V)) (U.energyDerivative V t) |
| 213 | (Icc (0 : ℝ) T) t := |
| 214 | wordEnergy_hasDerivWithinAt T hT (U.difference V) (U.differenceDerivative V) |
| 215 | (U.difference_continuous V) (U.differenceDerivative_continuous V) (U.difference_time_law V) 3 t |
| 216 | |
| 217 | theorem energyDerivative_bound (U V : Evolution T hT) (M : ℝ) |
| 218 | (hM : ∀ t, WordBound 4 M (U.velocity t)) (t : Icc (0 : ℝ) T) : |
| 219 | U.energyDerivative V t ≤ 3600*h3ProductConstant*(M+Real.sqrt (U.energyPath V t))*U.energyPath V t := by |
| 220 | rw [energyDerivative,differenceDerivative_eq] |
| 221 | apply difference_energy_bound _ _ _ M (hM t) |
| 222 | · have he : (addField (U.velocity t) (U.difference V t)).field=(V.velocity t).field := by |
| 223 | funext x |
| 224 | simp only [addField_field,difference,fieldSub_field] |
| 225 | abel |
| 226 | rw [he] |
| 227 | exact solenoidal_representative_divergence _ (V.solenoidal t) _ (V.velocity t).smooth |
| 228 | (V.velocity t).toLp_ae |
| 229 | · rw [difference,toLp_fieldSub] |
| 230 | exact solenoidalSpace.sub_mem (V.solenoidal t) (U.solenoidal t) |
| 231 | · rw [pressureDifference,toLp_fieldSub] |
| 232 | exact gradientSpace.sub_mem (V.gradient t) (U.gradient t) |
| 233 | |
| 234 | end Evolution |
| 235 | end EulerOrdinarySobolev |