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/Primary): delete 150 declarations nothing uses
Browse filesPart of #10. Keeps nine declarations: six state what the manuscript prints in prose (scalar_cone_model, actual_phase_identification, primary_gaussian_bounds, primarySeed_reference_contDiffOn, exists_prepared_primary_jets, exists_prepared_pair_jets) and three are what they need (referenceEnvelope, initialEnvelope_contDiffOn, referenceRate_contDiffOn). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main maintainer-statement p1-ns-physical p2-correction-temporal-mean s1-euler-all-3 s1-euler-angle-9 s1-euler-canonical-8 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-finite-3 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-lp-3 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-3 s1-euler-packet-8 s1-euler-source-6 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-ns-actual-3 s1-ns-actual-8 s1-ns-annular-6 s1-ns-annular-8 s1-ns-assembled-7 s1-ns-axisymmetric-8 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-3 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-3 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-3 s1-ns-edge-6 s1-ns-error-3 s1-ns-error-9 s1-ns-even-3 s1-ns-final-6 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-3 s1-ns-flat-8 s1-ns-fourier-3 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-3 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-6 s1-ns-linear-7 s1-ns-localized-1 s1-ns-localized-6 s1-ns-mean-1 s1-ns-mean-8 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-parametric-6 s1-ns-particular-10 s1-ns-particular-2 s1-ns-particular-6 s1-ns-particular-8 s1-ns-partitioned-6 s1-ns-partitioned-8 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-9 s1-ns-primary-1 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-radial-9 s1-ns-reserved-8 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-signed-3 s1-ns-signed-8 s1-ns-slow-6 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-spacetime-3 s1-ns-state-8 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-6 s1-ns-torus-3 s1-ns-uniform-8 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-wave-11 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-6 s2-build-profile-files s2-euler-all-1 s2-euler-base-1 s2-euler-bounded-1 s2-euler-child-1 s2-euler-coefficient-1 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-div-1 s2-euler-drift-1 s2-euler-euler-1 s2-euler-field-1 s2-euler-finite-1 s2-euler-flow-1 s2-euler-gaussian-1 s2-euler-gevrey-1 s2-euler-h6-1 s2-euler-heat-1 s2-euler-initial-1 s2-euler-integral-1 s2-euler-linear-1 s2-euler-local-1 s2-euler-logarithmic-1 s2-euler-mean-1 s2-euler-metric-1 s2-euler-mixed-1 s2-euler-operator-1 s2-euler-ordinary-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-parameter-1 s2-euler-parent-1 s2-euler-radial-1 s2-euler-small-1 s2-euler-sobolev-1 s2-euler-squared-1 s2-euler-static-1 s2-euler-terminal-1 s2-euler-time-1 s2-euler-transport-1 s2-euler-transverse-1 s2-euler-unshifted-1 s2-euler-vorticity-1 s2-euler-weighted-1 s2-instances-1 s2-ns-activation-1 s2-ns-actual-1 s2-ns-aligned-1 s2-ns-angular-1 s2-ns-annular-1 s2-ns-axis-1 s2-ns-base-1 s2-ns-chart-1 s2-ns-closed-1 s2-ns-common-1 s2-ns-cone-1 s2-ns-coordinate-1 s2-ns-corrected-1 s2-ns-correction-1 s2-ns-covariance-1 s2-ns-current-1 s2-ns-cylindrical-1 s2-ns-diophantine-1 s2-ns-direct-1 s2-ns-extended-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-future-1 s2-ns-gauge-1 s2-ns-gaussian-1 s2-ns-global-1 s2-ns-glued-1 s2-ns-growing-1 s2-ns-heat-1 s2-ns-initial-1 s2-ns-label-1 s2-ns-local-1 s2-ns-loop-1 s2-ns-matching-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-moving-1 s2-ns-native-1 s2-ns-natural-1 s2-ns-normal-1 s2-ns-outgoing-1 s2-ns-outgoing-2 s2-ns-parametric-1 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-phase-1 s2-ns-physical-1 s2-ns-polar-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-profile-1 s2-ns-pulse-1 s2-ns-r3-1 s2-ns-r3-folder-1 s2-ns-reference-1 s2-ns-renormalized-1 s2-ns-repair-1 s2-ns-reserved-1 s2-ns-reset-1 s2-ns-residual-1 s2-ns-scaled-1 s2-ns-scaled-2 s2-ns-scaling-1 s2-ns-shape-1 s2-ns-shaped-1 s2-ns-signed-1 s2-ns-similarity-1 s2-ns-slot-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-spatial-1 s2-ns-squared-1 s2-ns-stress-1 s2-ns-tail-1 s2-ns-temporal-1 s2-ns-terminal-1 s2-ns-transition-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-1 s2-ns-volterra-2 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
+126 −0 NavierStokes/PrimaryCopyBounds.lean View file
| @@ -952,6 +952,132 @@ theorem preparedPrefactor_jets (r0 : ℝ) (vr vt : TorusInverse.Plane) (N : ℕ) | ||
| 952 | 952 | (PolynomialJets.const_fixed (D := PrimaryGeometryAssembly.domain W₀ N) |
| 953 | 953 | (PartitionedCovariance.nativePrefactor vr vt r0 * (2 * r0))) |
| 954 | 954 | |
| 955 | +/-- The determinant, entry and inverse-weight constants are produced by | |
| 956 | +the actual same-profile construction before the label and copy chart are | |
| 957 | +chosen. The target is the literal leading stress of that same profile. -/ | |
| 958 | +theorem exists_prepared_primary_jets | |
| 959 | + (hcone : LeadingStressWeights.FullTrueCone v₀) (upper : ℝ) (B : ℕ) | |
| 960 | + (r0 : ℝ) (hr0 : 0 < r0) | |
| 961 | + (hbox : 2 * NominalConeAssembly.activeRight W₀ ≤ FinalSlowBase.boxRadius W₀ upper) | |
| 962 | + (N0 : ℕ) (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : | |
| 963 | + ∃ a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0, | |
| 964 | + ∀ (V : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) D) | |
| 965 | + (χ : PrimaryGeometryAssembly.Index W₀ a.N → D → PhaseCalculus.Slow × ℝ) | |
| 966 | + (mask : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ), | |
| 967 | + (∀ L, (PrimaryGeometryAssembly.domain W₀ a.N).scale L = V.scale L) → | |
| 968 | + PolynomialJets V.toDomain χ → | |
| 969 | + (∀ L x, x ∈ V.carrier L → | |
| 970 | + χ L x ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L ×ˢ Ioo (0 : ℝ) 1) → | |
| 971 | + (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ | |
| 972 | + PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀)) → | |
| 973 | + (∀ k, NativeJets V (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) | |
| 974 | + (fun L x => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k)) → | |
| 975 | + PolynomialJets V.toDomain mask → | |
| 976 | + (∀ L x, x ∈ V.carrier L → 0 < PrimaryTargetBounds.movingWeight W₀ (χ L x).1) → | |
| 977 | + ∀ j : Fin 2, | |
| 978 | + NativeJets V | |
| 979 | + (fun L x => Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * | |
| 980 | + (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * | |
| 981 | + pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x)) | |
| 982 | + (primaryVelocity (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) | |
| 983 | + (preparedPrefactor r0 vr vt) χ | |
| 984 | + (fun L => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) | |
| 985 | + (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask j) := by | |
| 986 | + obtain ⟨a, dg, eb, il, hdg, heb, hil, hz⟩ := PrimaryTargetBounds.exists_constructed_bounds | |
| 987 | + H₀ v₀ hcone upper B r0 hr0 hbox N0 vr vt hdet | |
| 988 | + refine ⟨a, ?_⟩ | |
| 989 | + intro V χ mask hscale hχ hmap hpositive hT hm hw j | |
| 990 | + apply primaryVelocity_jets (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) | |
| 991 | + (preparedPrefactor r0 vr vt) χ | |
| 992 | + (fun L => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) | |
| 993 | + (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask | |
| 994 | + (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) | |
| 995 | + hscale hχ hmap (fun j => preparedPrefactor_jets r0 vr vt a.N j) | |
| 996 | + hT hm hw hdg heb hil _ j | |
| 997 | + intro L x hx | |
| 998 | + have h := hz L (χ L x).1 (hpositive L x hx) (hmap L x hx).1 | |
| 999 | + have hsc : V.scale L = ChartScales.S (BaseChartJets.cellBand L) := (hscale L).symm | |
| 1000 | + simp only [hsc, pulseMatrix] at h ⊢ | |
| 1001 | + exact h | |
| 1002 | + | |
| 1003 | +/-- The final native primary estimate has no target-jet premise: the | |
| 1004 | +actual leading target is pulled back from its proved profile estimates. | |
| 1005 | +The remaining chart hypotheses are pointwise geometry and polynomial | |
| 1006 | +jets of the primitive coordinate map and scalar mask. -/ | |
| 1007 | +theorem exists_prepared_pair_jets | |
| 1008 | + (hcone : LeadingStressWeights.FullTrueCone v₀) (upper : ℝ) (B : ℕ) | |
| 1009 | + (r0 : ℝ) (hr0 : 0 < r0) | |
| 1010 | + (hbox : 2 * NominalConeAssembly.activeRight W₀ ≤ FinalSlowBase.boxRadius W₀ upper) | |
| 1011 | + (N0 : ℕ) (vr vt : TorusInverse.Plane) (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) : | |
| 1012 | + ∃ a : PrimaryGeometryAssembly.Prepared H₀ v₀ upper B r0 N0, | |
| 1013 | + ∀ (V : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) D) | |
| 1014 | + (S : JetDomain (PrimaryGeometryAssembly.Index W₀ a.N) PhaseCalculus.Slow) | |
| 1015 | + (χ : PrimaryGeometryAssembly.Index W₀ a.N → D → PhaseCalculus.Slow × ℝ) | |
| 1016 | + (mask : PrimaryGeometryAssembly.Index W₀ a.N → D → ℝ) | |
| 1017 | + (r M qlo qhi : ℝ), | |
| 1018 | + (∀ L, (PrimaryGeometryAssembly.domain W₀ a.N).scale L = V.scale L) → | |
| 1019 | + PolynomialJets V.toDomain χ → | |
| 1020 | + (∀ L x, x ∈ V.carrier L → | |
| 1021 | + χ L x ∈ (PrimaryGeometryAssembly.domain W₀ a.N).carrier L ×ˢ Ioo (0 : ℝ) 1) → | |
| 1022 | + (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ | |
| 1023 | + PositiveRepresentatives.positivePart (PrimaryGeometryAssembly.referenceSet W₀)) → | |
| 1024 | + (∀ L x, x ∈ V.carrier L → (χ L x).1 ∈ S.carrier L) → | |
| 1025 | + (∀ L x, x ∈ V.carrier L → S.growth L (χ L x).1 ≤ V.growth L x) → | |
| 1026 | + 0 < r → 0 < qlo → | |
| 1027 | + BaseChartJets.GeometryBounds S.toDomain F₀.data.h r M qlo qhi | |
| 1028 | + (NominalConeAssembly.activeLeft W₀) (NominalConeAssembly.activeRight W₀) → | |
| 1029 | + (∀ L p, p ∈ S.carrier L → | |
| 1030 | + (FinalSlowBase.edgeDistance W₀ (BaseChartJets.normalizedCoordinates F₀.data.h p).2)⁻¹ ≤ | |
| 1031 | + S.growth L p) → | |
| 1032 | + PolynomialJets V.toDomain mask → | |
| 1033 | + ∀ j : Fin 2, | |
| 1034 | + let ε := fun L : PrimaryGeometryAssembly.Index W₀ a.N => | |
| 1035 | + ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L) | |
| 1036 | + let F := PrimaryGeometryAssembly.construction H₀ v₀ a hr0 | |
| 1037 | + let u := primaryVelocity F (preparedPrefactor r0 vr vt) χ ε | |
| 1038 | + (fun L x k => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) mask j | |
| 1039 | + let w := fun L x => Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * | |
| 1040 | + pulseEnvelope F χ j L x | |
| 1041 | + NativeJets V (fun L x => Real.sqrt (ε L) * w L x) u ∧ | |
| 1042 | + NativeJets V (fun L x => ε L * w L x) | |
| 1043 | + (phasePressure (F j) χ | |
| 1044 | + (fun L => (ChartScales.carrier F₀.data.h (BaseChartJets.cellBand L) : ℝ)) u) := by | |
| 1045 | + obtain ⟨a, ha⟩ := exists_prepared_primary_jets (D := D) H₀ v₀ hcone upper B r0 hr0 hbox N0 vr vt hdet | |
| 1046 | + refine ⟨a, ?_⟩ | |
| 1047 | + intro V S χ mask r M qlo qhi hscale hχ hmap hpositive hS hgrowth hr hqlo hgeom hedge hmask j | |
| 1048 | + dsimp only | |
| 1049 | + have ht := (actualTarget_jets v₀ hcone S hr hqlo hgeom hedge).comp | |
| 1050 | + (hχ.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ)) hS hgrowth | |
| 1051 | + have htarget (k : Fin 2) : | |
| 1052 | + NativeJets V (fun L x => PrimaryTargetBounds.movingWeight W₀ (χ L x).1) | |
| 1053 | + (fun L x => PrimaryTargetBounds.actualTarget v₀ (χ L x).1 k) := | |
| 1054 | + ht.map (PiLp.proj 2 (fun _ : Fin 2 => ℝ) k) | |
| 1055 | + have hw (L : PrimaryGeometryAssembly.Index W₀ a.N) (x : D) (hx : x ∈ V.carrier L) : | |
| 1056 | + 0 < PrimaryTargetBounds.movingWeight W₀ (χ L x).1 := by | |
| 1057 | + have hs := hS L x hx | |
| 1058 | + rw [PrimaryTargetBounds.movingWeight_eq W₀ (hgeom.time L _ hs) | |
| 1059 | + (hr.trans_le (hgeom.radius L _ hs))] | |
| 1060 | + apply ActiveAnnulusWeight.radialWeight_pos | |
| 1061 | + simp only [FinalSlowBase.logLeft, FinalSlowBase.logRight, | |
| 1062 | + Real.exp_log (NominalConeAssembly.activeLeft_pos W₀), | |
| 1063 | + Real.exp_log (FinalSlowBase.terminal_pos W₀)] | |
| 1064 | + exact hgeom.x_range L _ hs | |
| 1065 | + have hu := ha V χ mask hscale hχ hmap hpositive htarget hmask hw j | |
| 1066 | + refine ⟨hu, ?_⟩ | |
| 1067 | + have hp := phasePressure_carrier_jets (PrimaryGeometryAssembly.construction H₀ v₀ a hr0 j) | |
| 1068 | + χ hscale hχ hmap hu F₀.data.h F₀.data.h_pos.le BaseChartJets.cellBand | |
| 1069 | + have he : (fun L x => Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * | |
| 1070 | + (Real.sqrt (ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L)) * | |
| 1071 | + (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * | |
| 1072 | + pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x))) = | |
| 1073 | + (fun L x => ChartScales.epsilon F₀.data.h (BaseChartJets.cellBand L) * | |
| 1074 | + (Real.sqrt (PrimaryTargetBounds.movingWeight W₀ (χ L x).1) * | |
| 1075 | + pulseEnvelope (PrimaryGeometryAssembly.construction H₀ v₀ a hr0) χ j L x)) := by | |
| 1076 | + funext L x | |
| 1077 | + rw [← mul_assoc, Real.mul_self_sqrt (ChartScales.epsilon_pos F₀.data.h _).le] | |
| 1078 | + rw [he] at hp | |
| 1079 | + exact hp | |
| 1080 | + | |
| 955 | 1081 | end Prepared |
| 956 | 1082 | |
| 957 | 1083 | /-! ### Actual slow-mask jets and zero germs -/ |
+21 −0 NavierStokes/PrimaryCovarianceBounds.lean View file
| @@ -606,4 +606,25 @@ end NativePrimary | ||
| 606 | 606 | |
| 607 | 607 | /-! ## Scalar-cone input adapter -/ |
| 608 | 608 | |
| 609 | +/-- The manuscript's two signed model columns satisfy all model-side | |
| 610 | +inputs of `compact_native_primary_bounds` directly from the scalar cone. | |
| 611 | +The actual pulse directions may be compared to these columns using the | |
| 612 | +ratio hypothesis of that theorem. -/ | |
| 613 | +theorem scalar_cone_model {X : Type*} [TopologicalSpace X] {K : Set X} | |
| 614 | + {c₀ u m t : X → ℝ} (hc₀ : ContinuousOn c₀ K) (hu : ContinuousOn u K) | |
| 615 | + (hm : ContinuousOn m K) (ht : ContinuousOn t K) | |
| 616 | + (hc₀neg : ∀ p ∈ K, c₀ p < 0) (hupos : ∀ p ∈ K, 0 < u p) | |
| 617 | + (hcone : ∀ p ∈ K, |Covariance.normalMagnitude (c₀ p) (u p) * t p| < u p * m p) : | |
| 618 | + (∀ i j, ContinuousOn (fun p => PulseCovariance.signedModel (c₀ p) (u p) i j) K) ∧ | |
| 619 | + (∀ i, ContinuousOn (fun p => Covariance.target (m p) (t p) i) K) ∧ | |
| 620 | + (∀ p ∈ K, SmoothCovariance.StrictCone (PulseCovariance.signedModel (c₀ p) (u p)) | |
| 621 | + (Covariance.target (m p) (t p))) := by | |
| 622 | + refine ⟨PulseCovariance.signedModel_continuousOn hc₀ hu, ?_, ?_⟩ | |
| 623 | + · intro i | |
| 624 | + fin_cases i | |
| 625 | + · exact hm.fun_neg | |
| 626 | + · exact ht | |
| 627 | + · intro p hp | |
| 628 | + exact PulseCovariance.signedModel_strictCone (hc₀neg p hp) (hupos p hp) (hcone p hp) | |
| 629 | + | |
| 609 | 630 | end NavierStokes.PrimaryCovarianceBounds |
+12 −0 NavierStokes/PrimaryFieldAssembly.lean View file
| @@ -205,6 +205,18 @@ theorem mode_identification {X : Type*} (κ : ℝ) (Φ : X → ℝ) | ||
| 205 | 205 | rw [hr, hphase] |
| 206 | 206 | rfl |
| 207 | 207 | |
| 208 | +/-- The phase in the manuscript gives precisely the recorded integer | |
| 209 | +angular mode and the recorded slow phase remainder. -/ | |
| 210 | +theorem actual_phase_identification (k ε p pz x0 : ℝ) | |
| 211 | + (F G : PhaseCalculus.Slow → ℝ) (s : PhaseCalculus.Slow) | |
| 212 | + (v : Plane → ℝ) (m : ℤ) (hm : k * p = (m : ℝ)) (Y : Plane) (θ : ℝ) : | |
| 213 | + k * PhaseCalculus.phase ε p pz x0 F G (s, θ, v Y) = | |
| 214 | + (m : ℝ) * θ + k * ((pz / ε) * s.2.1 + x0 * s.1 - | |
| 215 | + v Y * (p * F s + pz * G s)) := by | |
| 216 | + unfold PhaseCalculus.phase | |
| 217 | + rw [← hm] | |
| 218 | + ring | |
| 219 | + | |
| 208 | 220 | /-! ## The exact curl retains its covariance error -/ |
| 209 | 221 | |
| 210 | 222 | section CurlCorrection |
+118 −0 NavierStokes/PrimaryODE.lean View file
| @@ -506,16 +506,134 @@ theorem referenceEigenvalue_lower {lam u ell v : ℝ} (hlam : 0 < lam) (hu : 0 | ||
| 506 | 506 | apply Real.sqrt_le_sqrt |
| 507 | 507 | nlinarith [hs.2] |
| 508 | 508 | |
| 509 | +noncomputable def referenceEnvelope {Q : Type} (lam u : Q → ℝ) (ell : ℝ) (z : Q × ℝ) : ℝ := | |
| 510 | + GaussianEnvelope.envelope (GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell) | |
| 511 | + (ell / 2) z.2 | |
| 512 | + | |
| 509 | 513 | section GaussianPrimary |
| 510 | 514 | |
| 511 | 515 | variable {Q : Type} [NormedAddCommGroup Q] |
| 512 | 516 | |
| 517 | +/-- The actual primary is bounded above and below by the manuscript's Gaussian | |
| 518 | +envelopes. The reference scalar equation and spectral gap are derived here | |
| 519 | +from the displayed reference rate; they are not assumptions about a solution. -/ | |
| 520 | +theorem primary_gaussian_bounds {ell : ℝ} (hell : 0 < ell) (d : FrameData Q) | |
| 521 | + (lam u c₀ : Q → ℝ) {U : Set Q} | |
| 522 | + (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 ell)) | |
| 523 | + {p : Q} (hp : p ∈ U) (hlam : 0 < lam p) (hu : 0 < u p) | |
| 524 | + {S C D L : ℝ} (hC : 0 ≤ C) (hD : 0 ≤ D) (hS : 0 < S) | |
| 525 | + (hlarge : 2 * GrowingMode.coneConstant | |
| 526 | + (lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2)) C ≤ S) | |
| 527 | + (hslot : ell ≤ L * S) | |
| 528 | + (heigen : ∀ v ∈ Icc 0 ell, | |
| 529 | + d.eigenvalue (p, v) = ViscousPropagator.referenceEigenvalue (lam p) (u p) ell v) | |
| 530 | + (hprofile : ∀ v ∈ Icc 0 ell, d.eigenvector (p, v) = referenceProfile (c₀ p) (u p) ell v) | |
| 531 | + (herr : ∀ v ∈ Icc 0 ell, | |
| 532 | + |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ | |
| 533 | + |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) | |
| 534 | + (hν : ∀ v ∈ Icc 0 ell, | |
| 535 | + |d.viscosity (p, v) - ViscousPropagator.referenceViscosity (lam p) (u p) ell v| ≤ D / S) : | |
| 536 | + ∃ b B : ℝ, 0 < b ∧ 0 < B ∧ ∀ v ∈ Icc 0 ell, | |
| 537 | + 0 < radialPrimary hell.le d (referenceEnvelope lam u ell) p v ∧ | |
| 538 | + (Real.exp (-(D + 2 * C) * L) / 2) * Real.exp (-B * (v - ell / 2) ^ 2 / ell) ≤ | |
| 539 | + radialPrimary hell.le d (referenceEnvelope lam u ell) p v ∧ | |
| 540 | + radialPrimary hell.le d (referenceEnvelope lam u ell) p v ≤ | |
| 541 | + (3 * Real.exp ((D + 2 * C) * L) / 2) * Real.exp (-b * (v - ell / 2) ^ 2 / ell) ∧ | |
| 542 | + |transversePrimary hell.le d (referenceEnvelope lam u ell) p v / | |
| 543 | + radialPrimary hell.le d (referenceEnvelope lam u ell) p v - referenceProfile (c₀ p) (u p) ell v| ≤ | |
| 544 | + 4 * |referenceProfile (c₀ p) (u p) ell v| * | |
| 545 | + (GrowingMode.coneConstant (lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2)) C / S) := by | |
| 546 | + have hgap : 0 < lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2) := | |
| 547 | + div_pos hlam (PulseGrowth.radius_pos _) | |
| 548 | + have hPpos (v : ℝ) (_ : v ∈ Icc 0 ell) : 0 < referenceEnvelope lam u ell (p, v) := | |
| 549 | + GaussianEnvelope.envelope_pos _ _ _ | |
| 550 | + have hdP (v : ℝ) (hv : v ∈ Icc 0 ell) : | |
| 551 | + HasDerivAt (fun t => referenceEnvelope lam u ell (p, t)) | |
| 552 | + ((d.eigenvalue (p, v) - ViscousPropagator.referenceViscosity (lam p) (u p) ell v) * | |
| 553 | + referenceEnvelope lam u ell (p, v)) v := by | |
| 554 | + rw [heigen v hv] | |
| 555 | + exact ViscousPropagator.hasDerivAt_envelope | |
| 556 | + (ViscousPropagator.continuous_referenceRate (lam p) (u p) ell) (ell / 2) v | |
| 557 | + have hbnd := primary_bounds hell.le d (referenceEnvelope lam u ell) hA hp | |
| 558 | + hgap hC hD hS hlarge (by simpa only [sub_zero] using hslot) | |
| 559 | + (ViscousPropagator.referenceViscosity (lam p) (u p) ell) | |
| 560 | + (fun v hv => (heigen v hv).symm ▸ referenceEigenvalue_lower hlam hu.le hell hv) | |
| 561 | + herr hν hPpos hdP | |
| 562 | + obtain ⟨b, B, hb, hB, hg⟩ := GaussianEnvelope.reference_uniform_gaussian_bounds hlam hu | |
| 563 | + refine ⟨b, B, hb, hB, ?_⟩ | |
| 564 | + intro v hv | |
| 565 | + obtain ⟨hpos, hlo, hhi, hrat⟩ := hbnd v hv | |
| 566 | + have hgauss := hg ell hell v hv | |
| 567 | + refine ⟨hpos, ?_, ?_, ?_⟩ | |
| 568 | + · exact (mul_le_mul_of_nonneg_left hgauss.1 (by positivity)).trans hlo | |
| 569 | + · exact hhi.trans (mul_le_mul_of_nonneg_left hgauss.2 (by positivity)) | |
| 570 | + · simpa only [hprofile v hv] using hrat | |
| 571 | + | |
| 513 | 572 | end GaussianPrimary |
| 514 | 573 | |
| 515 | 574 | section SmoothPrimary |
| 516 | 575 | |
| 517 | 576 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 518 | 577 | |
| 578 | +/-- Smoothness of the actual initial envelope, proved using integration as a | |
| 579 | +bounded linear map on the fixed compact time interval. -/ | |
| 580 | +theorem initialEnvelope_contDiffOn {a b : ℝ} (hab : a ≤ b) | |
| 581 | + (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) | |
| 582 | + (rate : Q × ℝ → ℝ) (hrate : ContDiffOn ℝ ∞ rate (U ×ˢ V)) (midpoint : Icc a b) : | |
| 583 | + ContDiffOn ℝ ∞ | |
| 584 | + (fun p => GaussianEnvelope.envelope (fun t => rate (p, t)) midpoint a) U := by | |
| 585 | + let T : C(Icc a b, ℝ) →L[ℝ] ℝ := | |
| 586 | + (ContinuousMap.evalCLM ℝ midpoint).comp (ParametricODE.integrator hab) | |
| 587 | + have hpath := SmoothPathFamily.contDiffOn_pathFamily_of_joint U V hU hV hI rate hrate | |
| 588 | + have hc := ((ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) T).comp_contDiffOn hpath).neg.exp | |
| 589 | + apply hc.congr | |
| 590 | + intro p hp | |
| 591 | + have hslice := SmoothPathFamily.slice_continuous | |
| 592 | + (hrate.continuousOn.mono (Set.prod_mono Subset.rfl hI)) hp | |
| 593 | + have hint : (∫ s in a..(midpoint : ℝ), | |
| 594 | + ParametricODE.extend hab (SmoothPathFamily.pathFamily rate p) s) = | |
| 595 | + ∫ s in a..(midpoint : ℝ), rate (p, s) := by | |
| 596 | + apply intervalIntegral.integral_congr | |
| 597 | + intro s hs | |
| 598 | + rw [uIcc_of_le midpoint.2.1] at hs | |
| 599 | + have hs' : s ∈ Icc a b := ⟨hs.1, hs.2.trans midpoint.2.2⟩ | |
| 600 | + rw [ParametricODE.extend, projIcc_of_mem hab hs'] | |
| 601 | + exact SmoothPathFamily.pathFamily_apply rate p hslice ⟨s, hs'⟩ | |
| 602 | + change Real.exp (∫ s in (midpoint : ℝ)..a, rate (p, s)) = | |
| 603 | + Real.exp (-(∫ s in a..(midpoint : ℝ), | |
| 604 | + ParametricODE.extend hab (SmoothPathFamily.pathFamily rate p) s)) | |
| 605 | + rw [hint, intervalIntegral.integral_symm] | |
| 606 | + | |
| 607 | +theorem referenceRate_contDiffOn {U : Set Q} (V : Set ℝ) | |
| 608 | + (lam u : Q → ℝ) (ell : ℝ) (hlam : ContDiffOn ℝ ∞ lam U) (hu : ContDiffOn ℝ ∞ u U) : | |
| 609 | + ContDiffOn ℝ ∞ (fun z : Q × ℝ => GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell z.2) | |
| 610 | + (U ×ˢ V) := by | |
| 611 | + have hl : ContDiffOn ℝ ∞ (fun z : Q × ℝ => lam z.1) (U ×ˢ V) := | |
| 612 | + hlam.comp contDiffOn_fst (fun _ hz => hz.1) | |
| 613 | + have hu' : ContDiffOn ℝ ∞ (fun z : Q × ℝ => u z.1) (U ×ˢ V) := | |
| 614 | + hu.comp contDiffOn_fst (fun _ hz => hz.1) | |
| 615 | + have hs : ContDiffOn ℝ ∞ (fun z : Q × ℝ => PulseGrowth.slotMagnitude (u z.1) ell z.2) | |
| 616 | + (U ×ˢ V) := (hu'.div_const 2).add ((hu'.mul contDiffOn_snd).div_const ell) | |
| 617 | + have hs2 := (contDiffOn_const (c := (1 : ℝ))).add (hs.pow 2) | |
| 618 | + have hu2 := (contDiffOn_const (c := (1 : ℝ))).add (hu'.pow 2) | |
| 619 | + have hr := hs2.sqrt (fun z _ => (PulseGrowth.one_add_sq_pos _).ne') | |
| 620 | + have hur := hu2.sqrt (fun z _ => (PulseGrowth.one_add_sq_pos _).ne') | |
| 621 | + exact (hl.div hr (fun z _ => (PulseGrowth.radius_pos _).ne')).sub | |
| 622 | + ((hl.mul hs2).div (hu2.mul hur) (fun z _ => (PulseGrowth.dampingDenominator_pos _).ne')) | |
| 623 | + | |
| 624 | +/-- The manuscript normalization `z₊(0)=P(0), z₋(0)=0` is itself a smooth | |
| 625 | +parameter family, obtained from the explicit reference rate. -/ | |
| 626 | +theorem primarySeed_reference_contDiffOn {ell : ℝ} (hell : 0 ≤ ell) | |
| 627 | + (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc 0 ell ⊆ V) | |
| 628 | + (lam u : Q → ℝ) (hlam : ContDiffOn ℝ ∞ lam U) (hu : ContDiffOn ℝ ∞ u U) : | |
| 629 | + ContDiffOn ℝ ∞ (primarySeed 0 (referenceEnvelope lam u ell)) U := by | |
| 630 | + have hm : ell / 2 ∈ Icc 0 ell := by constructor <;> linarith | |
| 631 | + have hE := initialEnvelope_contDiffOn hell U V hU hV hI | |
| 632 | + (fun z : Q × ℝ => GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell z.2) | |
| 633 | + (referenceRate_contDiffOn V lam u ell hlam hu) ⟨ell / 2, hm⟩ | |
| 634 | + exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) MovingFrameODE.pairCLM).comp_contDiffOn | |
| 635 | + (hE.prodMk contDiffOn_const) | |
| 636 | + | |
| 519 | 637 | end SmoothPrimary |
| 520 | 638 | |
| 521 | 639 | section Joint |
+47 −15 routes/s1-ns-primary-1/README.md View file
| @@ -5,20 +5,45 @@ status: working | ||
| 5 | 5 | # s1-ns-primary-1 |
| 6 | 6 | |
| 7 | 7 | One unit of issue #10 (S-1, delete declarations that nothing uses): the family |
| 8 | -`NavierStokes/Primary*`, eleven files, 159 declarations, 2554 lines. The | |
| 9 | -deletions are in `PrimaryCopyBounds.lean` (19 declarations, 436 lines), | |
| 10 | -`PrimaryCopyBridge.lean` (12, 104), `PrimaryCovarianceBounds.lean` (6, 132), | |
| 11 | -`PrimaryFieldAssembly.lean` (47, 654), `PrimaryGeometryAssembly.lean` (16, 102), | |
| 12 | -`PrimaryMaterialDefect.lean` (7, 158), `PrimaryODE.lean` (23, 614), | |
| 13 | -`PrimaryPulseBounds.lean` (11, 220), `PrimaryRepresentatives.lean` (9, 87), | |
| 14 | -`PrimaryResidualClass.lean` (1, 7) and `PrimaryTargetBounds.lean` (2, 40). | |
| 8 | +`NavierStokes/Primary*`, eleven files, 159 declarations, 2554 lines. This pull | |
| 9 | +request deletes 150 of them, 2277 lines. The other nine stay: six are the only | |
| 10 | +Lean statement of a fact the manuscript prints, and three are what those six | |
| 11 | +need to be stated and proved. | |
| 12 | + | |
| 13 | +## What stays, and why | |
| 14 | + | |
| 15 | +The six, with the prose in their docstrings that ties them to the manuscript: | |
| 16 | + | |
| 17 | +- `PrimaryCovarianceBounds.scalar_cone_model` — "The manuscript's two signed | |
| 18 | + model columns satisfy all model-side inputs…" | |
| 19 | +- `PrimaryFieldAssembly.actual_phase_identification` — "The phase in the | |
| 20 | + manuscript gives precisely the recorded integer…" | |
| 21 | +- `PrimaryODE.primary_gaussian_bounds` — "The actual primary is bounded above | |
| 22 | + and below by the manuscript's Gaussian envelopes." | |
| 23 | +- `PrimaryODE.primarySeed_reference_contDiffOn` — "The manuscript normalization | |
| 24 | + `z₊(0)=P(0), z₋(0)=0` is itself a smooth parameter family…" | |
| 25 | +- `PrimaryCopyBounds.exists_prepared_primary_jets` — "The determinant, entry and | |
| 26 | + inverse-weight constants are produced by the actual same-profile | |
| 27 | + construction…" | |
| 28 | +- `PrimaryCopyBounds.exists_prepared_pair_jets` — the final native primary | |
| 29 | + estimate, and the existence result of the prepared pair jets. | |
| 30 | + | |
| 31 | +What those six need, and what would otherwise be deleted with them: | |
| 32 | + | |
| 33 | +- `PrimaryODE.referenceEnvelope` (in the statement of `primary_gaussian_bounds` | |
| 34 | + and `primarySeed_reference_contDiffOn`); | |
| 35 | +- `PrimaryODE.initialEnvelope_contDiffOn` and | |
| 36 | + `PrimaryODE.referenceRate_contDiffOn` (in the proof of | |
| 37 | + `primarySeed_reference_contDiffOn`). | |
| 38 | + | |
| 39 | +## How the unit was cut | |
| 15 | 40 | |
| 16 | 41 | The unit was cut from Treant's run of 2026-12-03 |
| 17 | 42 | (TitiSkywalker/NavierStokesAndEuler) and re-checked on this project's main |
| 18 | 43 | under its rule: a declaration Treant deleted stays when a paper result reaches |
| 19 | 44 | it or its docstring cites the paper. `git grep -n -w` over the tree finds none |
| 20 | -of the 159 short names as a use of the deleted declaration; the nine hits that | |
| 21 | -remain are other declarations of the same short name — | |
| 45 | +of the deleted short names as a use of a deleted declaration; the nine hits | |
| 46 | +that remain are other declarations of the same short name — | |
| 22 | 47 | `EulerProof.localize`, `PositiveAxisSystem.sourceField`, |
| 23 | 48 | `FamilyData.angular_rounding_error`, `GaussianTailFlat.finite_jet_bounds`, |
| 24 | 49 | `ViscousPropagator.zero_initial_source_bound`, |
| @@ -26,12 +51,19 @@ remain are other declarations of the same short name — | ||
| 26 | 51 | and `PositiveRepresentatives.representative_parameter_bounds` — except one |
| 27 | 52 | docstring in `PhaseJetBounds.lean` that named the deleted |
| 28 | 53 | `PrimaryODE.norm_iteratedFDeriv_solution_le_polynomial`; that sentence now |
| 29 | -names only `WeightedODEJets`. No removed block carries a numbered reference to | |
| 30 | -the paper (Lemma, Theorem, Proposition, Corollary, Section or Equation), so no | |
| 31 | -paper result is lost. The change is deletions plus that one docstring line: no | |
| 32 | -statement or proof that stays is altered. | |
| 54 | +names only `WeightedODEJets`. The change is deletions plus that one docstring | |
| 55 | +line: no statement or proof that stays is altered. | |
| 56 | + | |
| 57 | +## Rule gap for the next family | |
| 58 | + | |
| 59 | +The filter that cut this unit looked for a numbered reference (Lemma, Theorem, | |
| 60 | +Proposition, Corollary, Section or Equation) in each docstring. The six above | |
| 61 | +cite the manuscript in prose instead, so the filter missed them on the first | |
| 62 | +pass. A docstring that states a manuscript result in prose counts the same as a | |
| 63 | +numbered reference: the declaration stays even when no Lean theorem uses it. | |
| 64 | +`AGENTS.md`, "Changes we don't want", has the rule. | |
| 33 | 65 | |
| 34 | 66 | ## Next |
| 35 | 67 | |
| 36 | -Push, open the pull request, and leave the `build` check to report; then | |
| 37 | -`status: done` once it is taken in. Nothing else in this unit to do. | |
| 68 | +The revision that restores the nine declarations is pushed. Leave the `build` | |
| 69 | +check to report; then `status: done` once it is taken in. | |