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/State): delete 14 declarations nothing uses #405
Open
+0 −186 NavierStokes/StateMomentBalances.lean View file
| @@ -195,45 +195,6 @@ theorem meanBar_sub (f g : ScalarField (Lift S)) | ||
| 195 | 195 | funext n x |
| 196 | 196 | exact PressureStream.torusAverage_sub (hf n).continuous (hg n).continuous _ |
| 197 | 197 | |
| 198 | -theorem radialDiv_sub (o : MeanIncrementBounds.Operators (Lift S)) (c : ℝ) | |
| 199 | - (f g : ScalarField (Lift S)) (hf : ∀ n, ContDiff ℝ ∞ (f n)) | |
| 200 | - (hg : ∀ n, ContDiff ℝ ∞ (g n)) : | |
| 201 | - o.radialDiv c (f - g) = o.radialDiv c f - o.radialDiv c g := by | |
| 202 | - funext n x | |
| 203 | - have hd := fderiv_fun_sub ((hf n).differentiable (by simp) x) ((hg n).differentiable (by simp) x) | |
| 204 | - change fderiv ℝ (f n - g n) x = _ at hd | |
| 205 | - simp only [MeanIncrementBounds.Operators.radialDiv, MeanIncrementBounds.Operators.dr, | |
| 206 | - WeightedClasses.graphDerivative, Pi.add_apply, Pi.sub_apply, hd, | |
| 207 | - _root_.sub_apply, Pi.smul_apply, Pi.mul_apply, smul_eq_mul] | |
| 208 | - ring | |
| 209 | - | |
| 210 | -/-- The torus-mean flux identity used for the initial improved bar estimate. -/ | |
| 211 | -theorem meanBar_fluxBalance {a b : ℝ} (ha : 0 < a) | |
| 212 | - (o : MeanIncrementBounds.Operators (Lift S)) (ho : DefectIncrementBounds.PositiveOperators o) | |
| 213 | - (hprofile : ∀ R z Y, o.radialProfile (R, (z, Y)) = o.radialProfile (R, (z, 0))) | |
| 214 | - (R A T : ScalarField (Lift S)) (c : ℝ) | |
| 215 | - (hR : DefectIncrementBounds.Shell a b R) (hA : DefectIncrementBounds.Shell a b A) | |
| 216 | - (hT : DefectIncrementBounds.Shell a b T) | |
| 217 | - (hpR : ∀ n, PressureStream.TorusPeriodicLift (R n)) | |
| 218 | - (hpA : ∀ n, PressureStream.TorusPeriodicLift (A n)) | |
| 219 | - (hpT : ∀ n, PressureStream.TorusPeriodicLift (T n)) : | |
| 220 | - meanBar (o.radialDiv c R + o.dz A - o.radialDiv c T) = | |
| 221 | - o.radialDiv c (meanBar R - meanBar T) + | |
| 222 | - o.dz (meanBar A) := by | |
| 223 | - have hrc := hR.radialDiv ha ho c | |
| 224 | - have hac := hA.dz o | |
| 225 | - have htc := hT.radialDiv ha ho c | |
| 226 | - rw [meanBar_sub (o.radialDiv c R + o.dz A) (o.radialDiv c T) | |
| 227 | - (fun n => (hrc.smooth n).add (hac.smooth n)) htc.smooth, | |
| 228 | - meanBar_add (o.radialDiv c R) (o.dz A) hrc.smooth hac.smooth, | |
| 229 | - meanBar_radialDiv o ho.radius_eq hprofile R hR.smooth hpR c, | |
| 230 | - meanBar_radialDiv o ho.radius_eq hprofile T hT.smooth hpT c, | |
| 231 | - meanBar_dz o A hA.smooth hpA, | |
| 232 | - radialDiv_sub o c (meanBar R) (meanBar T) | |
| 233 | - (fun n => MeanMomentBounds.liftedTorusAverage_contDiff (hR.smooth n)) | |
| 234 | - (fun n => MeanMomentBounds.liftedTorusAverage_contDiff (hT.smooth n))] | |
| 235 | - abel | |
| 236 | - | |
| 237 | 198 | |
| 238 | 199 | end AuxiliaryAverage |
| 239 | 200 | |
| @@ -714,159 +675,12 @@ structure FluxInputs (a b : ℝ) (u R Z T : ScalarField (Lift S)) : Prop where | ||
| 714 | 675 | axial_periodic : ∀ n, PressureStream.TorusPeriodicLift (Z n) |
| 715 | 676 | stress_periodic : ∀ n, PressureStream.TorusPeriodicLift (T n) |
| 716 | 677 | |
| 717 | -abbrev AxialInputs (a b : ℝ) (c : Context (Lift S)) (u : State (Lift S)) := | |
| 718 | - FluxInputs a b u.mean.axial (axialRadialFlux c u) (axialAxialFlux c u) c.virtualAxial | |
| 719 | - | |
| 720 | 678 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 721 | 679 | theorem state_radialMoment_eq (k : ℕ) (f : ScalarField (Lift S)) (n : ℕ) (s : S) : |
| 722 | 680 | CorrectionState.radialMoment k f n s = |
| 723 | 681 | IntegratedMeanBalances.radialMoment k (averaged f n) s := |
| 724 | 682 | MeanMomentBounds.pressureMass_radialWeighted k (f n) s |
| 725 | 683 | |
| 726 | -omit [NormedAddCommGroup S] [NormedSpace ℝ S] in | |
| 727 | -theorem periodic_add {f g : Lift S → ℝ} (hf : PressureStream.TorusPeriodicLift f) | |
| 728 | - (hg : PressureStream.TorusPeriodicLift g) : PressureStream.TorusPeriodicLift (fun x => f x + g x) := by | |
| 729 | - intro R s Y k | |
| 730 | - exact congrArg₂ (· + ·) (hf R s Y k) (hg R s Y k) | |
| 731 | - | |
| 732 | -noncomputable def pressureRecipe (r : ReconstructionData) (c : Context (Lift S)) | |
| 733 | - (u : State (Lift S)) : ScalarField (Lift S) := | |
| 734 | - fun n => PressureStream.meanPressure r.exponent r.inner r.outer (r.frequency n) | |
| 735 | - r.inner_lt_outer r.radialDirection (u.gr c n) | |
| 736 | - | |
| 737 | -theorem pressureRecipe_shell (r : ReconstructionData) (ha : 0 < r.inner) (hd : 0 < r.exponent) | |
| 738 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 739 | - (hg : DefectIncrementBounds.Shell r.inner r.outer (u.gr c)) : | |
| 740 | - DefectIncrementBounds.Shell r.inner r.outer (pressureRecipe r c u) := | |
| 741 | - ⟨fun n => PressureStream.meanPressure_contDiff ha r.inner_lt_outer hd r.radialDirection | |
| 742 | - (hg.smooth n) (hg.supported n), | |
| 743 | - fun n => PressureStream.meanPressure_supported ha r.inner_lt_outer hd r.radialDirection | |
| 744 | - (hg.smooth n) (hg.supported n)⟩ | |
| 745 | - | |
| 746 | -noncomputable def pressureCoefficient (r : ReconstructionData) : ℝ := | |
| 747 | - IntegratedMeanBalances.moment 2 (PressureStream.rho r.inner r.outer r.inner_lt_outer) / 2 | |
| 748 | - | |
| 749 | -noncomputable def axialDebtPotential (r : ReconstructionData) (c : Context (Lift S)) | |
| 750 | - (u : State (Lift S)) : ScalarField S := | |
| 751 | - fun n s => CorrectionState.axialDefect c u n s + | |
| 752 | - pressureCoefficient r * CorrectionState.pressureDefect c u n s | |
| 753 | - | |
| 754 | -theorem pressureRecipe_moment (r : ReconstructionData) (ha : 0 < r.inner) (hd : 0 < r.exponent) | |
| 755 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 756 | - (hg : DefectIncrementBounds.Shell r.inner r.outer (u.gr c)) | |
| 757 | - (pg : ∀ n, PressureStream.TorusPeriodicLift (u.gr c n)) (n : ℕ) (s : S) : | |
| 758 | - IntegratedMeanBalances.radialMoment 1 (averaged (pressureRecipe r c u) n) s = | |
| 759 | - -(1 / 2 : ℝ) * CorrectionState.radialMoment 2 (u.gr c) n s + | |
| 760 | - pressureCoefficient r * CorrectionState.pressureDefect c u n s := by | |
| 761 | - rw [state_radialMoment_eq] | |
| 762 | - simpa only [pressureRecipe, averaged, IntegratedMeanBalances.radialMoment, | |
| 763 | - pressureCoefficient, CorrectionState.pressureDefect, CorrectionState.radialMoment, | |
| 764 | - pow_zero, one_mul] using | |
| 765 | - (IntegratedMeanBalances.constructed_pressure_moment (M := r.frequency n) | |
| 766 | - ha r.inner_lt_outer hd r.radialDirection (hg.smooth n) (hg.supported n) (pg n) s) | |
| 767 | - | |
| 768 | -theorem physicalCompact_periodic (d a b M : ℝ) (v : PressureStream.Plane) | |
| 769 | - {f : Lift S → ℝ} (hp : PressureStream.TorusPeriodicLift f) : | |
| 770 | - PressureStream.TorusPeriodicLift (RadialPullback.physicalCompact d a b M (0, v) f) := by | |
| 771 | - intro R s Y k | |
| 772 | - have he : (fun q : ℝ => RadialPullback.normalizeSource d a f | |
| 773 | - (TransportPrimitive.shift M ((0 : S), v) | |
| 774 | - (RadialPullback.powerChart d a R, (s, Y + ((k.1 : ℝ), (k.2 : ℝ)))) q)) = | |
| 775 | - fun q : ℝ => RadialPullback.normalizeSource d a f | |
| 776 | - (TransportPrimitive.shift M ((0 : S), v) | |
| 777 | - (RadialPullback.powerChart d a R, (s, Y)) q) := by | |
| 778 | - funext q | |
| 779 | - simp only [RadialPullback.normalizeSource, RadialPullback.liftChart, | |
| 780 | - TransportPrimitive.shift, Prod.add_def, Prod.smul_def, smul_zero, add_zero] | |
| 781 | - simpa only [Prod.add_def, Prod.smul_def, add_right_comm] using | |
| 782 | - congrArg (fun u : ℝ => RadialPullback.sourceMultiplier d a | |
| 783 | - (RadialPullback.powerChart d a R + q) • u) | |
| 784 | - (hp (RadialPullback.inverseChart d a (RadialPullback.powerChart d a R + q)) s | |
| 785 | - (Y + (M * q) • v) k) | |
| 786 | - simp only [RadialPullback.physicalCompact, RadialPullback.pullback, RadialPullback.liftChart, | |
| 787 | - Function.comp_def, | |
| 788 | - TransportPrimitive.compactIntegral, TransportPrimitive.pastIntegral, TransportPrimitive.totalIntegral, | |
| 789 | - he] | |
| 790 | - | |
| 791 | -theorem pressureRecipe_periodic (r : ReconstructionData) (c : Context (Lift S)) | |
| 792 | - (u : State (Lift S)) (pg : ∀ n, PressureStream.TorusPeriodicLift (u.gr c n)) : | |
| 793 | - ∀ n, PressureStream.TorusPeriodicLift (pressureRecipe r c u n) := by | |
| 794 | - intro n | |
| 795 | - exact physicalCompact_periodic r.exponent r.inner r.outer (r.frequency n) r.radialDirection | |
| 796 | - (PressureStream.pressureSource_periodic r.inner_lt_outer (pg n)) | |
| 797 | - | |
| 798 | -theorem averaged_axialResidual (r : ReconstructionData) (ha : 0 < r.inner) | |
| 799 | - (ε fast : ℕ → ℝ) (z t : S) (v : PressureStream.Plane) | |
| 800 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 801 | - (ho : c.operators = nativeOperators r ε fast z t v) (H : AxialInputs r.inner r.outer c u) | |
| 802 | - (hp : DefectIncrementBounds.Shell r.inner r.outer u.pressure) | |
| 803 | - (pp : ∀ n, PressureStream.TorusPeriodicLift (u.pressure n)) (n : ℕ) : | |
| 804 | - averaged (u.axialResidual c) n = axialBalanceAlong (ε n) z t | |
| 805 | - (averaged u.mean.axial n) (averaged (axialRadialFlux c u) n) | |
| 806 | - (averaged (axialAxialFlux c u + u.pressure) n) (averaged c.virtualAxial n) := by | |
| 807 | - have he : u.axialResidual c = fluxResidual (nativeOperators r ε fast z t v) 1 0 | |
| 808 | - u.mean.axial (axialRadialFlux c u) (axialAxialFlux c u + u.pressure) c.virtualAxial := by | |
| 809 | - simp only [State.axialResidual, MeanIncrementBounds.axialResidual, fluxResidual, | |
| 810 | - axialRadialFlux, axialAxialFlux, ho] | |
| 811 | - rw [he] | |
| 812 | - funext x | |
| 813 | - rw [averaged_fluxResidual ha r ε fast z t v 1 0 H.velocity H.radial (H.axial.add hp) H.stress | |
| 814 | - H.velocity_periodic H.radial_periodic (fun n => periodic_add (H.axial_periodic n) (pp n)) | |
| 815 | - H.stress_periodic, balance_axial] | |
| 816 | - | |
| 817 | -theorem axial_flux_pressure_moment (r : ReconstructionData) (ha : 0 < r.inner) (hd : 0 < r.exponent) | |
| 818 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 819 | - (hZ : DefectIncrementBounds.Shell r.inner r.outer (axialAxialFlux c u)) | |
| 820 | - (hg : DefectIncrementBounds.Shell r.inner r.outer (u.gr c)) | |
| 821 | - (pg : ∀ n, PressureStream.TorusPeriodicLift (u.gr c n)) | |
| 822 | - (hrecipe : u.pressure = pressureRecipe r c u) : | |
| 823 | - CorrectionState.radialMoment 1 (axialAxialFlux c u + u.pressure) = axialDebtPotential r c u := by | |
| 824 | - have hp : DefectIncrementBounds.Shell r.inner r.outer u.pressure := by | |
| 825 | - rw [hrecipe] | |
| 826 | - exact pressureRecipe_shell r ha hd c u hg | |
| 827 | - have hsum := DefectIncrementBounds.barMoment_add hZ hp 1 | |
| 828 | - change CorrectionState.radialMoment 1 (axialAxialFlux c u + u.pressure) = | |
| 829 | - CorrectionState.radialMoment 1 (axialAxialFlux c u) + CorrectionState.radialMoment 1 u.pressure at hsum | |
| 830 | - rw [hsum] | |
| 831 | - funext n s | |
| 832 | - have hpval : CorrectionState.radialMoment 1 u.pressure n s = | |
| 833 | - -(1 / 2 : ℝ) * CorrectionState.radialMoment 2 (u.gr c) n s + | |
| 834 | - pressureCoefficient r * CorrectionState.pressureDefect c u n s := by | |
| 835 | - rw [state_radialMoment_eq, hrecipe] | |
| 836 | - exact pressureRecipe_moment r ha hd c u hg pg n s | |
| 837 | - simp only [Pi.add_apply, hpval, axialDebtPotential, CorrectionState.axialDefect, | |
| 838 | - Pi.sub_apply, Pi.smul_apply, smul_eq_mul, axialAxialFlux] | |
| 839 | - ring | |
| 840 | - | |
| 841 | -theorem state_axial_moment (r : ReconstructionData) (ha : 0 < r.inner) (hd : 0 < r.exponent) | |
| 842 | - (ε fast : ℕ → ℝ) (z t : S) (v : PressureStream.Plane) | |
| 843 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 844 | - (ho : c.operators = nativeOperators r ε fast z t v) (H : AxialInputs r.inner r.outer c u) | |
| 845 | - (hg : DefectIncrementBounds.Shell r.inner r.outer (u.gr c)) | |
| 846 | - (pg : ∀ n, PressureStream.TorusPeriodicLift (u.gr c n)) | |
| 847 | - (hrecipe : u.pressure = pressureRecipe r c u) | |
| 848 | - (hmass : CorrectionState.radialMoment 1 u.mean.axial = 0) (n : ℕ) (s : S) : | |
| 849 | - CorrectionState.radialMoment 1 (u.axialResidual c) n s = | |
| 850 | - ε n * fderiv ℝ (axialDebtPotential r c u n) s z := by | |
| 851 | - have hp : DefectIncrementBounds.Shell r.inner r.outer u.pressure := by | |
| 852 | - rw [hrecipe] | |
| 853 | - exact pressureRecipe_shell r ha hd c u hg | |
| 854 | - have pp : ∀ n, PressureStream.TorusPeriodicLift (u.pressure n) := by | |
| 855 | - rw [hrecipe] | |
| 856 | - exact pressureRecipe_periodic r c u pg | |
| 857 | - have hm : IntegratedMeanBalances.radialMoment 1 (averaged u.mean.axial n) = 0 := by | |
| 858 | - funext q | |
| 859 | - rw [← state_radialMoment_eq, hmass] | |
| 860 | - rfl | |
| 861 | - have hdebt : IntegratedMeanBalances.radialMoment 1 | |
| 862 | - (averaged (axialAxialFlux c u + u.pressure) n) = axialDebtPotential r c u n := by | |
| 863 | - funext q | |
| 864 | - rw [← state_radialMoment_eq, axial_flux_pressure_moment r ha hd c u H.axial hg pg hrecipe] | |
| 865 | - rw [state_radialMoment_eq, averaged_axialResidual r ha ε fast z t v c u ho H hp pp n] | |
| 866 | - rw [integrated_axial_along (ε n) z t (averaged_radialShell H.velocity n) | |
| 867 | - (averaged_radialShell H.radial n) (averaged_radialShell (H.axial.add hp) n) | |
| 868 | - (averaged_radialShell H.stress n) hm s, hdebt] | |
| 869 | - | |
| 870 | 684 | /-! ## Actual all-jet debt bounds yield the improved signed bump order -/ |
| 871 | 685 | |
| 872 | 686 | section ClassBounds |
+36 −0 routes/s1-ns-state-2/README.md added View file
| @@ -0,0 +1,36 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-state-2 | |
| 6 | + | |
| 7 | +Unit `s1-ns-state-2` of #10 (S-1), wave 2: the family `NavierStokes/State*`, file | |
| 8 | +`NavierStokes/StateMomentBalances.lean`. It deletes the 14 declarations of that file that | |
| 9 | +nothing in the tree uses — 186 lines, deletions only, no statement or proof that stays | |
| 10 | +changed. Wave 1 (`s1-ns-state-1`) deleted 52 declarations of the same family from this file | |
| 11 | +and `NavierStokes/StateReindex.lean`. | |
| 12 | + | |
| 13 | +Deleted: `AuxiliaryAverage.radialDiv_sub`, `AuxiliaryAverage.meanBar_fluxBalance`, | |
| 14 | +`AxialInputs`, `periodic_add`, `pressureRecipe`, `pressureRecipe_shell`, | |
| 15 | +`pressureCoefficient`, `axialDebtPotential`, `pressureRecipe_moment`, | |
| 16 | +`physicalCompact_periodic`, `pressureRecipe_periodic`, `averaged_axialResidual`, | |
| 17 | +`axial_flux_pressure_moment`, `state_axial_moment`. | |
| 18 | + | |
| 19 | +What I checked before committing. For each of the 14 short names, `git grep -n -w` over | |
| 20 | +`*.lean` at the head of this branch finds no remaining use, and no file refers to one under | |
| 21 | +`StateMomentBalances.` or `AuxiliaryAverage.`. The only hits are other declarations that | |
| 22 | +share a short name, which is fine: `GaugeMomentBalances.pressureRecipe`, | |
| 23 | +`GaugeMomentBalances.axialDebtPotential`, `GaugeMomentBalances.pressureRecipe_moment`, | |
| 24 | +`GaugeMomentBalances.axial_flux_pressure_moment`, and the several unrelated | |
| 25 | +`pressureCoefficient`s (`TangentProjection.`, `SlowExpansionResidual.`, | |
| 26 | +`EulerPacketForwardShear.`, `TerminalEdgeFactor.`, `Euler.TransverseForwardInverse`). | |
| 27 | +The one deleted docstring ("The torus-mean flux identity used for the initial improved bar | |
| 28 | +estimate") names no numbered Lemma, Theorem, Proposition, Corollary, Section or Equation of | |
| 29 | +the paper. `python3 checks/challenge.py .` ends with `ok: 4 challenge files and the build | |
| 30 | +configuration as approved; ...`. | |
| 31 | + | |
| 32 | +## Next | |
| 33 | + | |
| 34 | +Push and open the pull request; the maintainer's review after `challenge` and `build` on | |
| 35 | +`s1-ns-state-2`. If a later wave needs a statement again, it comes back from the parent | |
| 36 | +commit. | |