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(NavierStokes/Reset): 1 file cheaper to elaborate (−15.1%, measured) #591
Merged
+7 −7 NavierStokes/ResetEnergyBounds.lean View file
| @@ -200,14 +200,14 @@ theorem resetDensity_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) {y : ℝ} | ||
| 200 | 200 | have hq : |(1 + r) ^ 2 - 1| ≤ 6 * (K * d.core.lam ^ (28 : ℕ)) := by |
| 201 | 201 | rw [show (1 + r) ^ 2 - 1 = r * (2 + r) by ring, abs_mul] |
| 202 | 202 | have h := mul_le_mul_of_nonneg_left h2 (abs_nonneg r) |
| 203 | - nlinarith | |
| 203 | + linarith | |
| 204 | 204 | have hS : d.core.endpoint ≤ y := |
| 205 | 205 | (flattenEnd_gt_core d).le.trans ((last_four_after_flatten d).le.trans hy.1) |
| 206 | 206 | have hE := energyDensity_prefix_le d eta heta hS hy.2 |
| 207 | 207 | rw [resetDensity_eq, abs_mul, abs_of_pos (energyDensity_pos d eta y)] |
| 208 | 208 | change energyDensity d eta y * |(1 + r) ^ 2 - 1| ≤ _ |
| 209 | 209 | have h := mul_le_mul hE hq (abs_nonneg _) (energyDensity_pos d eta d.core.endpoint).le |
| 210 | - nlinarith | |
| 210 | + linarith | |
| 211 | 211 | |
| 212 | 212 | theorem resetDensityEta_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) {y : ℝ} |
| 213 | 213 | (hy : y ∈ Icc (d.releaseStart - 4) d.releaseStart) : |
| @@ -224,16 +224,16 @@ theorem resetDensityEta_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) {y : ℝ} | ||
| 224 | 224 | have hq : |2 * (1 + r) * r'| ≤ 6 * (K * d.core.lam ^ (28 : ℕ)) := by |
| 225 | 225 | rw [abs_mul, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] |
| 226 | 226 | have h := mul_le_mul_of_nonneg_right h1 (abs_nonneg r') |
| 227 | - nlinarith | |
| 227 | + linarith | |
| 228 | 228 | have hS : d.core.endpoint ≤ y := |
| 229 | 229 | (flattenEnd_gt_core d).le.trans ((last_four_after_flatten d).le.trans hy.1) |
| 230 | 230 | have hE := energyDensity_prefix_le d eta heta hS hy.2 |
| 231 | 231 | have hid : resetDensityEta d w.coefficients eta y = energyDensity d eta y * (2 * (1 + r) * r') := by |
| 232 | - dsimp [resetDensityEta, energyDensity, r, r'] | |
| 232 | + dsimp [resetDensityEta, energyDensity, r] | |
| 233 | 233 | rw [original_matches_reference d eta hy] |
| 234 | 234 | rw [hid, abs_mul, abs_of_pos (energyDensity_pos d eta y)] |
| 235 | 235 | have h := mul_le_mul hE hq (abs_nonneg _) (energyDensity_pos d eta d.core.endpoint).le |
| 236 | - nlinarith | |
| 236 | + linarith | |
| 237 | 237 | |
| 238 | 238 | theorem resetEnergy_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) : |
| 239 | 239 | |resetEnergy d w.coefficients eta| ≤ |
| @@ -247,7 +247,7 @@ theorem resetEnergy_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) : | ||
| 247 | 247 | simpa only [Real.norm_eq_abs] using resetDensity_abs_le w eta heta ⟨hy'.1.le, hy'.2⟩) |
| 248 | 248 | rw [Real.norm_eq_abs, show d.releaseStart - (d.releaseStart - 4) = 4 by ring] at h |
| 249 | 249 | norm_num at h |
| 250 | - nlinarith | |
| 250 | + linarith | |
| 251 | 251 | |
| 252 | 252 | theorem resetEnergy_deriv_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) : |
| 253 | 253 | |deriv (resetEnergy d w.coefficients) eta| ≤ |
| @@ -261,7 +261,7 @@ theorem resetEnergy_deriv_abs_le (eta : ℝ) (heta : eta ^ 2 ≤ 1) : | ||
| 261 | 261 | simpa only [Real.norm_eq_abs] using resetDensityEta_abs_le w eta heta ⟨hy'.1.le, hy'.2⟩) |
| 262 | 262 | rw [Real.norm_eq_abs, show d.releaseStart - (d.releaseStart - 4) = 4 by ring] at h |
| 263 | 263 | norm_num at h |
| 264 | - nlinarith | |
| 264 | + linarith | |
| 265 | 265 | |
| 266 | 266 | end Bounds |
| 267 | 267 | |
+15 −0 routes/s2-ns-reset-1/README.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-reset-1 | |
| 6 | + | |
| 7 | +S-2, the family `NavierStokes/Reset*`: one file, `NavierStokes/ResetEnergyBounds.lean`, made | |
| 8 | +cheaper to elaborate with proof-only edits (7 lines out, 7 in: six `nlinarith` calls become | |
| 9 | +`linarith`, and one `dsimp` argument list loses the entry that does not change the goal). No | |
| 10 | +statement, import line or docstring changes, and there is no `maxHeartbeats`. The file's measured | |
| 11 | +cost alone is 20.71 G → 17.58 G instructions retired (−15.1%), as the pull request says. | |
| 12 | + | |
| 13 | +## Next | |
| 14 | + | |
| 15 | +Open the pull request into `main`; `build` is the remaining gate (not waited on here). | |