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/Pulse): delete 15 declarations nothing uses #393
Merged
+0 −202 NavierStokes/PulseCovariance.lean View file
| @@ -294,9 +294,6 @@ theorem mass_lower : lowerMassConstant a B * r ≤ mass ψ x := by | ||
| 294 | 294 | theorem mass_pos : 0 < mass ψ x := |
| 295 | 295 | lt_of_lt_of_le (mul_pos h.lowerMassConstant_pos h.radius_pos) h.mass_lower |
| 296 | 296 | |
| 297 | -theorem cutoff_compact : HasCompactSupport ψ := | |
| 298 | - HasCompactSupport.intro isCompact_Icc h.cutoff_zero | |
| 299 | - | |
| 300 | 297 | theorem weight_direction_integrable {q : ℝ → ℝ} |
| 301 | 298 | (hq : ContinuousOn q (Icc 0 (r ^ 2))) : |
| 302 | 299 | Integrable (fun v => weight ψ x v * q v) := by |
| @@ -450,38 +447,9 @@ theorem radiusProfile_lipschitz (s t : ℝ) : | ||
| 450 | 447 | `h = c₀ sqrt(1+s²)`. -/ |
| 451 | 448 | noncomputable def modelDirection (c₀ s : ℝ) : Vec2 := ![c₀ * radiusProfile s, -s] |
| 452 | 449 | |
| 453 | -theorem modelDirection_lipschitz (c₀ s t : ℝ) (i : Fin 2) : | |
| 454 | - |modelDirection c₀ s i - modelDirection c₀ t i| ≤ (|c₀| + 1) * |s - t| := by | |
| 455 | - fin_cases i | |
| 456 | - · change |c₀ * radiusProfile s - c₀ * radiusProfile t| ≤ _ | |
| 457 | - rw [← mul_sub, abs_mul] | |
| 458 | - calc | |
| 459 | - |c₀| * |radiusProfile s - radiusProfile t| ≤ |c₀| * |s - t| := | |
| 460 | - mul_le_mul_of_nonneg_left (radiusProfile_lipschitz s t) (abs_nonneg _) | |
| 461 | - _ ≤ (|c₀| + 1) * |s - t| := by nlinarith [abs_nonneg (s - t)] | |
| 462 | - · change |(-s) - (-t)| ≤ _ | |
| 463 | - have he : |(-s) - (-t)| = |s - t| := by | |
| 464 | - calc | |
| 465 | - |(-s) - (-t)| = |-(s - t)| := congrArg abs (by ring) | |
| 466 | - _ = |s - t| := abs_neg _ | |
| 467 | - rw [he] | |
| 468 | - nlinarith [mul_nonneg (abs_nonneg c₀) (abs_nonneg (s - t))] | |
| 469 | - | |
| 470 | 450 | noncomputable def affineSlope (s₀ slope r v : ℝ) : ℝ := |
| 471 | 451 | s₀ + slope * (v - r ^ 2 / 2) / r ^ 2 |
| 472 | 452 | |
| 473 | -theorem affineSlope_distance (s₀ slope r v : ℝ) : | |
| 474 | - |affineSlope s₀ slope r v - s₀| = |slope| * |v - r ^ 2 / 2| / r ^ 2 := by | |
| 475 | - simp only [affineSlope, add_sub_cancel_left, abs_div, abs_mul, | |
| 476 | - abs_of_nonneg (sq_nonneg r)] | |
| 477 | - | |
| 478 | -theorem modelDirection_affine_drift (c₀ s₀ slope r v : ℝ) (i : Fin 2) : | |
| 479 | - |modelDirection c₀ (affineSlope s₀ slope r v) i - modelDirection c₀ s₀ i| ≤ | |
| 480 | - ((|c₀| + 1) * |slope|) * |v - r ^ 2 / 2| / r ^ 2 := by | |
| 481 | - have hi := modelDirection_lipschitz c₀ (affineSlope s₀ slope r v) s₀ i | |
| 482 | - rw [affineSlope_distance] at hi | |
| 483 | - exact hi.trans_eq (by ring) | |
| 484 | - | |
| 485 | 453 | noncomputable def actualColumn (ci : ℝ) (ψ x : ℝ → ℝ) (t : ℝ → Vec2) : Vec2 := |
| 486 | 454 | fun i => ci * ∫ v : ℝ, ψ v ^ 2 * x v * t v i |
| 487 | 455 | |
| @@ -516,44 +484,11 @@ theorem actualColumn_factorization (ci : ℝ) (t : ℝ → Vec2) : | ||
| 516 | 484 | exact (mul_div_cancel_right₀ |
| 517 | 485 | (ci * (∫ v : ℝ, weight ψ x v * (t v i / x v))) h.mass_pos.ne').symm.trans (by ring) |
| 518 | 486 | |
| 519 | -theorem actualColumn_eq_intervalIntegral (ci : ℝ) (t : ℝ → Vec2) (i : Fin 2) : | |
| 520 | - actualColumn ci ψ x t i = ci * ∫ v in (0 : ℝ)..r ^ 2, ψ v ^ 2 * x v * t v i := by | |
| 521 | - unfold actualColumn | |
| 522 | - congr 1 | |
| 523 | - rw [intervalIntegral.integral_of_le (sq_nonneg r)] | |
| 524 | - symm | |
| 525 | - apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 526 | - intro v hv | |
| 527 | - have hout : v ∉ Icc (r ^ 2 / 6) (5 * r ^ 2 / 6) := by | |
| 528 | - intro hin | |
| 529 | - apply hv | |
| 530 | - have hr2 : 0 < r ^ 2 := sq_pos_of_pos h.radius_pos | |
| 531 | - constructor <;> nlinarith [hin.1, hin.2] | |
| 532 | - simp [h.cutoff_zero v hout] | |
| 533 | - | |
| 534 | 487 | theorem ratio_continuousOn {t : ℝ → Vec2} |
| 535 | 488 | (ht : ∀ i, ContinuousOn (fun v => t v i) (Icc 0 (r ^ 2))) (i : Fin 2) : |
| 536 | 489 | ContinuousOn (fun v => t v i / x v) (Icc 0 (r ^ 2)) := |
| 537 | 490 | (ht i).div h.component_continuous.continuousOn (fun _ hv => (h.component_pos hv).ne') |
| 538 | 491 | |
| 539 | -/-- Directional concentration for actual fundamental tangent components. | |
| 540 | -The sole tangent estimate assumed is the pointwise ODE approximation to | |
| 541 | -`h(v)N-s(v)K`, with affine `s` and the exact square-root profile `h`. -/ | |
| 542 | -theorem normalizedColumn_error {t : ℝ → Vec2} | |
| 543 | - (ht : ∀ i, ContinuousOn (fun v => t v i) (Icc 0 (r ^ 2))) | |
| 544 | - {E c₀ s₀ slope : ℝ} (hE : 0 ≤ E) | |
| 545 | - (htmodel : ∀ v ∈ Icc 0 (r ^ 2), ∀ i, | |
| 546 | - |t v i / x v - modelDirection c₀ (affineSlope s₀ slope r v) i| ≤ E / r ^ 2) | |
| 547 | - (i : Fin 2) : | |
| 548 | - |normalizedColumn ψ x t i - modelDirection c₀ s₀ i| ≤ | |
| 549 | - (E + ((|c₀| + 1) * |slope|) * concentrationConstant a A b B) / r := by | |
| 550 | - apply h.averagedDirection_error_order (h.ratio_continuousOn ht i) hE | |
| 551 | - (mul_nonneg (by positivity) (abs_nonneg _)) | |
| 552 | - intro v hv | |
| 553 | - exact (abs_sub_le (t v i / x v) | |
| 554 | - (modelDirection c₀ (affineSlope s₀ slope r v) i) (modelDirection c₀ s₀ i)).trans | |
| 555 | - (add_le_add (htmodel v hv i) (modelDirection_affine_drift c₀ s₀ slope r v i)) | |
| 556 | - | |
| 557 | 492 | end PulseBounds |
| 558 | 493 | |
| 559 | 494 | /-- A single actual pulse. Every estimate in this record is pointwise; |
| @@ -601,62 +536,10 @@ theorem signedModel_continuousOn {X : Type*} [TopologicalSpace X] {K : Set X} | ||
| 601 | 536 | abbrev SignedPulsePair (r a A b B c₀ u E : ℝ) := |
| 602 | 537 | (j : Fin 2) → TangentPulse r a A b B c₀ (signedSlopes u j) (signedSlopes u j) E |
| 603 | 538 | |
| 604 | -noncomputable def actualMatrix {r a A b B c₀ u E : ℝ} | |
| 605 | - (pulses : SignedPulsePair r a A b B c₀ u E) (ci : Vec2) : Mat2 := | |
| 606 | - fun i j => actualColumn (ci j) (pulses j).cutoff (pulses j).component (pulses j).tangent i | |
| 607 | - | |
| 608 | 539 | noncomputable def normalizedMatrix {r a A b B c₀ u E : ℝ} |
| 609 | 540 | (pulses : SignedPulsePair r a A b B c₀ u E) : Mat2 := |
| 610 | 541 | fun i j => normalizedColumn (pulses j).cutoff (pulses j).component (pulses j).tangent i |
| 611 | 542 | |
| 612 | -noncomputable def columnScales {r a A b B c₀ u E : ℝ} | |
| 613 | - (pulses : SignedPulsePair r a A b B c₀ u E) (ci : Vec2) : Vec2 := | |
| 614 | - fun j => ci j * mass (pulses j).cutoff (pulses j).component | |
| 615 | - | |
| 616 | -theorem signedSlopes_abs (u : ℝ) (j : Fin 2) : |signedSlopes u j| = |u| := by | |
| 617 | - fin_cases j <;> simp [signedSlopes] | |
| 618 | - | |
| 619 | -theorem actualMatrix_factorization {r a A b B c₀ u E : ℝ} | |
| 620 | - (pulses : SignedPulsePair r a A b B c₀ u E) (ci : Vec2) : | |
| 621 | - actualMatrix pulses ci = FlatCovariance.columns (normalizedMatrix pulses) (columnScales pulses ci) := by | |
| 622 | - ext i j | |
| 623 | - exact congrFun ((pulses j).bounds.actualColumn_factorization (ci j) (pulses j).tangent) i | |
| 624 | - | |
| 625 | -theorem columnScales_pos {r a A b B c₀ u E : ℝ} | |
| 626 | - (pulses : SignedPulsePair r a A b B c₀ u E) {ci : Vec2} (hci : ∀ j, 0 < ci j) | |
| 627 | - (j : Fin 2) : 0 < columnScales pulses ci j := | |
| 628 | - mul_pos (hci j) (pulses j).bounds.mass_pos | |
| 629 | - | |
| 630 | -theorem normalizedMatrix_entry_error {r a A b B c₀ u E : ℝ} | |
| 631 | - (pulses : SignedPulsePair r a A b B c₀ u E) (hE : 0 ≤ E) (i j : Fin 2) : | |
| 632 | - |normalizedMatrix pulses i j - signedModel c₀ u i j| ≤ | |
| 633 | - (E + ((|c₀| + 1) * |u|) * concentrationConstant a A b B) / r := by | |
| 634 | - have hi := (pulses j).bounds.normalizedColumn_error | |
| 635 | - (pulses j).tangent_continuous hE (pulses j).tangent_model i | |
| 636 | - unfold normalizedMatrix signedModel | |
| 637 | - simpa only [signedSlopes_abs] using hi | |
| 638 | - | |
| 639 | -theorem actualMatrix_positive_of_normalized {r a A b B c₀ u E : ℝ} | |
| 640 | - (pulses : SignedPulsePair r a A b B c₀ u E) {ci : Vec2} (hci : ∀ j, 0 < ci j) | |
| 641 | - (T : Vec2) (hdet : (normalizedMatrix pulses).det ≠ 0) | |
| 642 | - (hw : ∀ i, 0 < SmoothCovariance.weights (normalizedMatrix pulses) T i) : | |
| 643 | - (actualMatrix pulses ci).det ≠ 0 ∧ | |
| 644 | - (∀ i, 0 < SmoothCovariance.weights (actualMatrix pulses ci) T i) ∧ | |
| 645 | - (∀ i, 0 < SmoothCovariance.amplitudes (actualMatrix pulses ci) T i) := by | |
| 646 | - have hs : ∀ j, 0 < columnScales pulses ci j := columnScales_pos pulses hci | |
| 647 | - have hsn : ∀ j, columnScales pulses ci j ≠ 0 := fun j => (hs j).ne' | |
| 648 | - have hT : FlatCovariance.scaledTarget 1 T = T := by | |
| 649 | - ext i | |
| 650 | - simp [FlatCovariance.scaledTarget] | |
| 651 | - rw [actualMatrix_factorization] | |
| 652 | - have hweight : ∀ i, 0 < SmoothCovariance.weights | |
| 653 | - (FlatCovariance.columns (normalizedMatrix pulses) (columnScales pulses ci)) T i := by | |
| 654 | - intro i | |
| 655 | - rw [← hT, FlatCovariance.weights_columns _ _ _ _ hdet hsn] | |
| 656 | - exact mul_pos (div_pos zero_lt_one (hs i)) (hw i) | |
| 657 | - exact ⟨FlatCovariance.columns_det_ne_zero hdet hsn, hweight, | |
| 658 | - fun i => Real.sqrt_pos.mpr (hweight i)⟩ | |
| 659 | - | |
| 660 | 543 | /- This is the same entrywise norm used by SmoothCovariance's compact |
| 661 | 544 | perturbation theorem. -/ |
| 662 | 545 | local instance : NormedAddCommGroup Mat2 := |
| @@ -665,89 +548,4 @@ local instance : NormedAddCommGroup Mat2 := | ||
| 665 | 548 | local instance : NormedSpace ℝ Mat2 := |
| 666 | 549 | inferInstanceAs (NormedSpace ℝ (Fin 2 → Fin 2 → ℝ)) |
| 667 | 550 | |
| 668 | -/-- A uniform slot threshold for the actual signed pulse pair over a compact | |
| 669 | -strict-cone family. Its matrix approximation is a conclusion of the Gaussian | |
| 670 | -moment and pointwise tangent estimates in `TangentPulse`, not a hypothesis. -/ | |
| 671 | -theorem compact_actual_positive_inverse | |
| 672 | - {X : Type*} [TopologicalSpace X] {K : Set X} (hK : IsCompact K) | |
| 673 | - {c₀ u : X → ℝ} {T : X → Vec2} | |
| 674 | - (hmodel : ∀ i j, ContinuousOn (fun p => signedModel (c₀ p) (u p) i j) K) | |
| 675 | - (hT : ∀ i, ContinuousOn (fun p => T p i) K) | |
| 676 | - (hcone : ∀ p ∈ K, SmoothCovariance.StrictCone (signedModel (c₀ p) (u p)) (T p)) | |
| 677 | - {a A b B E C U : ℝ} (hE : 0 ≤ E) (hC : 0 ≤ C) (hU : 0 ≤ U) | |
| 678 | - (hc₀ : ∀ p ∈ K, |c₀ p| ≤ C) (hu : ∀ p ∈ K, |u p| ≤ U) : | |
| 679 | - ∃ R : ℝ, 1 ≤ R ∧ ∀ p ∈ K, ∀ r : ℝ, R ≤ r → | |
| 680 | - ∀ pulses : SignedPulsePair r a A b B (c₀ p) (u p) E, | |
| 681 | - ∀ ci : Vec2, (∀ j, 0 < ci j) → | |
| 682 | - (actualMatrix pulses ci).det ≠ 0 ∧ | |
| 683 | - (∀ i, 0 < SmoothCovariance.weights (actualMatrix pulses ci) (T p) i) ∧ | |
| 684 | - (∀ i, 0 < SmoothCovariance.amplitudes (actualMatrix pulses ci) (T p) i) := by | |
| 685 | - obtain ⟨ρ, hρ, hstable⟩ := SmoothCovariance.compact_family_perturbation_stability | |
| 686 | - hK hmodel hT hcone | |
| 687 | - let Q : ℝ := E + ((C + 1) * U) * |concentrationConstant a A b B| | |
| 688 | - have hQ : 0 ≤ Q := by | |
| 689 | - dsimp [Q] | |
| 690 | - positivity | |
| 691 | - refine ⟨max 1 (Q / ρ), le_max_left _ _, ?_⟩ | |
| 692 | - intro p hp r hr pulses ci hci | |
| 693 | - have hr1 : 1 ≤ r := (le_max_left _ _).trans hr | |
| 694 | - have hrp : 0 < r := lt_of_lt_of_le zero_lt_one hr1 | |
| 695 | - have hsmall : Q / r ≤ ρ := by | |
| 696 | - apply (div_le_iff₀ hrp).mpr | |
| 697 | - have hR : Q / ρ ≤ r := (le_max_right _ _).trans hr | |
| 698 | - nlinarith [(div_le_iff₀ hρ).mp hR] | |
| 699 | - have hentry (i j : Fin 2) : | |
| 700 | - |normalizedMatrix pulses i j - signedModel (c₀ p) (u p) i j| ≤ ρ := by | |
| 701 | - apply (normalizedMatrix_entry_error pulses hE i j).trans | |
| 702 | - apply le_trans _ hsmall | |
| 703 | - apply div_le_div_of_nonneg_right _ hrp.le | |
| 704 | - dsimp [Q] | |
| 705 | - apply add_le_add_right | |
| 706 | - have hf : (|c₀ p| + 1) * |u p| ≤ (C + 1) * U := | |
| 707 | - mul_le_mul (add_le_add_left (hc₀ p hp) 1) (hu p hp) | |
| 708 | - (abs_nonneg _) (by linarith) | |
| 709 | - exact mul_le_mul hf (le_abs_self _) | |
| 710 | - (pulses j).bounds.concentrationConstant_nonneg | |
| 711 | - (mul_nonneg (by linarith) hU) | |
| 712 | - have hdist : dist (normalizedMatrix pulses, T p) (signedModel (c₀ p) (u p), T p) ≤ ρ := by | |
| 713 | - rw [dist_prod_same_right] | |
| 714 | - apply (dist_pi_le_iff hρ.le).mpr | |
| 715 | - intro i | |
| 716 | - apply (dist_pi_le_iff hρ.le).mpr | |
| 717 | - intro j | |
| 718 | - simpa only [Real.dist_eq] using hentry i j | |
| 719 | - obtain ⟨hd, hw, _⟩ := hstable p hp (normalizedMatrix pulses) (T p) hdist | |
| 720 | - exact actualMatrix_positive_of_normalized pulses hci (T p) hd hw | |
| 721 | - | |
| 722 | -/-- Scalar cone inequalities and continuity of the four scalar model data | |
| 723 | -suffice. Compactness supplies both the uniform cone tolerance and the uniform | |
| 724 | -bounds on `c₀,u`, hence one slot threshold for every actual pulse pair. -/ | |
| 725 | -theorem compact_actual_positive_inverse_of_scalar_cone | |
| 726 | - {X : Type*} [TopologicalSpace X] {K : Set X} (hK : IsCompact K) | |
| 727 | - {c₀ u m t : X → ℝ} (hc₀ : ContinuousOn c₀ K) (hu : ContinuousOn u K) | |
| 728 | - (hm : ContinuousOn m K) (ht : ContinuousOn t K) | |
| 729 | - (hc₀neg : ∀ p ∈ K, c₀ p < 0) (hupos : ∀ p ∈ K, 0 < u p) | |
| 730 | - (hcone : ∀ p ∈ K, |Covariance.normalMagnitude (c₀ p) (u p) * t p| < u p * m p) | |
| 731 | - {a A b B E : ℝ} (hE : 0 ≤ E) : | |
| 732 | - ∃ R : ℝ, 1 ≤ R ∧ ∀ p ∈ K, ∀ r : ℝ, R ≤ r → | |
| 733 | - ∀ pulses : SignedPulsePair r a A b B (c₀ p) (u p) E, | |
| 734 | - ∀ ci : Vec2, (∀ j, 0 < ci j) → | |
| 735 | - (actualMatrix pulses ci).det ≠ 0 ∧ | |
| 736 | - (∀ i, 0 < SmoothCovariance.weights (actualMatrix pulses ci) (Covariance.target (m p) (t p)) i) ∧ | |
| 737 | - (∀ i, 0 < SmoothCovariance.amplitudes (actualMatrix pulses ci) (Covariance.target (m p) (t p)) i) := by | |
| 738 | - obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn hc₀ | |
| 739 | - obtain ⟨U, hU⟩ := hK.exists_bound_of_continuousOn hu | |
| 740 | - have htarget : ∀ i, ContinuousOn (fun p => Covariance.target (m p) (t p) i) K := by | |
| 741 | - intro i | |
| 742 | - fin_cases i | |
| 743 | - · simpa [Covariance.target] using hm.fun_neg | |
| 744 | - · simpa [Covariance.target] using ht | |
| 745 | - apply compact_actual_positive_inverse hK (signedModel_continuousOn hc₀ hu) htarget | |
| 746 | - (fun p hp => signedModel_strictCone (hc₀neg p hp) (hupos p hp) (hcone p hp)) hE | |
| 747 | - (le_max_left 0 C) (le_max_left 0 U) | |
| 748 | - · intro p hp | |
| 749 | - exact (show |c₀ p| ≤ C by simpa only [Real.norm_eq_abs] using hC p hp).trans (le_max_right _ _) | |
| 750 | - · intro p hp | |
| 751 | - exact (show |u p| ≤ U by simpa only [Real.norm_eq_abs] using hU p hp).trans (le_max_right _ _) | |
| 752 | - | |
| 753 | 551 | end NavierStokes.PulseCovariance |
+28 −0 routes/s1-ns-pulse-2/README.md added View file
| @@ -0,0 +1,28 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-pulse-2 | |
| 6 | + | |
| 7 | +One unit of S-1 (issue #10), wave 2, family `NavierStokes/Pulse*`: deletes 15 declarations that | |
| 8 | +nothing uses — 202 lines, deletions only — from `NavierStokes/PulseCovariance.lean`. Cut from | |
| 9 | +Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler) and read again against the | |
| 10 | +declaration graph of this project's main at `a69b113` under this project's rule that the paper's | |
| 11 | +results stay. No statement and no proof that stays is changed. | |
| 12 | + | |
| 13 | +Checked as a reviewer, on the tree after the patch: | |
| 14 | + | |
| 15 | +- Each of the 15 deleted names (`git grep -n -w` on its short name, across every file, not only | |
| 16 | + `*.lean`) either finds nothing left in the tree, or (for `cutoff_compact` only) hits declarations | |
| 17 | + and structure fields of the same short name in other namespaces (`Euler/LpSpatialCutoff.lean`, | |
| 18 | + `NavierStokes/PartitionedCovariance.lean`, `NavierStokes/PeriodicPhaseAssembly.lean`, …), none of | |
| 19 | + which refers to the deleted `PulseBounds.cutoff_compact`. | |
| 20 | +- No deleted docstring cites a numbered Lemma, Theorem, Proposition, Corollary, Section or Equation. | |
| 21 | + The three deleted docstrings describe the declarations in words only. | |
| 22 | +- `python3 checks/challenge.py .` ends `ok: 4 challenge files and the build configuration as approved; …`. | |
| 23 | + | |
| 24 | +## Next | |
| 25 | + | |
| 26 | +Push and open the pull request; `build` decides whether the tree compiles. The other declaration | |
| 27 | +waves of #10 are separate units. If the pull request is turned down, the 15 declarations go back into | |
| 28 | +`NavierStokes/PulseCovariance.lean`. | |