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

Merge pull request #554 from s2-euler-terminal-1
Browse filesperf(Euler/Terminal): 2 files cheaper to elaborate (−2.1%, measured)
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-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
+4 −4 Euler/TerminalLayerRamp.lean View file
| @@ -28,7 +28,7 @@ theorem denominator_lower {T L : ℝ} (hLT : 1 ≤ L * T) : | ||
| 28 | 28 | rw [← Real.exp_add] |
| 29 | 29 | rw [show L * T + -L * T = 0 by ring, Real.exp_zero] |
| 30 | 30 | have hm := mul_le_mul_of_nonneg_right he (Real.exp_nonneg (-L * T)) |
| 31 | - nlinarith only [hp, hm] | |
| 31 | + linarith only [hp, hm] | |
| 32 | 32 | |
| 33 | 33 | theorem denominator_pos {T L : ℝ} (hLT : 1 ≤ L * T) : |
| 34 | 34 | 0 < 1 - Real.exp (-L * T) := lt_of_lt_of_le (by norm_num) (denominator_lower hLT) |
| @@ -59,14 +59,14 @@ theorem ramp_nonneg {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) | ||
| 59 | 59 | (ht : 0 ≤ t) : 0 ≤ ramp T L t := by |
| 60 | 60 | apply div_nonneg _ (denominator_pos hLT).le |
| 61 | 61 | apply sub_nonneg.mpr (Real.exp_le_exp.mpr _) |
| 62 | - nlinarith only [mul_nonneg hL ht] | |
| 62 | + linarith only [mul_nonneg hL ht] | |
| 63 | 63 | |
| 64 | 64 | theorem ramp_le_exp {T L t : ℝ} (hLT : 1 ≤ L * T) : |
| 65 | 65 | ramp T L t ≤ 2 * Real.exp (L * (t - T)) := by |
| 66 | 66 | apply (div_le_iff₀ (denominator_pos hLT)).2 |
| 67 | 67 | have hm := mul_le_mul_of_nonneg_right (denominator_lower hLT) |
| 68 | 68 | (Real.exp_nonneg (L * (t - T))) |
| 69 | - nlinarith only [hm, Real.exp_nonneg (-L * T)] | |
| 69 | + linarith only [hm, Real.exp_nonneg (-L * T)] | |
| 70 | 70 | |
| 71 | 71 | theorem rampDerivative_nonneg {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) : |
| 72 | 72 | 0 ≤ rampDerivative T L t := |
| @@ -77,7 +77,7 @@ theorem rampDerivative_le_exp {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) : | ||
| 77 | 77 | apply (div_le_iff₀ (denominator_pos hLT)).2 |
| 78 | 78 | have hm := mul_le_mul_of_nonneg_right (denominator_lower hLT) |
| 79 | 79 | (mul_nonneg hL (Real.exp_nonneg (L * (t - T)))) |
| 80 | - nlinarith only [hm] | |
| 80 | + linarith only [hm] | |
| 81 | 81 | |
| 82 | 82 | theorem ramp_sq_le {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) (ht : 0 ≤ t) : |
| 83 | 83 | ramp T L t ^ 2 ≤ 4 * Real.exp (2 * L * (t - T)) := by |
+1 −1 Euler/TerminalProjectionTrial.lean View file
| @@ -141,7 +141,7 @@ theorem initialPrimitiveTimeLp_trialDerivative (Y : U) : | ||
| 141 | 141 | omit [CompleteSpace E] [InnerProductSpace ℝ E] in |
| 142 | 142 | theorem norm_add_sq_le (a b : E) : ‖a + b‖ ^ 2 ≤ 2 * ‖a‖ ^ 2 + 2 * ‖b‖ ^ 2 := by |
| 143 | 143 | have hs := pow_le_pow_left₀ (norm_nonneg (a + b)) (norm_add_le a b) 2 |
| 144 | - nlinarith only [hs, sq_nonneg (‖a‖ - ‖b‖)] | |
| 144 | + linarith only [hs, sq_nonneg (‖a‖ - ‖b‖)] | |
| 145 | 145 | |
| 146 | 146 | omit [CompleteSpace E] in |
| 147 | 147 | theorem trialFrameDerivative_apply_sq_le (M : ℝ) (_hM : 0 ≤ M) |
+18 −0 routes/s2-euler-terminal-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-terminal-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Terminal*` family: `Euler/TerminalLayerRamp.lean` and | |
| 8 | +`Euler/TerminalProjectionTrial.lean`. In five places inside proofs, `nlinarith` becomes | |
| 9 | +`linarith`; nothing else changes — no statement, import, docstring or `maxHeartbeats`. The edits | |
| 10 | +are Treant's `speedup_trials` edits from upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, | |
| 11 | +run of 2026-12-03), carried onto main `d956c7c` and counted there. `docs/build-profile.md` holds | |
| 12 | +S-2's list of the ten costliest files. | |
| 13 | + | |
| 14 | +The measured cost, and how it was counted, is in the pull request's description. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push, let the `challenge` and `build` checks run, and reply to the maintainer's review. | |