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/Moment): 1 file cheaper to elaborate (−21.3%, measured) #634
Merged
+3 −3 NavierStokes/MomentRepair.lean View file
| @@ -121,7 +121,7 @@ theorem correctionIteration_norm_le | ||
| 121 | 121 | _ ≤ β * (‖d‖ + ‖Q c‖) := mul_le_mul_of_nonneg_left (norm_sub_le _ _) hβ |
| 122 | 122 | _ ≤ β * (‖d‖ + K * r ^ 2) := |
| 123 | 123 | mul_le_mul_of_nonneg_left (add_le_add_right hQc _) hβ |
| 124 | - _ ≤ r := by nlinarith | |
| 124 | + _ ≤ r := by linarith | |
| 125 | 125 | |
| 126 | 126 | /-- On the correction ball the iteration has Lipschitz constant at most `1/2`. -/ |
| 127 | 127 | theorem correctionIteration_sub_le |
| @@ -135,7 +135,7 @@ theorem correctionIteration_sub_le | ||
| 135 | 135 | ‖correctionIteration B Q d x - correctionIteration B Q d y‖ ≤ |
| 136 | 136 | (1 / 2 : ℝ) * ‖x - y‖ := by |
| 137 | 137 | have hsum : ‖x‖ + ‖y‖ ≤ 2 * r := by linarith |
| 138 | - have hcoef : β * (K * (2 * r)) ≤ (1 / 2 : ℝ) := by nlinarith [hsmall] | |
| 138 | + have hcoef : β * (K * (2 * r)) ≤ (1 / 2 : ℝ) := by linarith [hsmall] | |
| 139 | 139 | calc |
| 140 | 140 | ‖correctionIteration B Q d x - correctionIteration B Q d y‖ = |
| 141 | 141 | ‖B.symm ((d - Q x) - (d - Q y))‖ := by rw [map_sub]; rfl |
| @@ -203,7 +203,7 @@ theorem exists_unique_small_correction [CompleteSpace E] | ||
| 203 | 203 | have hdist := correctionIteration_sub_le B Q d β K r hβ hK hB hQdiff hsmall y c hy.1 hc |
| 204 | 204 | change correctionIteration B Q d c = c at hfix |
| 205 | 205 | rw [hyfix, hfix] at hdist |
| 206 | - have hnorm : ‖y - c‖ = 0 := by nlinarith [norm_nonneg (y - c)] | |
| 206 | + have hnorm : ‖y - c‖ = 0 := by linarith [norm_nonneg (y - c)] | |
| 207 | 207 | exact sub_eq_zero.mp (norm_eq_zero.mp hnorm) |
| 208 | 208 | |
| 209 | 209 | end NonlinearRepair |
+16 −0 routes/s2-ns-moment-1/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-moment-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make one slow file cheaper to elaborate. In `NavierStokes/MomentRepair.lean`, | |
| 8 | +three `nlinarith` calls inside existing proofs become `linarith` (3 lines out, 3 in). No statement, | |
| 9 | +no import line and no docstring changes, and there is no `maxHeartbeats`. The file's elaboration cost | |
| 10 | +went from 12.52 G to 9.85 G instructions retired (−21.3%), counted as the pull request says. | |
| 11 | + | |
| 12 | +## Next | |
| 13 | + | |
| 14 | +The pull request is open into `main`; `build` is the check that reports whether it compiles, so this | |
| 15 | +claim waits on that verdict, not on another edit here. If it is taken in, the next S-2 unit takes the | |
| 16 | +next file of the family. | |