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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #661 perf(NavierStokes/Positive): 3 files cheaper to elaborate (−4.1%, measured)
1 commit
+3 −3 NavierStokes/PositiveAxisExistence.lean View file
| @@ -515,7 +515,7 @@ theorem square_mem_Ico {R r : ℝ} (hr : r ∈ Ioo (-R) R) : | ||
| 515 | 515 | r ^ 2 ∈ Ico (0 : ℝ) (R ^ 2) := by |
| 516 | 516 | refine ⟨sq_nonneg _, ?_⟩ |
| 517 | 517 | have hprod : 0 < (R - r) * (R + r) := mul_pos (by linarith [hr.2]) (by linarith [hr.1]) |
| 518 | - nlinarith | |
| 518 | + linarith | |
| 519 | 519 | |
| 520 | 520 | /-- The genuine real first-order system, with all six ordinary derivatives. -/ |
| 521 | 521 | def RealSixSystem (R : ℝ) (J : Set ℝ) (h lam C : ℝ) (G : RealCoefficientData) |
| @@ -549,7 +549,7 @@ theorem positiveSolution_real_system {R T : ℝ} (hR : 0 < R) (hRT : R < T) | ||
| 549 | 549 | matrixRHS, hreal.base ⟨sq_pos_of_ne_zero hr0, (square_mem_Ico hr).2⟩ heta, |
| 550 | 550 | hreal.source ⟨sq_pos_of_ne_zero hr0, (square_mem_Ico hr).2⟩ heta, |
| 551 | 551 | Complex.real_smul, Complex.ofReal_div, Complex.ofReal_natCast, Pi.add_apply, |
| 552 | - add_comm, add_left_comm] at he ⊢ | |
| 552 | + add_comm] at he ⊢ | |
| 553 | 553 | exact he |
| 554 | 554 | |
| 555 | 555 | theorem RealSixSystem.first_derivative {R : ℝ} {J : Set ℝ} {h lam C : ℝ} |
| @@ -558,7 +558,7 @@ theorem RealSixSystem.first_derivative {R : ℝ} {J : Set ℝ} {h lam C : ℝ} | ||
| 558 | 558 | deriv (fun s => w s eta 0) r = w r eta 4 ∧ |
| 559 | 559 | deriv (fun s => w s eta 1) r = w r eta 5 := by |
| 560 | 560 | constructor |
| 561 | - · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, Matrix.mulVec, dotProduct, | |
| 561 | + · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, dotProduct, | |
| 562 | 562 | Fin.sum_univ_succ] using hw r hr hr0 eta heta 0 |
| 563 | 563 | · simpa [PositiveAxisSystem.diagonal, matrixRHS, A0, A1, forcing, Matrix.mulVec, dotProduct, |
| 564 | 564 | Fin.sum_univ_succ] using hw r hr hr0 eta heta 1 |
+2 −2 NavierStokes/PositiveOrderMoments.lean View file
| @@ -79,7 +79,7 @@ theorem rowDensity_increment {n : ℕ} (hn : 0 < n) (u e : History) (omega du de | ||
| 79 | 79 | ext i |
| 80 | 80 | fin_cases i <;> |
| 81 | 81 | simp only [rowDensity, pressureGradient, cauchy_increment hn, Pi.add_apply] <;> |
| 82 | - simp [linearDensity, increment, Function.update_self, div_eq_mul_inv] | |
| 82 | + simp [linearDensity, increment, Function.update_self] | |
| 83 | 83 | all_goals try ring1 |
| 84 | 84 | by_cases hR : R = 0 |
| 85 | 85 | · simp [hR] |
| @@ -598,7 +598,7 @@ theorem exists_parameterized_exact_repair (lam a b : ℝ) (hlam : 0 < lam) | ||
| 598 | 598 | · intro eta heta |
| 599 | 599 | have hi := jointRowDensity_integrableOn (S := S) (n := n) (u := u) (e := e) |
| 600 | 600 | (omega := omega) (B := B) (fun i => (hd i).continuousOn) hs heta |
| 601 | - simpa only [du, de, debt, zero_sub] using moments_repair_target lam (A eta) a b 0 hn | |
| 601 | + simpa only [du, debt, zero_sub] using moments_repair_target lam (A eta) a b 0 hn | |
| 602 | 602 | (slice u eta) (slice e eta) (fun R => omega (R, eta)) hlam (hAn eta heta) ha hab |
| 603 | 603 | (hU₀ eta heta) (hE₀ eta heta) hi |
| 604 | 604 | |
+3 −5 NavierStokes/PositiveTimeSignedData.lean View file
| @@ -69,7 +69,7 @@ theorem primitive_annulus (hh0 : 0 < h) (hh1 : h < 1 / 2) | ||
| 69 | 69 | have hs := Real.sqrt_pos.mpr hq |
| 70 | 70 | have hslow := normalized_slow_norm hh0 hh1 hx hy.1 hy.2.1 |
| 71 | 71 | have hlo : 1 / 2 ≤ Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) := |
| 72 | - (Real.le_sqrt (by norm_num) hq.le).mpr (by nlinarith [hy.1]) | |
| 72 | + (Real.le_sqrt (by norm_num) hq.le).mpr (by linarith [hy.1]) | |
| 73 | 73 | have hhi : Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ≤ 2 := |
| 74 | 74 | (Real.sqrt_le_left (by norm_num)).mpr (by linarith [hy.2.1]) |
| 75 | 75 | have hradlo := (le_div_iff₀ hs).mp hy.2.2.1 |
| @@ -141,8 +141,7 @@ theorem potential_support (i : Fin 3) : | ||
| 141 | 141 | simpa only [potentialCopies, PositiveTimeCopyFamily.gate, |
| 142 | 142 | ActualSignedPhysicalData.potentialFamily, extendedCarrier, dite_eq_left hL] using |
| 143 | 143 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 144 | - · exact ⟨0, by simp [potentialCopies, PositiveTimeCopyFamily.gate, | |
| 145 | - ActualSignedPhysicalData.potentialFamily, extendedCarrier, hL, | |
| 144 | + · exact ⟨0, by simp [potentialCopies, ActualSignedPhysicalData.potentialFamily, extendedCarrier, hL, | |
| 146 | 145 | ActualSignedPhysicalData.carrier]⟩ |
| 147 | 146 | geometry_support k I w hw := by |
| 148 | 147 | obtain ⟨hpast, hraw⟩ := (PositiveTimeCopyFamily.gate_amplitude_ne_zero_iff |
| @@ -185,8 +184,7 @@ theorem pressure_support : | ||
| 185 | 184 | simpa only [pressureCopies, PositiveTimeCopyFamily.gate, |
| 186 | 185 | ActualSignedPhysicalData.pressureFamily, extendedCarrier, dite_eq_left hL] using |
| 187 | 186 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 188 | - · exact ⟨0, by simp [pressureCopies, PositiveTimeCopyFamily.gate, | |
| 189 | - ActualSignedPhysicalData.pressureFamily, extendedCarrier, hL, | |
| 187 | + · exact ⟨0, by simp [pressureCopies, ActualSignedPhysicalData.pressureFamily, extendedCarrier, hL, | |
| 190 | 188 | ActualSignedPhysicalData.carrier]⟩ |
| 191 | 189 | geometry_support k I w hw := by |
| 192 | 190 | obtain ⟨hpast, hraw⟩ := (PositiveTimeCopyFamily.gate_amplitude_ne_zero_iff |
+42 −0 routes/s2-ns-positive-1/README.md added View file
| @@ -0,0 +1,42 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-positive-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11): make four files of the family `NavierStokes/Positive*` cheaper to | |
| 8 | +elaborate, changing proofs only. The edits are Treant's `speedup_trials` edits from upstream | |
| 9 | +`f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main `df2f18f` | |
| 10 | +and counted there; the counts are the ones in `/work/unit/unit.json` and are not measured here. | |
| 11 | + | |
| 12 | +The pull request keeps three of the four files: | |
| 13 | + | |
| 14 | +- `NavierStokes/PositiveAxisExistence.lean`: `nlinarith` becomes `linarith` in `square_mem_Ico`; | |
| 15 | + `add_left_comm` leaves a `simp only` list in `positiveSolution_real_system`; `Matrix.mulVec` | |
| 16 | + leaves the first `simpa` in `RealSixSystem.first_derivative`. | |
| 17 | +- `NavierStokes/PositiveOrderMoments.lean`: `div_eq_mul_inv` leaves a `simp` list in | |
| 18 | + `rowDensity_increment`; `de` leaves a `simpa only` list in `exists_parameterized_exact_repair`. | |
| 19 | +- `NavierStokes/PositiveTimeSignedData.lean`: `nlinarith` becomes `linarith` in | |
| 20 | + `primitive_annulus`; `PositiveTimeCopyFamily.gate` leaves one `simp` list each in | |
| 21 | + `potential_support` and `pressure_support`. | |
| 22 | + | |
| 23 | +No statement, import or docstring changes, and no `maxHeartbeats`. | |
| 24 | + | |
| 25 | +`NavierStokes/PositiveAxisSystem.lean` is left out, though its numbers are in unit.json | |
| 26 | +(327.06 G → 314.87 G, −3.7%): five of its hunks re-wrap `simp` lists that were already wrapped | |
| 27 | +into single lines of 112–129 columns, so the one entry each removes is hidden inside a | |
| 28 | +whole-line rewrite and the result is harder to read. That is formatting, not part of the | |
| 29 | +speed-up, so it is not in the pull request. Its row is out of the table. | |
| 30 | + | |
| 31 | +Timing of the three files (from unit.json): 73,591,030,944 → 70,596,694,694 instructions | |
| 32 | +retired, −4.1%; per file, −5.0%, −0.6% and −6.4%. Counted with `lean -j1 -DElab.async=false` | |
| 33 | +under `perf stat -e instructions:u`, against the compiled tree of main `df2f18f` before and | |
| 34 | +after, one run after the other; the pull request description gives the full method. The title | |
| 35 | +says three files and −4.1% for the same reason the table has three rows. | |
| 36 | + | |
| 37 | +## Next | |
| 38 | + | |
| 39 | +Push, let the `challenge` and `build` checks run, and read the maintainer's review. If the | |
| 40 | +re-wrapped lists in `PositiveAxisSystem.lean` are wanted, they can come back as a second unit: | |
| 41 | +the same one-entry deletions with each `simp` list kept on its original two lines, counted | |
| 42 | +again before it is proposed. | |