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: #344 chore(NavierStokes/Defect): delete 5 declarations nothing uses
1 commit
+0 −51 NavierStokes/DefectIncrementBounds.lean View file
| @@ -606,33 +606,6 @@ theorem Shell.sliceIntegrable {a b : ℝ} {f : ScalarField (Point P)} (hf : Shel | ||
| 606 | 606 | ((hf.smooth n).continuous.comp (continuous_id.prodMk continuous_const)) |
| 607 | 607 | (IntegratedMeanBalances.radial_slice_compact (hf.supported n) (p, 0)) k |
| 608 | 608 | |
| 609 | -theorem fiveRows_mass_zero {o : Operators (Point P)} {base m h : Triple (Point P)} | |
| 610 | - {W : Fin 3 → Fin 3 → ScalarField (Point P)} | |
| 611 | - (hv : IsSlow h.angular) (hg : IsSlow h.axial) | |
| 612 | - (hrows : ∀ n p, FiveRowRank.FiveRows (slowSlice base.angular n p) (slowSlice base.axial n p) | |
| 613 | - (defects o base m W n p) (slowSlice h.angular n p) (slowSlice h.axial n p)) : | |
| 614 | - barMoment 2 h.angular = 0 ∧ barMoment 1 h.axial = 0 := by | |
| 615 | - constructor | |
| 616 | - · funext n p | |
| 617 | - rw [barMoment_slow hv] | |
| 618 | - exact (hrows n p).1 | |
| 619 | - · funext n p | |
| 620 | - rw [barMoment_slow hg] | |
| 621 | - simpa only [pow_one, Pi.zero_apply] using (hrows n p).2.1 | |
| 622 | - | |
| 623 | -theorem fiveRows_preserve_masses {a b : ℝ} {o : Operators (Point P)} | |
| 624 | - {base m h : Triple (Point P)} {W : Fin 3 → Fin 3 → ScalarField (Point P)} | |
| 625 | - (hm : ShellTriple a b m) (hh : ShellTriple a b h) | |
| 626 | - (hv : IsSlow h.angular) (hg : IsSlow h.axial) | |
| 627 | - (hrows : ∀ n p, FiveRowRank.FiveRows (slowSlice base.angular n p) (slowSlice base.axial n p) | |
| 628 | - (defects o base m W n p) (slowSlice h.angular n p) (slowSlice h.axial n p)) : | |
| 629 | - barMoment 2 (updated m h).angular = barMoment 2 m.angular ∧ | |
| 630 | - barMoment 1 (updated m h).axial = barMoment 1 m.axial := by | |
| 631 | - obtain ⟨hzv, hzg⟩ := fiveRows_mass_zero hv hg hrows | |
| 632 | - change barMoment 2 (m.angular + h.angular) = _ ∧ barMoment 1 (m.axial + h.axial) = _ | |
| 633 | - rw [barMoment_add hm.angular hh.angular, barMoment_add hm.axial hh.axial, hzv, hzg] | |
| 634 | - simp | |
| 635 | - | |
| 636 | 609 | /-- The three moment rows are exactly those solved in (35), including the |
| 637 | 610 | minus sign and factor one half in the axial pressure moment. -/ |
| 638 | 611 | theorem linearRows_eq_neg_of_fiveRows {a b : ℝ} (ha : 0 < a) |
| @@ -784,22 +757,6 @@ theorem solved_rows {a b : ℝ} (ha : 0 < a) (hop : PositiveOperators c.operator | ||
| 784 | 757 | (rankIncrement_angular_slow p r axial c u) (hg.axial_slow axial) |
| 785 | 758 | u.covariance (hg.fiveRows axial) |
| 786 | 759 | |
| 787 | -theorem preserve_masses {a b : ℝ} (hm : ShellTriple a b u.mean) | |
| 788 | - (hh : ShellTriple a b (CorrectionState.rankIncrement p r axial c u)) : | |
| 789 | - CorrectionState.radialMoment 2 (CorrectionState.rankStage p r axial c u).mean.angular = | |
| 790 | - CorrectionState.radialMoment 2 u.mean.angular ∧ | |
| 791 | - CorrectionState.radialMoment 1 (CorrectionState.rankStage p r axial c u).mean.axial = | |
| 792 | - CorrectionState.radialMoment 1 u.mean.axial := | |
| 793 | - fiveRows_preserve_masses hm hh (rankIncrement_angular_slow p r axial c u) | |
| 794 | - (hg.axial_slow axial) (hg.fiveRows axial) | |
| 795 | - | |
| 796 | -theorem zeroMasses {a b : ℝ} (hm : ShellTriple a b u.mean) | |
| 797 | - (hh : ShellTriple a b (CorrectionState.rankIncrement p r axial c u)) | |
| 798 | - (hzero : CorrectionState.ZeroMasses u) : | |
| 799 | - CorrectionState.ZeroMasses (CorrectionState.rankStage p r axial c u) := by | |
| 800 | - obtain ⟨hv, hz⟩ := hg.preserve_masses axial hm hh | |
| 801 | - exact ⟨hv.trans hzero.1, hz.trans hzero.2⟩ | |
| 802 | - | |
| 803 | 760 | end RankGeometry |
| 804 | 761 | |
| 805 | 762 | section ConstructedBounds |
| @@ -837,14 +794,6 @@ theorem rankStage_defect_class (i : Fin 3) : | ||
| 837 | 794 | exact defects_after_rank_mem ha hab hcL hcR ε S hε hεone hS hop hbs hms hhs |
| 838 | 795 | u.covariance hW ho hb hm hh hH (hg.solved_rows axial ha hop hbs hhs hV hG) i |
| 839 | 796 | |
| 840 | -include ha hab hcL hcR axial hg hop hbs hms hhs hW hV hG ho hb hm hh hH in | |
| 841 | -theorem rankStage_defectBounds {σ : ℝ} (hσ : 1 + σ ≤ H + 9 / 10 - 2 * κ) : | |
| 842 | - CorrectionState.DefectBounds (MeanMomentBounds.slowStripData (D := P) ε S hε hεone hS) σ c | |
| 843 | - (CorrectionState.rankStage p r axial c u) := by | |
| 844 | - intro i | |
| 845 | - exact (rankStage_defect_class ha hab hcL hcR ε S hε hεone hS axial hg hop hbs hms hhs hW | |
| 846 | - hV hG ho hb hm hh hH i).mono_exponent hσ | |
| 847 | - | |
| 848 | 797 | end ConstructedBounds |
| 849 | 798 | |
| 850 | 799 | end |
+43 −0 routes/s1-ns-defect-2/README.md added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-defect-2 | |
| 6 | + | |
| 7 | +The declarations unit of S-1 (issue #10) for the family `NavierStokes/Defect*`: | |
| 8 | +deletes 5 declarations, 51 lines, in `NavierStokes/DefectIncrementBounds.lean`. | |
| 9 | +The diff is deletions only; no statement and no proof that stays is changed, no | |
| 10 | +file is renamed or moved. It follows the earlier unit on this family | |
| 11 | +(`s1-ns-defect-1`, merged) and touches none of its declarations. | |
| 12 | + | |
| 13 | +Deleted: | |
| 14 | + | |
| 15 | +- `NavierStokes.DefectIncrementBounds.fiveRows_mass_zero` | |
| 16 | +- `NavierStokes.DefectIncrementBounds.fiveRows_preserve_masses` | |
| 17 | +- `NavierStokes.DefectIncrementBounds.RankGeometry.preserve_masses` | |
| 18 | +- `NavierStokes.DefectIncrementBounds.RankGeometry.zeroMasses` | |
| 19 | +- `NavierStokes.DefectIncrementBounds.rankStage_defectBounds` | |
| 20 | + | |
| 21 | +Where the list comes from. Treant (TitiSkywalker/NavierStokesAndEuler, the run of | |
| 22 | +2026-12-03 at upstream `f9e8bc5`) found these unreachable from the four | |
| 23 | +Comparator theorems; `docs/s1-dead-code/README.md` is the plan. The list was cut | |
| 24 | +again on this project's `main` under this project's rule for what stays (paper | |
| 25 | +results reach it; a docstring cites the paper; an existence result; a file that | |
| 26 | +states results; a declaration that stays names it); none of the five is reached | |
| 27 | +by any of those. | |
| 28 | + | |
| 29 | +Checked before opening the pull request. `git grep -n -w` over the tree after the | |
| 30 | +patch finds no use of `fiveRows_mass_zero`, `fiveRows_preserve_masses`, | |
| 31 | +`zeroMasses` or `rankStage_defectBounds` from these declarations; the remaining | |
| 32 | +`preserve_masses` hits are `NavierStokes.LocalRankDefect.RankGeometry`'s own | |
| 33 | +declaration and its two callers, and the remaining `rankStage_defectBounds` hits | |
| 34 | +are `MovingMomentBounds`'s declaration and its callers. No deleted line is a | |
| 35 | +docstring, so none cites the paper. `python3 checks/challenge.py .` ends with | |
| 36 | +`ok`: 4 challenge files and the build configuration as approved; 2588 Lean | |
| 37 | +files, 537743 lines, toolchain leanprover/lean4:v4.34.0-rc2. | |
| 38 | + | |
| 39 | +## Next | |
| 40 | + | |
| 41 | +The maintainer's review after `challenge` and `build`. The rest of the | |
| 42 | +`NavierStokes/Defect*` family is untouched and stays for other units of #10; | |
| 43 | +if `build` reports a name this patch missed, add it here with file and line. | |