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.OrdinaryEulerSobolevClass |
| 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 | noncomputable section |
| 10 | |
| 11 | namespace EulerOrdinarySobolev |
| 12 | |
| 13 | open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 14 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerMeanClassical |
| 15 | EulerMeanOrdinaryLift EulerMeanSmoothRepresentative EulerSmoothFieldSobolevTime |
| 16 | EulerCylinderSobolevSpace EulerLiftedGradientSpace EulerVolterraConvolution |
| 17 | open scoped ContDiff |
| 18 | |
| 19 | private local instance : Fact (0 < (1 : ℝ)) := ⟨by norm_num⟩ |
| 20 | |
| 21 | variable {T : ℝ} {hT : 0 ≤ T} |
| 22 | |
| 23 | /-- The force obtained from the actual velocity and its actual time derivative. -/ |
| 24 | def scalarEulerForce (A B : SmoothL2Field Space) : SmoothL2Field Space := |
| 25 | fieldNeg (addField B (advectionField A A)) |
| 26 | |
| 27 | theorem scalarEulerForce_field (A B : SmoothL2Field Space) (x : Space) : |
| 28 | (scalarEulerForce A B).field x = -((B.field x)+fderiv ℝ A.field x (A.field x)) := by |
| 29 | simp only [scalarEulerForce,fieldNeg_field,addField_field,advectionField_field] |
| 30 | |
| 31 | theorem scalarEulerForce_continuous |
| 32 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 33 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 34 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) (n : ℕ) : |
| 35 | Continuous (fun t => (scalarEulerForce (A t) (B t)).jetLp n) := |
| 36 | continuous_jetLp_mapField _ _ |
| 37 | (continuous_jetLp_addField B _ hB (advectionField_continuous A hA)) n |
| 38 | |
| 39 | /-- An ordinary scalar Euler equation implies the actual projected L² equation. |
| 40 | Spatial differentiability of pressure is used only at interior times. -/ |
| 41 | theorem isSmoothProjectedEuler_of_scalarEuler |
| 42 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 43 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 44 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 45 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 46 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 47 | (p : ℝ → Space → ℝ) |
| 48 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 49 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 50 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 51 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 52 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 53 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : |
| 54 | IsSmoothProjectedEuler (hT := hT) A := by |
| 55 | have hs (t : Icc (0 : ℝ) T) : (A t).toLp ∈ solenoidalSpace := |
| 56 | smooth_mem_solenoidal (A t).field (A t).smooth (A t).memLp (hdiv t) |
| 57 | refine ⟨hA,hs,?_⟩ |
| 58 | intro t ht |
| 59 | let s : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 60 | let G := scalarEulerForce (A s) (B s) |
| 61 | have hg (x : Space) : G.field x=gradient (p t) x := by |
| 62 | rw [scalarEulerForce_field] |
| 63 | exact (eq_neg_of_add_eq_zero_right (he t ht x)).symm |
| 64 | have hG : G.toLp ∈ EulerMeanSolenoidal.gradientSpace := |
| 65 | gradient_mem G (p t) (potential_smooth G (p t) (hp t ht) hg) hg |
| 66 | have hproj := solenoidalProjection.hasFDerivAt.comp_hasDerivAt t (hd t ht) |
| 67 | have hfix : (fun r => solenoidalProjection (A (projIcc 0 T hT r)).toLp)= |
| 68 | (fun r => (A (projIcc 0 T hT r)).toLp) := by |
| 69 | funext r |
| 70 | exact solenoidalSpace.starProjection_eq_self_iff.mpr (hs _) |
| 71 | simp only [Function.comp_def] at hproj |
| 72 | rw [hfix] at hproj |
| 73 | have hB : solenoidalProjection (B s).toLp=(B s).toLp := hproj.unique (hd t ht) |
| 74 | have hzero := (solenoidalProjection_eq_zero_iff G.toLp).mpr hG |
| 75 | change solenoidalProjection (fieldNeg (addField (B s) (advectionField (A s) (A s)))).toLp=0 at hzero |
| 76 | rw [toLp_fieldNeg,toLp_addField,map_neg,map_add,hB] at hzero |
| 77 | have hR : (B s).toLp=(projectedRhs (A s)).toLp := by |
| 78 | rw [projectedRhs_toLp] |
| 79 | exact eq_neg_of_add_eq_zero_left (neg_eq_zero.mp hzero) |
| 80 | exact hR ▸ hd t ht |
| 81 | |
| 82 | def evolutionOfScalarEuler |
| 83 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 84 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 85 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 86 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 87 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 88 | (p : ℝ → Space → ℝ) |
| 89 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 90 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 91 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 92 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 93 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 94 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : Evolution T hT := |
| 95 | evolutionOfProjectedEquation A (isSmoothProjectedEuler_of_scalarEuler A B hA hd p hdiv hp he) |
| 96 | |
| 97 | section Identification |
| 98 | |
| 99 | variable (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 100 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 101 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) |
| 102 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 103 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 104 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) |
| 105 | (p : ℝ → Space → ℝ) |
| 106 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 107 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 108 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 109 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 110 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 111 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) |
| 112 | |
| 113 | theorem evolutionOfScalarEuler_velocity : |
| 114 | (evolutionOfScalarEuler A B hA hd p hdiv hp he).velocity=A := rfl |
| 115 | |
| 116 | include hB in |
| 117 | theorem evolutionOfScalarEuler_derivative (hpos : 0 < T) (t : Icc (0 : ℝ) T) : |
| 118 | (evolutionOfScalarEuler A B hA hd p hdiv hp he).derivative t=B t := by |
| 119 | let U := evolutionOfScalarEuler A B hA hd p hdiv hp he |
| 120 | have h₁ := U.sobolevTimeDerivative 3 t |
| 121 | have h₂ := sobolev_derivative_of_l2 T hT A B hA hB hd 3 t |
| 122 | change HasDerivWithinAt (extendPath T hT (sobolevPath A hA 3)) |
| 123 | (sobolevPath U.derivative U.derivative_continuous 3 t) (Icc (0 : ℝ) T) t at h₁ |
| 124 | have hh := (h₁.derivWithin (uniqueDiffOn_Icc hpos t t.property)).symm.trans |
| 125 | (h₂.derivWithin (uniqueDiffOn_Icc hpos t t.property)) |
| 126 | apply field_ext |
| 127 | funext x |
| 128 | have h := congrArg (observation 3 (le_refl 3) (x,(0 : AddCircle (1 : ℝ)))) hh |
| 129 | simpa only [sobolevPath,ContinuousMap.coe_mk,observation_apply] using h |
| 130 | |
| 131 | include hB in |
| 132 | theorem evolutionOfScalarEuler_pressureForce (hpos : 0 < T) (t : Icc (0 : ℝ) T) : |
| 133 | (evolutionOfScalarEuler A B hA hd p hdiv hp he).pressureForce t= |
| 134 | scalarEulerForce (A t) (B t) := by |
| 135 | let U := evolutionOfScalarEuler A B hA hd p hdiv hp he |
| 136 | have hd' := evolutionOfScalarEuler_derivative A B hA hB hd p hdiv hp he hpos t |
| 137 | apply field_ext |
| 138 | funext x |
| 139 | have hv := congrArg (fun C : SmoothL2Field Space => C.field x) hd' |
| 140 | rw [Evolution.derivative_field] at hv |
| 141 | change -fderiv ℝ (A t).field x ((A t).field x)-(U.pressureForce t).field x=(B t).field x at hv |
| 142 | rw [scalarEulerForce_field] |
| 143 | apply add_left_cancel (a := (B t).field x) |
| 144 | calc |
| 145 | (B t).field x+(U.pressureForce t).field x = -fderiv ℝ (A t).field x ((A t).field x) := |
| 146 | ((sub_eq_iff_eq_add).mp hv).symm |
| 147 | _ = (B t).field x+-((B t).field x+fderiv ℝ (A t).field x ((A t).field x)) := by abel |
| 148 | |
| 149 | include hB in |
| 150 | theorem evolutionOfScalarEuler_scalarPressure (hpos : 0 < T) |
| 151 | (t : ℝ) (ht : t ∈ Ioo 0 T) (x : Space) : |
| 152 | (evolutionOfScalarEuler A B hA hd p hdiv hp he).scalarPressure ⟨t,ht.1.le,ht.2.le⟩ x= |
| 153 | p t x-p t 0 := by |
| 154 | let U := evolutionOfScalarEuler A B hA hd p hdiv hp he |
| 155 | let s : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 156 | have hg (y : Space) : (U.pressureForce s).field y=gradient (p t) y := by |
| 157 | rw [evolutionOfScalarEuler_pressureForce A B hA hB hd p hdiv hp he hpos s, |
| 158 | scalarEulerForce_field] |
| 159 | exact (eq_neg_of_add_eq_zero_right (he t ht y)).symm |
| 160 | exact EulerCanonicalGraphPotential.radialPotential_eq_sub (U.pressureForce s).field |
| 161 | (U.pressureForce s).smooth.continuous (p t) |
| 162 | (potential_smooth (U.pressureForce s) (p t) (hp t ht) hg) (fun y => (hg y).symm) x |
| 163 | |
| 164 | end Identification |
| 165 | |
| 166 | /-- A strong time derivative in any genuine spatial Sobolev order gives |
| 167 | the L² derivative used above. In the source class one can take order two. -/ |
| 168 | theorem l2_timeDerivative_of_sobolev |
| 169 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 170 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 171 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) (q : ℕ) |
| 172 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 173 | HasDerivAt (extendPath T hT (sobolevPath A hA q)) |
| 174 | (sobolevPath B hB q ⟨t,ht.1.le,ht.2.le⟩) t) |
| 175 | (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 := by |
| 178 | let L : SobolevSpace 1 q →L[ℝ] L2 := |
| 179 | ordinaryLift.toContinuousLinearMap.adjoint.comp (valueOperator 1 q) |
| 180 | have hL (C : SmoothL2Field Space) : |
| 181 | L (ordinarySobolev q C.toLp C.translation_contDiff)=C.toLp := by |
| 182 | change ordinaryLift.toContinuousLinearMap.adjoint |
| 183 | (value 1 (ordinarySobolev q C.toLp C.translation_contDiff))=C.toLp |
| 184 | erw [ordinarySobolev_value] |
| 185 | exact congrArg (fun M : L2 →L[ℝ] L2 => M C.toLp) ordinaryLift.adjoint_comp_self |
| 186 | have h := L.hasFDerivAt.comp_hasDerivAt t (hd t ht) |
| 187 | simpa only [Function.comp_def,extendPath,sobolevPath,ContinuousMap.coe_mk,hL] using h |
| 188 | |
| 189 | /-- The scalar-pressure form of the smooth ordinary Euler class. The |
| 190 | all-order spatial paths represent `C H^m` for every finite `m`. A single |
| 191 | strong L² time law and the continuous all-order derivative paths imply |
| 192 | the strong time law in every Sobolev order by `sobolev_derivative_of_l2`. |
| 193 | No norm, time regularity, or normalization is imposed on the scalar pressure. -/ |
| 194 | def IsSmoothScalarEuler (A : Icc (0 : ℝ) T → SmoothL2Field Space) : Prop := |
| 195 | (∀ n, Continuous (fun t => (A t).jetLp n)) ∧ |
| 196 | ∃ (B : Icc (0 : ℝ) T → SmoothL2Field Space) (p : ℝ → Space → ℝ), |
| 197 | (∀ n, Continuous (fun t => (B t).jetLp n)) ∧ |
| 198 | (∀ t (ht : t ∈ Ioo 0 T), |
| 199 | HasDerivAt (fun r => (A (projIcc 0 T hT r)).toLp) |
| 200 | (B ⟨t,ht.1.le,ht.2.le⟩).toLp t) ∧ |
| 201 | (∀ t x, divergence (A t).field x=0) ∧ |
| 202 | (∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) ∧ |
| 203 | (∀ t (ht : t ∈ Ioo 0 T) x, |
| 204 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 205 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 206 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) |
| 207 | |
| 208 | theorem isSmoothScalarEuler_of_sobolev |
| 209 | (A B : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 210 | (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) |
| 211 | (hB : ∀ n, Continuous (fun t => (B t).jetLp n)) (q : ℕ) |
| 212 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 213 | HasDerivAt (extendPath T hT (sobolevPath A hA q)) |
| 214 | (sobolevPath B hB q ⟨t,ht.1.le,ht.2.le⟩) t) |
| 215 | (p : ℝ → Space → ℝ) |
| 216 | (hdiv : ∀ t x, divergence (A t).field x=0) |
| 217 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 218 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 219 | (B ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 220 | fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 221 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : |
| 222 | IsSmoothScalarEuler (hT := hT) A := |
| 223 | ⟨hA,B,p,hB,l2_timeDerivative_of_sobolev A B hA hB q hd,hdiv,hp,he⟩ |
| 224 | |
| 225 | /-- Starting from genuine continuous Sobolev realizations requires no |
| 226 | preselected smooth representative or pressure-force path. The order-two |
| 227 | time law is part of the source's `C¹ H^(m-1)` condition at `m=3`; |
| 228 | the continuous realizations of the derivative come from its higher orders. -/ |
| 229 | theorem SobolevTower.isSmoothScalarEuler (A B : SobolevTower T) |
| 230 | (hd : ∀ t (ht : t ∈ Ioo 0 T), |
| 231 | HasDerivAt (extendPath T hT (A.realization 2)) |
| 232 | (B.realization 2 ⟨t,ht.1.le,ht.2.le⟩) t) |
| 233 | (p : ℝ → Space → ℝ) |
| 234 | (hdiv : ∀ t x, divergence (A.smoothField t).field x=0) |
| 235 | (hp : ∀ t ∈ Ioo 0 T, Differentiable ℝ (p t)) |
| 236 | (he : ∀ t (ht : t ∈ Ioo 0 T) x, |
| 237 | (B.smoothField ⟨t,ht.1.le,ht.2.le⟩).field x+ |
| 238 | fderiv ℝ (A.smoothField ⟨t,ht.1.le,ht.2.le⟩).field x |
| 239 | ((A.smoothField ⟨t,ht.1.le,ht.2.le⟩).field x)+gradient (p t) x=0) : |
| 240 | IsSmoothScalarEuler (hT := hT) A.smoothField := by |
| 241 | apply isSmoothScalarEuler_of_sobolev A.smoothField B.smoothField |
| 242 | A.smoothField_jet_continuous B.smoothField_jet_continuous 2 _ p hdiv hp he |
| 243 | simpa only [A.smoothField_path 2,B.smoothField_path 2] using hd |
| 244 | |
| 245 | theorem scalarEuler_iff_projected (A : Icc (0 : ℝ) T → SmoothL2Field Space) : |
| 246 | IsSmoothScalarEuler (hT := hT) A ↔ IsSmoothProjectedEuler (hT := hT) A := by |
| 247 | constructor |
| 248 | · rintro ⟨hA,B,p,_hB,hd,hdiv,hp,he⟩ |
| 249 | exact isSmoothProjectedEuler_of_scalarEuler A B hA hd p hdiv hp he |
| 250 | · intro hA |
| 251 | let U := evolutionOfProjectedEquation A hA |
| 252 | refine ⟨hA.1,U.derivative,(fun r => U.scalarPressure (projIcc 0 T hT r)), |
| 253 | U.derivative_continuous,?_,?_,?_,?_⟩ |
| 254 | · intro t ht |
| 255 | have h := U.velocityPath_hasDerivWithinAt ⟨t,ht.1.le,ht.2.le⟩ |
| 256 | rw [U.velocityPath_extend] at h |
| 257 | exact h.hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 258 | · intro t x |
| 259 | exact solenoidal_representative_divergence _ (hA.2.1 t) _ (A t).smooth (A t).toLp_ae x |
| 260 | · intro t ht |
| 261 | exact (U.scalarPressure_spec (projIcc 0 T hT t)).1.differentiable (by simp) |
| 262 | · intro t ht x |
| 263 | dsimp only |
| 264 | rw [projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩, |
| 265 | (U.scalarPressure_spec ⟨t,ht.1.le,ht.2.le⟩).2.2 x,U.derivative_field] |
| 266 | change (-fderiv ℝ (A ⟨t,ht.1.le,ht.2.le⟩).field x |
| 267 | ((A ⟨t,ht.1.le,ht.2.le⟩).field x)- |
| 268 | (U.pressureForce ⟨t,ht.1.le,ht.2.le⟩).field x)+_+_=0 |
| 269 | abel |
| 270 | |
| 271 | theorem exists_evolution_iff_scalar (hpos : 0 < T) |
| 272 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) : |
| 273 | (∃ U : Evolution T hT, U.velocity=A) ↔ IsSmoothScalarEuler (hT := hT) A := |
| 274 | (exists_evolution_iff_projected hpos A).trans (scalarEuler_iff_projected A).symm |
| 275 | |
| 276 | end EulerOrdinarySobolev |