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/Diophantine): 1 file cheaper to elaborate (−7.3%, measured)
Browse filesIn NavierStokes/DiophantineGraph.lean three nlinarith calls become linarith: in conjugate_product and in the two have steps of frequencyL1_le_twice_length. Proofs only; no statement, import line, docstring or maxHeartbeats change. Part of #11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main maintainer-statement 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-correction-1 s2-ns-current-1 s2-ns-diophantine-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
+3 −3 NavierStokes/DiophantineGraph.lean View file
| @@ -40,7 +40,7 @@ theorem conjugate_product (p q : ℤ) : | ||
| 40 | 40 | quadraticForm p q * quadraticForm p (-q) = (integerNorm p q : ℝ) := by |
| 41 | 41 | simp only [quadraticForm, integerNorm, Int.cast_neg, Int.cast_sub, |
| 42 | 42 | Int.cast_pow, Int.cast_mul, Int.cast_ofNat] |
| 43 | - nlinarith [congrArg (fun x : ℝ => x * (q : ℝ) ^ 2) sqrt_two_square] | |
| 43 | + linarith [congrArg (fun x : ℝ => x * (q : ℝ) ^ 2) sqrt_two_square] | |
| 44 | 44 | |
| 45 | 45 | theorem integerNorm_ne_zero (p q : ℤ) (hpq : p ≠ 0 ∨ q ≠ 0) : |
| 46 | 46 | integerNorm p q ≠ 0 := by |
| @@ -151,11 +151,11 @@ theorem frequencyL1_le_twice_length (m n : ℤ) : | ||
| 151 | 151 | have hm : |(m : ℝ)| ≤ frequencyLength m n := by |
| 152 | 152 | apply (sq_le_sq₀ (abs_nonneg _) (frequencyLength_nonneg m n)).mp |
| 153 | 153 | rw [sq_abs, hs] |
| 154 | - nlinarith [sq_nonneg (n : ℝ)] | |
| 154 | + linarith [sq_nonneg (n : ℝ)] | |
| 155 | 155 | have hn : |(n : ℝ)| ≤ frequencyLength m n := by |
| 156 | 156 | apply (sq_le_sq₀ (abs_nonneg _) (frequencyLength_nonneg m n)).mp |
| 157 | 157 | rw [sq_abs, hs] |
| 158 | - nlinarith [sq_nonneg (m : ℝ)] | |
| 158 | + linarith [sq_nonneg (m : ℝ)] | |
| 159 | 159 | unfold frequencyL1 |
| 160 | 160 | linarith |
| 161 | 161 | |
+18 −0 routes/s2-ns-diophantine-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-diophantine-1 | |
| 6 | + | |
| 7 | +S-2, the family `NavierStokes/Diophantine*`: make `NavierStokes/DiophantineGraph.lean` cheaper to | |
| 8 | +elaborate without touching any statement. The change is inside proofs only: three `nlinarith` calls | |
| 9 | +become `linarith` (in `conjugate_product` and the two `have`s of `frequencyL1_le_twice_length`), | |
| 10 | +3 lines out and 3 in. No import line, docstring or `maxHeartbeats` changes. | |
| 11 | + | |
| 12 | +The numbers and how they were taken are in the pull request: before 10.00 G, after 9.27 G | |
| 13 | +instructions retired for this file alone (−7.3%), measured at main `d956c7c`; see PR.md. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Open the pull request into `main` and let `challenge` and `build` report on its head. If the | |
| 18 | +maintainer asks for more, only this file's proof is in scope. | |