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 #728 from s5-ns-periodize-1
Browse filesrefactor(NavierStokes/Periodize): 1 small module folded into the file that imports it (−35.5%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −27 NavierStokes/PeriodizeLatticeCover.lean deleted
| @@ -1,27 +0,0 @@ | ||
| 1 | -import NavierStokes.PeriodicLocalization | |
| 2 | -import Mathlib.Algebra.Order.Floor.Ring | |
| 3 | - | |
| 4 | -/-! | |
| 5 | -# A nearest integer lattice point | |
| 6 | - | |
| 7 | -Every spatial point lies in a translate of the closed fundamental cube. | |
| 8 | --/ | |
| 9 | - | |
| 10 | -noncomputable section | |
| 11 | - | |
| 12 | -namespace NavierStokes.PeriodicLocalization | |
| 13 | - | |
| 14 | -open ProblemStatement | |
| 15 | - | |
| 16 | -/-- Rounding each coordinate places a point in the closed fundamental cube. -/ | |
| 17 | -theorem exists_lattice_near (x : Space) : | |
| 18 | - ∃ n : Lattice, ∀ i : Fin 3, |(x - lattice n) i| ≤ 1 / 2 := by | |
| 19 | - refine ⟨fun i => ⌊x i + 1 / 2⌋, ?_⟩ | |
| 20 | - intro i | |
| 21 | - change |x i - (⌊x i + 1 / 2⌋ : ℝ)| ≤ 1 / 2 | |
| 22 | - have hlo := Int.floor_le (x i + 1 / 2) | |
| 23 | - have hhi := Int.lt_floor_add_one (x i + 1 / 2) | |
| 24 | - rw [abs_le] | |
| 25 | - constructor <;> linarith | |
| 26 | - | |
| 27 | -end NavierStokes.PeriodicLocalization | |
+35 −1 NavierStokes/PeriodizePDE.lean View file
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import NavierStokes.PeriodicLocalization |
| 2 | -import NavierStokes.PeriodizeLatticeCover | |
| 2 | +import Mathlib.Algebra.Order.Floor.Ring | |
| 3 | 3 | import NavierStokes.ResidualRegularity |
| 4 | 4 | import NavierStokes.R3.ProblemStatement |
| 5 | 5 | |
| @@ -13,6 +13,40 @@ Ordinary derivatives, including the nonlinear advection term, therefore | ||
| 13 | 13 | preserve the whole-space equation at its original viscosity. |
| 14 | 14 | -/ |
| 15 | 15 | |
| 16 | +/-! ## From `NavierStokes/PeriodizeLatticeCover.lean` | |
| 17 | + | |
| 18 | +The text of `NavierStokes/PeriodizeLatticeCover.lean`, folded into this file, which was its only importer. -/ | |
| 19 | + | |
| 20 | +section | |
| 21 | + | |
| 22 | +/-! | |
| 23 | +# A nearest integer lattice point | |
| 24 | + | |
| 25 | +Every spatial point lies in a translate of the closed fundamental cube. | |
| 26 | +-/ | |
| 27 | + | |
| 28 | +noncomputable section | |
| 29 | + | |
| 30 | +namespace NavierStokes.PeriodicLocalization | |
| 31 | + | |
| 32 | +open ProblemStatement | |
| 33 | + | |
| 34 | +/-- Rounding each coordinate places a point in the closed fundamental cube. -/ | |
| 35 | +theorem exists_lattice_near (x : Space) : | |
| 36 | + ∃ n : Lattice, ∀ i : Fin 3, |(x - lattice n) i| ≤ 1 / 2 := by | |
| 37 | + refine ⟨fun i => ⌊x i + 1 / 2⌋, ?_⟩ | |
| 38 | + intro i | |
| 39 | + change |x i - (⌊x i + 1 / 2⌋ : ℝ)| ≤ 1 / 2 | |
| 40 | + have hlo := Int.floor_le (x i + 1 / 2) | |
| 41 | + have hhi := Int.lt_floor_add_one (x i + 1 / 2) | |
| 42 | + rw [abs_le] | |
| 43 | + constructor <;> linarith | |
| 44 | + | |
| 45 | +end NavierStokes.PeriodicLocalization | |
| 46 | +end | |
| 47 | + | |
| 48 | +end | |
| 49 | + | |
| 16 | 50 | noncomputable section |
| 17 | 51 | |
| 18 | 52 | namespace NavierStokes.PeriodicLocalization |
+11 −0 routes/s5-ns-periodize-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-ns-periodize-1 | |
| 6 | + | |
| 7 | +One unit of S-5 (#14): the `NavierStokes/Periodize*` family. The one small module that exactly one file imported, `PeriodizeLatticeCover.lean` (27 lines), is folded text-unchanged into its only importer, `PeriodizePDE.lean`, under a heading that names where it came from and in a `section` of its own. `plan.json` is here; the tool that does the fold and its pages are in `docs/s5-folding`. Nothing here reads worse folded than the two files did apart. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +The pull request is open. What comes next is the maintainer's verdict on whether this kind of change is wanted; the rest of the series' folds wait on it, one family per pull request. | |
+9 −0 routes/s5-ns-periodize-1/plan.json added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"NavierStokes/PeriodizePDE.lean": [ | |
| 5 | +"NavierStokes/PeriodizeLatticeCover.lean", | |
| 6 | +"NavierStokes/PeriodizePDE.lean" | |
| 7 | +] | |
| 8 | +} | |
| 9 | +} | |