import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.CapGeometry.CappedTwoNeckConfinement import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Paths.ConfinementMinimizers /-! # Actual full-carrier minimizers between two selected neck centers Claim 10.3, Morgan--Tian pp. 248-249. In the singly capped branch the actual compact cap-side construction confines competitors in the full capped carrier. In particular, competitors may pass through the cap. The endpoint crossings and local M07 producer give the regional minimum. See derivation 28 and the source-producer obligation map. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff Topology ENNReal Bundle universe u namespace PoincareMT.CappedTubeCertificate open M28 variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] {g : RiemannianMetric 3 M} /-- The actual capped region supplies K and crossings for a finite path between two selected centers. The infimum is over the full capped carrier. -/ theorem exists_chain_neck_minimizer (T : CappedTubeCertificate g) (i j : ℤ) (hi : i ∈ T.tube.chain.shape.active) (hj : j ∈ T.tube.chain.shape.active) (hdisj : Disjoint (T.tube.chain.neck i).carrier (T.tube.chain.neck j).carrier) (hcap : Disjoint T.cap.carrier (T.tube.chain.neck i).carrier ∨ Disjoint T.cap.carrier (T.tube.chain.neck j).carrier) (hsmall : T.tube.epsilon ≤ neckShorteningEpsilon) {η : ℝ → M} {a b L : ℝ} (hab : a ≤ b) (hη : ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 η (Icc a b)) (hηU : MapsTo η (Icc a b) T.carrier) (hη0 : η a = (T.tube.chain.neck i).center) (hη1 : η b = (T.tube.chain.neck j).center) (hηL : g.pathELength η a b < ENNReal.ofReal L) : ∃ γ : ℝ → M, γ 0 = η a ∧ γ 1 = η b ∧ ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 γ (Icc (0 : ℝ) 1) ∧ MapsTo γ (Icc (0 : ℝ) 1) T.carrier ∧ g.pathELength γ 0 1 = intrinsicEDist g T.carrier (η a) (η b) ∧ g.pathELength γ 0 1 ≠ ⊤ ∧ g.pathELength γ 0 1 < ENNReal.ofReal L := by let N : Bool → EpsilonNeck g := fun k => T.tube.chain.neck (if k then j else i) have hactive (k : Bool) : (if k then j else i) ∈ T.tube.chain.shape.active := by cases k · exact hi · exact hj have hNsmall (k : Bool) : (N k).epsilon ≤ neckShorteningEpsilon := (T.tube.chain.epsilon_eq _ (hactive k)).trans_le hsmall have hNU (k : Bool) : (N k).carrier ⊆ T.carrier := by apply Subset.trans _ T.tube_subset rw [T.tube.carrier_eq_chain_union] exact subset_iUnion_of_subset ⟨_, hactive k⟩ Subset.rfl obtain ⟨K, hK, hKU, hcross⟩ := T.exists_chain_neck_confinement i j hi hj hdisj hcap have hopen : IsOpen T.carrier := by rw [T.carrier_eq_union] exact T.cap.carrier_open.union T.tube.carrier_open let U : TopologicalSpace.Opens M := ⟨T.carrier, hopen⟩ obtain ⟨α, hα0, hα1, hα, hαU, hαlength⟩ := exists_unit_interval_path g hab hη hηU have hαL : g.pathELength α 0 1 < ENNReal.ofReal L := hαlength ▸ hηL have hcross' : ∀ γ : ℝ → M, γ 0 = η a → γ 1 = η b → ContinuousOn γ (Icc (0 : ℝ) 1) → MapsTo γ (Icc (0 : ℝ) 1) (U : Set M) → ∀ t ∈ Icc (0 : ℝ) 1, γ t ∉ K → ∃ (k : Bool) (c d : ℝ), 0 ≤ c ∧ c ≤ t ∧ t ≤ d ∧ d ≤ 1 ∧ γ c ∈ (N k).central_sphere ∧ γ d ∈ (N k).central_sphere ∧ γ t ∉ (N k).region (-((N k).epsilon⁻¹ / 2)) ((N k).epsilon⁻¹ / 2) := by intro γ hγ0 hγ1 hγ hγU t ht hnot exact hcross γ (hγ0.trans hη0) (hγ1.trans hη1) hγ hγU t ht hnot obtain ⟨_, _, _, hmin⟩ := exists_confined_sequence_and_minimizer_of_endpoint_crossings g U hK hKU N hNsmall (fun k => (N k).central_sphere_subset.trans (hNU k)) hcross' hα0 hα1 hα hαU hαL exact hmin end PoincareMT.CappedTubeCertificate