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

chore(NavierStokes/Covariance): delete 2 declarations nothing uses #161
Merged
+0 −32 NavierStokes/Covariance.lean View file
| @@ -82,22 +82,6 @@ theorem inverse_formula {a b scaleMinus scalePlus : ℝ} (m t : ℝ) | ||
| 82 | 82 | (ne_of_gt hMinus) (ne_of_gt hPlus)] |
| 83 | 83 | rw [Matrix.mulVec_mulVec, Matrix.nonsing_inv_mul _ hdet, Matrix.one_mulVec] |
| 84 | 84 | |
| 85 | -theorem solution_unique {a b scaleMinus scalePlus m t : ℝ} | |
| 86 | - (ha : 0 < a) (hb : 0 < b) | |
| 87 | - (hMinus : 0 < scaleMinus) (hPlus : 0 < scalePlus) | |
| 88 | - (y : Fin 2 → ℝ) | |
| 89 | - (hy : (signedMatrix a b scaleMinus scalePlus).mulVec y = target m t) : | |
| 90 | - y = coefficients a b scaleMinus scalePlus m t := by | |
| 91 | - have hdet : IsUnit (signedMatrix a b scaleMinus scalePlus).det := | |
| 92 | - isUnit_iff_ne_zero.mpr (determinant_ne_zero ha hb hMinus hPlus) | |
| 93 | - calc | |
| 94 | - y = (signedMatrix a b scaleMinus scalePlus)⁻¹.mulVec | |
| 95 | - ((signedMatrix a b scaleMinus scalePlus).mulVec y) := by | |
| 96 | - rw [Matrix.mulVec_mulVec, Matrix.nonsing_inv_mul _ hdet, Matrix.one_mulVec] | |
| 97 | - _ = (signedMatrix a b scaleMinus scalePlus)⁻¹.mulVec (target m t) := by rw [hy] | |
| 98 | - _ = coefficients a b scaleMinus scalePlus m t := | |
| 99 | - inverse_formula m t ha hb hMinus hPlus | |
| 100 | - | |
| 101 | 85 | /-- A strict geometric cone condition makes both squared amplitudes positive. -/ |
| 102 | 86 | theorem coefficients_pos {a b scaleMinus scalePlus m t : ℝ} |
| 103 | 87 | (ha : 0 < a) (hb : 0 < b) |
| @@ -112,22 +96,6 @@ theorem coefficients_pos {a b scaleMinus scalePlus m t : ℝ} | ||
| 112 | 96 | · change 0 < (b * m + a * t) / (2 * a * b * scalePlus) |
| 113 | 97 | exact div_pos (by linarith) (by positivity) |
| 114 | 98 | |
| 115 | -/-- The same strict cone condition is necessary as well as sufficient. -/ | |
| 116 | -theorem coefficients_pos_iff {a b scaleMinus scalePlus m t : ℝ} | |
| 117 | - (ha : 0 < a) (hb : 0 < b) | |
| 118 | - (hMinus : 0 < scaleMinus) (hPlus : 0 < scalePlus) : | |
| 119 | - (∀ i, 0 < coefficients a b scaleMinus scalePlus m t i) ↔ |a * t| < b * m := by | |
| 120 | - constructor | |
| 121 | - · intro hy | |
| 122 | - have hm : 0 < 2 * a * b * scaleMinus := by positivity | |
| 123 | - have hp : 0 < 2 * a * b * scalePlus := by positivity | |
| 124 | - have hnMinus : 0 < b * m - a * t := | |
| 125 | - (div_pos_iff_of_pos_right hm).mp (by simpa [coefficients] using hy 0) | |
| 126 | - have hnPlus : 0 < b * m + a * t := | |
| 127 | - (div_pos_iff_of_pos_right hp).mp (by simpa [coefficients] using hy 1) | |
| 128 | - exact abs_lt.mpr ⟨by linarith, by linarith⟩ | |
| 129 | - · exact coefficients_pos ha hb hMinus hPlus | |
| 130 | - | |
| 131 | 99 | /-- The primary velocity amplitudes are positive square roots of the solve. -/ |
| 132 | 100 | def amplitudes (a b scaleMinus scalePlus m t : ℝ) : Fin 2 → ℝ := |
| 133 | 101 | fun i => Real.sqrt (coefficients a b scaleMinus scalePlus m t i) |
+23 −0 routes/s1-ns-covariance-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-covariance-1 | |
| 6 | + | |
| 7 | +One unit of #10 (S-1), in the family `NavierStokes/Covariance*`: delete the | |
| 8 | +declarations of `NavierStokes/Covariance.lean` that nothing uses. The unit named | |
| 9 | +three; two are deleted here. | |
| 10 | + | |
| 11 | +- `NavierStokes.Covariance.solution_unique` (lines 85–99) | |
| 12 | +- `NavierStokes.Covariance.coefficients_pos_iff` (lines 115–129) | |
| 13 | + | |
| 14 | +The third, `NavierStokes.Covariance.scaled_primary_covariance`, stays: its | |
| 15 | +docstring cites equation (29) of the Navier–Stokes paper, and this project keeps | |
| 16 | +a declaration whose docstring cites the paper. It is not part of this pull | |
| 17 | +request. | |
| 18 | + | |
| 19 | +## Next | |
| 20 | + | |
| 21 | +Open the pull request for the two deletions and let `challenge` and `build` | |
| 22 | +report. A later unit can delete `scaled_primary_covariance` only if the | |
| 23 | +maintainer decides the docstring's (29) does not hold it. | |