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.OrdinaryEulerDifference |
| 2 | import Euler.OrdinaryH3Norms |
| 3 | import Euler.EulerProof |
| 4 | import Euler.SmoothL2CoefficientPath |
| 5 | |
| 6 | /-! Uniform H³ comparison and the actual no-gradient-escape consequence |
| 7 | for genuine ordinary Euler evolutions. No energy inequality is assumed. -/ |
| 8 | |
| 9 | /-! ## From `Euler/OrdinaryQuadraticStability.lean` |
| 10 | |
| 11 | The text of `Euler/OrdinaryQuadraticStability.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The scalar comparison lemma with genuine one-sided endpoint derivatives. -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace EulerOrdinarySobolev |
| 20 | |
| 21 | open Set Real |
| 22 | |
| 23 | theorem quadratic_stability_within (X X' : ℝ → ℝ) (C ε T : ℝ) |
| 24 | (hC : 0 < C) (hε : 0 < ε) (_hT : 0 ≤ T) |
| 25 | (hsmall : 2*ε*exp (3*C*T) ≤ 1/2) |
| 26 | (hcont : ContinuousOn X (Icc 0 T)) (hinit : X 0 ≤ ε) |
| 27 | (hder : ∀ t ∈ Ico 0 T, HasDerivWithinAt X (X' t) (Icc 0 T) t) |
| 28 | (hineq : ∀ t ∈ Ico 0 T, X' t ≤ C*(X t+(X t)^2)) : |
| 29 | ∀ t ∈ Icc 0 T, X t ≤ 2*ε*exp (3*C*T) := by |
| 30 | let F : ℝ → ℝ := fun t => 2*ε*exp (3*C*t) |
| 31 | have hF (t : ℝ) : HasDerivAt F (3*C*F t) t := by |
| 32 | have hh := ((hasDerivAt_id t).const_mul (3*C)).exp.const_mul (2*ε) |
| 33 | simp only [id_eq,mul_one] at hh |
| 34 | change HasDerivAt (fun s => 2*ε*exp (3*C*s)) (3*C*(2*ε*exp (3*C*t))) t |
| 35 | exact hh.congr_deriv (by ring) |
| 36 | have hFp (t : ℝ) : 0 < F t := by dsimp [F]; positivity |
| 37 | have hbound : ∀ t ∈ Icc 0 T, X t ≤ F t := by |
| 38 | apply image_le_of_deriv_right_lt_deriv_boundary hcont |
| 39 | (fun t ht => (hder t ht).mono_of_mem_nhdsWithin (Icc_mem_nhdsGE_of_mem ht)) |
| 40 | · simpa only [F,mul_zero,exp_zero,mul_one] using (hinit.trans (by linarith : ε ≤ 2*ε)) |
| 41 | · exact hF |
| 42 | · intro t ht he |
| 43 | have hFt : F t ≤ 1/2 := by |
| 44 | calc |
| 45 | F t ≤ 2*ε*exp (3*C*T) := by dsimp [F]; gcongr; exact ht.2.le |
| 46 | _ ≤ _ := hsmall |
| 47 | have hb := hineq t ht |
| 48 | rw [he] at hb |
| 49 | have hfsq : (F t)^2 ≤ F t := by nlinarith [hFp t] |
| 50 | have hh := mul_le_mul_of_nonneg_left hfsq hC.le |
| 51 | linarith [mul_pos hC (hFp t)] |
| 52 | intro t ht |
| 53 | apply (hbound t ht).trans |
| 54 | dsimp [F] |
| 55 | gcongr |
| 56 | exact ht.2 |
| 57 | |
| 58 | end EulerOrdinarySobolev |
| 59 | end |
| 60 | |
| 61 | end |
| 62 | |
| 63 | /-! ## From `Euler/OrdinaryH3Envelope.lean` |
| 64 | |
| 65 | The text of `Euler/OrdinaryH3Envelope.lean`, folded into this file, which was its only importer. -/ |
| 66 | |
| 67 | section |
| 68 | |
| 69 | /-! A regularized H³ norm of the actual Euler difference satisfies the |
| 70 | quadratic stability inequality. The regularization only removes the |
| 71 | square-root singularity at a vanishing difference. -/ |
| 72 | |
| 73 | noncomputable section |
| 74 | |
| 75 | namespace EulerOrdinarySobolev |
| 76 | |
| 77 | open Set Real MeasureTheory EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field |
| 78 | EulerVolterraConvolution |
| 79 | open scoped ContDiff |
| 80 | |
| 81 | def stabilityConstant (M : ℝ) : ℝ := 1+1800*h3ProductConstant*(1+M) |
| 82 | |
| 83 | theorem stabilityConstant_pos {M : ℝ} (hM : 0 ≤ M) : 0 < stabilityConstant M := by |
| 84 | have hC := h3ProductConstant_nonneg |
| 85 | unfold stabilityConstant |
| 86 | positivity |
| 87 | |
| 88 | theorem regularized_energy_bound (e ep M δ : ℝ) (he : 0 ≤ e) (hM : 0 ≤ M) (hδ : 0 < δ) |
| 89 | (hp : ep ≤ 3600*h3ProductConstant*(M+sqrt e)*e) : |
| 90 | 20*ep/sqrt (e+δ^2) ≤ stabilityConstant M* |
| 91 | (40*sqrt (e+δ^2)+(40*sqrt (e+δ^2))^2) := by |
| 92 | let s := sqrt (e+δ^2) |
| 93 | have hs : 0 < s := sqrt_pos.mpr (by nlinarith) |
| 94 | have hs2 : s^2=e+δ^2 := sq_sqrt (by positivity) |
| 95 | have he2 : e ≤ s^2 := by linarith [sq_nonneg δ] |
| 96 | have hse : sqrt e ≤ 40*s := by |
| 97 | have hl : sqrt e ≤ s := sqrt_le_sqrt (by linarith [sq_nonneg δ]) |
| 98 | linarith |
| 99 | have hC := h3ProductConstant_nonneg |
| 100 | have hb : ep ≤ 3600*h3ProductConstant*(M+40*s)*s^2 := by |
| 101 | apply hp.trans |
| 102 | exact mul_le_mul (mul_le_mul_of_nonneg_left (add_le_add le_rfl hse) (by positivity)) he2 |
| 103 | he (by positivity) |
| 104 | have hd : 20*ep/s ≤ 1800*h3ProductConstant*(M+40*s)*(40*s) := by |
| 105 | apply (div_le_iff₀ hs).mpr |
| 106 | exact (mul_le_mul_of_nonneg_left hb (by norm_num : (0 : ℝ) ≤ 20)).trans_eq (by ring) |
| 107 | apply hd.trans |
| 108 | have hx : 0 ≤ 40*s := by positivity |
| 109 | have ha : (M+40*s)*(40*s) ≤ (1+M)*(40*s+(40*s)^2) := by |
| 110 | linarith [mul_nonneg hM (sq_nonneg (40*s))] |
| 111 | calc |
| 112 | _ = (1800*h3ProductConstant)*((M+40*s)*(40*s)) := by ring |
| 113 | _ ≤ (1800*h3ProductConstant)*((1+M)*(40*s+(40*s)^2)) := |
| 114 | mul_le_mul_of_nonneg_left ha (by positivity) |
| 115 | _ = (1800*h3ProductConstant*(1+M))*(40*s+(40*s)^2) := by ring |
| 116 | _ ≤ stabilityConstant M*(40*s+(40*s)^2) := |
| 117 | mul_le_mul_of_nonneg_right (by unfold stabilityConstant; linarith) |
| 118 | (add_nonneg hx (sq_nonneg _)) |
| 119 | |
| 120 | namespace Evolution |
| 121 | |
| 122 | variable {T : ℝ} {hT : 0 ≤ T} |
| 123 | |
| 124 | def normEnvelope (U V : Evolution T hT) (δ : ℝ) : C(Icc (0 : ℝ) T,ℝ) := |
| 125 | ⟨fun t => 40*sqrt (U.energyPath V t+δ^2), |
| 126 | continuous_const.mul (((U.energyPath V).continuous.add continuous_const).sqrt)⟩ |
| 127 | |
| 128 | def envelopeDerivative (U V : Evolution T hT) (δ : ℝ) (t : Icc (0 : ℝ) T) : ℝ := |
| 129 | 20*U.energyDerivative V t/sqrt (U.energyPath V t+δ^2) |
| 130 | |
| 131 | theorem energyPath_nonneg (U V : Evolution T hT) (t : Icc (0 : ℝ) T) : 0 ≤ U.energyPath V t := |
| 132 | wordEnergy_nonneg 3 _ |
| 133 | |
| 134 | theorem normEnvelope_hasDerivWithinAt (U V : Evolution T hT) (δ : ℝ) (hδ : 0 < δ) |
| 135 | (t : Icc (0 : ℝ) T) : |
| 136 | HasDerivWithinAt (extendPath T hT (U.normEnvelope V δ)) (U.envelopeDerivative V δ t) |
| 137 | (Icc (0 : ℝ) T) t := by |
| 138 | have he : extendPath T hT (U.energyPath V) t=U.energyPath V t := by |
| 139 | simp only [extendPath,projIcc_of_mem hT t.property] |
| 140 | have hp : 0 < U.energyPath V t+δ^2 := by nlinarith [U.energyPath_nonneg V t] |
| 141 | have h := (((U.energy_hasDerivWithinAt V t).add_const (δ^2)).sqrt (by |
| 142 | simp only [he] |
| 143 | exact hp.ne')).const_mul 40 |
| 144 | have hd : 40*(U.energyDerivative V t/(2*sqrt (extendPath T hT (U.energyPath V) t+δ^2)))= |
| 145 | U.envelopeDerivative V δ t := by |
| 146 | rw [he] |
| 147 | unfold envelopeDerivative |
| 148 | ring |
| 149 | exact h.congr_deriv hd |
| 150 | |
| 151 | theorem envelopeDerivative_bound (U V : Evolution T hT) (M δ : ℝ) |
| 152 | (hM : ∀ t, WordBound 4 M (U.velocity t)) (hδ : 0 < δ) (t : Icc (0 : ℝ) T) : |
| 153 | U.envelopeDerivative V δ t ≤ stabilityConstant M* |
| 154 | (U.normEnvelope V δ t+(U.normEnvelope V δ t)^2) := |
| 155 | regularized_energy_bound _ _ M δ (U.energyPath_nonneg V t) |
| 156 | (wordBound_nonneg (hM t)) hδ (U.energyDerivative_bound V M hM t) |
| 157 | |
| 158 | theorem normEnvelope_majorizes (U V : Evolution T hT) (δ : ℝ) (t : Icc (0 : ℝ) T) : |
| 159 | tensorNorm 3 (U.difference V t) ≤ U.normEnvelope V δ t := by |
| 160 | apply (tensorNorm_le_sqrt_energy _).trans |
| 161 | exact mul_le_mul_of_nonneg_left (sqrt_le_sqrt (le_add_of_nonneg_right (sq_nonneg δ))) |
| 162 | (by norm_num : (0 : ℝ) ≤ 40) |
| 163 | |
| 164 | theorem normEnvelope_initial (U V : Evolution T hT) (ε : ℝ) (hε : 0 < ε) |
| 165 | (hinit : tensorNorm 3 (U.difference V ⟨0,le_rfl,hT⟩) ≤ ε) : |
| 166 | U.normEnvelope V ε ⟨0,le_rfl,hT⟩ ≤ 320*ε := by |
| 167 | have hs := tensorNorm_nonneg 3 (U.difference V ⟨0,le_rfl,hT⟩) |
| 168 | have hb := energy_le_tensorNorm_sq (U.difference V ⟨0,le_rfl,hT⟩) |
| 169 | have he := U.energyPath_nonneg V ⟨0,le_rfl,hT⟩ |
| 170 | have hp := pow_le_pow_left₀ hs hinit 2 |
| 171 | have hroot := sq_sqrt (show 0 ≤ U.energyPath V ⟨0,le_rfl,hT⟩+ε^2 by positivity) |
| 172 | have hr : sqrt (U.energyPath V ⟨0,le_rfl,hT⟩+ε^2) ≤ 8*ε := by |
| 173 | change U.energyPath V ⟨0,le_rfl,hT⟩ ≤ _ at hb |
| 174 | nlinarith [sqrt_nonneg (U.energyPath V ⟨0,le_rfl,hT⟩+ε^2)] |
| 175 | change 40*sqrt _ ≤ 320*ε |
| 176 | linarith |
| 177 | |
| 178 | theorem h3_stability (U V : Evolution T hT) (M ε : ℝ) |
| 179 | (hM : ∀ t, WordBound 4 M (U.velocity t)) (hε : 0 < ε) |
| 180 | (hinit : tensorNorm 3 (U.difference V ⟨0,le_rfl,hT⟩) ≤ ε) |
| 181 | (hsmall : 640*ε*exp (3*stabilityConstant M*T) ≤ 1/2) |
| 182 | (t : Icc (0 : ℝ) T) : |
| 183 | tensorNorm 3 (U.difference V t) ≤ 640*ε*exp (3*stabilityConstant M*T) := by |
| 184 | have hMp := stabilityConstant_pos (wordBound_nonneg (hM ⟨0,le_rfl,hT⟩)) |
| 185 | have hb := quadratic_stability_within |
| 186 | (extendPath T hT (U.normEnvelope V ε)) |
| 187 | (fun r => U.envelopeDerivative V ε (projIcc 0 T hT r)) |
| 188 | (stabilityConstant M) (320*ε) T hMp (by positivity) hT |
| 189 | (by linarith [hsmall]) (extendPath_continuous T hT (U.normEnvelope V ε)).continuousOn |
| 190 | (by simpa only [extendPath,projIcc_of_mem hT ⟨le_rfl,hT⟩] using U.normEnvelope_initial V ε hε hinit) |
| 191 | (fun r hr => by |
| 192 | have h := U.normEnvelope_hasDerivWithinAt V ε hε ⟨r,hr.1,hr.2.le⟩ |
| 193 | simpa only [projIcc_of_mem hT ⟨hr.1,hr.2.le⟩] using h) |
| 194 | (fun r hr => by |
| 195 | simpa only [extendPath,projIcc_of_mem hT ⟨hr.1,hr.2.le⟩] using |
| 196 | U.envelopeDerivative_bound V M ε hM hε ⟨r,hr.1,hr.2.le⟩) |
| 197 | t t.property |
| 198 | apply (U.normEnvelope_majorizes V ε t).trans |
| 199 | have hb' : U.normEnvelope V ε t ≤ 2*(320*ε)*exp (3*stabilityConstant M*T) := by |
| 200 | simpa only [extendPath,projIcc_of_mem hT t.property] using hb |
| 201 | exact hb'.trans_eq (by ring) |
| 202 | |
| 203 | end Evolution |
| 204 | end EulerOrdinarySobolev |
| 205 | end |
| 206 | |
| 207 | end |
| 208 | |
| 209 | noncomputable section |
| 210 | |
| 211 | namespace EulerOrdinarySobolev.Evolution |
| 212 | |
| 213 | open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field |
| 214 | EulerMeanSobolevBoundedField EulerSmoothSobolev EulerVolterraConvolution Finset |
| 215 | open scoped ContDiff Topology BoundedContinuousFunction |
| 216 | |
| 217 | variable {T : ℝ} {hT : 0 ≤ T} |
| 218 | |
| 219 | def referenceNormPath (U : Evolution T hT) : C(Icc (0 : ℝ) T,ℝ) := |
| 220 | ⟨fun t => tensorNorm 4 (U.velocity t),by |
| 221 | apply continuous_finsetSum |
| 222 | intro n _ |
| 223 | exact (U.velocity_continuous n).norm⟩ |
| 224 | |
| 225 | def referenceSize (U : Evolution T hT) : ℝ := ‖U.referenceNormPath‖ |
| 226 | |
| 227 | theorem referenceSize_nonneg (U : Evolution T hT) : 0 ≤ U.referenceSize := norm_nonneg _ |
| 228 | |
| 229 | theorem referenceWordBound (U : Evolution T hT) (t : Icc (0 : ℝ) T) : |
| 230 | WordBound 4 U.referenceSize (U.velocity t) := by |
| 231 | have h := (U.referenceNormPath).norm_coe_le_norm t |
| 232 | change ‖tensorNorm 4 (U.velocity t)‖ ≤ U.referenceSize at h |
| 233 | rw [Real.norm_of_nonneg (tensorNorm_nonneg 4 (U.velocity t))] at h |
| 234 | intro n hn w |
| 235 | exact (wordBound_tensorNorm 4 (U.velocity t) n hn w).trans h |
| 236 | |
| 237 | theorem gradient_continuous (U : Evolution T hT) (x : Space) : |
| 238 | Continuous (fun t => fderiv ℝ (U.velocity t).field x) := by |
| 239 | have h := (BoundedContinuousFunction.evalCLM ℝ x : |
| 240 | (Space →ᵇ (Space →L[ℝ] Space)) →L[ℝ] (Space →L[ℝ] Space)).continuous.comp |
| 241 | (continuous_finiteField (fun t => (U.velocity t).derivative) |
| 242 | (continuous_jetLp_derivative U.velocity U.velocity_continuous)) |
| 243 | have he : (fun t => fderiv ℝ (U.velocity t).field x)= |
| 244 | fun t => (BoundedContinuousFunction.evalCLM ℝ x) |
| 245 | (finiteField ((U.velocity t).derivative)) := by |
| 246 | funext t |
| 247 | exact (finiteField_apply ((U.velocity t).derivative) x).symm |
| 248 | rw [he] |
| 249 | exact h |
| 250 | |
| 251 | theorem eventually_h3_bound (U : Evolution T hT) (V : ℕ → Evolution T hT) |
| 252 | (ε : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hlim : Tendsto ε atTop (𝓝 0)) |
| 253 | (hinit : ∀ n, tensorNorm 3 (U.difference (V n) ⟨0,le_rfl,hT⟩) ≤ ε n) : |
| 254 | ∀ᶠ n in atTop, ∀ t : Icc (0 : ℝ) T, |
| 255 | tensorNorm 3 (U.difference (V n) t) ≤ |
| 256 | 640*ε n*Real.exp (3*stabilityConstant U.referenceSize*T) := by |
| 257 | have hb : Tendsto (fun n => 640*ε n*Real.exp (3*stabilityConstant U.referenceSize*T)) |
| 258 | atTop (𝓝 0) := by |
| 259 | simpa only [mul_zero,zero_mul] using (hlim.const_mul 640).mul_const |
| 260 | (Real.exp (3*stabilityConstant U.referenceSize*T)) |
| 261 | have hs : ∀ᶠ n in atTop, 640*ε n*Real.exp (3*stabilityConstant U.referenceSize*T) ≤ 1/2 := |
| 262 | hb.eventually (eventually_le_nhds (by norm_num : (0 : ℝ) < 1/2)) |
| 263 | filter_upwards [hs] with n hn t |
| 264 | exact U.h3_stability (V n) U.referenceSize (ε n) U.referenceWordBound (hε n) (hinit n) hn t |
| 265 | |
| 266 | theorem sampled_h3_tendsto_zero (U : Evolution T hT) (V : ℕ → Evolution T hT) |
| 267 | (ε : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hlim : Tendsto ε atTop (𝓝 0)) |
| 268 | (hinit : ∀ n, tensorNorm 3 (U.difference (V n) ⟨0,le_rfl,hT⟩) ≤ ε n) |
| 269 | (times : ℕ → Icc (0 : ℝ) T) : |
| 270 | Tendsto (fun n => tensorNorm 3 (U.difference (V n) (times n))) atTop (𝓝 0) := by |
| 271 | apply squeeze_zero' (Eventually.of_forall (fun n => tensorNorm_nonneg 3 _)) |
| 272 | ((U.eventually_h3_bound V ε hε hlim hinit).mono (fun n hn => hn (times n))) |
| 273 | simpa only [mul_zero,zero_mul] using (hlim.const_mul 640).mul_const |
| 274 | (Real.exp (3*stabilityConstant U.referenceSize*T)) |
| 275 | |
| 276 | end EulerOrdinarySobolev.Evolution |