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/Profile): 1 file cheaper to elaborate (−25.1%, measured)
Browse filesCo-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-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-profile-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
+8 −8 NavierStokes/ProfileSpectralCone.lean View file
| @@ -33,7 +33,7 @@ theorem referenceCone_of_trueCone {F p₁ p₂ a c : ℝ} (hF : 0 < F) | ||
| 33 | 33 | apply PrimaryRepresentatives.referenceCone_of_shear_coordinates hF h.1 |
| 34 | 34 | have he := shear_size_mul (c := c) h.1.ne' |
| 35 | 35 | have hm := mul_lt_mul_of_pos_left h.2.1 h.1 |
| 36 | - nlinarith | |
| 36 | + linarith | |
| 37 | 37 | |
| 38 | 38 | /-- The square of the actual unstable eigenvector slope. -/ |
| 39 | 39 | theorem c0_sq_signedShear {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) |
| @@ -42,7 +42,7 @@ theorem c0_sq_signedShear {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) | ||
| 42 | 42 | have ho : 2 * a < a ^ 2 + (-c) ^ 2 := by |
| 43 | 43 | have he := shear_size_mul (c := c) ha.ne' |
| 44 | 44 | have hm := mul_lt_mul_of_pos_left hv ha |
| 45 | - nlinarith | |
| 45 | + linarith | |
| 46 | 46 | have hr := PrimaryRepresentatives.referenceCone_of_shear_coordinates hF ha ho |
| 47 | 47 | have hn0 : ‖F • !₂[-a, -c]‖ ≠ 0 := norm_ne_zero_iff.mpr hr.shear_ne_zero |
| 48 | 48 | have hn : ‖F • !₂[-a, -c]‖ ^ 2 = F ^ 2 * (a ^ 2 + c ^ 2) := by |
| @@ -59,7 +59,7 @@ theorem c0_sq_signedShear {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) | ||
| 59 | 59 | change -((2 * F * (F * -a)) / ‖F • !₂[-a, -c]‖ + ‖F • !₂[-a, -c]‖) / |
| 60 | 60 | ((2 * F * (F * -a)) / ‖F • !₂[-a, -c]‖) = _ |
| 61 | 61 | field_simp [hF.ne', ha.ne', hn0] |
| 62 | - nlinarith [hn] | |
| 62 | + linarith [hn] | |
| 63 | 63 | |
| 64 | 64 | /-- Projection of the actual stress coordinates onto the normal. -/ |
| 65 | 65 | theorem stress_inner_normal (F τ p₁ p₂ a c : ℝ) (ha : a ≠ 0) : |
| @@ -85,7 +85,7 @@ theorem stress_inner_transverse (F τ p₁ p₂ a c : ℝ) (ha : a ≠ 0) : | ||
| 85 | 85 | calc |
| 86 | 86 | _ = (τ * F / ‖F • !₂[-a, -c]‖) * (a * p₂ - c * p₁) := by |
| 87 | 87 | simp [PrimaryRepresentatives.transverseDirection, PrimaryRepresentatives.normalDirection, |
| 88 | - MovingFrameODE.quarterTurn, PiLp.inner_apply, Fin.sum_univ_two] | |
| 88 | + MovingFrameODE.quarterTurn, PiLp.inner_apply] | |
| 89 | 89 | ring |
| 90 | 90 | _ = _ := by rw [← he]; ring |
| 91 | 91 | |
| @@ -113,7 +113,7 @@ theorem spectral_cones_of_trueCone {F τ p₁ p₂ a c : ℝ} (hF : 0 < F) (hτ | ||
| 113 | 113 | have hsq : (PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (p₂ - p₁ * (c / a))) ^ 2 < |
| 114 | 114 | (p₁ + p₂ * (c / a) - a * (1 + (c / a) ^ 2)) ^ 2 := by |
| 115 | 115 | rw [mul_pow, hc] |
| 116 | - nlinarith [hq.2] | |
| 116 | + linarith [hq.2] | |
| 117 | 117 | have habs : |PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (p₂ - p₁ * (c / a))| < |
| 118 | 118 | p₁ + p₂ * (c / a) - a * (1 + (c / a) ^ 2) := by |
| 119 | 119 | nlinarith [sq_abs (PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (p₂ - p₁ * (c / a))), |
| @@ -137,7 +137,7 @@ theorem targetCone_of_signedShear {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) | ||
| 137 | 137 | have ho : 2 * a < a ^ 2 + (-c) ^ 2 := by |
| 138 | 138 | have he := shear_size_mul (c := c) ha.ne' |
| 139 | 139 | have hm := mul_lt_mul_of_pos_left hv ha |
| 140 | - nlinarith | |
| 140 | + linarith | |
| 141 | 141 | have hr := PrimaryRepresentatives.referenceCone_of_shear_coordinates hF ha ho |
| 142 | 142 | have hk : 0 < F / ‖F • !₂[-a, -c]‖ := |
| 143 | 143 | div_pos hF (norm_pos_iff.mpr hr.shear_ne_zero) |
| @@ -153,7 +153,7 @@ theorem targetCone_of_signedShear {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) | ||
| 153 | 153 | have hsq : (PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (a * T 1 - c * T 0)) ^ 2 < |
| 154 | 154 | (a * T 0 + c * T 1) ^ 2 := by |
| 155 | 155 | rw [mul_pow, c0_sq_signedShear hF ha hv] |
| 156 | - nlinarith only [hquad] | |
| 156 | + linarith only [hquad] | |
| 157 | 157 | have habs : |PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (a * T 1 - c * T 0)| < |
| 158 | 158 | a * T 0 + c * T 1 := by |
| 159 | 159 | nlinarith [sq_abs (PrimaryRepresentatives.c0 F (F • !₂[-a, -c]) * (a * T 1 - c * T 0)), |
| @@ -183,7 +183,7 @@ theorem targetCone_of_tilt {F a c : ℝ} (hF : 0 < F) (ha : 0 < a) | ||
| 183 | 183 | exact mul_pos (mul_pos ha hT) hin |
| 184 | 184 | · rw [hi, ht] |
| 185 | 185 | have hm := mul_pos (sq_pos_of_pos (mul_pos ha hT)) hgap |
| 186 | - nlinarith only [hm] | |
| 186 | + linarith only [hm] | |
| 187 | 187 | |
| 188 | 188 | /-! ## The actual profile histories and stresses -/ |
| 189 | 189 | |
+11 −0 routes/s2-ns-profile-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-profile-1 | |
| 6 | + | |
| 7 | +Makes one file of the family `NavierStokes/Profile*` cheaper to elaborate: `NavierStokes/ProfileSpectralCone.lean`, 58.90 G to 44.12 G instructions retired by `lean` elaborating it alone (−25.1%). The diff (8 lines out, 8 in) changes proofs only: `nlinarith` becomes `linarith` in seven places and one `simp` list drops `Fin.sum_univ_two`. No statement, import line or docstring changes, and there is no `maxHeartbeats`. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +Push and open the pull request into `main` (`Part of #11`); the maintainer's review comes after `challenge` and `build`. The other files of the family and the other units of #11 are separate. | |