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/Angular): 1 file cheaper to elaborate (−1.3%, measured) #558
Merged
+2 −2 NavierStokes/AngularMomentReset.lean View file
| @@ -119,7 +119,7 @@ def linearMatrix (lam : ℝ) : Matrix (Fin 2) (Fin 2) ℝ := | ||
| 119 | 119 | theorem linearMatrix_det (lam : ℝ) : |
| 120 | 120 | (linearMatrix lam).det = 2 * moment (angularSlope lam) * moment (pressureSlope lam) * |
| 121 | 121 | (Real.exp (2 * pressureSlope lam) - Real.exp (2 * angularSlope lam)) := by |
| 122 | - simp [linearMatrix, Matrix.det_fin_two] | |
| 122 | + simp [linearMatrix] | |
| 123 | 123 | ring |
| 124 | 124 | |
| 125 | 125 | theorem linearMatrix_det_ne_zero (lam : ℝ) (hlam : 0 < lam) : |
| @@ -312,7 +312,7 @@ theorem relative_first_jet_bound : | ||
| 312 | 312 | _ ≤ ‖c‖ * D0 + ‖c‖ * D1 := add_le_add |
| 313 | 313 | (mul_le_mul hc0 (hb0 y) (abs_nonneg _) (norm_nonneg _)) |
| 314 | 314 | (mul_le_mul hc1 (hb1 y) (abs_nonneg _) (norm_nonneg _)) |
| 315 | - _ ≤ (2 + D0 + D1) * ‖c‖ := by nlinarith [norm_nonneg c] | |
| 315 | + _ ≤ (2 + D0 + D1) * ‖c‖ := by linarith [norm_nonneg c] | |
| 316 | 316 | |
| 317 | 317 | theorem positive_and_slope_of_small (lam : ℝ) (hlam : 0 < lam) (c : Coeff) (y : ℝ) |
| 318 | 318 | (h0 : |relative c y| ≤ 1 / 2) (h1 : |deriv (relative c) y| ≤ lam / 4) : |
+22 −0 routes/s2-ns-angular-1/README.md added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-angular-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11): make one fast-to-name, slow-to-elaborate file of the family | |
| 8 | +`NavierStokes/Angular*` cheaper, changing proofs only. | |
| 9 | + | |
| 10 | +The file is `NavierStokes/AngularMomentReset.lean` (4 lines changed, all inside proofs): the | |
| 11 | +explicit `Matrix.det_fin_two` in a `simp` list is dropped (it is already a `simp` lemma), and in one | |
| 12 | +`calc` step `nlinarith` becomes `linarith` (the `D0`/`D1` products cancel there, leaving `0 ≤ 2‖c‖`). | |
| 13 | +No statement, import or docstring changes, and no `maxHeartbeats`. | |
| 14 | + | |
| 15 | +Timing (from /work/unit/unit.json, not measured here): 28.04 G → 27.68 G instructions retired for | |
| 16 | +the file, −1.3%, counted with `lean -j1 -DElab.async=false` under `perf stat -e instructions:u` at | |
| 17 | +main `d956c7c` before and after. See the pull request description for the full method. | |
| 18 | + | |
| 19 | +## Next | |
| 20 | + | |
| 21 | +Done: the pull request is open. If it needs more, the next candidate is another file in the family; | |
| 22 | +the profile is flat, so nothing else in this file is known to be slow. | |