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 #594 from s2-ns-shape-1
Browse filesperf(NavierStokes/Shape): 1 file cheaper to elaborate (−28.7%, measured)
main maintainer-statement 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 s5-ns-generic-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+8 −8 NavierStokes/ShapeTransition.lean View file
| @@ -147,7 +147,7 @@ theorem logarithmicSlope_bounds {T K B : ℝ} {li : ℝ → ℝ} | ||
| 147 | 147 | hData (abs_nonneg _) (div_nonneg hK hT.le) |
| 148 | 148 | _ ≤ 1 / 20 := by |
| 149 | 149 | rw [div_mul_eq_mul_div] |
| 150 | - exact (div_le_iff₀ hT).mpr (by nlinarith) | |
| 150 | + exact (div_le_iff₀ hT).mpr (by linarith) | |
| 151 | 151 | have hab := abs_le.mp hb |
| 152 | 152 | dsimp [logarithmicSlope] |
| 153 | 153 | constructor <;> linarith |
| @@ -303,7 +303,7 @@ theorem separation_tendsto (T : ℝ) {P : ℝ} (_ : P ≠ 0) : | ||
| 303 | 303 | have h := (tendsto_inv_atTop_zero : Tendsto (fun C : ℝ => C⁻¹) atTop (𝓝 0)).pow 10 |
| 304 | 304 | have hh := h.const_mul (Real.exp T * (P⁻¹) ^ 10) |
| 305 | 305 | simpa [separation, div_eq_mul_inv, inv_pow, mul_inv_rev, mul_pow, zero_pow, |
| 306 | - mul_zero, mul_assoc, mul_left_comm, mul_comm] using hh | |
| 306 | + mul_zero, mul_assoc, mul_left_comm] using hh | |
| 307 | 307 | |
| 308 | 308 | theorem separation_eventually_before (T : ℝ) {P : ℝ} (hP : 0 < P) (clock : ℝ) : |
| 309 | 309 | ∀ᶠ C : ℝ in atTop, separation T C P < Real.exp clock := |
| @@ -446,7 +446,7 @@ theorem shapeField_jet_bound {Xi C T X B K : ℝ} (hXi : 0 < Xi) (hC : 0 < C) | ||
| 446 | 446 | · have hXpos : 0 < X := hXi.trans (lt_of_not_ge hXXi) |
| 447 | 447 | have hy : Real.log (X / Xi) ≤ T := |
| 448 | 448 | (Real.log_le_iff_le_exp (div_pos hXpos hXi)).mpr |
| 449 | - ((div_le_iff₀ hXi).mpr (by nlinarith)) | |
| 449 | + ((div_le_iff₀ hXi).mpr (by linarith)) | |
| 450 | 450 | have he : (fun e => shapeField Xi T li old (X, e)) = |
| 451 | 451 | fun e => (Real.sqrt (2 * X))⁻¹ * angular C T li (Real.log (X / Xi), e) := by |
| 452 | 452 | funext e |
| @@ -722,7 +722,7 @@ theorem prefixJetSize_bound {R r L B K C : ℝ} (hR : 0 ≤ R) (hr : 0 ≤ r) (h | ||
| 722 | 722 | have hKC : 0 ≤ K / C := div_nonneg hK hCpos.le |
| 723 | 723 | have hKCle : K / C ≤ K := div_le_self hK hC |
| 724 | 724 | have hroot : Real.sqrt R ≤ R + 1 := by |
| 725 | - nlinarith [Real.sqrt_nonneg R, Real.sq_sqrt hR, sq_nonneg (Real.sqrt R - 1)] | |
| 725 | + linarith [Real.sqrt_nonneg R, Real.sq_sqrt hR, sq_nonneg (Real.sqrt R - 1)] | |
| 726 | 726 | have hrr : Real.sqrt R * r ≤ L + 1 := calc |
| 727 | 727 | _ ≤ (R + 1) * r := mul_le_mul_of_nonneg_right hroot hr |
| 728 | 728 | _ = L + r := by rw [add_mul, hRL, one_mul] |
| @@ -751,7 +751,7 @@ theorem prefixJetSize_bound {R r L B K C : ℝ} (hR : 0 ≤ R) (hr : 0 ≤ r) (h | ||
| 751 | 751 | rw [← hRL, div_pow] |
| 752 | 752 | ring |
| 753 | 753 | dsimp [prefixJetSize, prefixCoefficient] |
| 754 | - nlinarith | |
| 754 | + linarith | |
| 755 | 755 | |
| 756 | 756 | theorem prefix_bound_tendsto (n : ℕ) (B K L T P : ℝ) : |
| 757 | 757 | Tendsto (fun C : ℝ => prefixCoefficient n B K L * separation T C P + |
| @@ -920,7 +920,7 @@ theorem idealPrefixJetSize_bound {r B K : ℝ} (hr : 0 ≤ r) (hr1 : r ≤ 1) | ||
| 920 | 920 | rw [abs_mul, abs_mul, abs_of_nonneg hr] |
| 921 | 921 | have hleft := mul_le_mul_of_nonneg_left hGG hr |
| 922 | 922 | have hright := mul_le_mul (idealWeightS_bound hr hr1) hAA (abs_nonneg _) (by positivity) |
| 923 | - nlinarith | |
| 923 | + linarith | |
| 924 | 924 | have hp : |iteratedDeriv n (idealP A r) eta| ≤ |
| 925 | 925 | (5 / 2) * (2 ^ n * K ^ 2) * r ^ (1 / 5 : ℝ) := by |
| 926 | 926 | change |iteratedDeriv n (fun e => idealWeightP r * A e ^ 2) eta| ≤ _ |
| @@ -929,7 +929,7 @@ theorem idealPrefixJetSize_bound {r B K : ℝ} (hr : 0 ≤ r) (hr1 : r ≤ 1) | ||
| 929 | 929 | convert! mul_le_mul_of_nonneg_left hAA |
| 930 | 930 | (show 0 ≤ (5 / 2 : ℝ) * r ^ (1 / 5 : ℝ) by positivity) using 1 ; ring |
| 931 | 931 | dsimp [idealPrefixJetSize, idealPrefixCoefficient] |
| 932 | - nlinarith | |
| 932 | + linarith | |
| 933 | 933 | |
| 934 | 934 | theorem separation_fifth_tendsto (T : ℝ) {P : ℝ} (hP : P ≠ 0) : |
| 935 | 935 | Tendsto (fun C : ℝ => separation T C P ^ (1 / 5 : ℝ)) atTop (𝓝 0) := by |
| @@ -1094,7 +1094,7 @@ theorem restoreJetSize_bound {a b B K delta : ℝ} (ha : 0 < a) (hab : a ≤ b) | ||
| 1094 | 1094 | have hj' := hj.trans (mul_le_of_le_one_right (by positivity) hlen1) |
| 1095 | 1095 | have hs' := hs.trans (mul_le_of_le_one_right (by positivity) hlen1) |
| 1096 | 1096 | dsimp [restoreJetSize] |
| 1097 | - nlinarith | |
| 1097 | + linarith | |
| 1098 | 1098 | |
| 1099 | 1099 | /-! ## Subtracting the ideal rows and including restoration -/ |
| 1100 | 1100 | |
+17 −0 routes/s2-ns-shape-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-shape-1 | |
| 6 | + | |
| 7 | +The family `NavierStokes/Shape*`, one unit: `NavierStokes/ShapeTransition.lean`. | |
| 8 | +Edits inside proofs only (8 lines out, 8 in): `nlinarith` becomes `linarith` where the | |
| 9 | +goal is linear, and one `simpa` set drops a `mul_comm` it does not use. No statement, | |
| 10 | +no import line, no docstring, and no `maxHeartbeats` changes. Measured at `d956c7c` | |
| 11 | +(Treant's `speedup_trials`, 2026-12-03): 74.48 G to 53.08 G instructions retired, | |
| 12 | +−28.7%; the count and how it was taken are in the pull request. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Push, open the pull request into `main`, let `challenge` and `build` report, then | |
| 17 | +answer the maintainer's review. | |