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 #652 from s2-ns-residual-1
Browse filesperf(NavierStokes/Residual): 1 file cheaper to elaborate (−0.5%, measured)
main s2-instances-1 s2-ns-periodic-1 s2-ns-smooth-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
+2 −4 NavierStokes/ResidualCalculus.lean View file
| @@ -36,8 +36,7 @@ theorem spatialDerivative_add | ||
| 36 | 36 | (hu : DifferentiableAt ℝ (fun y : Space => u (t, y)) x) |
| 37 | 37 | (he : DifferentiableAt ℝ (fun y : Space => e (t, y)) x) : |
| 38 | 38 | spatialDerivative (fun z => u z + e z) t x = |
| 39 | - spatialDerivative u t x + spatialDerivative e t x := by | |
| 40 | - exact fderiv_fun_add hu he | |
| 39 | + spatialDerivative u t x + spatialDerivative e t x := fderiv_fun_add hu he | |
| 41 | 40 | |
| 42 | 41 | /-- Pressure-gradient additivity follows from derivative additivity and the |
| 43 | 42 | fixed Euclidean coordinate basis in the PDE target. -/ |
| @@ -69,8 +68,7 @@ theorem advection_add | ||
| 69 | 68 | theorem spatialDerivative_const_smul |
| 70 | 69 | (u : VelocityField) (t : ℝ) (x : Space) (c : ℝ) |
| 71 | 70 | (hu : DifferentiableAt ℝ (fun y : Space => u (t, y)) x) : |
| 72 | - spatialDerivative (fun z => c • u z) t x = c • spatialDerivative u t x := by | |
| 73 | - exact fderiv_fun_const_smul hu c | |
| 71 | + spatialDerivative (fun z => c • u z) t x = c • spatialDerivative u t x := fderiv_fun_const_smul hu c | |
| 74 | 72 | |
| 75 | 73 | /-- Constant-scalar linearity of divergence, using coordinate evaluation. -/ |
| 76 | 74 | theorem spatialDivergence_const_smul |
+21 −0 routes/s2-ns-residual-1/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-residual-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (make slow files faster), on the family `NavierStokes/Residual*`: | |
| 8 | +make `NavierStokes/ResidualCalculus.lean` cheaper to elaborate. Two proofs fold | |
| 9 | +`by exact fderiv_fun_add hu he` and `by exact fderiv_fun_const_smul hu c` into | |
| 10 | +the term applied after `:=` (4 lines out, 2 in). Proof only: no statement, no | |
| 11 | +import line, no docstring changes, and no `maxHeartbeats`. The file goes from | |
| 12 | +7.30 G to 7.26 G instructions retired (−0.5%), counted at `df2f18f` as `PR.md` | |
| 13 | +describes; nothing here was measured again. | |
| 14 | + | |
| 15 | +`python3 checks/challenge.py .` ends with `ok`; `build` is left to the site. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Open the pull request. A later unit can take the other slow files of the family | |
| 20 | +(`ResidualPolarGraph.lean`, `ResidualRegularity.lean`, `ResidualStability.lean` | |
| 21 | +if `docs/build-profile.md` lists them). | |