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

chore(NavierStokes/Slot): delete 3 declarations nothing uses
Browse filesDelete `spacing_ratio`, `spacing_ratio_le` and `width_ratio_le` from `NavierStokes/SlotColoring.lean`; nothing outside the three uses them. Part of #10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main s1-euler-all-3 s1-euler-correction-3 s1-euler-cylinder-3 s1-euler-dirichlet-6 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-finite-3 s1-euler-hilbert-6 s1-euler-lp-3 s1-euler-ordinary-6 s1-euler-packet-3 s1-euler-source-6 s1-euler-transverse-6 s1-euler-volume-3 s1-ns-actual-3 s1-ns-annular-6 s1-ns-base-2 s1-ns-base-6 s1-ns-borel-3 s1-ns-common-6 s1-ns-constructed-3 s1-ns-copy-6 s1-ns-correction-3 s1-ns-curl-6 s1-ns-current-3 s1-ns-cycle-3 s1-ns-edge-6 s1-ns-error-3 s1-ns-even-3 s1-ns-final-6 s1-ns-first-3 s1-ns-flat-3 s1-ns-fourier-3 s1-ns-graph-6 s1-ns-harmonic-6 s1-ns-heat-3 s1-ns-joint-3 s1-ns-label-6 s1-ns-linear-6 s1-ns-localized-1 s1-ns-localized-6 s1-ns-mean-1 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-offplane-6 s1-ns-parametric-6 s1-ns-particular-2 s1-ns-particular-6 s1-ns-partitioned-6 s1-ns-periodic-3 s1-ns-periodized-6 s1-ns-physical-3 s1-ns-prepared-6 s1-ns-primary-2 s1-ns-primary-6 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-signed-3 s1-ns-slot-2 s1-ns-slow-6 s1-ns-smooth-3 s1-ns-spacetime-3 s1-ns-temporal-3 s1-ns-terminal-6 s1-ns-torus-3 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-wave-3 s1-ns-weighted-3 s1-ns-whole-3 s1-ns-within-6
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −56 NavierStokes/SlotColoring.lean View file
| @@ -46,48 +46,6 @@ theorem spacing_pos (a : ℝ) {n : ℕ} (hn : 1 ≤ n) : 0 < spacing a n := by | ||
| 46 | 46 | have hn' : (0 : ℝ) < n := by exact_mod_cast (by omega : 0 < n) |
| 47 | 47 | exact div_pos (Real.rpow_pos_of_pos (by norm_num) _) (pow_pos hn' _) |
| 48 | 48 | |
| 49 | -theorem spacing_ratio (a : ℝ) {n m : ℕ} (hn : 1 ≤ n) (hm : 1 ≤ m) : | |
| 50 | - spacing a n / spacing a m = | |
| 51 | - ((m : ℝ) / (n : ℝ)) ^ 6 * (2 : ℝ) ^ (((m : ℝ) - (n : ℝ)) * a) := by | |
| 52 | - have hn' : (n : ℝ) ≠ 0 := by exact_mod_cast (by omega : n ≠ 0) | |
| 53 | - have hm' : (m : ℝ) ≠ 0 := by exact_mod_cast (by omega : m ≠ 0) | |
| 54 | - have he : (2 : ℝ) ^ (-(m : ℝ) * a) ≠ 0 := ne_of_gt (Real.rpow_pos_of_pos (by norm_num) _) | |
| 55 | - have hp : (2 : ℝ) ^ (((m : ℝ) - (n : ℝ)) * a) = | |
| 56 | - (2 : ℝ) ^ (-(n : ℝ) * a) / (2 : ℝ) ^ (-(m : ℝ) * a) := by | |
| 57 | - rw [← Real.rpow_sub (by norm_num : (0 : ℝ) < 2)] | |
| 58 | - congr 1 | |
| 59 | - ring | |
| 60 | - rw [hp] | |
| 61 | - unfold spacing | |
| 62 | - rw [div_pow] | |
| 63 | - field_simp | |
| 64 | - | |
| 65 | -/-- The mesh ratio is uniform across levels at distance at most four. -/ | |
| 66 | -theorem spacing_ratio_le (a A : ℝ) {n m : ℕ} | |
| 67 | - (hn : 1 ≤ n) (hm : 1 ≤ m) (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) | |
| 68 | - (ha : |a| ≤ A) : | |
| 69 | - spacing a n / spacing a m ≤ (5 : ℝ) ^ 6 * (2 : ℝ) ^ (4 * A) := by | |
| 70 | - rw [spacing_ratio a hn hm] | |
| 71 | - have hn' : (0 : ℝ) < n := by exact_mod_cast (by omega : 0 < n) | |
| 72 | - have hm0 : (0 : ℝ) ≤ m := by positivity | |
| 73 | - have hm5 : (m : ℝ) ≤ 5 * (n : ℝ) := by exact_mod_cast (by omega : m ≤ 5 * n) | |
| 74 | - have hquot : (m : ℝ) / (n : ℝ) ≤ 5 := (div_le_iff₀ hn').mpr hm5 | |
| 75 | - have hpow : ((m : ℝ) / (n : ℝ)) ^ 6 ≤ (5 : ℝ) ^ 6 := | |
| 76 | - pow_le_pow_left₀ (div_nonneg hm0 hn'.le) hquot 6 | |
| 77 | - have hdiff : |(m : ℝ) - (n : ℝ)| ≤ 4 := by | |
| 78 | - have h1 : (n : ℝ) ≤ (m : ℝ) + 4 := by exact_mod_cast hnm | |
| 79 | - have h2 : (m : ℝ) ≤ (n : ℝ) + 4 := by exact_mod_cast hmn | |
| 80 | - rw [abs_le] | |
| 81 | - constructor <;> linarith | |
| 82 | - have hexp : ((m : ℝ) - (n : ℝ)) * a ≤ 4 * A := by | |
| 83 | - calc | |
| 84 | - ((m : ℝ) - (n : ℝ)) * a ≤ |((m : ℝ) - (n : ℝ)) * a| := le_abs_self _ | |
| 85 | - _ = |(m : ℝ) - (n : ℝ)| * |a| := abs_mul _ _ | |
| 86 | - _ ≤ 4 * |a| := mul_le_mul_of_nonneg_right hdiff (abs_nonneg a) | |
| 87 | - _ ≤ 4 * A := mul_le_mul_of_nonneg_left ha (by norm_num) | |
| 88 | - exact mul_le_mul hpow (Real.rpow_le_rpow_of_exponent_le (by norm_num) hexp) | |
| 89 | - (Real.rpow_nonneg (by norm_num) _) (by positivity) | |
| 90 | - | |
| 91 | 49 | def axisExponent (D : ℝ) : Fin 3 → ℝ := ![1 / 2, D, 1] |
| 92 | 50 | def width (D : ℝ) (j : Fin 3) (n : ℕ) : ℝ := spacing (axisExponent D j) n |
| 93 | 51 | def ratioBound (D : ℝ) : ℝ := (5 : ℝ) ^ 6 * (2 : ℝ) ^ (4 * (1 + |D|)) |
| @@ -95,20 +53,6 @@ def ratioBound (D : ℝ) : ℝ := (5 : ℝ) ^ 6 * (2 : ℝ) ^ (4 * (1 + |D|)) | ||
| 95 | 53 | theorem width_pos (D : ℝ) (j : Fin 3) {n : ℕ} (hn : 1 ≤ n) : 0 < width D j n := |
| 96 | 54 | spacing_pos _ hn |
| 97 | 55 | |
| 98 | -theorem width_ratio_le (D : ℝ) (j : Fin 3) {n m : ℕ} | |
| 99 | - (hn : 1 ≤ n) (hm : 1 ≤ m) (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) : | |
| 100 | - width D j n / width D j m ≤ ratioBound D := by | |
| 101 | - apply spacing_ratio_le _ _ hn hm hnm hmn | |
| 102 | - fin_cases j | |
| 103 | - · change |(1 / 2 : ℝ)| ≤ 1 + |D| | |
| 104 | - rw [abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2)] | |
| 105 | - linarith [abs_nonneg D] | |
| 106 | - · change |D| ≤ 1 + |D| | |
| 107 | - linarith | |
| 108 | - · change |(1 : ℝ)| ≤ 1 + |D| | |
| 109 | - rw [abs_one] | |
| 110 | - linarith [abs_nonneg D] | |
| 111 | - | |
| 112 | 56 | def physicalBox (D : ℝ) (L : Label) : Set Position := |
| 113 | 57 | {x | ∀ j, |x j - width D j L.1 * (L.2.1 j : ℝ)| ≤ 2 * width D j L.1} |
| 114 | 58 | |
+30 −0 routes/s1-ns-slot-2/README.md added View file
| @@ -0,0 +1,30 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-slot-2 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Slot*`: the 3 declarations the unit | |
| 8 | +lists, 56 lines in one file, `NavierStokes/SlotColoring.lean` — `spacing_ratio`, | |
| 9 | +`spacing_ratio_le` and `width_ratio_le`. The diff is deletions only; no statement and no proof that | |
| 10 | +stays is changed. The earlier `NavierStokes/Slot*` unit of #10 (`s1-ns-slot-1`, 23 declarations) is | |
| 11 | +merged at `8ab4d70`; the three here are still on `main` and are not among its deletions. | |
| 12 | + | |
| 13 | +How the list was cut. Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, upstream | |
| 14 | +`f9e8bc5`) found them unreachable from the four Comparator theorems; `docs/s1-dead-code/README.md` | |
| 15 | +is the plan. This wave was cut on this project's main at `4385cbe` after the first wave's reviews, | |
| 16 | +under the keep rule that the paper's results stay. None of the three is in the kept set, and each | |
| 17 | +one's only user is another of the three (`spacing_ratio` by `spacing_ratio_le`, `spacing_ratio_le` | |
| 18 | +by `width_ratio_le`, and `width_ratio_le` by nothing), so no user is left on main. | |
| 19 | + | |
| 20 | +Checked before committing: `git grep -n -w` for each of the three short names over the whole tree | |
| 21 | +finds no hit, in Lean files or elsewhere. The one deleted docstring ("The mesh ratio is uniform | |
| 22 | +across levels at distance at most four.") cites no numbered Lemma, Theorem, Proposition, Corollary, | |
| 23 | +Section or Equation of the paper. `python3 checks/challenge.py .` ends with `ok`. | |
| 24 | + | |
| 25 | +`ratioBound` stays: nothing uses it now that `width_ratio_le` is gone, but deleting it is not this | |
| 26 | +unit. | |
| 27 | + | |
| 28 | +## Next | |
| 29 | + | |
| 30 | +Push and open the pull request (`Part of #10`); the `build` check says whether it compiles. | |