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

perf(Euler/Finite): 3 files cheaper to elaborate (−10.1%, measured) #644
Open
+6 −7 Euler/FiniteEnergyTruncation.lean View file
| @@ -151,8 +151,7 @@ theorem radialAverage_radial_identity | ||
| 151 | 151 | have hd2 : Continuous (fun t : ℝ => t ^ 2 • fderiv ℝ u (t • x) x) := by |
| 152 | 152 | simpa only [smul_apply] using hd |
| 153 | 153 | have hcont : Continuous (fun t : ℝ => |
| 154 | - (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) := by | |
| 155 | - exact hv2.add hd2 | |
| 154 | + (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) := hv2.add hd2 | |
| 156 | 155 | have ht : (∫ t in (0 : ℝ)..1, |
| 157 | 156 | (2 * t) • u (t • x) + t ^ 2 • fderiv ℝ u (t • x) x) = |
| 158 | 157 | (1 : ℝ) ^ 2 • u ((1 : ℝ) • x) - (0 : ℝ) ^ 2 • u ((0 : ℝ) • x) := |
| @@ -249,7 +248,7 @@ theorem norm_radialPotential_le (u : Space → Space) (i : Fin 3) (x : Space) : | ||
| 249 | 248 | (norm_nonneg _) (norm_nonneg _) |
| 250 | 249 | exact (norm_sub_le _ _).trans (by |
| 251 | 250 | dsimp only [radialPotential, negativeCrossPotential] |
| 252 | - nlinarith [hprod (i + 2) (i + 1), hprod (i + 1) (i + 2)]) | |
| 251 | + linarith [hprod (i + 2) (i + 1), hprod (i + 1) (i + 2)]) | |
| 253 | 252 | |
| 254 | 253 | /-- Cutting off the potential introduces only a zeroth-order error in the |
| 255 | 254 | radial average, with no derivative of the original velocity in the bound. -/ |
| @@ -282,7 +281,7 @@ theorem potentialTruncation_error_bound | ||
| 282 | 281 | intro i _ |
| 283 | 282 | rw [he] |
| 284 | 283 | exact (norm_sub_le _ _).trans (by |
| 285 | - nlinarith [hp (i + 1) (i + 2), hp (i + 2) (i + 1)]) | |
| 284 | + linarith [hp (i + 1) (i + 2), hp (i + 2) (i + 1)]) | |
| 286 | 285 | _ = _ := by simp; ring |
| 287 | 286 | |
| 288 | 287 | theorem potentialTruncation_norm_bound |
| @@ -297,7 +296,7 @@ theorem potentialTruncation_norm_bound | ||
| 297 | 296 | exact (mul_le_mul_of_nonneg_right (hχbound x) (norm_nonneg _)).trans_eq (one_mul _) |
| 298 | 297 | have hsplit := norm_le_norm_sub_add (potentialTruncation u χ x) (χ x • u x) |
| 299 | 298 | have hscale := mul_le_mul_of_nonneg_right (hderiv x) (norm_nonneg (radialAverage u x)) |
| 300 | - nlinarith | |
| 299 | + linarith | |
| 301 | 300 | |
| 302 | 301 | /-- A cutoff controlled in the scale-invariant derivative norm gives a |
| 303 | 302 | uniform finite-energy truncation. The numerical constant is inessential. -/ |
| @@ -326,7 +325,7 @@ theorem potentialTruncation_energy_bound | ||
| 326 | 325 | 2 * ‖u x‖ ^ 2 + 288 * C ^ 2 * ‖radialAverage u x‖ ^ 2 := by |
| 327 | 326 | have hh := pow_le_pow_left₀ (norm_nonneg _) (potentialTruncation_norm_bound |
| 328 | 327 | u hu hdiv χ hχ C hχbound hderiv x) 2 |
| 329 | - nlinarith [sq_nonneg (‖u x‖ - 12 * C * ‖radialAverage u x‖)] | |
| 328 | + linarith [sq_nonneg (‖u x‖ - 12 * C * ‖radialAverage u x‖)] | |
| 330 | 329 | refine ⟨hw, ?_⟩ |
| 331 | 330 | calc |
| 332 | 331 | (∫ x : Space, ‖potentialTruncation u χ x‖ ^ 2) ≤ |
| @@ -337,7 +336,7 @@ theorem potentialTruncation_energy_bound | ||
| 337 | 336 | rw [integral_add (hui.const_mul 2) (hBi.const_mul (288 * C ^ 2)), |
| 338 | 337 | integral_const_mul, integral_const_mul] |
| 339 | 338 | _ ≤ (2 + 1152 * C ^ 2) * (∫ x : Space, ‖u x‖ ^ 2) := by |
| 340 | - nlinarith [mul_le_mul_of_nonneg_left hBE (by positivity : 0 ≤ 288 * C ^ 2)] | |
| 339 | + linarith [mul_le_mul_of_nonneg_left hBE (by positivity : 0 ≤ 288 * C ^ 2)] | |
| 341 | 340 | |
| 342 | 341 | /-- A fixed bump is dilated, so its weighted derivative bound is independent |
| 343 | 342 | of the truncation radius. -/ |
+1 −1 Euler/FiniteGradeAssembly.lean View file
| @@ -46,7 +46,7 @@ theorem evaluate_assemble_from_one (M : ℕ) (κ : ℝ) (u c : ℕ → V) | ||
| 46 | 46 | smul_sum, ← sum_add_distrib] |
| 47 | 47 | apply sum_congr rfl |
| 48 | 48 | intro i _ |
| 49 | - simp only [smul_smul, show i+2=(i+1)+1 by omega, pow_succ'] | |
| 49 | + simp only [smul_smul, pow_succ'] | |
| 50 | 50 | |
| 51 | 51 | omit [Module ℝ V] in |
| 52 | 52 | theorem assemble_zero (M : ℕ) (u c : ℕ → V) (hu : u 0=0) : |
+3 −3 Euler/FiniteMetricEnergy.lean View file
| @@ -105,13 +105,13 @@ theorem family_energy_derivative_bound (K K' : H →L[ℝ] H) | ||
| 105 | 105 | have hb := energy_derivative_bound K K' (e i) (transport i) (forcing i) B hB (ht i) |
| 106 | 106 | have hh := mul_le_mul_of_nonneg_left (hheat i) (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hν) |
| 107 | 107 | rw [inner_add_right, real_inner_smul_right] |
| 108 | - nlinarith | |
| 108 | + linarith | |
| 109 | 109 | have hs := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset ι)) => hcomp i) |
| 110 | 110 | simp only [Finset.sum_add_distrib, ← Finset.mul_sum] at hs |
| 111 | 111 | have hcs := mul_le_mul_of_nonneg_left (family_cauchy_schwarz e forcing) |
| 112 | 112 | (show 0 ≤ 2 * ‖K‖ by positivity) |
| 113 | 113 | change _ ≤ _ * familySquaredNorm e + _ at hs |
| 114 | - exact hs.trans (by dsimp [familySquaredNorm]; nlinarith) | |
| 114 | + exact hs.trans (by dsimp [familySquaredNorm]; linarith) | |
| 115 | 115 | |
| 116 | 116 | /-- Regularized root energy for a finite family, with constants independent of its cardinality. -/ |
| 117 | 117 | theorem family_regularized_energy_evolution (K : ℝ → H →L[ℝ] H) (e : ι → ℝ → H) |
| @@ -158,7 +158,7 @@ theorem family_regularized_energy_evolution (K : ℝ → H →L[ℝ] H) (e : ι | ||
| 158 | 158 | _ ≤ (‖K'‖ + 2 * B + 2 * ν * C) * familySquaredNorm v + |
| 159 | 159 | 2 * ‖K t‖ * familyNorm v * familyNorm forcing := hb |
| 160 | 160 | _ ≤ (‖K'‖ + 2 * B + 2 * ν * C) * (E ^ 2 / c ^ 2) + |
| 161 | - 2 * ‖K t‖ * (E / c) * familyNorm forcing := by nlinarith | |
| 161 | + 2 * ‖K t‖ * (E / c) * familyNorm forcing := by linarith | |
| 162 | 162 | _ = _ := by dsimp [E, v]; field_simp |
| 163 | 163 | |
| 164 | 164 | end EulerFiniteMetricEnergy |
+17 −0 routes/s2-euler-finite-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-finite-1 | |
| 6 | + | |
| 7 | +Unit of S-2: the family `Euler/Finite*`, three files — `Euler/FiniteEnergyTruncation.lean`, | |
| 8 | +`Euler/FiniteGradeAssembly.lean`, `Euler/FiniteMetricEnergy.lean`. Takes Treant's `speedup_trials` edits | |
| 9 | +(TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03) onto main and counts them again there. The edits are inside | |
| 10 | +proofs only: `nlinarith` becomes `linarith` where linear reasoning suffices, a `by exact` becomes a term, and one | |
| 11 | +`simp only` list loses a lemma that does not contribute. No statement, import or docstring changes, and no | |
| 12 | +`maxHeartbeats`. Measured at `df2f18f`: these three files go from 73.74 G to 66.32 G instructions retired | |
| 13 | +(−10.1%); per-file numbers are in the pull request. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Push, open the pull request against `main`, and let the `build` check decide; close #11 when it is merged or closed. | |