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: #562 perf(NavierStokes/Cylindrical): 1 file cheaper to elaborate (−10.5%, measured)
1 commit
+6 −8 NavierStokes/CylindricalResidual.lean View file
| @@ -46,8 +46,7 @@ theorem frame_apply (θ : ℝ) (v : Space) : | ||
| 46 | 46 | frame θ v = pack (Real.cos θ * v 0 - Real.sin θ * v 1) |
| 47 | 47 | (Real.sin θ * v 0 + Real.cos θ * v 1) (v 2) := by |
| 48 | 48 | ext i |
| 49 | - fin_cases i <;> simp [frame, horizontal, connection, vertical, packDerivative, | |
| 50 | - pack, coordinateVector] <;> ring | |
| 49 | + fin_cases i <;> simp [frame, horizontal, connection, vertical, pack, coordinateVector] <;> ring | |
| 51 | 50 | |
| 52 | 51 | theorem connection_apply (v : Space) : connection v = pack (-v 1) (v 0) 0 := by |
| 53 | 52 | simp [connection, packDerivative_apply] |
| @@ -55,7 +54,7 @@ theorem connection_apply (v : Space) : connection v = pack (-v 1) (v 0) 0 := by | ||
| 55 | 54 | theorem frame_inverse (θ : ℝ) (v : Space) : frame (-θ) (frame θ v) = v := by |
| 56 | 55 | ext i |
| 57 | 56 | fin_cases i |
| 58 | - · simp [frame_apply, Real.cos_neg, Real.sin_neg] | |
| 57 | + · simp [frame_apply, Real.cos_neg] | |
| 59 | 58 | linear_combination (v 0) * Real.cos_sq_add_sin_sq θ |
| 60 | 59 | · simp [frame_apply, Real.cos_neg, Real.sin_neg] |
| 61 | 60 | linear_combination (v 1) * Real.cos_sq_add_sin_sq θ |
| @@ -77,7 +76,7 @@ theorem hasFDerivAt_chart (q : Space) : HasFDerivAt chart (chartJacobian q) q := | ||
| 77 | 76 | have h2 := (projection 2).hasFDerivAt (x := q) |
| 78 | 77 | convert! hasFDerivAt_pack (h0.mul h1.cos) (h0.mul h1.sin) h2 using 1 |
| 79 | 78 | ext v i |
| 80 | - fin_cases i <;> simp [chartJacobian_apply, frame_apply, packDerivative_apply] <;> ring | |
| 79 | + fin_cases i <;> simp [chartJacobian_apply, frame_apply] <;> ring | |
| 81 | 80 | |
| 82 | 81 | theorem contDiff_chart {n : WithTop ℕ∞} : ContDiff ℝ n chart := by |
| 83 | 82 | unfold chart pack |
| @@ -253,7 +252,7 @@ theorem scalarLaplacian_pullback {f : Space → E} {q : Space} | ||
| 253 | 252 | dCoord_chart_one, dCoord_chart_two, hessian, pack, map_add, map_smul, |
| 254 | 253 | map_zero, _root_.add_apply, _root_.smul_apply, |
| 255 | 254 | zero_smul, add_zero] |
| 256 | - match_scalars <;> field_simp [hr] <;> nlinarith [Real.cos_sq_add_sin_sq (q 1)] | |
| 255 | + match_scalars <;> field_simp [hr] <;> linarith [Real.cos_sq_add_sin_sq (q 1)] | |
| 257 | 256 | |
| 258 | 257 | theorem contDiff_frame {n : WithTop ℕ∞} : ContDiff ℝ n frame := by |
| 259 | 258 | unfold frame |
| @@ -268,8 +267,7 @@ theorem hasFDerivAt_frameField (q : Space) : | ||
| 268 | 267 | convert! ((h1.cos.smul_const horizontal).add (h1.sin.smul_const connection)).add_const |
| 269 | 268 | vertical using 1 |
| 270 | 269 | ext v w i |
| 271 | - fin_cases i <;> simp [ frame_apply, horizontal, connection, packDerivative, | |
| 272 | - pack, coordinateVector] <;> ring | |
| 270 | + fin_cases i <;> simp [ frame_apply, horizontal, connection, pack, coordinateVector] <;> ring | |
| 273 | 271 | |
| 274 | 272 | /-- Cartesian representation of cylindrical vector components. -/ |
| 275 | 273 | noncomputable def encode (w : Space → Space) (q : Space) : Space := frame (q 1) (w q) |
| @@ -435,7 +433,7 @@ theorem cartesianGradient_pullback {f : Space → ℝ} {q : Space} | ||
| 435 | 433 | linear_combination -(fderiv ℝ f (chart q) (EuclideanSpace.single 1 1)) * |
| 436 | 434 | Real.cos_sq_add_sin_sq (q 1) |
| 437 | 435 | · simp [euclideanGradient, Fin.sum_univ_three, frame_apply, |
| 438 | - pack, dCoord, coordinateVector] | |
| 436 | + dCoord, coordinateVector] | |
| 439 | 437 | |
| 440 | 438 | /-- Pullback of a time-dependent velocity into the moving cylindrical frame. -/ |
| 441 | 439 | noncomputable def velocityComponents (u : VelocityField) : VelocityField := |
+29 −0 routes/s2-ns-cylindrical-1/README.md added View file
| @@ -0,0 +1,29 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-cylindrical-1 | |
| 6 | + | |
| 7 | +One unit of S-2 on the family `NavierStokes/Cylindrical*`: one file cheaper to | |
| 8 | +elaborate, without changing a statement. | |
| 9 | + | |
| 10 | +`NavierStokes/CylindricalResidual.lean` (14 changed lines, all inside proofs): | |
| 11 | +`frame_apply` and `hasFDerivAt_frameField` lose the `packDerivative` and | |
| 12 | +`vertical` entries from their `simp` lists, `hasFDerivAt_chart` loses | |
| 13 | +`packDerivative_apply`, the first branch of `frame_inverse` loses `Real.sin_neg`, | |
| 14 | +`cartesianGradient_pullback` loses `pack` from its `simp` list, and | |
| 15 | +`scalarLaplacian_pullback` uses `linarith` where `nlinarith` was enough. | |
| 16 | + | |
| 17 | +Cost: 89.32 G → 79.97 G retired user instructions, counting `lean` elaborating | |
| 18 | +the one file alone (`lean -j1 -DElab.async=false`, `perf stat -e | |
| 19 | +instructions:u`), main at `d956c7c` against the same tree with the edits. That | |
| 20 | +is −10.5%. The numbers and how they were taken are in the pull request | |
| 21 | +description; nothing was measured again here. | |
| 22 | + | |
| 23 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 24 | +run of 2026-12-03), carried onto this project's main. | |
| 25 | + | |
| 26 | +## Next | |
| 27 | + | |
| 28 | +Push, open the pull request into `main`, let `challenge` and `build` report, and | |
| 29 | +answer the maintainer's review. No further edits to the file are planned. | |