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

perf(NavierStokes/Cylindrical): 1 file cheaper to elaborate (−10.5%, measured)
Browse filesPart of #11. Edits inside proofs only in NavierStokes/CylindricalResidual.lean: simp argument lists lose entries that do not change the goal, and one `nlinarith` becomes `linarith`. No statement, import or docstring changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main maintainer-statement p1-ns-physical s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s1-ns-weighted-10 s1-ns-weighted-12 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-instances-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-cylindrical-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+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. | |