import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.CapGeometry.CappedTwoNeckMinimizers import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.RecenteredCompetitor import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Ends.EndpointScalarSeparation /-! # The actual two-neck source minimizer in a capped region Claim 10.3, Morgan--Tian pp. 248-249. Original endpoint membership in the literal tube selects actual chain necks. Scalar separation constructs both disjointness inputs, actual connectors recenter the source path, and the capped confinement producer minimizes over the full capped carrier. See the cap-topology recentered-confinement derivation, section 4. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff Topology ENNReal Bundle universe u namespace PoincareMT.M28 /-- At one universal accuracy, an actual capped-region source path whose original endpoints lie in its tube produces a finite full-region minimizer between actual selected chain centers. No selected indices, disjointness, connectors or confinement data are supplied (Claim 10.3). -/ theorem exists_capped_two_neck_source_minimizer_accuracy : ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ ∀ (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] [MeasurableSpace M] [BorelSpace M] (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (T : CappedTubeCertificate g), T.tube.epsilon ≤ epsilon₀ → ∀ (C Q A : ℝ) (η : ℝ → M) (a b : ℝ), T.cap.cap_constant ≤ C → 0 < Q → a ≤ b → ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 η (Icc a b) → MapsTo η (Icc a b) T.carrier → η a ∈ T.tube.carrier → η b ∈ T.tube.carrier → g.pathELength η a b < ENNReal.ofReal (A * Q ^ (-1 / 2 : ℝ)) → D.scalarCurvature (η a) = 8 * Q → 32 * (max C 2) ^ 4 * Q < D.scalarCurvature (η b) → ∃ i ∈ T.tube.chain.shape.active, ∃ j ∈ T.tube.chain.shape.active, ∃ γ : ℝ → M, γ 0 = (T.tube.chain.neck i).center ∧ γ 1 = (T.tube.chain.neck j).center ∧ D.scalarCurvature (γ 0) ≤ 8 * max C 2 * Q ∧ 32 * (max C 2) ^ 3 * Q < D.scalarCurvature (γ 1) ∧ D.scalarCurvature (η b) ≤ max C 2 * D.scalarCurvature (γ 1) ∧ ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 γ (Icc (0 : ℝ) 1) ∧ MapsTo γ (Icc (0 : ℝ) 1) T.carrier ∧ g.pathELength γ 0 1 = intrinsicEDist g T.carrier (γ 0) (γ 1) ∧ g.pathELength γ 0 1 ≠ ⊤ ∧ g.pathELength γ 0 1 < ENNReal.ofReal ((A + 2 * endpointConnectorBudget T.tube.epsilon C) * Q ^ (-1 / 2 : ℝ)) := by obtain ⟨epsilonR, hRpos, hRthreshold, hrecentering⟩ := exists_neck_endpoint_recentering_accuracy.{u} obtain ⟨epsilonS, hSpos, _, hseparation⟩ := exists_endpoint_scalar_separation_accuracy.{u} let epsilon₀ := min epsilonR (min epsilonS neckShorteningEpsilon) refine ⟨epsilon₀, lt_min hRpos (lt_min hSpos neckShorteningEpsilon_pos), (min_le_left _ _).trans hRthreshold, ?_⟩ intro M _ _ _ _ _ _ _ g D T hsmall C Q A η a b hcap hQ hab hη hηU hηa hηb hηL hz hy have hsmallR : T.tube.epsilon ≤ epsilonR := hsmall.trans (min_le_left _ _) have hsmallS : T.tube.epsilon ≤ epsilonS := hsmall.trans ((min_le_right _ _).trans (min_le_left _ _)) have hshort : T.tube.epsilon ≤ neckShorteningEpsilon := hsmall.trans ((min_le_right _ _).trans (min_le_right _ _)) rw [T.tube.carrier_eq_chain_union] at hηa hηb obtain ⟨i, hpi⟩ := mem_iUnion.mp hηa obtain ⟨j, hpj⟩ := mem_iUnion.mp hηb have hNi : (T.tube.chain.neck i.val).carrier ⊆ T.carrier := by apply Subset.trans _ T.tube_subset rw [T.tube.carrier_eq_chain_union] exact subset_iUnion_of_subset i Subset.rfl have hNj : (T.tube.chain.neck j.val).carrier ⊆ T.carrier := by apply Subset.trans _ T.tube_subset rw [T.tube.carrier_eq_chain_union] exact subset_iUnion_of_subset j Subset.rfl have hiepsilon := T.tube.chain.epsilon_eq i.val i.property have hjepsilon := T.tube.chain.epsilon_eq j.val j.property have hsep := hseparation M g D C Q (η a) (η b) hQ hz hy have hdisj := hsep.1 (T.tube.chain.neck i.val) (T.tube.chain.neck j.val) (hiepsilon.trans_le hsmallS) (hjepsilon.trans_le hsmallS) hpi hpj have hcapdisj := hsep.2.2.2.2 T.cap (T.tube.chain.neck i.val) (T.tube.chain.neck j.val) (hcap.trans (le_max_left C 2)) (hiepsilon.trans_le hsmallS) (hjepsilon.trans_le hsmallS) hpi hpj obtain ⟨_, _, _, _, hlow, _, _, α, hα0, hα1, hα, hαN, hαL⟩ := hrecentering T.tube.epsilon C T.tube.epsilon_pos hsmallR M g D (T.tube.chain.neck i.val) Q (η a) hQ hiepsilon hpi (Or.inl hz) obtain ⟨_, _, hsourceHigh, _, _, hhigh, hforward, _⟩ := hrecentering T.tube.epsilon C T.tube.epsilon_pos hsmallR M g D (T.tube.chain.neck j.val) Q (η b) hQ hjepsilon hpj (Or.inr hy) obtain ⟨β, hβ0, hβ1, hβ, hβN, hβL⟩ := hforward obtain ⟨σ, hσ0, hσ1, hσ, hσU, hσL⟩ := exists_recentered_competitor_of_connectors g T.tube.epsilon_pos hQ hab hη hηU hηL hα0 hα1 hα (fun t ht => hNi (hαN ht)) hαL hβ0 hβ1 hβ (fun t ht => hNj (hβN ht)) hβL obtain ⟨γ, hγ0, hγ1, hγ, hγU, hγmin, hγfinite, hγL⟩ := T.exists_chain_neck_minimizer i.val j.val i.property j.property hdisj hcapdisj hshort zero_le_one hσ hσU hσ0 hσ1 hσL refine ⟨i.val, i.property, j.val, j.property, γ, hγ0.trans hσ0, hγ1.trans hσ1, ?_, ?_, ?_, hγ, hγU, ?_, hγfinite, hγL⟩ · simpa only [hγ0, hσ0] using hlow hz · simpa only [hγ1, hσ1] using hhigh hy · simpa only [hγ1, hσ1] using hsourceHigh · simpa only [hγ0, hγ1] using hγmin end PoincareMT.M28