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

| 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 |