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: #584 perf(NavierStokes/Profile): 1 file cheaper to elaborate (−25.1%, measured)
1 commit
+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. | |