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/Global): 1 file cheaper to elaborate (−0.5%, measured) #625
Merged
+5 −5 NavierStokes/GlobalSlowProfiles.lean View file
| @@ -585,7 +585,7 @@ theorem moments_congr_positive {n : ℕ} | ||
| 585 | 585 | apply setIntegral_congr_fun measurableSet_Ioi |
| 586 | 586 | intro R hR |
| 587 | 587 | simp only [PositiveOrderMoments.rowDensity, PositiveOrderMoments.pressureGradient, |
| 588 | - PositiveOrderMoments.cauchy, PositiveAxisSystem.convolution, hu R hR, he R hR, ho R hR] | |
| 588 | + PositiveOrderMoments.cauchy, hu R hR, he R hR, ho R hR] | |
| 589 | 589 | |
| 590 | 590 | theorem actual_pressureGradient_smooth {S : Set ℝ} (C : ℝ) (phi : ℕ → EvenProfile S) |
| 591 | 591 | (omega : EvenProfile S) (n : ℕ) : |
| @@ -1265,7 +1265,7 @@ theorem xProfile_previousOmegaDivX {S : Set ℝ} {h : ℝ} (d : Domain S h) | ||
| 1265 | 1265 | | succ k => exact xProfile_axialOp2 d _ _ hX heta |
| 1266 | 1266 | simp only [previousOmegaDivX, AxisSourceRegularity.previousOmegaDivX, omegaDivX, |
| 1267 | 1267 | AxisSourceRegularity.omegaDivX, xProfile_sub, xProfile_add, xProfile_mul, |
| 1268 | - xProfile_constant, hsum, hs, xProfile_timeOp d _ _ hX heta, | |
| 1268 | + xProfile_constant, hsum, xProfile_timeOp d _ _ hX heta, | |
| 1269 | 1269 | xProfile_radiusSquared S hX.le] |
| 1270 | 1270 | simp only [ |
| 1271 | 1271 | xProfile_axialOp d _ _ hX heta, xProfile_partialX d.isOpen _ hX heta, |
| @@ -1430,7 +1430,7 @@ theorem massHistory_of_composition (u : EvenProfile S) (g : Field) {R eta : ℝ} | ||
| 1430 | 1430 | have hint := intervalIntegral.integral_comp_mul_deriv' |
| 1431 | 1431 | (f := fun r : ℝ => r ^ 2 / 2) (f' := fun r => r) (g := fun X => g (X, eta)) |
| 1432 | 1432 | (fun r _ => hder r) continuousOn_id (hg.mono him) |
| 1433 | - simp only [zero_pow (by norm_num : 2 ≠ 0), zero_div, Function.comp_apply] at hint | |
| 1433 | + simp only [zero_pow (by norm_num : 2 ≠ 0), zero_div] at hint | |
| 1434 | 1434 | change (∫ r in (0 : ℝ)..R, r * u (r, eta)) = ∫ X in (0 : ℝ)..(R ^ 2 / 2), g (X, eta) |
| 1435 | 1435 | rw [← hint] |
| 1436 | 1436 | apply intervalIntegral.integral_congr |
| @@ -1540,7 +1540,7 @@ theorem profiles_radial_inner_beta_axis {n : ℕ} (hn : 0 < n) {eta : ℝ} (heta | ||
| 1540 | 1540 | have hi : R ^ 2 / 2 ≤ inner := by |
| 1541 | 1541 | have hh := (sq_le_sq₀ hR.1.le hs.le).2 hR.2.le |
| 1542 | 1542 | rw [Real.sq_sqrt L.inner_pos.le] at hh |
| 1543 | - nlinarith [sq_nonneg R] | |
| 1543 | + linarith [sq_nonneg R] | |
| 1544 | 1544 | change (profiles s n).beta (R, eta) = localExtension L n 4 (R, eta) |
| 1545 | 1545 | rw [profiles_radial_inner_beta_pos L hn hR.1 hi heta, localExtension_radial L n 4 hR.1.le hi] |
| 1546 | 1546 | have hc := he.closure (slice_smooth (profiles s n).beta.smooth heta).continuous |
| @@ -1750,7 +1750,7 @@ theorem profiles_pressureCoefficient {S : Set ℝ} {h C : ℝ} (s : Scheme S h C | ||
| 1750 | 1750 | rw [profiles_x_pressure_derivative s hn hX heta, SlowResidualMatching.convolution_eq_positiveAxis] |
| 1751 | 1751 | simp only [pressureSource, |
| 1752 | 1752 | xProfile, sum_apply, mul_apply, sub_apply, constant_apply, |
| 1753 | - PositiveAxisSystem.convolution, inv_pow, div_eq_mul_inv] | |
| 1753 | + PositiveAxisSystem.convolution, div_eq_mul_inv] | |
| 1754 | 1754 | ring |
| 1755 | 1755 | |
| 1756 | 1756 | noncomputable def component {S : Set ℝ} (q : Coefficient S) (i : Fin 4) : EvenProfile S := |
+23 −0 routes/s2-ns-global-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-global-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (issue #11), on the family `NavierStokes/Global*`: make one file cheaper to | |
| 8 | +elaborate. `NavierStokes/GlobalSlowProfiles.lean` loses five lines inside proofs only — a | |
| 9 | +`simp only` list drops entries that do not change the goal (twice), one `simp only` drops | |
| 10 | +`Function.comp_apply`, one `nlinarith` becomes `linarith`, and one more `simp only` list | |
| 11 | +drops `inv_pow`. No statement, import or docstring changes; no `maxHeartbeats`. | |
| 12 | + | |
| 13 | +The edits are those of Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 14 | +run of 2026-12-03), carried onto main at `df2f18f` and counted there file by file. Counted | |
| 15 | +as instructions retired in user space by `lean -j1 -DElab.async=false` under | |
| 16 | +`perf stat -e instructions:u`, main before and the same tree with the edits after: | |
| 17 | +50.09 G → 49.82 G (−0.5%). This is a count, not a time, and it does not show the build as a | |
| 18 | +whole is faster. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +The pull request is open. Wait for the maintainer agent's review, and for `build` to say | |
| 23 | +what it says about the two `simp only` entries removed here. | |