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.OrdinaryEulerConcatenation |
| 2 | |
| 3 | /-! The reverse bridge from ordinary scalar-pressure Euler to the |
| 4 | projected equation. The only regularity inputs are the velocity and its |
| 5 | actual strong time derivative in all spatial Sobolev orders. Neither a |
| 6 | pressure-force regularity hypothesis nor a projected equation is assumed. |
| 7 | The scalar pressure may be changed by an arbitrary function of time. -/ |
| 8 | |
| 9 | /-! ## From `Euler/OrdinaryEulerSobolevClass.lean` |
| 10 | |
| 11 | The text of `Euler/OrdinaryEulerSobolevClass.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Characterization of the ordinary smooth Euler class by its actual |
| 16 | velocity alone. Pressure regularity follows from the projected equation. |
| 17 | Every solution has one continuous strong time derivative in every |
| 18 | spatial Sobolev order. -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace EulerOrdinarySobolev |
| 23 | |
| 24 | open Set EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field |
| 25 | EulerMeanSolenoidal EulerVolterraConvolution EulerSmoothFieldSobolevTime |
| 26 | |
| 27 | variable {T : ℝ} {hT : 0 ≤ T} |
| 28 | |
| 29 | def IsSmoothProjectedEuler (A : Icc (0 : ℝ) T → SmoothL2Field Space) : Prop := |
| 30 | (∀ n, Continuous (fun t => (A t).jetLp n)) ∧ |
| 31 | (∀ t, (A t).toLp ∈ solenoidalSpace) ∧ |
| 32 | (∀ t (ht : t ∈ Ioo 0 T), |
| 33 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 34 | (projectedRhs (A ⟨t,ht.1.le,ht.2.le⟩)).toLp t) |
| 35 | |
| 36 | def evolutionOfProjectedEquation (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 37 | (hA : IsSmoothProjectedEuler (hT := hT) A) : Evolution T hT where |
| 38 | velocity := A |
| 39 | pressureForce t := pressureField (A t) |
| 40 | velocity_continuous := hA.1 |
| 41 | pressure_continuous := pressureField_continuous A hA.1 |
| 42 | solenoidal := hA.2.1 |
| 43 | gradient t := pressureField_mem_gradient (A t) |
| 44 | time_law t ht x := by |
| 45 | have h := pointwise_derivative_of_l2 T hT A (fun s => projectedRhs (A s)) hA.1 |
| 46 | (projectedRhs_continuous A hA.1) hA.2.2 ⟨t,ht.1.le,ht.2.le⟩ x |
| 47 | simpa only [projectedRhs_field] using h.hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 48 | |
| 49 | theorem Evolution.isSmoothProjectedEuler (U : Evolution T hT) (hpos : 0 < T) : |
| 50 | IsSmoothProjectedEuler (hT := hT) U.velocity := by |
| 51 | refine ⟨U.velocity_continuous,U.solenoidal,?_⟩ |
| 52 | intro t ht |
| 53 | exact (U.velocity_toLp_hasDerivWithinAt_projected hpos ⟨t,ht.1.le,ht.2.le⟩).hasDerivAt |
| 54 | (Icc_mem_nhds ht.1 ht.2) |
| 55 | |
| 56 | theorem exists_evolution_iff_projected (hpos : 0 < T) |
| 57 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) : |
| 58 | (∃ U : Evolution T hT, U.velocity=A) ↔ IsSmoothProjectedEuler (hT := hT) A := by |
| 59 | constructor |
| 60 | · rintro ⟨U,rfl⟩ |
| 61 | exact U.isSmoothProjectedEuler hpos |
| 62 | · intro hA |
| 63 | exact ⟨evolutionOfProjectedEquation A hA,rfl⟩ |
| 64 | |
| 65 | theorem Evolution.sobolevTimeDerivative (U : Evolution T hT) (q : ℕ) (t : Icc (0 : ℝ) T) : |
| 66 | HasDerivWithinAt (extendPath T hT (sobolevPath U.velocity U.velocity_continuous q)) |
| 67 | (sobolevPath U.derivative U.derivative_continuous q t) (Icc (0 : ℝ) T) t := by |
| 68 | apply sobolev_derivative_of_l2 T hT U.velocity U.derivative U.velocity_continuous |
| 69 | U.derivative_continuous _ q t |
| 70 | intro r hr |
| 71 | have h := U.velocityPath_hasDerivWithinAt ⟨r,hr.1.le,hr.2.le⟩ |
| 72 | rw [U.velocityPath_extend] at h |
| 73 | exact h.hasDerivAt (Icc_mem_nhds hr.1 hr.2) |
| 74 | |
| 75 | theorem Evolution.sobolevSolutionClass (U : Evolution T hT) (q : ℕ) : |
| 76 | Continuous (sobolevPath U.velocity U.velocity_continuous q) ∧ |
| 77 | Continuous (sobolevPath U.derivative U.derivative_continuous q) ∧ |
| 78 | ∀ t : Icc (0 : ℝ) T, |
| 79 | HasDerivWithinAt (extendPath T hT (sobolevPath U.velocity U.velocity_continuous q)) |
| 80 | (sobolevPath U.derivative U.derivative_continuous q t) (Icc (0 : ℝ) T) t := |
| 81 | ⟨(sobolevPath U.velocity U.velocity_continuous q).continuous, |
| 82 | (sobolevPath U.derivative U.derivative_continuous q).continuous, |
| 83 | U.sobolevTimeDerivative q⟩ |
| 84 | |
| 85 | end EulerOrdinarySobolev |
| 86 | end |
| 87 | |
| 88 | end |
| 89 | |
| 90 | noncomputable section |
| 91 | |
| 92 | namespace EulerOrdinarySobolev |
| 93 | |
| 94 | open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 95 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerMeanClassical |
| 96 | EulerMeanOrdinaryLift EulerMeanSmoothRepresentative EulerSmoothFieldSobolevTime |
| 97 | EulerCylinderSobolevSpace EulerLiftedGradientSpace EulerVolterraConvolution |
| 98 | open scoped ContDiff |
| 99 | |
| 100 | private local instance : Fact (0 < (1 : ℝ)) := ⟨by norm_num⟩ |
| 101 | |
| 102 | variable {T : ℝ} {hT : 0 ≤ T} |
| 103 | |
| 104 | /-- The force obtained from the actual velocity and its actual time derivative. -/ |
| 105 | def scalarEulerForce (A B : SmoothL2Field Space) : SmoothL2Field Space := |
| 106 | fieldNeg (addField B (advectionField A A)) |
| 107 | |
| 108 | theorem scalarEulerForce_field (A B : SmoothL2Field Space) (x : Space) : |
| 109 | (scalarEulerForce A B).field x = -((B.field x)+fderiv ℝ A.field x (A.field x)) := by |
| 110 | simp only [scalarEulerForce,fieldNeg_field,addField_field,advectionField_field] |
| 111 | |
| 112 | /-- An ordinary scalar Euler equation implies the actual projected L² equation. |
| 113 | Spatial differentiability of pressure is used only at interior times. -/ |
| 114 | theorem isSmoothProjectedEuler_of_scalarEuler |
| 115 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 116 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 117 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 118 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 119 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 120 | (p : ℝ → Space → ℝ) |
| 121 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 122 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 123 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 124 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 125 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 126 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : |
| 127 | IsSmoothProjectedEuler (hT := hT) A := by |
| 128 | have hs (t : Icc (0 : ℝ) T) : (A t).toLp ∈ solenoidalSpace := |
| 129 | smooth_mem_solenoidal (A t).field (A t).smooth (A t).memLp (hdiv t) |
| 130 | refine ⟨hA,hs,?_⟩ |
| 131 | intro t ht |
| 132 | let s : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 133 | let G := scalarEulerForce (A s) (B s) |
| 134 | have hg (x : Space) : G.field x=gradient (p t) x := by |
| 135 | rw [scalarEulerForce_field] |
| 136 | exact (eq_neg_of_add_eq_zero_right (he t ht x)).symm |
| 137 | have hG : G.toLp ∈ EulerMeanSolenoidal.gradientSpace := |
| 138 | gradient_mem G (p t) (potential_smooth G (p t) (hp t ht) hg) hg |
| 139 | have hproj := solenoidalProjection.hasFDerivAt.comp_hasDerivAt t (hd t ht) |
| 140 | have hfix : (fun r => solenoidalProjection (A (projIcc 0 T hT r)).toLp)= |
| 141 | (fun r => (A (projIcc 0 T hT r)).toLp) := by |
| 142 | funext r |
| 143 | exact solenoidalSpace.starProjection_eq_self_iff.mpr (hs _) |
| 144 | simp only [Function.comp_def] at hproj |
| 145 | rw [hfix] at hproj |
| 146 | have hB : solenoidalProjection (B s).toLp=(B s).toLp := hproj.unique (hd t ht) |
| 147 | have hzero := (solenoidalProjection_eq_zero_iff G.toLp).mpr hG |
| 148 | change solenoidalProjection (fieldNeg (addField (B s) (advectionField (A s) (A s)))).toLp=0 at hzero |
| 149 | rw [toLp_fieldNeg,toLp_addField,map_neg,map_add,hB] at hzero |
| 150 | have hR : (B s).toLp=(projectedRhs (A s)).toLp := by |
| 151 | rw [projectedRhs_toLp] |
| 152 | exact eq_neg_of_add_eq_zero_left (neg_eq_zero.mp hzero) |
| 153 | exact hR ▸ hd t ht |
| 154 | |
| 155 | def evolutionOfScalarEuler |
| 156 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 157 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 158 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 159 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 160 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 161 | (p : ℝ → Space → ℝ) |
| 162 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 163 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 164 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 165 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 166 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 167 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : Evolution T hT := |
| 168 | evolutionOfProjectedEquation A (isSmoothProjectedEuler_of_scalarEuler A B hA hd p hdiv hp he) |
| 169 | |
| 170 | section Identification |
| 171 | |
| 172 | variable (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 173 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 174 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) |
| 175 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 176 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 177 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 178 | (p : ℝ → Space → ℝ) |
| 179 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 180 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 181 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 182 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 183 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 184 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) |
| 185 | |
| 186 | end Identification |
| 187 | |
| 188 | /-- The scalar-pressure form of the smooth ordinary Euler class. The |
| 189 | all-order spatial paths represent `C H^m` for every finite `m`. A single |
| 190 | strong L² time law and the continuous all-order derivative paths imply |
| 191 | the strong time law in every Sobolev order by `sobolev_derivative_of_l2`. |
| 192 | No norm, time regularity, or normalization is imposed on the scalar pressure. -/ |
| 193 | def IsSmoothScalarEuler (A : Icc (0 : ℝ) T → SmoothL2Field Space) : Prop := |
| 194 | (∀ n, Continuous (fun t => (A t).jetLp n)) ∧ |
| 195 | ∃ (B : Icc (0 : ℝ) T → SmoothL2Field Space) (p : ℝ → Space → ℝ), |
| 196 | (∀ n, Continuous (fun t => (B t).jetLp n)) ∧ |
| 197 | (∀ t (ht : t ∈ Ioo 0 T), |
| 198 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 199 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) ∧ |
| 200 | (∀ t x, divergence (A t).field x=0) ∧ |
| 201 | (∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) ∧ |
| 202 | (∀ t (ht : t ∈ Ioo 0 T) x, |
| 203 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 204 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 205 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) |
| 206 | |
| 207 | theorem scalarEuler_iff_projected (A : Icc (0 : ℝ) T → SmoothL2Field Space) : |
| 208 | IsSmoothScalarEuler (hT := hT) A ↔ IsSmoothProjectedEuler (hT := hT) A := by |
| 209 | constructor |
| 210 | · rintro ⟨hA,B,p,_hB,hd,hdiv,hp,he⟩ |
| 211 | exact isSmoothProjectedEuler_of_scalarEuler A B hA hd p hdiv hp he |
| 212 | · intro hA |
| 213 | let U := evolutionOfProjectedEquation A hA |
| 214 | refine ⟨hA.1,U.derivative,(fun r => U.scalarPressure (projIcc 0 T hT r)), |
| 215 | U.derivative_continuous,?_,?_,?_,?_⟩ |
| 216 | · intro t ht |
| 217 | have h := U.velocityPath_hasDerivWithinAt ⟨t,ht.1.le,ht.2.le⟩ |
| 218 | rw [U.velocityPath_extend] at h |
| 219 | exact h.hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 220 | · intro t x |
| 221 | exact solenoidal_representative_divergence _ (hA.2.1 t) _ (A t).smooth (A t).toLp_ae x |
| 222 | · intro t ht |
| 223 | exact (U.scalarPressure_spec (projIcc 0 T hT t)).1.differentiable (by simp) |
| 224 | · intro t ht x |
| 225 | dsimp only |
| 226 | rw [projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩, |
| 227 | (U.scalarPressure_spec ⟨t,ht.1.le,ht.2.le⟩).2.2 x,U.derivative_field] |
| 228 | change (-fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 229 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 230 | (U.pressureForce ⟨t,ht.1.le,ht.2.le⟩).field x)+_+_=0 |
| 231 | abel |
| 232 | |
| 233 | theorem exists_evolution_iff_scalar (hpos : 0 < T) |
| 234 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) : |
| 235 | (∃ U : Evolution T hT, U.velocity=A) ↔ IsSmoothScalarEuler (hT := hT) A := |
| 236 | (exists_evolution_iff_projected hpos A).trans (scalarEuler_iff_projected A).symm |
| 237 | |
| 238 | end EulerOrdinarySobolev |