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/Cone): 1 file cheaper to elaborate (−23.3%, measured)
Browse filesEdits inside proofs of NavierStokes/ConeAlgebra.lean only: nlinarith steps a plain linarith closes, and a by exact folded into the following term. No statement, import or docstring change; no maxHeartbeats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s1-ns-weighted-10 s1-ns-weighted-12 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-cone-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+6 −7 NavierStokes/ConeAlgebra.lean View file
| @@ -21,12 +21,11 @@ noncomputable def coneBound (P J : ℝ) : ℝ := | ||
| 21 | 21 | noncomputable def rootTerm (P J : ℝ) : ℝ := |
| 22 | 22 | |J| * Real.sqrt ((P - 2) / 2 + J ^ 2 / 16) |
| 23 | 23 | |
| 24 | -theorem rootTerm_nonneg (P J : ℝ) : 0 ≤ rootTerm P J := by | |
| 25 | - exact mul_nonneg (abs_nonneg _) (Real.sqrt_nonneg _) | |
| 24 | +theorem rootTerm_nonneg (P J : ℝ) : 0 ≤ rootTerm P J := mul_nonneg (abs_nonneg _) (Real.sqrt_nonneg _) | |
| 26 | 25 | |
| 27 | 26 | theorem rootTerm_sq {P J : ℝ} (hP : 2 < P) : |
| 28 | 27 | rootTerm P J ^ 2 = J ^ 2 * ((P - 2) / 2 + J ^ 2 / 16) := by |
| 29 | - have hrad : 0 ≤ (P - 2) / 2 + J ^ 2 / 16 := by nlinarith [sq_nonneg J] | |
| 28 | + have hrad : 0 ≤ (P - 2) / 2 + J ^ 2 / 16 := by linarith [sq_nonneg J] | |
| 30 | 29 | unfold rootTerm |
| 31 | 30 | rw [mul_pow, sq_abs, Real.sq_sqrt hrad] |
| 32 | 31 | |
| @@ -76,14 +75,14 @@ theorem true_cone_iff {P J v : ℝ} (hv : 2 < v) : | ||
| 76 | 75 | linarith |
| 77 | 76 | have hdiff := mul_pos (sub_pos.mpr hlt) |
| 78 | 77 | (show 0 < P + J ^ 2 / 4 - v + rootTerm P J by linarith) |
| 79 | - nlinarith | |
| 78 | + linarith | |
| 80 | 79 | · rintro ⟨hvP, hquad⟩ |
| 81 | 80 | have hP : 2 < P := lt_trans hv hvP |
| 82 | 81 | refine ⟨hP, ?_⟩ |
| 83 | 82 | have hsq := rootTerm_sq (J := J) hP |
| 84 | 83 | have hr := rootTerm_nonneg P J |
| 85 | 84 | have hid := square_difference P J v |
| 86 | - have hpos : 0 < P + J ^ 2 / 4 - v := by nlinarith [sq_nonneg J] | |
| 85 | + have hpos : 0 < P + J ^ 2 / 4 - v := by linarith [sq_nonneg J] | |
| 87 | 86 | have hlt : rootTerm P J < P + J ^ 2 / 4 - v := by nlinarith |
| 88 | 87 | change v < P + J ^ 2 / 4 - rootTerm P J |
| 89 | 88 | linarith |
| @@ -105,7 +104,7 @@ theorem normalized_test_negative {a b w : ℝ} (ha : 0 < a) | ||
| 105 | 104 | (a * (1 + (b / a) ^ 2) - 2) * (w + b / a) ^ 2 - |
| 106 | 105 | 2 * (1 - b * w / a) ^ 2 < 0 := by |
| 107 | 106 | rw [normalized_factorization a b w (ne_of_gt ha)] |
| 108 | - exact mul_neg_of_pos_of_neg (by nlinarith [sq_nonneg (b / a)]) (by linarith) | |
| 107 | + exact mul_neg_of_pos_of_neg (by linarith [sq_nonneg (b / a)]) (by linarith) | |
| 109 | 108 | |
| 110 | 109 | /-- An explicit finite-amplitude sufficient condition, prior to taking any limit. -/ |
| 111 | 110 | theorem finite_amplitude_cone {c j v p : ℝ} (hp : 0 < p) |
| @@ -119,7 +118,7 @@ theorem finite_amplitude_cone {c j v p : ℝ} (hp : 0 < p) | ||
| 119 | 118 | have hid : 2 * (p * c - v) ^ 2 - (v - 2) * (p * j) ^ 2 = |
| 120 | 119 | p * (p * (2 * c ^ 2 - (v - 2) * j ^ 2) - 4 * c * v) + 2 * v ^ 2 := by |
| 121 | 120 | ring |
| 122 | - nlinarith [sq_nonneg v] | |
| 121 | + linarith [sq_nonneg v] | |
| 123 | 122 | · exact relaxed_cone_of_le_two hP (le_of_not_gt hv) |
| 124 | 123 | |
| 125 | 124 | /-- For fixed normalized parameters, a positive leading coefficient and strict |
+24 −0 routes/s2-ns-cone-1/README.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-cone-1 | |
| 6 | + | |
| 7 | +S-2, one unit: the family `NavierStokes/Cone*`, and one file of it, | |
| 8 | +`NavierStokes/ConeAlgebra.lean`, made cheaper to elaborate by edits inside proofs | |
| 9 | +only — `nlinarith` steps that a plain `linarith` closes, and a `by exact` folded | |
| 10 | +into the term that follows. No statement, import line or docstring changes, and no | |
| 11 | +`maxHeartbeats`. | |
| 12 | + | |
| 13 | +The numbers and how they were taken: per file, instructions retired in user space by | |
| 14 | +`lean` elaborating that file alone (`lean -j1 -DElab.async=false` under | |
| 15 | +`perf stat -e instructions:u`), main at `d956c7c` before and the same tree with the | |
| 16 | +edits after, one machine, one run after the other. | |
| 17 | +`ConeAlgebra.lean`: 24.40 G → 18.73 G (−23.3%). The edits are Treant's | |
| 18 | +`speedup_trials` run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, at upstream | |
| 19 | +`f9e8bc5`), carried onto main at `d956c7c`. | |
| 20 | + | |
| 21 | +## Next | |
| 22 | + | |
| 23 | +The pull request into `main` is open; `build` on its head is still to report. Nothing | |
| 24 | +else is in this unit. Whoever continues: a second file of the family, as its own unit. | |