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: #638 perf(NavierStokes/Modulated): 3 files cheaper to elaborate (−6.3%, measured)
1 commit
+2 −2 NavierStokes/ModulatedCone.lean View file
| @@ -1014,13 +1014,13 @@ theorem profile_stocks_rate {D D' : RadialDomain} | ||
| 1014 | 1014 | have hb : Cc / δr ≤ n := |
| 1015 | 1015 | ((le_max_left _ _).trans ((le_max_right _ _).trans (le_max_right _ _))).trans (hN.le.trans hn) |
| 1016 | 1016 | have := (div_le_iff₀ hδr).mp hb |
| 1017 | - nlinarith | |
| 1017 | + linarith | |
| 1018 | 1018 | have hsmalls : Ddata / n ≤ δs := by |
| 1019 | 1019 | apply (div_le_iff₀ hnpos).mpr |
| 1020 | 1020 | have hb : Ddata / δs ≤ n := |
| 1021 | 1021 | ((le_max_right _ _).trans ((le_max_right _ _).trans (le_max_right _ _))).trans (hN.le.trans hn) |
| 1022 | 1022 | have := (div_le_iff₀ hδs).mp hb |
| 1023 | - nlinarith | |
| 1023 | + linarith | |
| 1024 | 1024 | have hdatap := hdata n hn1 (c n) (hc n) (Cc / n) (div_nonneg hCc hnpos.le) hsmallr |
| 1025 | 1025 | (hcoeff n hnr hn1) (P n) Q (hPf n) (hPU n) hQf hQU (hP0 n) p (hX p hp).le |
| 1026 | 1026 | (hTJ p hp) (hTD hp) (hTD' hp) |
+1 −1 NavierStokes/ModulatedExterior.lean View file
| @@ -349,7 +349,7 @@ theorem exists_terminal_exterior_neighborhood {h R : ℝ} | ||
| 349 | 349 | calc |
| 350 | 350 | R * q h (AxisymmetricFields.profilePoint z.1 z.2) ≤ R * b := |
| 351 | 351 | mul_le_mul_of_nonneg_left hqb.le hR |
| 352 | - _ < AxisymmetricFields.radialEnergy x / 2 := by nlinarith | |
| 352 | + _ < AxisymmetricFields.radialEnergy x / 2 := by linarith | |
| 353 | 353 | _ < AxisymmetricFields.radialEnergy z.2 := hz.1 |
| 354 | 354 | |
| 355 | 355 | /-- The incoming field is retained at every past time; the actual heat |
+5 −5 NavierStokes/ModulatedHistories.lean View file
| @@ -693,7 +693,7 @@ theorem repair_family_rate (P : FiveProfileMoments.Patch) (b : ℝ) | ||
| 693 | 693 | have hsmall : B0 * D / N ≤ delta := by |
| 694 | 694 | apply (div_le_iff₀ hNpos).mpr |
| 695 | 695 | have ht := (div_le_iff₀ hdelta).mp ((le_max_right _ _).trans hN) |
| 696 | - nlinarith | |
| 696 | + linarith | |
| 697 | 697 | let v : ℝ → Coeff := fun eta => FiveProfileMoments.normalizedDebt (A eta) (G eta) (d N eta) |
| 698 | 698 | have hv : ContDiff ℝ ∞ v := FiveProfileMoments.normalizedDebt_contDiff hA hG (hd N) |
| 699 | 699 | (fun eta => (hApos eta).ne') |
| @@ -866,7 +866,7 @@ theorem physical_mixed_edits_bound (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 866 | 866 | congr 1 |
| 867 | 867 | funext x |
| 868 | 868 | simp [editU, v, FiveProfileMoments.u, FiveProfileMoments.correction, |
| 869 | - Pi.smul_apply, smul_eq_mul, mul_assoc] | |
| 869 | + Pi.smul_apply, smul_eq_mul] | |
| 870 | 870 | ring |
| 871 | 871 | have hEfun : (fun e => iteratedDeriv k (fun x => editE P A c (x, e)) X) = |
| 872 | 872 | fun e => iteratedDeriv k (FiveProfileMoments.e P (v e)) X := by |
| @@ -874,7 +874,7 @@ theorem physical_mixed_edits_bound (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 874 | 874 | congr 1 |
| 875 | 875 | funext x |
| 876 | 876 | simp [editE, v, FiveProfileMoments.e, FiveProfileMoments.correction, |
| 877 | - Pi.smul_apply, smul_eq_mul, Finset.mul_sum, mul_assoc] | |
| 877 | + smul_eq_mul, Finset.mul_sum, mul_assoc] | |
| 878 | 878 | rw [hUfun, hEfun] |
| 879 | 879 | have hb := hjets k hk j v eta hv.contDiffAt X |
| 880 | 880 | have hcost : J * ‖iteratedFDeriv ℝ j v eta‖ ≤ (J * (2 : ℝ) ^ q * B0) * eps := by |
| @@ -1071,7 +1071,7 @@ theorem density_perturbation_jet_bound (f U df dU : ℝ → ℝ) | ||
| 1071 | 1071 | rw [heq] |
| 1072 | 1072 | have hK0 : 1 ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1073 | 1073 | have hK1 : 2 * R ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1074 | - have hK2 : (2 * R) * H ≤ (1 + 2 * R) * (1 + H) := by nlinarith | |
| 1074 | + have hK2 : (2 * R) * H ≤ (1 + 2 * R) * (1 + H) := by linarith | |
| 1075 | 1075 | have hK3 : (1 + R) * H ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1076 | 1076 | have hK4 : H ≤ (1 + 2 * R) * (1 + H) := by nlinarith |
| 1077 | 1077 | fin_cases i |
| @@ -1209,7 +1209,7 @@ theorem repairHistory_scalar_jets (P : FiveProfileMoments.Patch) (S : Set ℝ) | ||
| 1209 | 1209 | intro c hc eps heps hepsJ hcb X eta heta j hjq i |
| 1210 | 1210 | have hsmall : J * eps ≤ 1 := by |
| 1211 | 1211 | have h := (le_div_iff₀ hJ).mp hepsJ |
| 1212 | - nlinarith | |
| 1212 | + linarith | |
| 1213 | 1213 | have hdensity : ∀ s ∈ Ioc P.left ((patchWindow P).clamp X), |
| 1214 | 1214 | |iteratedDeriv j (fun e => repairDensity P A c f U (s, e) i) eta| ≤ K0 * eps := by |
| 1215 | 1215 | intro s hs |
+28 −0 routes/s2-ns-modulated-1/README.md added View file
| @@ -0,0 +1,28 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-modulated-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make three files of the family `NavierStokes/Modulated*` | |
| 8 | +cheaper to elaborate — `ModulatedCone.lean`, `ModulatedExterior.lean` and | |
| 9 | +`ModulatedHistories.lean` — by edits inside proofs only (8 lines out, 8 in). | |
| 10 | +Six steps `nlinarith` becomes `linarith` where linear reasoning closes the goal; in | |
| 11 | +`physical_mixed_edits_bound` the two `simp` lists lose `mul_assoc` and `Pi.smul_apply`. | |
| 12 | +No statement, import line or docstring changes, and there is no `maxHeartbeats`. | |
| 13 | + | |
| 14 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 15 | +the run of 2026-12-03 at upstream `f9e8bc5`), carried onto main and counted there | |
| 16 | +file by file: instructions retired in user space by `lean` elaborating the one file | |
| 17 | +alone (`lean -j1 -DElab.async=false` under `perf stat -e instructions:u`), against | |
| 18 | +the tree of main at `df2f18f` and against the same tree with the edits, one machine, | |
| 19 | +one run after the other. `ModulatedCone.lean` 40.88 G → 37.09 G (−9.3%), | |
| 20 | +`ModulatedExterior.lean` 13.08 G → 12.39 G (−5.3%), `ModulatedHistories.lean` | |
| 21 | +70.17 G → 66.83 G (−4.8%); together 124.13 G → 116.31 G (−6.3%). | |
| 22 | + | |
| 23 | +## Next | |
| 24 | + | |
| 25 | +The pull request into `main` is open; `build` on its head is still to report. Read its | |
| 26 | +verdict: if it fails, the failing edit is the place to look. Nothing else is in this | |
| 27 | +unit; a further file of the family is another unit, and the list of the ten slowest | |
| 28 | +files is a unit of its own (`s2-build-profile-files`). | |