import PoincareLib.Geometry.RicciFlow.Generalized.CanonicalNeighborhood import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Geometry import PoincareLib.Topology.Manifold.NeckCap.Theory import Mathlib.Topology.Compactness.SigmaCompact /-! Adapted from Mapher `PoincareMT/Definitions/Ch11/SingularLimits.lean` at `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`, with the terminal-accuracy revision from `0bf00434d6783c9fed79b6a8fa3a8349cfc78335` and the conservative numerical calibration authorized by Horizon mission `m31-singular-regular-limit`, revision 24. See `references/ricci-flow/mapher/surgery-adapters-port.json` and `references/ricci-flow/mapher/terminal-accuracy-contract.json`. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle ENNReal Topology BigOperators intervalIntegral universe u namespace PoincareMT variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] /-- Universal terminal accuracy factor from the pinned Mapher contract. -/ def terminalAccuracyFactor : ℝ := 100000000000000 theorem terminalAccuracyFactor_pos : 0 < terminalAccuracyFactor := by unfold terminalAccuracyFactor; norm_num theorem two_le_terminalAccuracyFactor : 2 ≀ terminalAccuracyFactor := by unfold terminalAccuracyFactor; norm_num /-! ## The fixed reference slice -/ structure SingularTimeReference (F : GeneralizedRicciFlowData.{u}) (T : ℝ) (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] where tMinus : ℝ tMinus_mem : tMinus ∈ F.interval tMinus_lt : tMinus < T window_subset : Set.Ico tMinus T βŠ† F.interval flow : RicciFlow 3 M (Set.Ico tMinus T) forward : βˆ€ t : ℝ, t ∈ Set.Ico tMinus T β†’ M β†’ (F.slice t).carrier inverse : βˆ€ t : ℝ, t ∈ Set.Ico tMinus T β†’ (F.slice t).carrier β†’ M forward_openEmbedding : βˆ€ t ht, Topology.IsOpenEmbedding (forward t ht) forward_smooth : βˆ€ t ht, ContMDiff (𝓑 3) (𝓑 3) ∞ (forward t ht) inverse_smooth : βˆ€ t ht, ContMDiff (𝓑 3) (𝓑 3) ∞ (inverse t ht) forward_surjective : βˆ€ t ht, Function.Surjective (forward t ht) left_inverse : βˆ€ t ht, Function.LeftInverse (inverse t ht) (forward t ht) right_inverse : βˆ€ t ht, Function.RightInverse (inverse t ht) (forward t ht) metric_pullback : βˆ€ t ht x v w, (F.metric t).inner (forward t ht x) (mfderiv (𝓑 3) (𝓑 3) (forward t ht) x v) (mfderiv (𝓑 3) (𝓑 3) (forward t ht) x w) = (flow.metric t).inner x v w scalar_pullback : βˆ€ t ht x, (F.connection t).scalarCurvature (forward t ht x) = (flow.connection t).scalarCurvature x spacetime_forward : Set.Ico tMinus T Γ— M β†’ F.point spacetime_time : βˆ€ p, (spacetime_forward p).1 = (p.1 : ℝ) spacetime_spatial : βˆ€ p, HEq (spacetime_forward p).2 (forward (p.1 : ℝ) p.1.property p.2) spacetime_embedding : Topology.IsEmbedding spacetime_forward spacetime_image : Set.range spacetime_forward = {p : F.point | p.1 ∈ Set.Ico tMinus T} vertical_compatibility : βˆ€ t (_ht : t ∈ Set.Ico tMinus T) x, βˆƒ b, βˆƒ y : (F.box b).carrier.carrier, βˆƒ Ξ΄ : ℝ, 0 < Ξ΄ ∧ βˆ€ s hs, |s - t| < Ξ΄ β†’ βˆƒ hb : s ∈ (F.box b).interval, forward s hs x = (F.box b).forward s hb y noncomputable def SingularTimeReference.scalar {F : GeneralizedRicciFlowData.{u}} {T : ℝ} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] (R : SingularTimeReference F T M) (t : ℝ) (x : M) : ℝ := (R.flow.connection t).scalarCurvature x /-- Scalar curvature has a finite upper bound along times arbitrarily close to the terminal time. This is the literal finite-liminf condition; eventual boundedness is a conclusion of the singular-limit theorem. -/ def SingularTimeReference.regularLimitSet {F : GeneralizedRicciFlowData.{u}} {T : ℝ} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] (R : SingularTimeReference F T M) : Set M := {x | βˆƒ B : ℝ, βˆ€ tβ‚€ : ℝ, tβ‚€ < T β†’ βˆƒ t : ℝ, tβ‚€ < t ∧ t ∈ Set.Ico R.tMinus T ∧ R.scalar t x ≀ B} /-! ## Actual metric pullbacks and their jets -/ noncomputable def singularTensorCoefficient {X : Type u} [TopologicalSpace X] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓑 3) ∞ X] (B : CovariantTensorEvaluation 3 X 2) (q : X) (a b : Fin 3) (p : EuclideanSpace ℝ (Fin 3)) : ℝ := let c := extChartAt (𝓑 3) q let A := mfderiv (𝓑 3) (𝓑 3) c.symm p B (c.symm p) ![A (EuclideanSpace.basisFun (Fin 3) ℝ a), A (EuclideanSpace.basisFun (Fin 3) ℝ b)] noncomputable def singularMetricCoefficient {X : Type u} [TopologicalSpace X] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓑 3) ∞ X] (g : RiemannianMetric 3 X) (q : X) (a b : Fin 3) (p : EuclideanSpace ℝ (Fin 3)) : ℝ := singularTensorCoefficient (fun x v ↦ g.inner x (v 0) (v 1)) q a b p /-- Compact-open smooth convergence of the actual pullback in each fixed terminal chart. Finite chart covers give the equivalent compact-subset form. -/ def CompactSingularMetricLimit {F : GeneralizedRicciFlowData.{u}} {T : ℝ} {M X : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [TopologicalSpace X] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓑 3) ∞ X] (R : SingularTimeReference F T M) (gT : RiemannianMetric 3 X) (i : X β†’ M) : Prop := βˆ€ q : X, βˆ€ a b : Fin 3, βˆ€ r : β„•, βˆ€ C : Set (EuclideanSpace ℝ (Fin 3)), IsCompact C β†’ C βŠ† (extChartAt (𝓑 3) q).target β†’ βˆ€ Ξ΅ : ℝ, 0 < Ξ΅ β†’ βˆƒ tβ‚€ : ℝ, R.tMinus ≀ tβ‚€ ∧ tβ‚€ < T ∧ βˆ€ t, tβ‚€ < t β†’ t < T β†’ βˆ€ p ∈ C, β€–iteratedFDeriv ℝ r (singularTensorCoefficient (singularMetricPullback (R.flow.metric t) i) q a b) p - iteratedFDeriv ℝ r (singularMetricCoefficient gT q a b) pβ€– < Ξ΅ structure SingularTimeAssumptions (F : GeneralizedRicciFlowData.{u}) (T : ℝ) (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] where reference : SingularTimeReference F T M interval_nonnegative : F.interval βŠ† Set.Ici 0 interval_preterminal : F.interval βŠ† Set.Ico 0 T interval_exhausts_preterminal : Set.Ico 0 T βŠ† F.interval terminal_not_in_interval : T βˆ‰ F.interval singularTimes : Set ℝ terminal_is_singular : T ∈ singularTimes singularTimes_discrete : βˆ€ s ∈ singularTimes, βˆƒ Ξ΄ : ℝ, 0 < Ξ΄ ∧ βˆ€ t ∈ singularTimes, t β‰  s β†’ Ξ΄ ≀ |t - s| regular_slices_compact : βˆ€ t ∈ F.interval, t βˆ‰ singularTimes β†’ IsCompact (Set.univ : Set (F.slice t).carrier) positive_pinching : βˆ€ p : F.point, p.1 ∈ F.interval β†’ 0 ≀ F.scalar p + 6 / (1 + 4 * p.1) hamilton_ivey_pinching : βˆ€ p : F.point, p.1 ∈ F.interval β†’ 0 < (F.connection p.1).negativeCurvaturePart p.2 β†’ F.scalar p β‰₯ 2 * (F.connection p.1).negativeCurvaturePart p.2 * (Real.log ((F.connection p.1).negativeCurvaturePart p.2) + Real.log (1 + p.1) - 3) curvature_lower_bound : βˆƒ L : ℝ, βˆ€ p : F.point, p.1 ∈ F.interval β†’ L ≀ F.scalar p rβ‚€ : ℝ rβ‚€_pos : 0 < rβ‚€ epsilon : ℝ epsilon_pos : 0 < epsilon epsilon_lt_quarter : epsilon < 1 / 4 /-- The terminal theorem delivers its horns and canonical neighborhoods at the accuracy `terminalAccuracyFactor * epsilon`; the cap/neck interfaces require that terminal value to stay below the universal Appendix A threshold (Definition 9.72 and Appendix A use `epsilon ≀ 1 / 200`). -/ terminal_epsilon_le_threshold : terminalAccuracyFactor * epsilon ≀ 1 / 200 constant : ℝ constant_pos : 0 < constant /-- The local analytic bounds may have a different coefficient from the geometric canonical-neighborhood constant. -/ analytic_constant : ℝ analytic_constant_pos : 0 < analytic_constant scalar_time_derivative_bound : βˆ€ b t, t ∈ (F.box b).interval β†’ βˆ€ x : (F.box b).carrier.carrier, r₀⁻¹ ^ 2 ≀ ((F.box b).flow.connection t).scalarCurvature x β†’ βˆƒ d : ℝ, HasDerivWithinAt (fun s : ℝ => ((F.box b).flow.connection s).scalarCurvature x) d (F.box b).interval t ∧ |d| ≀ analytic_constant * ((F.box b).flow.connection t).scalarCurvature x ^ 2 scalar_gradient_bound : βˆ€ t ∈ F.interval, βˆ€ x : (F.slice t).carrier, r₀⁻¹ ^ 2 ≀ (F.connection t).scalarCurvature x β†’ βˆ€ v : TangentSpace (𝓑 3) x, (F.metric t).inner x v v = 1 β†’ |mvfderiv (𝓑 3) (F.connection t).scalarCurvature x v| ≀ analytic_constant * (F.connection t).scalarCurvature x ^ (3 / 2 : ℝ) canonical_control : βˆ€ t ∈ F.interval, (t = 0 ∨ t βˆ‰ singularTimes) β†’ βˆ€ x : (F.slice t).carrier, r₀⁻¹ ^ 2 ≀ F.scalar ⟨t, x⟩ β†’ GeneralizedCanonicalControl t x epsilon constant /-! ## The maximal extension and terminal geometry -/ /-- An extension with exactly the old slices at old times and no new time other than `T`. The gluing chart and exact terminal slice are specified by `SingularLimitConclusion`; `T` need not occur when its regular set is empty. -/ structure GeneralizedFlowExtension (F : GeneralizedRicciFlowData.{u}) (T : ℝ) where extended : GeneralizedRicciFlowData.{u} times_subset : extended.interval βŠ† F.interval βˆͺ {T} old_times : F.interval βŠ† extended.interval forward : βˆ€ t : ℝ, t ∈ F.interval β†’ (F.slice t).carrier β†’ (extended.slice t).carrier inverse : βˆ€ t : ℝ, t ∈ F.interval β†’ (extended.slice t).carrier β†’ (F.slice t).carrier forward_smooth : βˆ€ t ht, ContMDiff (𝓑 3) (𝓑 3) ∞ (forward t ht) inverse_smooth : βˆ€ t ht, ContMDiff (𝓑 3) (𝓑 3) ∞ (inverse t ht) left_inverse : βˆ€ t ht, Function.LeftInverse (inverse t ht) (forward t ht) right_inverse : βˆ€ t ht, Function.RightInverse (inverse t ht) (forward t ht) metric_pullback : βˆ€ t ht x v w, (extended.metric t).inner (forward t ht x) (mfderiv (𝓑 3) (𝓑 3) (forward t ht) x v) (mfderiv (𝓑 3) (𝓑 3) (forward t ht) x w) = (F.metric t).inner x v w scalar_pullback : βˆ€ t ht x, (extended.connection t).scalarCurvature (forward t ht x) = (F.connection t).scalarCurvature x spacetime_forward : F.point β†’ extended.point spacetime_time : βˆ€ p, (spacetime_forward p).1 = p.1 spacetime_slices : βˆ€ t ht x, spacetime_forward (⟨t, x⟩ : F.point) = (⟨t, forward t ht x⟩ : extended.point) spacetime_openEmbedding : Topology.IsOpenEmbedding spacetime_forward spacetime_image : Set.range spacetime_forward = {p : extended.point | p.1 ∈ F.interval} vertical_compatibility : βˆ€ b t (_ht : t ∈ (F.box b).interval) (x : (F.box b).carrier.carrier), βˆƒ c, βˆƒ y : (extended.box c).carrier.carrier, βˆƒ Ξ΄ : ℝ, 0 < Ξ΄ ∧ βˆ€ s (hs : s ∈ (F.box b).interval), |s - t| < Ξ΄ β†’ βˆƒ hc : s ∈ (extended.box c).interval, spacetime_forward (⟨s, (F.box b).forward s hs x⟩ : F.point) = (⟨s, (extended.box c).forward s hc y⟩ : extended.point) abbrev TerminalStrongNeck {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (epsilon : ℝ) := GeneralizedStrongNeck E.extended T epsilon /-- Definition 11.25. The closed end has a smooth collar, the map is a proper smooth embedding, and each point is the center of an evolving neck. -/ structure StrongHorn {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (epsilon : ℝ) where carrier : Set (E.extended.slice T).carrier coordinate : (UnitTwoSphere Γ— Set.Ico (0 : ℝ) 1) β‰ƒβ‚œ carrier parameterization : RoundCylinderSpace β†’ (E.extended.slice T).carrier coordinate_eq : βˆ€ z : UnitTwoSphere Γ— Set.Ico (0 : ℝ) 1, coordinate z = parameterization (z.1, (z.2 : ℝ)) collar : ℝ collar_pos : 0 < collar parameterization_smooth : ContMDiffOn ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) ∞ parameterization (Set.univ Γ—Λ’ Set.Ioo (-collar) 1) parameterization_regular : βˆ€ z : RoundCylinderSpace, z.2 ∈ Set.Ico (0 : ℝ) 1 β†’ Function.Bijective (mfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) parameterization z) proper : βˆ€ K : Set (E.extended.slice T).carrier, IsCompact K β†’ IsCompact {z : UnitTwoSphere Γ— Set.Ico (0 : ℝ) 1 | parameterization (z.1, (z.2 : ℝ)) ∈ K} boundary_sphere : Set (E.extended.slice T).carrier boundary_sphere_eq : boundary_sphere = parameterization '' (Set.univ Γ—Λ’ ({0} : Set ℝ)) boundary_neck : βˆƒ N : TerminalStrongNeck E epsilon, N.central_sphere = boundary_sphere every_point_neck : βˆ€ x ∈ carrier, βˆƒ N : TerminalStrongNeck E epsilon, N.center = x /-- A component smoothly diffeomorphic to `S^2 Γ— R`, as in Definition 11.26. -/ structure StrongDoubleHorn {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (epsilon : ℝ) where basepoint : (E.extended.slice T).carrier carrier : Set (E.extended.slice T).carrier component_eq : carrier = connectedComponent basepoint coordinate : RoundCylinderSpace β‰ƒβ‚œ carrier parameterization : RoundCylinderSpace β†’ (E.extended.slice T).carrier coordinate_eq : βˆ€ z, coordinate z = parameterization z parameterization_smooth : ContMDiff ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) ∞ parameterization parameterization_regular : βˆ€ z, Function.Bijective (mfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) parameterization z) every_point_neck : βˆ€ x ∈ carrier, βˆƒ N : TerminalStrongNeck E epsilon, N.center = x /-- A component equal to the union of a cap core and a strong horn. -/ structure CappedHorn {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (epsilon C : ℝ) where basepoint : (E.extended.slice T).carrier carrier : Set (E.extended.slice T).carrier component_eq : carrier = connectedComponent basepoint cap : CapCertificate (E.extended.metric T) cap_epsilon : cap.epsilon = epsilon cap_constant : cap.cap_constant ≀ C cap_connection : cap.connection = E.extended.connection T horn : StrongHorn E epsilon cap_subset : cap.carrier βŠ† carrier horn_subset : horn.carrier βŠ† carrier union_eq : carrier = cap.core βˆͺ horn.carrier structure TerminalComponentPath {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) where basepoint : (E.extended.slice T).carrier component : Set (E.extended.slice T).carrier component_eq : component = connectedComponent basepoint path_to : βˆ€ x ∈ component, βˆƒ Ξ³ : Path basepoint x, Set.range Ξ³ βŠ† component /-- An end is a nested choice of noncompact connected components outside a compact exhaustion. No quotient is needed to quantify over every such end. -/ structure TerminalEnd {F : GeneralizedRicciFlowData.{u}} {T : ℝ} {E : GeneralizedFlowExtension F T} (K : TerminalComponentPath E) where exhaustion : CompactExhaustion K.component tail : β„• β†’ Set K.component tail_component : βˆ€ n, βˆƒ x : K.component, x βˆ‰ exhaustion n ∧ tail n = connectedComponentIn (exhaustion n)ᢜ x nested : Antitone tail escapes_compact : βˆ€ n, βˆ€ L : Set K.component, IsCompact L β†’ Β¬ tail n βŠ† L abbrev TerminalCanonicalNeighborhood {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (x : (E.extended.slice T).carrier) (epsilon C : ℝ) := GeneralizedCanonicalControl (F := E.extended) T x epsilon C /-! Universal factor between the preterminal canonical accuracy `epsilon` of Assumptions 11.18 and the terminal accuracy delivered by Theorem 11.19(5) and Lemma 11.23. Morgan--Tian print the factor as two. That value is not attainable: the cap case of Proposition 9.79(3), p. 234, shortens the end neck of a `(C, epsilon)`-cap and recenters it, which renormalizes the neck metric at the new center and costs a further `O(epsilon)` in accuracy, so the loss exceeds a factor two for explicit warped cylinders (see the 2026-09-22 revision note in the Horizon roadmap and `references/ricci-flow/morgan-tian/correction/same-core-cap-persistence.md` in the Horizon workspace). The original approved Mapher value was 64. The formal scalar estimate uses coefficient `10^12`, and the transported scalar ratio uses coefficient `2000000000004`. Mission revision 24 explicitly authorizes raising this factor to cover the checked estimate. The value below dominates the squared translated-jet budget `32 + 6 * 2000000000004^2`. M32 and M33 consumers use only `terminalAccuracyFactor_pos` and `two_le_terminalAccuracyFactor`; the M31 construction uses the numerical calibration lemmas below. -/ /-- Room for the strict chart shortening in the same-core construction. -/ theorem four_lt_terminalAccuracyFactor : 4 < terminalAccuracyFactor := by unfold terminalAccuracyFactor; norm_num /-- The terminal factor absorbs the checked linear scalar-ratio coefficient in the translated normalized-cylinder jet estimate. -/ theorem terminalAccuracyFactor_scalar_ratio_budget : (32 : ℝ) + 6 * (2000000000004 : ℝ) ^ 2 < terminalAccuracyFactor ^ 2 := by unfold terminalAccuracyFactor; norm_num /-- The five conclusions of Theorem 11.19. The terminal source map is a smooth open embedding with nonsingular derivative, hence a diffeomorphism onto the regular-limit set. This formulation also permits an empty set. The terminal horn and canonical accuracy is `terminalAccuracyFactor * H.epsilon` rather than the printed `2 * H.epsilon`; see `terminalAccuracyFactor`. -/ structure SingularLimitConclusion {F : GeneralizedRicciFlowData.{u}} {T : ℝ} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] (H : SingularTimeAssumptions F T M) where regular_open : IsOpen H.reference.regularLimitSet regular_eventually_bounded : βˆ€ x ∈ H.reference.regularLimitSet, βˆƒ B : ℝ, βˆƒ tβ‚€ : ℝ, H.reference.tMinus ≀ tβ‚€ ∧ tβ‚€ < T ∧ βˆ€ t, tβ‚€ < t β†’ t < T β†’ |H.reference.scalar t x| ≀ B extension : GeneralizedFlowExtension F T terminal_source : (extension.extended.slice T).carrier β†’ M terminal_source_image : Set.range terminal_source = H.reference.regularLimitSet terminal_source_openEmbedding : Topology.IsOpenEmbedding terminal_source terminal_source_smooth : ContMDiff (𝓑 3) (𝓑 3) ∞ terminal_source terminal_source_regular : βˆ€ x, Function.Bijective (mfderiv (𝓑 3) (𝓑 3) terminal_source x) terminal_time_iff : T ∈ extension.extended.interval ↔ H.reference.regularLimitSet.Nonempty terminal_metric : RiemannianMetric 3 (extension.extended.slice T).carrier terminal_metric_eq : terminal_metric = extension.extended.metric T terminal_scalar : (extension.extended.slice T).carrier β†’ ℝ terminal_scalar_eq : terminal_scalar = (extension.extended.connection T).scalarCurvature scalar_lower : βˆƒ L : ℝ, βˆ€ x, L ≀ terminal_scalar x scalar_proper : βˆ€ K : Set ℝ, IsCompact K β†’ IsCompact (terminal_scalar ⁻¹' K) metric_limit_on_compacts : CompactSingularMetricLimit H.reference terminal_metric terminal_source gluing_map : Set.Ioc H.reference.tMinus T Γ— (extension.extended.slice T).carrier β†’ extension.extended.point gluing_time : βˆ€ p, (gluing_map p).1 = p.1.1 gluing_old : βˆ€ t (ht : t ∈ Set.Ioc H.reference.tMinus T) (hlt : t < T) x, gluing_map (⟨t, ht⟩, x) = extension.spacetime_forward (⟨t, H.reference.forward t ⟨le_of_lt ht.1, hlt⟩ (terminal_source x)⟩ : F.point) gluing_terminal : βˆ€ x, gluing_map (⟨T, ⟨H.reference.tMinus_lt, le_rfl⟩⟩, x) = (⟨T, x⟩ : extension.extended.point) gluing_openEmbedding : Topology.IsOpenEmbedding gluing_map gluing_cover : Set.range extension.spacetime_forward βˆͺ Set.range gluing_map = Set.univ gluing_vertical_compatibility : βˆ€ t (_ht : t ∈ Set.Ioc H.reference.tMinus T) x, βˆƒ b, βˆƒ y : (extension.extended.box b).carrier.carrier, βˆƒ Ξ΄ : ℝ, 0 < Ξ΄ ∧ βˆ€ s hs, |s - t| < Ξ΄ β†’ βˆƒ hb : s ∈ (extension.extended.box b).interval, gluing_map (⟨s, hs⟩, x) = (⟨s, (extension.extended.box b).forward s hb y⟩ : extension.extended.point) component_paths : βˆ€ x : (extension.extended.slice T).carrier, βˆƒ P : TerminalComponentPath extension, P.basepoint = x end_tube : βˆ€ K : TerminalComponentPath extension, βˆ€ e : TerminalEnd K, βˆƒ Hn : StrongHorn extension (terminalAccuracyFactor * H.epsilon), Hn.carrier βŠ† K.component ∧ βˆƒ n, Subtype.val '' e.tail n βŠ† Hn.carrier canonical_neighborhood : βˆ€ x : (extension.extended.slice T).carrier, H.r₀⁻¹ ^ 2 < terminal_scalar x β†’ TerminalCanonicalNeighborhood extension x (terminalAccuracyFactor * H.epsilon) (2 * H.constant) /-- Definition 11.27, expressed using the actual terminal scalar curvature. -/ def HornBoundaryBelow {F : GeneralizedRicciFlowData.{u}} {T epsilon : ℝ} {E : GeneralizedFlowExtension F T} (H : StrongHorn E epsilon) (rho : ℝ) : Prop := βˆ€ x ∈ H.boundary_sphere, (E.extended.connection T).scalarCurvature x ≀ rho⁻¹ ^ 2 /-- The component beyond the selected central sphere contains a full tail of the proper horn and is disjoint from the low-curvature set. -/ structure HornEndCut {F : GeneralizedRicciFlowData.{u}} {T epsilon delta : ℝ} {E : GeneralizedFlowExtension F T} (H : StrongHorn E epsilon) (N : TerminalStrongNeck E delta) (rho : ℝ) where point : (E.extended.slice T).carrier point_mem : point ∈ H.carrier \ N.central_sphere carrier : Set (E.extended.slice T).carrier component_eq : carrier = connectedComponentIn (H.carrier \ N.central_sphere) point tail_level : ℝ tail_level_nonneg : 0 ≀ tail_level tail_level_lt_one : tail_level < 1 contains_tail : H.parameterization '' (Set.univ Γ—Λ’ Set.Ioo tail_level 1) βŠ† carrier escapes_compact : βˆ€ K : Set (E.extended.slice T).carrier, IsCompact K β†’ Β¬ carrier βŠ† K disjoint_low_curvature : Disjoint carrier {x | (E.extended.connection T).scalarCurvature x ≀ rho⁻¹ ^ 2} structure DeepHornNeckConclusion {F : GeneralizedRicciFlowData.{u}} {T : ℝ} (E : GeneralizedFlowExtension F T) (epsilon C rho delta : ℝ) (H : StrongHorn E epsilon) (h : ℝ) where h_pos : 0 < h h_upper : h ≀ min (rho * delta) (rho / (2 * C)) deep_neck : βˆ€ x ∈ H.carrier, h⁻¹ ^ 2 ≀ (E.extended.connection T).scalarCurvature x β†’ βˆƒ N : TerminalStrongNeck E delta, N.center = x ∧ N.carrier βŠ† H.carrier selected_neck : βˆƒ N : TerminalStrongNeck E delta, N.center ∈ H.carrier ∧ N.carrier βŠ† H.carrier ∧ (E.extended.connection T).scalarCurvature N.center = h⁻¹ ^ 2 ∧ Nonempty (HornEndCut H N rho) end PoincareMT