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/Temporal): delete 12 declarations nothing uses #408
Open
+0 −128 NavierStokes/TemporalMeanUpdate.lean View file
| @@ -559,35 +559,6 @@ theorem desiredIncrement_zeroMean (h : ℝ) (n : ℕ) {f : PressureStream.Lift S | ||
| 559 | 559 | change -chartPrefactor h n * PressureStream.torusAverage (temporalInverse (centered f)) p = 0 |
| 560 | 560 | rw [temporalInverse_zeroMean (centered_smooth hf) (centered_periodic hp), mul_zero] |
| 561 | 561 | |
| 562 | -/-- In particular this gives both the angular `r²` bar mass and axial `r` | |
| 563 | -bar mass without an extra normalization term. -/ | |
| 564 | -theorem desiredIncrement_barMass (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 565 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (w : ℝ → ℝ) (s : S) : | |
| 566 | - (∫ r, w r * PressureStream.torusAverage (desiredIncrement h n f) (r, s)) = 0 := by | |
| 567 | - simp_rw [desiredIncrement_zeroMean h n hf hp, mul_zero, integral_zero] | |
| 568 | - | |
| 569 | -/-- Exact cancellation of the source's zero-bar part. -/ | |
| 570 | -theorem desiredIncrement_fastDerivative (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 571 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (z : PressureStream.Lift S) : | |
| 572 | - fastDerivative h n (desiredIncrement h n f) z = -centered f z := by | |
| 573 | - have hi := temporalInverse_smooth (centered_smooth hf) (centered_periodic hp) | |
| 574 | - have hD := (((hi.differentiable (by simp)) z).hasFDerivAt).const_smul (-chartPrefactor h n) | |
| 575 | - change HasFDerivAt (desiredIncrement h n f) _ z at hD | |
| 576 | - rw [fastDerivative, PressureStream.graphDz, hD.fderiv] | |
| 577 | - change ChartScales.timeCoefficient h n * (-chartPrefactor h n * | |
| 578 | - PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse (centered f)) z) = _ | |
| 579 | - rw [temporalInverse_solves (centered_smooth hf) (centered_periodic hp) (centered_zeroMean hf)] | |
| 580 | - simp only [chartPrefactor, neg_mul, mul_neg, ← mul_assoc, | |
| 581 | - mul_inv_cancel₀ (ChartScales.timeCoefficient_pos h n).ne', one_mul] | |
| 582 | - | |
| 583 | -omit [FiniteDimensional ℝ S] in | |
| 584 | -theorem fastDerivative_sub (h : ℝ) (n : ℕ) {f g : PressureStream.Lift S → ℝ} | |
| 585 | - (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (z : PressureStream.Lift S) : | |
| 586 | - fastDerivative h n (fun p => f p - g p) z = fastDerivative h n f z - fastDerivative h n g z := by | |
| 587 | - simp only [fastDerivative, PressureStream.graphDz, | |
| 588 | - fderiv_fun_sub ((hf.differentiable (by simp)) z) ((hg.differentiable (by simp)) z), | |
| 589 | - _root_.sub_apply, mul_sub] | |
| 590 | - | |
| 591 | 562 | end ExactUpdate |
| 592 | 563 | |
| 593 | 564 | section NativePullback |
| @@ -649,37 +620,6 @@ noncomputable def axialAlias (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) | ||
| 649 | 620 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M ((0 : S), v) |
| 650 | 621 | (PressureStream.weightedSource (desiredIncrement h n f))) |
| 651 | 622 | |
| 652 | -theorem axialPotential_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 653 | - (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 654 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 655 | - (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialPotential d a b M v h n f) := | |
| 656 | - PressureStream.streamPotential_contDiff ha hab hd (0, v) | |
| 657 | - (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) | |
| 658 | - | |
| 659 | -theorem axialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 660 | - (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 661 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 662 | - (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialUpdate d a b M v h n f) := | |
| 663 | - PressureStream.streamGamma_contDiff ha hab hd (0, v) | |
| 664 | - (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) | |
| 665 | - | |
| 666 | -theorem radialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 667 | - (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 668 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 669 | - (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (radialUpdate d a b M v w h n f) := | |
| 670 | - PressureStream.streamBeta_contDiff ha hab hd (0, v) w | |
| 671 | - (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) | |
| 672 | - | |
| 673 | -theorem axialAlias_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 674 | - (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 675 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 676 | - (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialAlias d a b M v h n f) := | |
| 677 | - PressureStream.divideRadius_contDiff ha | |
| 678 | - (RadialPullback.physicalAlias_contDiff ha hab hd | |
| 679 | - (PressureStream.weightedSource_contDiff (desiredIncrement_smooth h n hf hp)) | |
| 680 | - (PressureStream.weightedSource_supported (desiredIncrement_supported h n hs)) M (0, v)) | |
| 681 | - (RadialPullback.physicalAlias_supported ha hab hd M (0, v) _) | |
| 682 | - | |
| 683 | 623 | /-- No compactification error is removed from the reconstructed axial field. -/ |
| 684 | 624 | theorem axialUpdate_eq_desired_sub_alias {d a b M : ℝ} |
| 685 | 625 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : Plane) (h : ℝ) (n : ℕ) |
| @@ -690,57 +630,6 @@ theorem axialUpdate_eq_desired_sub_alias {d a b M : ℝ} | ||
| 690 | 630 | exact PressureStream.streamGamma_eq_desired_sub_alias_global ha hab hd (0, v) |
| 691 | 631 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z |
| 692 | 632 | |
| 693 | -theorem update_divergence_zero {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 694 | - (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 695 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 696 | - (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : | |
| 697 | - PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w | |
| 698 | - (radialUpdate d a b M v w h n f) (axialUpdate d a b M v h n f) z = 0 := | |
| 699 | - PressureStream.reconstructed_divergence_zero ha hab hd (0, v) w | |
| 700 | - (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z | |
| 701 | - | |
| 702 | -theorem axialUpdate_zeroMean {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 703 | - (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 704 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 705 | - (hs : RadialAlias.RadiallySupported a b f) (p : ℝ × S) : | |
| 706 | - PressureStream.torusAverage (axialUpdate d a b M v h n f) p = 0 := by | |
| 707 | - have he := PressureStream.streamGamma_bar_eq_desired (M := M) ha hab hd v | |
| 708 | - (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) | |
| 709 | - (desiredIncrement_periodic h n f) (desiredIncrement_barMass h n hf hp id) p | |
| 710 | - exact he.trans (desiredIncrement_zeroMean h n hf hp p) | |
| 711 | - | |
| 712 | -/-- Fast time cancels the axial zero-bar source, retaining exactly the | |
| 713 | -fast-time derivative of the compactification alias. -/ | |
| 714 | -theorem axialUpdate_fast_residual {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 715 | - (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} | |
| 716 | - (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) | |
| 717 | - (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : | |
| 718 | - fastDerivative h n (axialUpdate d a b M v h n f) z + centered f z = | |
| 719 | - -fastDerivative h n (axialAlias d a b M v h n f) z := by | |
| 720 | - rw [axialUpdate_eq_desired_sub_alias ha hab hd v h n hf hp hs, | |
| 721 | - fastDerivative_sub h n (desiredIncrement_smooth h n hf hp) | |
| 722 | - (axialAlias_smooth ha hab hd v h n hf hp hs), desiredIncrement_fastDerivative h n hf hp] | |
| 723 | - ring | |
| 724 | - | |
| 725 | -/-- The actual two-component fast-time update and incompressible stream, | |
| 726 | -with the exact axial alias in the resulting residual. -/ | |
| 727 | -theorem temporal_mean_update {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 728 | - (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {fθ fz : PressureStream.Lift S → ℝ} | |
| 729 | - (hθ : ContDiff ℝ ∞ fθ) (hz : ContDiff ℝ ∞ fz) | |
| 730 | - (hpθ : PressureStream.TorusPeriodicLift fθ) (hpz : PressureStream.TorusPeriodicLift fz) | |
| 731 | - (hsz : RadialAlias.RadiallySupported a b fz) (z : PressureStream.Lift S) : | |
| 732 | - fastDerivative h n (desiredIncrement h n fθ) z + centered fθ z = 0 ∧ | |
| 733 | - fastDerivative h n (axialUpdate d a b M v h n fz) z + centered fz z = | |
| 734 | - -fastDerivative h n (axialAlias d a b M v h n fz) z ∧ | |
| 735 | - PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w | |
| 736 | - (radialUpdate d a b M v w h n fz) (axialUpdate d a b M v h n fz) z = 0 ∧ | |
| 737 | - PressureStream.torusAverage (desiredIncrement h n fθ) (z.1, z.2.1) = 0 ∧ | |
| 738 | - PressureStream.torusAverage (axialUpdate d a b M v h n fz) (z.1, z.2.1) = 0 := by | |
| 739 | - refine ⟨?_, axialUpdate_fast_residual ha hab hd v h n hz hpz hsz z, | |
| 740 | - update_divergence_zero ha hab hd v w h n hz hpz hsz z, | |
| 741 | - desiredIncrement_zeroMean h n hθ hpθ _, axialUpdate_zeroMean ha hab hd v h n hz hpz hsz _⟩ | |
| 742 | - rw [desiredIncrement_fastDerivative h n hθ hpθ, neg_add_cancel] | |
| 743 | - | |
| 744 | 633 | end AxialReconstruction |
| 745 | 634 | |
| 746 | 635 | section WeightedStream |
| @@ -967,23 +856,6 @@ theorem meanClass_desiredIncrement {a b cL cR h : ℝ} | ||
| 967 | 856 | simpa only [desiredIncrement, _root_.neg_apply, ContinuousLinearMap.id_apply, |
| 968 | 857 | smul_eq_mul, neg_mul] using hm |
| 969 | 858 | |
| 970 | -theorem meanClass_axialPotential {a b d cL cR h : ℝ} | |
| 971 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) | |
| 972 | - (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) | |
| 973 | - (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) | |
| 974 | - {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 975 | - (hf : WeightedClasses.MeanClass | |
| 976 | - (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) | |
| 977 | - (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) | |
| 978 | - (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : | |
| 979 | - WeightedClasses.MeanClass | |
| 980 | - (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α | |
| 981 | - (fun n => axialPotential d a b (M n) (v n) h n (f n)) := | |
| 982 | - meanClass_streamPotential ha hab hd hcL hcR ε R hε hεone hR α M (fun n => (0, v n)) | |
| 983 | - (fun n => desiredIncrement h n (f n)) (fun n => desiredIncrement_smooth h n (hfc n) (hp n)) | |
| 984 | - (fun n => desiredIncrement_supported h n (hs n)) | |
| 985 | - (meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp) | |
| 986 | - | |
| 987 | 859 | theorem meanClass_radialUpdate {a b d cL cR h : ℝ} |
| 988 | 860 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 989 | 861 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
+25 −0 routes/s1-ns-temporal-2/README.md added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# s1-ns-temporal-2 | |
| 7 | + | |
| 8 | +One unit of S-1 (#10): the family `NavierStokes/Temporal*`, here the file | |
| 9 | +`NavierStokes/TemporalMeanUpdate.lean`. Treant's run of 2026-12-03 | |
| 10 | +(`TitiSkywalker/NavierStokesAndEuler` at upstream `f9e8bc5`) found these | |
| 11 | +declarations unreachable from the four Comparator theorems. The declaration graph | |
| 12 | +of this project's `main`, read again under the project's keep rule, leaves 12 of | |
| 13 | +them, 128 lines, to delete. It is a second wave on the family: `s1-ns-temporal-1` | |
| 14 | +was the first, and its 17 declarations are already gone from `main`. | |
| 15 | + | |
| 16 | +The change is deletions only; no statement and no proof that stays is touched. | |
| 17 | +At this branch's base (`main` `5cfef49`), `git grep -n -w` over `*.lean` finds no | |
| 18 | +occurrence of any of the 12 short names, and none of the four deleted docstrings | |
| 19 | +cites a numbered Lemma, Theorem, Proposition, Corollary, Section or Equation of | |
| 20 | +the paper. `python3 checks/challenge.py .` ends with `ok`. | |
| 21 | + | |
| 22 | +## Next | |
| 23 | + | |
| 24 | +Nothing to continue: the unit is complete in this pull request. A build of | |
| 25 | +`NavierStokes.TemporalMeanUpdate` is left to the `build` check. | |