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/Angular): delete 14 declarations nothing uses #327
Merged
+0 −103 NavierStokes/AngularMomentReset.lean View file
| @@ -355,74 +355,12 @@ def baseE (lam e0 y : ℝ) : ℝ := e0 * Real.exp ((-1 / 2 - lam) * y) | ||
| 355 | 355 | def modifiedE (lam e0 y0 : ℝ) (c : Coeff) (y : ℝ) : ℝ := |
| 356 | 356 | baseE lam e0 y * (1 + relative c (y - y0)) |
| 357 | 357 | |
| 358 | -def angularScale (lam e0 X0 y0 : ℝ) : ℝ := | |
| 359 | - X0 * Real.sqrt (2 * X0) * e0 * Real.exp (angularSlope lam * y0) | |
| 360 | - | |
| 361 | -def logSlope (E : ℝ → ℝ) (y : ℝ) : ℝ := 1 / 2 + deriv E y / E y | |
| 362 | - | |
| 363 | 358 | theorem baseE_contDiff (lam e0 : ℝ) : ContDiff ℝ ∞ (baseE lam e0) := |
| 364 | 359 | contDiff_const.mul (contDiff_const.mul contDiff_id).exp |
| 365 | 360 | |
| 366 | -theorem modifiedE_contDiff (lam e0 y0 : ℝ) (c : Coeff) : | |
| 367 | - ContDiff ℝ ∞ (modifiedE lam e0 y0 c) := | |
| 368 | - (baseE_contDiff lam e0).mul | |
| 369 | - (contDiff_const.add ((relative_contDiff c).comp (contDiff_id.sub contDiff_const))) | |
| 370 | - | |
| 371 | 361 | theorem baseE_pos (lam e0 y : ℝ) (he0 : 0 < e0) : 0 < baseE lam e0 y := |
| 372 | 362 | mul_pos he0 (Real.exp_pos _) |
| 373 | 363 | |
| 374 | -theorem modifiedE_sub_support (lam e0 y0 : ℝ) (c : Coeff) : | |
| 375 | - support (modifiedE lam e0 y0 c - baseE lam e0) ⊆ | |
| 376 | - Icc (y0 - 3 / 20) (y0 + 43 / 20) := by | |
| 377 | - intro y hy | |
| 378 | - have hn : relative c (y - y0) ≠ 0 := by | |
| 379 | - intro hz | |
| 380 | - exact hy (by simp [modifiedE, hz]) | |
| 381 | - have hs := relative_support c hn | |
| 382 | - constructor <;> linarith [hs.1, hs.2] | |
| 383 | - | |
| 384 | -/-- Choosing `y0 = T - 3` places the whole edit strictly inside `(T - 4, T)`. -/ | |
| 385 | -theorem modifiedE_sub_tsupport (lam e0 y0 : ℝ) (c : Coeff) : | |
| 386 | - tsupport (modifiedE lam e0 y0 c - baseE lam e0) ⊆ Ioo (y0 - 1) (y0 + 3) := by | |
| 387 | - apply (closure_minimal (modifiedE_sub_support lam e0 y0 c) isClosed_Icc).trans | |
| 388 | - intro y hy | |
| 389 | - constructor <;> linarith [hy.1, hy.2] | |
| 390 | - | |
| 391 | -theorem modifiedE_unchanged (lam e0 y0 : ℝ) (c : Coeff) {y : ℝ} | |
| 392 | - (hy : y ∉ Ioo (y0 - 1) (y0 + 3)) : modifiedE lam e0 y0 c y = baseE lam e0 y := by | |
| 393 | - by_contra hn | |
| 394 | - apply hy | |
| 395 | - apply modifiedE_sub_tsupport lam e0 y0 c | |
| 396 | - exact subset_closure (show (modifiedE lam e0 y0 c - baseE lam e0) y ≠ 0 from sub_ne_zero.mpr hn) | |
| 397 | - | |
| 398 | -theorem baseE_hasDerivAt (lam e0 y : ℝ) : | |
| 399 | - HasDerivAt (baseE lam e0) (baseE lam e0 y * (-1 / 2 - lam)) y := by | |
| 400 | - convert! (((hasDerivAt_id y).const_mul (-1 / 2 - lam)).exp).const_mul e0 using 1 | |
| 401 | - simp [baseE] | |
| 402 | - ring | |
| 403 | - | |
| 404 | -theorem modifiedE_hasDerivAt (lam e0 y0 : ℝ) (c : Coeff) (y : ℝ) : | |
| 405 | - HasDerivAt (modifiedE lam e0 y0 c) | |
| 406 | - (baseE lam e0 y * (-1 / 2 - lam) * (1 + relative c (y - y0)) + | |
| 407 | - baseE lam e0 y * deriv (relative c) (y - y0)) y := by | |
| 408 | - have hr := (((relative_contDiff c).differentiable (by simp)).differentiableAt.hasDerivAt).comp y | |
| 409 | - ((hasDerivAt_id y).sub_const y0) | |
| 410 | - convert! (baseE_hasDerivAt lam e0 y).mul (hr.const_add 1) using 1 | |
| 411 | - simp | |
| 412 | - | |
| 413 | -theorem modifiedE_logSlope (lam e0 y0 : ℝ) (c : Coeff) (y : ℝ) (he0 : e0 ≠ 0) | |
| 414 | - (hpos : 1 + relative c (y - y0) ≠ 0) : | |
| 415 | - logSlope (modifiedE lam e0 y0 c) y = | |
| 416 | - -lam + deriv (relative c) (y - y0) / (1 + relative c (y - y0)) := by | |
| 417 | - have hb : baseE lam e0 y ≠ 0 := mul_ne_zero he0 (Real.exp_ne_zero _) | |
| 418 | - unfold logSlope | |
| 419 | - rw [(modifiedE_hasDerivAt lam e0 y0 c y).deriv] | |
| 420 | - change 1 / 2 + | |
| 421 | - (baseE lam e0 y * (-1 / 2 - lam) * (1 + relative c (y - y0)) + | |
| 422 | - baseE lam e0 y * deriv (relative c) (y - y0)) / | |
| 423 | - (baseE lam e0 y * (1 + relative c (y - y0))) = _ | |
| 424 | - field_simp ; ring | |
| 425 | - | |
| 426 | 364 | theorem weighted_translate_integral (s y0 : ℝ) (f : ℝ → ℝ) : |
| 427 | 365 | (∫ y, Real.exp (s * y) * f (y - y0)) = |
| 428 | 366 | Real.exp (s * y0) * ∫ y, Real.exp (s * y) * f y := by |
| @@ -464,11 +402,6 @@ theorem sqrt_exp_half (y : ℝ) : Real.sqrt (Real.exp y) = Real.exp (y / 2) := b | ||
| 464 | 402 | congr 1 |
| 465 | 403 | ring |
| 466 | 404 | |
| 467 | -theorem angularScale_pos (lam e0 X0 y0 : ℝ) (he0 : 0 < e0) (hX : 0 < X0) : | |
| 468 | - 0 < angularScale lam e0 X0 y0 := by | |
| 469 | - unfold angularScale | |
| 470 | - exact mul_pos (mul_pos (mul_pos hX (Real.sqrt_pos.mpr (by positivity))) he0) (Real.exp_pos _) | |
| 471 | - | |
| 472 | 405 | namespace ResetBranch |
| 473 | 406 | |
| 474 | 407 | variable {lam : ℝ} (B : ResetBranch lam) |
| @@ -480,46 +413,10 @@ theorem positive (hlam : 0 < lam) (e0 y0 δ y : ℝ) (he0 : 0 < e0) | ||
| 480 | 413 | exact (positive_and_slope_of_small lam hlam (B.coefficients δ) (y - y0) |
| 481 | 414 | (B.small_jets δ hδ (y - y0)).1 (B.small_jets δ hδ (y - y0)).2).1 |
| 482 | 415 | |
| 483 | -theorem logSlope_le (hlam : 0 < lam) (e0 y0 δ y : ℝ) (he0 : 0 < e0) | |
| 484 | - (hδ : δ ∈ Ioo (-B.radius) B.radius) : | |
| 485 | - logSlope (modifiedE lam e0 y0 (B.coefficients δ)) y ≤ -lam / 2 := by | |
| 486 | - have hp := positive_and_slope_of_small lam hlam (B.coefficients δ) (y - y0) | |
| 487 | - (B.small_jets δ hδ (y - y0)).1 (B.small_jets δ hδ (y - y0)).2 | |
| 488 | - rw [modifiedE_logSlope lam e0 y0 (B.coefficients δ) y he0.ne' hp.1.ne'] | |
| 489 | - exact hp.2 | |
| 490 | - | |
| 491 | 416 | end ResetBranch |
| 492 | 417 | |
| 493 | 418 | /-! ## Finite-interval moments, including an arbitrary earlier prefix -/ |
| 494 | 419 | |
| 495 | -theorem outside_window {a b y0 y : ℝ} (ha : a ≤ y0 - 1) (hb : y0 + 3 ≤ b) | |
| 496 | - (hy : y ∉ Icc a b) : y ∉ Ioo (y0 - 1) (y0 + 3) := by | |
| 497 | - intro h | |
| 498 | - exact hy ⟨ha.trans h.1.le, h.2.le.trans hb⟩ | |
| 499 | - | |
| 500 | -theorem pressure_interval_change (lam e0 y0 a b : ℝ) (c : Coeff) | |
| 501 | - (ha : a ≤ y0 - 1) (hb : y0 + 3 ≤ b) : | |
| 502 | - (∫ y in Icc a b, (modifiedE lam e0 y0 c y) ^ 2) - | |
| 503 | - (∫ y in Icc a b, (baseE lam e0 y) ^ 2) = | |
| 504 | - e0 ^ 2 * Real.exp (pressureSlope lam * y0) * | |
| 505 | - ∫ y, Real.exp (pressureSlope lam * y) * ((1 + relative c y) ^ 2 - 1) := by | |
| 506 | - have hm : IntegrableOn (fun y => (modifiedE lam e0 y0 c y) ^ 2) (Icc a b) := | |
| 507 | - ((modifiedE_contDiff lam e0 y0 c).continuous.pow 2).continuousOn.integrableOn_Icc | |
| 508 | - have he : IntegrableOn (fun y => (baseE lam e0 y) ^ 2) (Icc a b) := | |
| 509 | - ((baseE_contDiff lam e0).continuous.pow 2).continuousOn.integrableOn_Icc | |
| 510 | - rw [← integral_sub hm he, setIntegral_eq_integral_of_forall_compl_eq_zero] | |
| 511 | - · exact pressure_integral_formula lam e0 y0 c | |
| 512 | - · intro y hy | |
| 513 | - rw [modifiedE_unchanged lam e0 y0 c (outside_window ha hb hy), sub_self] | |
| 514 | - | |
| 515 | -theorem ResetBranch.pressure_interval_neutral {lam : ℝ} (B : ResetBranch lam) | |
| 516 | - (e0 y0 a b δ : ℝ) (ha : a ≤ y0 - 1) (hb : y0 + 3 ≤ b) | |
| 517 | - (hδ : δ ∈ Ioo (-B.radius) B.radius) : | |
| 518 | - (∫ y in Icc a b, (modifiedE lam e0 y0 (B.coefficients δ) y) ^ 2) = | |
| 519 | - ∫ y in Icc a b, (baseE lam e0 y) ^ 2 := by | |
| 520 | - apply sub_eq_zero.mp | |
| 521 | - rw [pressure_interval_change lam e0 y0 a b (B.coefficients δ) ha hb, B.pressure δ hδ, mul_zero] | |
| 522 | - | |
| 523 | 420 | /-! ## Smooth dependence on the angular parameter -/ |
| 524 | 421 | |
| 525 | 422 | theorem relative_joint_contDiff : |
+23 −0 routes/s1-ns-angular-2/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-angular-2 | |
| 6 | + | |
| 7 | +Unit `s1-ns-angular-2` of issue #10 (S-1: Delete declarations that nothing uses), family | |
| 8 | +`NavierStokes/Angular*`. I delete 14 declarations of `NavierStokes/AngularMomentReset.lean` that | |
| 9 | +nothing reachable uses: 103 lines, deletions only, no statement or proof that stays is changed. | |
| 10 | + | |
| 11 | +The unit was cut from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler) and from the | |
| 12 | +declaration graph of this project's `main`, under this project's rule that the paper's results stay. | |
| 13 | +None of the deleted declarations is reached by a paper result, named by the text of a declaration | |
| 14 | +that stays, or cited in a docstring that names the paper (`git grep -n -w` on each short name; the | |
| 15 | +remaining hits are other declarations of the same short name: `angularScale` and `angularScale_pos` | |
| 16 | +in `NavierStokes/RepairConeBounds.lean`, `logSlope` in `NavierStokes/ReferenceBounds.lean`, | |
| 17 | +`NavierStokes/LeadingStressWeights.lean` and `NavierStokes/LoopVariance.lean`). | |
| 18 | + | |
| 19 | +`python3 checks/challenge.py .` ends with `ok`. | |
| 20 | + | |
| 21 | +## Next | |
| 22 | + | |
| 23 | +Nothing; the pull request is open. If the maintainer asks for a change in this unit, edit the same branch. | |