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 #545 from s2-euler-base-1
Browse filesperf(Euler/Base): 5 files cheaper to elaborate (−2.5%, measured)
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-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
+1 −1 Euler/BaseEulerGevrey.lean View file
| @@ -22,7 +22,7 @@ theorem coordinate_norm_le (i : Fin 3) : ‖(EuclideanSpace.proj i : Space →L[ | ||
| 22 | 22 | theorem coordinate_bound_on_ball (i : Fin 3) (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : |
| 23 | 23 | ‖iteratedFDeriv ℝ n (fun y : Space => y i) x‖ ≤ 2*majorant 256 0 n := by |
| 24 | 24 | apply (linear_bound_on_ball (EuclideanSpace.proj i) 2 256 (by norm_num) (by norm_num) x hx n).trans |
| 25 | - exact mul_le_mul_of_nonneg_right (by nlinarith [coordinate_norm_le i]) | |
| 25 | + exact mul_le_mul_of_nonneg_right (by linarith [coordinate_norm_le i]) | |
| 26 | 26 | (majorant_nonneg 256 (by norm_num) 0 n) |
| 27 | 27 | |
| 28 | 28 | theorem linear_coordinate_bound_on_ball (L : Space →L[ℝ] Space) (i : Fin 3) |
+3 −3 Euler/BaseEulerGuards.lean View file
| @@ -52,11 +52,11 @@ theorem guardTime_small (T K : ℝ) : | ||
| 52 | 52 | have hc' : C*(1/(4*(1+C+R))) ≤ 1/4 := by |
| 53 | 53 | rw [mul_one_div] |
| 54 | 54 | apply (div_le_iff₀ hd).mpr |
| 55 | - nlinarith | |
| 55 | + linarith | |
| 56 | 56 | have hr' : R*(1/(4*(1+C+R))) ≤ 1/4 := by |
| 57 | 57 | rw [mul_one_div] |
| 58 | 58 | apply (div_le_iff₀ hd).mpr |
| 59 | - nlinarith | |
| 59 | + linarith | |
| 60 | 60 | exact ⟨hc.trans hc',hr.trans hr'⟩ |
| 61 | 61 | |
| 62 | 62 | theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) |
| @@ -71,7 +71,7 @@ theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) | ||
| 71 | 71 | _ ≤ (C*‖v‖)*‖v‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg _) |
| 72 | 72 | _ = _ := by ring |
| 73 | 73 | constructor |
| 74 | - · nlinarith [(abs_le.mp hi).1] | |
| 74 | + · linarith [(abs_le.mp hi).1] | |
| 75 | 75 | · exact (abs_le.mp hi).2 |
| 76 | 76 | |
| 77 | 77 | variable {G : Parent} (L : LabelData G) |
+1 −1 Euler/BaseEulerParent.lean View file
| @@ -154,7 +154,7 @@ theorem horizon_small (T B R : ℝ) (hT : 0 < T) (hB : 0 ≤ B) (hR : 0 ≤ R) : | ||
| 154 | 154 | have hd : 0 < 8*(1+B*R) := by positivity |
| 155 | 155 | have he := (le_div_iff₀ hd).1 (min_le_right T (1/(8*(1+B*R)))) |
| 156 | 156 | change horizon T B R*(8*(1+B*R)) ≤ 1 at he |
| 157 | - nlinarith | |
| 157 | + linarith | |
| 158 | 158 | |
| 159 | 159 | def ofInterval (T : ℝ) (hT : 0 < T) |
| 160 | 160 | (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) Space Space) |
+1 −1 Euler/BasePacketFrequencyCost.lean View file
| @@ -33,7 +33,7 @@ theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 | ||
| 33 | 33 | simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) |
| 34 | 34 | unfold firstParameterSize |
| 35 | 35 | rw [hd] |
| 36 | - nlinarith only [hT.trans ht,hh,hc] | |
| 36 | + linarith only [hT.trans ht,hh,hc] | |
| 37 | 37 | |
| 38 | 38 | def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower |
| 39 | 39 | def firstFrequencyPower : ℕ := 1010*frequencyPower |
+1 −1 Euler/BasePacketSetup.lean View file
| @@ -98,7 +98,7 @@ theorem packetBase_initialStrain (x : Space) (hx : x ∈ support) : | ||
| 98 | 98 | rw [norm_smul,Real.norm_eq_abs,abs_of_pos hell] |
| 99 | 99 | have hb := mul_le_mul_of_nonneg_right hell1 (norm_nonneg x) |
| 100 | 100 | have hx' := norm_lt x hx |
| 101 | - nlinarith only [hb,hx'] | |
| 101 | + linarith only [hb,hx'] | |
| 102 | 102 | |
| 103 | 103 | def firstPacketInputs : |
| 104 | 104 | ForwardInputs |
+21 −0 routes/s2-euler-base-1/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-base-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Base*` family: `Euler/BaseEulerGevrey.lean`, `Euler/BaseEulerGuards.lean`, | |
| 8 | +`Euler/BaseEulerParent.lean`, `Euler/BasePacketFrequencyCost.lean` and | |
| 9 | +`Euler/BasePacketSetup.lean`. Each was among the costlier files to elaborate in the tree. In | |
| 10 | +each, a closing `nlinarith` of a theorem's proof becomes `linarith`; nothing else changes — no | |
| 11 | +statement, import, docstring or `maxHeartbeats`. The edits are Treant's `speedup_trials` edits | |
| 12 | +from upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto | |
| 13 | +main `d956c7c` and counted there; a file is kept only if it is at least 0.5% cheaper. | |
| 14 | +`docs/build-profile.md` holds S-2's list of the ten costliest files. | |
| 15 | + | |
| 16 | +The measured cost, and how it was counted, is in the pull request's description. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +The pull request is open; let the `challenge` and `build` checks run, and reply to the | |
| 21 | +maintainer's review. | |