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.OrdinaryGradientProducts |
| 2 | import Euler.OrdinaryTameEnergy |
| 3 | import Euler.OrdinaryEulerL2Stability |
| 4 | import Euler.ContinuousTimeIntegral |
| 5 | import Euler.OrdinaryEulerHigherEnergy |
| 6 | |
| 7 | /-! Actual gradient-supremum control of Euler Sobolev norms. The |
| 8 | gradient norm is a constructed continuous path, its time integral |
| 9 | controls H³, and the checked H³-tame estimate then propagates every |
| 10 | higher order on the same time interval. -/ |
| 11 | |
| 12 | /-! ## From `Euler/OrdinaryGradientEnergy.lean` |
| 13 | |
| 14 | The text of `Euler/OrdinaryGradientEnergy.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! Sharp H³ transport energy with the actual L-infinity norm of the |
| 19 | velocity gradient. The pressure and undifferentiated transport cancel |
| 20 | before the cubic-test interpolation estimate is used. -/ |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace EulerOrdinarySobolev |
| 25 | |
| 26 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 27 | EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal Finset |
| 28 | |
| 29 | theorem gradientSup_advection_outer (A : SmoothL2Field Space) (K N : ℝ) |
| 30 | (hK : ∀ x, ‖fderiv ℝ A.field x‖ ≤ K) (hN : WordBound 3 N A) |
| 31 | {n k l : ℕ} (hk : 1 ≤ k) (horder : n+k+l ≤ 3) |
| 32 | (a : Fin n → Fin 3) (w : Fin k → Fin 3) (v : Fin l → Fin 3) : |
| 33 | ‖(wordField (advectionField (wordField A w) (wordField A v)) a).toLp‖ ≤ |
| 34 | 27*(2 : ℝ)^n*K*N := by |
| 35 | rw [advectionField,wordField_sum,toLp_sumField] |
| 36 | apply (norm_sum_le _ _).trans |
| 37 | calc |
| 38 | _ ≤ ∑ _i : Fin 3, (2 : ℝ)^n*9*K*N := by |
| 39 | apply sum_le_sum |
| 40 | intro i _ |
| 41 | simpa only [wordField_cons] using gradient_tame_outer_product A K N hK hN hk |
| 42 | (by omega : 1 ≤ l+1) (by omega : n+k+(l+1) ≤ 4) a w (Fin.cons i v) i |
| 43 | _ = _ := by simp only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul]; ring |
| 44 | |
| 45 | theorem gradient_transportCommutator_word (A : SmoothL2Field Space) (K N : ℝ) |
| 46 | (hK : ∀ x, ‖fderiv ℝ A.field x‖ ≤ K) (hN : WordBound 3 N A) |
| 47 | {n l : ℕ} (horder : n+l ≤ 3) (a : Fin n → Fin 3) (v : Fin l → Fin 3) : |
| 48 | ‖(transportCommutator A (wordField A v) a).toLp‖ ≤ |
| 49 | 27*((2 : ℝ)^n-1)*K*N := by |
| 50 | induction n generalizing l with |
| 51 | | zero => simp only [transportCommutator_zero,norm_zero,pow_zero,sub_self,mul_zero,zero_mul,le_refl] |
| 52 | | succ n ih => |
| 53 | have he : transportCommutator A (wordField A v) a = |
| 54 | addField |
| 55 | (wordField (advectionField (A.directionalField (axis (a (Fin.last n)))) (wordField A v)) (Fin.init a)) |
| 56 | (transportCommutator A (wordField A (Fin.cons (a (Fin.last n)) v)) (Fin.init a)) := by |
| 57 | simpa only [Fin.snoc_init_self,wordField_cons] using |
| 58 | transportCommutator_snoc A (wordField A v) (Fin.init a) (a (Fin.last n)) |
| 59 | rw [he,toLp_addField] |
| 60 | apply (norm_add_le _ _).trans |
| 61 | have h1 := gradientSup_advection_outer A K N hK hN (by norm_num : 1 ≤ 1) |
| 62 | (by omega : n+1+l ≤ 3) (Fin.init a) (Fin.cons (a (Fin.last n)) Fin.elim0) v |
| 63 | have h2 := ih (by omega : n+(l+1) ≤ 3) (Fin.init a) (Fin.cons (a (Fin.last n)) v) |
| 64 | simp only [wordField_cons,wordField_zero] at h1 |
| 65 | exact (add_le_add h1 h2).trans_eq (by rw [pow_succ]; ring) |
| 66 | |
| 67 | theorem gradient_transportCommutator (A : SmoothL2Field Space) (K N : ℝ) |
| 68 | (hK : ∀ x, ‖fderiv ℝ A.field x‖ ≤ K) (hN : WordBound 3 N A) |
| 69 | {n : ℕ} (hn : n ≤ 3) (w : Fin n → Fin 3) : |
| 70 | ‖(transportCommutator A A w).toLp‖ ≤ 27*((2 : ℝ)^n-1)*K*N := by |
| 71 | simpa only [wordField_zero] using gradient_transportCommutator_word A K N hK hN |
| 72 | (by simpa only [Nat.add_zero] using hn) w Fin.elim0 |
| 73 | |
| 74 | def gradientEnergyConstant : ℝ := 54*(∑ n ∈ range 4, (6 : ℝ)^n) |
| 75 | |
| 76 | theorem gradientEnergyConstant_nonneg : 0 ≤ gradientEnergyConstant := by |
| 77 | exact mul_nonneg (by norm_num) (sum_nonneg (fun _ _ => by positivity)) |
| 78 | |
| 79 | theorem eulerRhs_word_gradient (A P : SmoothL2Field Space) (K : ℝ) |
| 80 | (hK : ∀ x, ‖fderiv ℝ A.field x‖ ≤ K) (hdiv : ∀ x, divergence A.field x=0) |
| 81 | (hA : A.toLp ∈ solenoidalSpace) (hP : P.toLp ∈ gradientSpace) |
| 82 | {n : ℕ} (hn : n ≤ 3) (w : Fin n → Fin 3) : |
| 83 | ⟪(wordField A w).toLp,(wordField (eulerRhs A P) w).toLp⟫_ℝ ≤ |
| 84 | 27*(2 : ℝ)^n*K*wordEnergy 3 A := by |
| 85 | let X := Real.sqrt (wordEnergy 3 A) |
| 86 | have hx : X^2=wordEnergy 3 A := Real.sq_sqrt (wordEnergy_nonneg 3 A) |
| 87 | have hN : WordBound 3 X A := wordBound_sqrt_energy 3 A |
| 88 | have hb := gradient_transportCommutator A K X hK hN hn w |
| 89 | have hK0 : 0 ≤ K := (norm_nonneg (fderiv ℝ A.field 0)).trans (hK 0) |
| 90 | have hX : 0 ≤ X := Real.sqrt_nonneg _ |
| 91 | have hb' : ‖(transportCommutator A A w).toLp‖ ≤ 27*(2 : ℝ)^n*K*X := by |
| 92 | apply hb.trans |
| 93 | have hcoef : 27*((2 : ℝ)^n-1) ≤ 27*(2 : ℝ)^n := by linarith |
| 94 | exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hcoef hK0) hX |
| 95 | rw [eulerRhs_pairing A P hdiv hA hP w] |
| 96 | calc |
| 97 | _ ≤ |⟪(transportCommutator A A w).toLp,(wordField A w).toLp⟫_ℝ| := neg_le_abs _ |
| 98 | _ ≤ ‖(transportCommutator A A w).toLp‖*‖(wordField A w).toLp‖ := abs_real_inner_le_norm _ _ |
| 99 | _ ≤ (27*(2 : ℝ)^n*K*X)*X := |
| 100 | mul_le_mul hb' (hN n hn w) (norm_nonneg _) (by positivity) |
| 101 | _ = 27*(2 : ℝ)^n*K*wordEnergy 3 A := by rw [← hx]; ring |
| 102 | |
| 103 | theorem h3_energy_gradient (A P : SmoothL2Field Space) (K : ℝ) |
| 104 | (hK : ∀ x, ‖fderiv ℝ A.field x‖ ≤ K) (hdiv : ∀ x, divergence A.field x=0) |
| 105 | (hA : A.toLp ∈ solenoidalSpace) (hP : P.toLp ∈ gradientSpace) : |
| 106 | integerEnergyProduction 3 A (eulerRhs A P) ≤ |
| 107 | gradientEnergyConstant*K*wordEnergy 3 A := by |
| 108 | have hs : (∑ n ∈ range 4, ∑ w : Fin n → Fin 3, |
| 109 | ⟪(wordField A w).toLp,(wordField (eulerRhs A P) w).toLp⟫_ℝ) ≤ |
| 110 | ∑ n ∈ range 4, (3 : ℝ)^n*(27*(2 : ℝ)^n*K*wordEnergy 3 A) := by |
| 111 | apply sum_le_sum |
| 112 | intro n hn |
| 113 | calc |
| 114 | _ ≤ ∑ _w : Fin n → Fin 3, 27*(2 : ℝ)^n*K*wordEnergy 3 A := |
| 115 | sum_le_sum (fun w _ => eulerRhs_word_gradient A P K hK hdiv hA hP |
| 116 | (by have := mem_range.mp hn; omega) w) |
| 117 | _ = _ := by simp |
| 118 | have hp (n : ℕ) : (3 : ℝ)^n*(27*(2 : ℝ)^n*K*wordEnergy 3 A) = |
| 119 | (6 : ℝ)^n*(27*K*wordEnergy 3 A) := by |
| 120 | rw [show (6 : ℝ)=3*2 by norm_num,mul_pow] |
| 121 | ring |
| 122 | simp_rw [hp] at hs |
| 123 | rw [← sum_mul] at hs |
| 124 | exact (mul_le_mul_of_nonneg_left hs (by norm_num : (0 : ℝ) ≤ 2)).trans_eq |
| 125 | (by unfold gradientEnergyConstant; ring) |
| 126 | |
| 127 | end EulerOrdinarySobolev |
| 128 | end |
| 129 | |
| 130 | end |
| 131 | |
| 132 | /-! ## From `Euler/OrdinaryVariableGronwall.lean` |
| 133 | |
| 134 | The text of `Euler/OrdinaryVariableGronwall.lean`, folded into this file, which was its only importer. -/ |
| 135 | |
| 136 | section |
| 137 | |
| 138 | /-! A variable-coefficient Gronwall estimate from a genuine one-sided |
| 139 | time derivative. The integrating factor uses the actual time integral. -/ |
| 140 | |
| 141 | noncomputable section |
| 142 | |
| 143 | namespace EulerOrdinarySobolev |
| 144 | |
| 145 | open Set EulerVolterraConvolution EulerContinuousTimeIntegral |
| 146 | open scoped Topology |
| 147 | |
| 148 | theorem variable_linear_stability (T : ℝ) (hT : 0 ≤ T) |
| 149 | (X X' : ℝ → ℝ) (C : ℝ) (K : C(Icc (0 : ℝ) T,ℝ)) |
| 150 | (hcont : ContinuousOn X (Icc 0 T)) |
| 151 | (hder : ∀ t ∈ Ico 0 T, HasDerivWithinAt X (X' t) (Icc 0 T) t) |
| 152 | (hineq : ∀ t ∈ Ico 0 T, X' t ≤ C*extendPath T hT K t*X t) |
| 153 | (t : Icc (0 : ℝ) T) : |
| 154 | X t ≤ X 0*Real.exp (C*realIntegral T hT K t) := by |
| 155 | let I := realIntegral T hT K |
| 156 | let Y := fun r => X r*Real.exp (-C*I r) |
| 157 | let Y' := fun r => Real.exp (-C*I r)*(X' r-C*extendPath T hT K r*X r) |
| 158 | have hI (r : ℝ) : HasDerivAt I (extendPath T hT K r) r := |
| 159 | realIntegral_hasDerivAt T hT K r |
| 160 | have hcI : Continuous I := (show Differentiable ℝ I from |
| 161 | fun r => (hI r).differentiableAt).continuous |
| 162 | have hcY : ContinuousOn Y (Icc 0 T) := |
| 163 | hcont.mul ((Real.continuous_exp.comp (hcI.const_mul (-C))).continuousOn) |
| 164 | have hdY (r : ℝ) (hr : r ∈ Ico 0 T) : HasDerivWithinAt Y (Y' r) (Icc 0 T) r := by |
| 165 | have h := (hder r hr).mul (((hI r).const_mul (-C)).exp.hasDerivWithinAt) |
| 166 | have he : Y' r = X' r*Real.exp (-C*I r)+ |
| 167 | X r*(Real.exp (-C*I r)*(-C*extendPath T hT K r)) := by |
| 168 | dsimp [Y'] |
| 169 | ring |
| 170 | rw [he] |
| 171 | exact h |
| 172 | have hbY (r : ℝ) (hr : r ∈ Ico 0 T) : Y' r ≤ 0*Y r := by |
| 173 | dsimp [Y'] |
| 174 | rw [zero_mul] |
| 175 | exact mul_nonpos_of_nonneg_of_nonpos (Real.exp_pos _).le |
| 176 | (sub_nonpos.mpr (hineq r hr)) |
| 177 | have hy := linear_stability_within Y Y' 0 T hcY hdY hbY t t.property |
| 178 | have hI0 : I 0=0 := intervalIntegral.integral_same |
| 179 | have hY0 : Y 0=X 0 := by simp only [Y,hI0,mul_zero,Real.exp_zero,mul_one] |
| 180 | simp only [hY0,zero_mul,Real.exp_zero,mul_one] at hy |
| 181 | have he : (X 0*Real.exp (C*I t))*Real.exp (-C*I t)=X 0 := by |
| 182 | rw [mul_assoc,← Real.exp_add] |
| 183 | simp only [show C*I t+-C*I t=0 by ring,Real.exp_zero,mul_one] |
| 184 | apply (mul_le_mul_iff_left₀ (Real.exp_pos (-C*I t))).mp |
| 185 | change Y t ≤ (X 0*Real.exp (C*I t))*Real.exp (-C*I t) |
| 186 | rw [he] |
| 187 | exact hy |
| 188 | |
| 189 | end EulerOrdinarySobolev |
| 190 | end |
| 191 | |
| 192 | end |
| 193 | |
| 194 | noncomputable section |
| 195 | |
| 196 | namespace EulerOrdinarySobolev.Evolution |
| 197 | |
| 198 | open Set MeasureTheory EulerSmoothLimit EulerLpTranslation |
| 199 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerMeanClassical |
| 200 | EulerMeanSobolevBoundedField EulerVolterraConvolution EulerContinuousTimeIntegral |
| 201 | |
| 202 | variable {T : ℝ} {hT : 0 ≤ T} |
| 203 | |
| 204 | def gradientNormPath (U : Evolution T hT) : C(Icc (0 : ℝ) T,ℝ) := |
| 205 | ⟨fun t => ‖finiteField (U.velocity t).derivative‖, |
| 206 | (continuous_finiteField (fun t => (U.velocity t).derivative) |
| 207 | (continuous_jetLp_derivative U.velocity U.velocity_continuous)).norm⟩ |
| 208 | |
| 209 | theorem gradientNormPath_nonneg (U : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 210 | 0 ≤ U.gradientNormPath t := by |
| 211 | change 0 ≤ ‖finiteField (U.velocity t).derivative‖ |
| 212 | exact norm_nonneg _ |
| 213 | |
| 214 | theorem gradientNormPath_le_iff (U : Evolution T hT) (t : Icc (0 : ℝ) T) (K : ℝ) : |
| 215 | U.gradientNormPath t ≤ K ↔ ∀ x, ‖fderiv ℝ (U.velocity t).field x‖ ≤ K := by |
| 216 | change ‖finiteField (U.velocity t).derivative‖ ≤ K ↔ _ |
| 217 | rw [BoundedContinuousFunction.norm_le_of_nonempty] |
| 218 | simp only [finiteField_apply] |
| 219 | rfl |
| 220 | |
| 221 | theorem pointwise_gradient_le (U : Evolution T hT) (t : Icc (0 : ℝ) T) (x : Space) : |
| 222 | ‖fderiv ℝ (U.velocity t).field x‖ ≤ U.gradientNormPath t := |
| 223 | (U.gradientNormPath_le_iff t _).mp le_rfl x |
| 224 | |
| 225 | def gradientIntegral (U : Evolution T hT) (t : Icc (0 : ℝ) T) : ℝ := |
| 226 | realIntegral T hT U.gradientNormPath t |
| 227 | |
| 228 | theorem gradientIntegral_nonneg (U : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 229 | 0 ≤ U.gradientIntegral t := |
| 230 | intervalIntegral.integral_nonneg_of_forall t.property.1 |
| 231 | (fun r => U.gradientNormPath_nonneg (projIcc 0 T hT r)) |
| 232 | |
| 233 | theorem gradientIntegral_le_const (U : Evolution T hT) (K : ℝ) |
| 234 | (hK : ∀ t x, ‖fderiv ℝ (U.velocity t).field x‖ ≤ K) (t : Icc (0 : ℝ) T) : |
| 235 | U.gradientIntegral t ≤ K*(t : ℝ) := by |
| 236 | have hc := extendPath_continuous T hT U.gradientNormPath |
| 237 | calc |
| 238 | _ ≤ ∫ _r in (0 : ℝ)..(t : ℝ), K := |
| 239 | intervalIntegral.integral_mono_on t.property.1 (hc.intervalIntegrable 0 t) |
| 240 | (continuous_const.intervalIntegrable 0 t) (fun r _ => |
| 241 | (U.gradientNormPath_le_iff (projIcc 0 T hT r) K).mpr (hK _)) |
| 242 | _ = _ := by simp only [intervalIntegral.integral_const,sub_zero,smul_eq_mul]; ring |
| 243 | |
| 244 | theorem integerEnergyDerivative_gradient (U : Evolution T hT) (K : ℝ) |
| 245 | (t : Icc (0 : ℝ) T) (hK : ∀ x, ‖fderiv ℝ (U.velocity t).field x‖ ≤ K) : |
| 246 | U.integerEnergyDerivative 3 t ≤ gradientEnergyConstant*K*U.integerEnergyPath 3 t := by |
| 247 | rw [integerEnergyDerivative,derivative_eq_eulerRhs] |
| 248 | apply h3_energy_gradient _ _ K hK _ (U.solenoidal t) (U.gradient t) |
| 249 | exact solenoidal_representative_divergence _ (U.solenoidal t) _ (U.velocity t).smooth |
| 250 | (U.velocity t).toLp_ae |
| 251 | |
| 252 | theorem h3_energy_gradientIntegral (U : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 253 | wordEnergy 3 (U.velocity t) ≤ wordEnergy 3 (U.velocity ⟨0,le_rfl,hT⟩)* |
| 254 | Real.exp (gradientEnergyConstant*U.gradientIntegral t) := by |
| 255 | have hd (r : ℝ) (hr : r ∈ Ico 0 T) : |
| 256 | HasDerivWithinAt (extendPath T hT (U.integerEnergyPath 3)) |
| 257 | (U.integerEnergyDerivative 3 (projIcc 0 T hT r)) (Icc 0 T) r := by |
| 258 | have h := U.integerEnergy_hasDerivWithinAt 3 ⟨r,hr.1,hr.2.le⟩ |
| 259 | simpa only [projIcc_of_mem hT (show r ∈ Icc 0 T from ⟨hr.1,hr.2.le⟩)] using h |
| 260 | have hb (r : ℝ) (_hr : r ∈ Ico 0 T) : |
| 261 | U.integerEnergyDerivative 3 (projIcc 0 T hT r) ≤ |
| 262 | gradientEnergyConstant*extendPath T hT U.gradientNormPath r* |
| 263 | extendPath T hT (U.integerEnergyPath 3) r := |
| 264 | U.integerEnergyDerivative_gradient _ _ (U.pointwise_gradient_le _) |
| 265 | have h := variable_linear_stability T hT |
| 266 | (extendPath T hT (U.integerEnergyPath 3)) |
| 267 | (fun r => U.integerEnergyDerivative 3 (projIcc 0 T hT r)) |
| 268 | gradientEnergyConstant U.gradientNormPath |
| 269 | ((U.integerEnergyPath 3).continuous.comp continuous_projIcc).continuousOn hd hb t |
| 270 | simpa only [extendPath,projIcc_of_mem hT t.property, |
| 271 | projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩), |
| 272 | integerEnergyPath,ContinuousMap.coe_mk,gradientIntegral] using h |
| 273 | |
| 274 | def gradientH3Bound (U : Evolution T hT) (G : ℝ) : ℝ := |
| 275 | Real.sqrt (wordEnergy 3 (U.velocity ⟨0,le_rfl,hT⟩)*Real.exp (gradientEnergyConstant*G)) |
| 276 | |
| 277 | theorem wordBound_of_gradientIntegral (U : Evolution T hT) (G : ℝ) |
| 278 | (hG : ∀ t, U.gradientIntegral t ≤ G) (t : Icc (0 : ℝ) T) : |
| 279 | WordBound 3 (U.gradientH3Bound G) (U.velocity t) := by |
| 280 | intro n hn w |
| 281 | apply (wordBound_sqrt_energy 3 (U.velocity t) n hn w).trans |
| 282 | apply Real.sqrt_le_sqrt |
| 283 | exact (U.h3_energy_gradientIntegral t).trans |
| 284 | (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr |
| 285 | (mul_le_mul_of_nonneg_left (hG t) gradientEnergyConstant_nonneg)) |
| 286 | (wordEnergy_nonneg _ _)) |
| 287 | |
| 288 | theorem h3_tensorNorm_of_gradientIntegral (U : Evolution T hT) (G : ℝ) |
| 289 | (hG : ∀ t, U.gradientIntegral t ≤ G) (t : Icc (0 : ℝ) T) : |
| 290 | tensorNorm 3 (U.velocity t) ≤ wordCount 3*U.gradientH3Bound G := |
| 291 | tensorNorm_le_wordCount _ 3 _ (U.wordBound_of_gradientIntegral G hG t) |
| 292 | |
| 293 | end EulerOrdinarySobolev.Evolution |