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 #642 from s2-euler-correction-1
Browse filesperf(Euler/Correction): 4 files cheaper to elaborate (−13.1%, measured)
main s2-instances-1 s2-ns-smooth-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+2 −2 Euler/CorrectionDifferenceMetric.lean View file
| @@ -62,7 +62,7 @@ theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 62 | 62 | have hkt0 := (norm_nonneg K').trans hKt |
| 63 | 63 | have heq : differenceRhs period D hq ν μ τ u v+top+(D.metric.coefficient τ).operator p = |
| 64 | 64 | F+ν • laplacianEvaluation period (q+1) (by omega) d := by |
| 65 | - dsimp only [differenceRhs,top,p,F,d] | |
| 65 | + dsimp only [differenceRhs,p,F,d] | |
| 66 | 66 | abel |
| 67 | 67 | have hdiv : value period d ∈ divergenceFreeSpace period D.κ D.direction := |
| 68 | 68 | (divergenceFreeSpace period D.κ D.direction).sub_mem hud hvd |
| @@ -113,7 +113,7 @@ theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 113 | 113 | _ = _ := one_mul _ |
| 114 | 114 | have hk : 2*‖K t‖*L ≤ 2*Kb*L := by |
| 115 | 115 | have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hL) |
| 116 | - nlinarith only [h] | |
| 116 | + linarith only [h] | |
| 117 | 117 | have hsum := add_le_add (add_le_add (add_le_add hKt (le_refl (2*(Kx*V)))) hh) hk |
| 118 | 118 | exact (add_le_add hsum (le_refl 1)).trans_eq (by ring) |
| 119 | 119 | have hd : (‖K t‖*(4*R))^2 ≤ defectConstant Kb R := by |
+1 −1 Euler/CorrectionEnergyBootstrap.lean View file
| @@ -19,7 +19,7 @@ theorem raise_energy_constant (C0 C X Y r b R B : ℝ) (hC : C0 ≤ C) | ||
| 19 | 19 | C0*(X+X^2+r)+(b+C0*R*(B+X))*Y ≤ C*(X+X^2+r)+(b+C*R*(B+X))*Y := by |
| 20 | 20 | have h1 := mul_le_mul_of_nonneg_right hC (add_nonneg (add_nonneg hX (sq_nonneg X)) hr) |
| 21 | 21 | have h2 := mul_le_mul_of_nonneg_right hC (mul_nonneg (mul_nonneg hR (add_nonneg hB hX)) hY) |
| 22 | - nlinarith only [h1,h2] | |
| 22 | + linarith only [h1,h2] | |
| 23 | 23 | |
| 24 | 24 | variable (period : ℝ) [Fact (0 < period)] |
| 25 | 25 | |
+1 −1 Euler/CorrectionStabilityConstants.lean View file
| @@ -62,7 +62,7 @@ theorem differenceRemainder_uniform {q : ℕ} {T : Type*} [TopologicalSpace T] | ||
| 62 | 62 | (add_le_add hzu hzv) (add_nonneg (norm_nonneg _) (norm_nonneg _)) |
| 63 | 63 | (mul_nonneg ha20 (sobolevEmbeddingConstant_nonneg period q)) |
| 64 | 64 | unfold lowerConstant |
| 65 | - nlinarith | |
| 65 | + linarith | |
| 66 | 66 | |
| 67 | 67 | omit [Fact (0 < period)] in |
| 68 | 68 | /-- The actual fixed growth coefficient is nonnegative. -/ |
+2 −2 Euler/CorrectionViscosityStability.lean View file
| @@ -50,7 +50,7 @@ theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : | ||
| 50 | 50 | have hu0 := hu ⟨0,le_rfl,hT⟩ |
| 51 | 51 | have hv0 := hv ⟨0,le_rfl,hT⟩ |
| 52 | 52 | simp only [quadraticDuhamel,mul_zero,Real.toNNReal_zero,heatOperator_zero, |
| 53 | - intervalIntegral.integral_same,add_zero] at hu0 hv0 | |
| 53 | + intervalIntegral.integral_same] at hu0 hv0 | |
| 54 | 54 | have he0 : e 0=0 := by rw [hev ⟨0,le_rfl,hT⟩,hu0,hv0,sub_self]; rfl |
| 55 | 55 | simp only [E,he0,map_zero,inner_zero_left,le_refl] |
| 56 | 56 | have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt E (deriv E t) t := by |
| @@ -95,7 +95,7 @@ theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : | ||
| 95 | 95 | nlinarith |
| 96 | 96 | change ‖value period (u t-v t)‖ ≤ B.comparisonConstant period R*|ν-μ| |
| 97 | 97 | have hdiv : ‖value period (u t-v t)‖ ≤ (Real.sqrt P*|ν-μ|)/B.c := |
| 98 | - (le_div_iff₀ B.c_pos).mpr (by nlinarith only [hn]) | |
| 98 | + (le_div_iff₀ B.c_pos).mpr (by linarith only [hn]) | |
| 99 | 99 | exact hdiv.trans_eq (by unfold StabilityBudget.comparisonConstant; dsimp [P]; ring) |
| 100 | 100 | |
| 101 | 101 | end EulerCorrectionViscosityStability |
+27 −0 routes/s2-euler-correction-1/README.md added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-correction-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Correction*` family: `Euler/CorrectionDifferenceMetric.lean`, | |
| 8 | +`Euler/CorrectionEnergyBootstrap.lean`, `Euler/CorrectionStabilityConstants.lean` and | |
| 9 | +`Euler/CorrectionViscosityStability.lean`, four of the slowest files to elaborate in the tree. | |
| 10 | +The edits are inside proofs only (6 lines out, 6 in): in `difference_metric_deriv_bound` the | |
| 11 | +`dsimp only` list drops `top`, a local binding the goal does not contain at that step, and a | |
| 12 | +`nlinarith only [h]` becomes `linarith only [h]`; the closing `nlinarith only [h1,h2]` of | |
| 13 | +`raise_energy_constant` and the `nlinarith` after `unfold lowerConstant` in | |
| 14 | +`differenceRemainder_uniform` become `linarith`; in `correction_viscosity_pointwise` a | |
| 15 | +`simp only` list drops `add_zero`, which matches nothing in those hypotheses, and a | |
| 16 | +`nlinarith only [hn]` becomes `linarith only [hn]`. Nothing else changes — no statement, | |
| 17 | +import, docstring or `maxHeartbeats`. The edits are Treant's `speedup_trials` edits from | |
| 18 | +upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main | |
| 19 | +`df2f18f` and counted there. `docs/build-profile.md` holds S-2's list of the ten costliest files. | |
| 20 | + | |
| 21 | +The measured cost before and after for each of the four files, and how it was counted, is in | |
| 22 | +the pull request's description: 87.04 G instructions before, 75.61 G after, −13.1% for these | |
| 23 | +four files. | |
| 24 | + | |
| 25 | +## Next | |
| 26 | + | |
| 27 | +Push, let the `challenge` and `build` checks run, and reply to the maintainer's review. | |