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/Pressure): 1 file cheaper to elaborate (−5.2%, measured) #645
Merged
+8 −8 NavierStokes/PressureDatum.lean View file
| @@ -47,13 +47,13 @@ theorem kernel_pos (a η : ℝ) : 0 < kernel a η := Real.exp_pos _ | ||
| 47 | 47 | |
| 48 | 48 | theorem kernel_le_one {a : ℝ} (ha : 0 ≤ a) (η : ℝ) : kernel a η ≤ 1 := by |
| 49 | 49 | apply Real.exp_le_one_iff.mpr |
| 50 | - have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) | |
| 51 | - exact mul_nonpos_of_nonpos_of_nonneg (by nlinarith) hl | |
| 50 | + have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by linarith [sq_nonneg η]) | |
| 51 | + exact mul_nonpos_of_nonpos_of_nonneg (by linarith) hl | |
| 52 | 52 | |
| 53 | 53 | theorem kernel_antitone {a b : ℝ} (hab : a ≤ b) (η : ℝ) : |
| 54 | 54 | kernel b η ≤ kernel a η := by |
| 55 | 55 | apply Real.exp_le_exp.mpr |
| 56 | - have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by nlinarith [sq_nonneg η]) | |
| 56 | + have hl : 0 ≤ Real.log (1 + η ^ 2) := Real.log_nonneg (by linarith [sq_nonneg η]) | |
| 57 | 57 | exact mul_le_mul_of_nonneg_right (by linarith) hl |
| 58 | 58 | |
| 59 | 59 | @[simp] theorem kernel_neg (a η : ℝ) : kernel a (-η) = kernel a η := by |
| @@ -89,7 +89,7 @@ theorem pressure_le_mass {g a : ℝ → ℝ} {A : ℝ} | ||
| 89 | 89 | (fun y => mul_le_mul_of_nonneg_left (kernel_antitone (h.exponent_le y) η) (h.nonneg y)) |
| 90 | 90 | rw [integral_mul_const] at hm |
| 91 | 91 | dsimp [pressure] |
| 92 | - nlinarith | |
| 92 | + linarith | |
| 93 | 93 | |
| 94 | 94 | /-- A strip containing the complete real axis and therefore `[-1,1]`. -/ |
| 95 | 95 | def strip : Set ℂ := {z | |z.im| < (1 / 2 : ℝ)} |
| @@ -312,7 +312,7 @@ theorem weighted_kernel_pos {g a : ℝ → ℝ} {A : ℝ} | ||
| 312 | 312 | have hp := pressure_le_mass (exponent_weight_admissible h) η |
| 313 | 313 | have hpos := mul_pos (kernel_pos A η) hmass |
| 314 | 314 | dsimp [pressure] at hp |
| 315 | - nlinarith | |
| 315 | + linarith | |
| 316 | 316 | |
| 317 | 317 | theorem deriv_pressure_pos {g a : ℝ → ℝ} {A : ℝ} |
| 318 | 318 | (h : Admissible g a A) (hmass : 0 < ∫ y, g y * a y) |
| @@ -344,7 +344,7 @@ theorem pressure_le_prefix {g a : ℝ → ℝ} {A b : ℝ} | ||
| 344 | 344 | rw [ha y hy] |
| 345 | 345 | rw [heq] at hp |
| 346 | 346 | dsimp [pressure] |
| 347 | - nlinarith | |
| 347 | + linarith | |
| 348 | 348 | |
| 349 | 349 | theorem pressure_le_prefix_mass {g a : ℝ → ℝ} {A b m : ℝ} |
| 350 | 350 | (h : Admissible g a A) {s : Set ℝ} (hs : MeasurableSet s) |
| @@ -352,7 +352,7 @@ theorem pressure_le_prefix_mass {g a : ℝ → ℝ} {A b m : ℝ} | ||
| 352 | 352 | pressure g a η ≤ -(1 / 2 : ℝ) * m * kernel b η := by |
| 353 | 353 | have hp := pressure_le_prefix h hs ha η |
| 354 | 354 | have hk := mul_le_mul_of_nonneg_left hm (kernel_pos b η).le |
| 355 | - nlinarith | |
| 355 | + linarith | |
| 356 | 356 | |
| 357 | 357 | theorem kernel_one (η : ℝ) : kernel 1 η = (1 + η ^ 2)⁻¹ ^ 2 := by |
| 358 | 358 | rw [kernel_eq_rpow] |
| @@ -367,7 +367,7 @@ theorem manuscript_prefix_bound {g a : ℝ → ℝ} {A P : ℝ} | ||
| 367 | 367 | pressure g a η ≤ -(5 / 2 : ℝ) * P ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 368 | 368 | have hp := pressure_le_prefix_mass h hs ha hm η |
| 369 | 369 | rw [kernel_one] at hp |
| 370 | - nlinarith | |
| 370 | + linarith | |
| 371 | 371 | |
| 372 | 372 | /-- Exact integral of the ideal clock prefix `P² exp(y/5)`. -/ |
| 373 | 373 | theorem ideal_prefix_mass (P : ℝ) : |
+17 −0 routes/s2-ns-pressure-1/README.md added View file
| @@ -0,0 +1,17 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-pressure-1 | |
| 6 | + | |
| 7 | +One unit of S-2, on the family `NavierStokes/Pressure*`: `NavierStokes/PressureDatum.lean`, made cheaper to | |
| 8 | +elaborate. The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 | |
| 9 | +at upstream `f9e8bc5`), carried onto main and counted again there. Eight occurrences of `nlinarith` inside proofs | |
| 10 | +become `linarith` (8 lines out, 8 in); no statement, import line or docstring changes, and no `maxHeartbeats`. The | |
| 11 | +file counts 26.14 G → 24.79 G instructions retired, −5.2%, measured as PR.md describes against `df2f18f`; that | |
| 12 | +commit is an ancestor of current main and the file is unchanged between them. | |
| 13 | + | |
| 14 | +## Next | |
| 15 | + | |
| 16 | +Wait for `challenge` and `build` on the pull request; then the family has more files, and another unit can take the | |
| 17 | +next-slowest one. Nothing else in `PressureDatum.lean` was touched. | |