import PoincareLib.Topology.Manifold.NeckCap.Chain.Extension.InteriorThickness import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Curvature.Control import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Overlap.ScaleComparison import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Separation.Diameter /-! # A coordinate sphere fits inside a neck centered on it Scalar normalization compares the two neck scales. The diameter of a coordinate sphere is much smaller than the center clearance of a small neck, even when the center lies near an endpoint of the first neck. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.EpsilonNeck /-- A neck centered anywhere in another sufficiently small neck contains the entire coordinate sphere of the latter through that center. -/ theorem exists_slice_through_center_subset_threshold : ∃ ε₀ : ℝ, 0 < ε₀ ∧ ε₀ ≤ 1 / 200 ∧ ∀ {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}, ∀ N P : EpsilonNeck g, N.epsilon ≤ ε₀ → P.epsilon ≤ 1 / 200 → P.center ∈ N.carrier → ∀ q : UnitTwoSphere, N.coordinate_map (q, (N.coordinate_inverse P.center).2) ∈ P.carrier := by obtain ⟨ε₀, hε₀, hsmall, hcurv⟩ := exists_ambient_curvature_control.{u} (α := 1 / 2) (by norm_num) refine ⟨ε₀, hε₀, hsmall, ?_⟩ intro M _ _ _ _ _ _ _ g N P hN hP hcenter q let z := N.coordinate_inverse P.center have hz : z.2 ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := (N.coordinate_inverse_mem P.center hcenter).2 have hcoord : N.coordinate_map (z.1, z.2) = P.center := by rw [Prod.eta, N.coordinate_map_coordinate_inverse hcenter] have hscalar : |N.scale ^ 2 * N.connection.scalarCurvature P.center - 1| < 1 / 2 := by simpa only [hcoord] using (hcurv N N.connection hN z.1 hz).1 have hnormal := P.scale_sq_mul_scalar_center_of_connection N.connection have hscale : N.scale ≤ 2 * P.scale := by have hu := mul_le_mul_of_nonneg_left (abs_lt.mp hscalar).2.le (sq_nonneg P.scale) have hid : P.scale ^ 2 * (N.scale ^ 2 * N.connection.scalarCurvature P.center - 1) = N.scale ^ 2 - P.scale ^ 2 := by calc _ = N.scale ^ 2 * (P.scale ^ 2 * N.connection.scalarCurvature P.center) - P.scale ^ 2 := by ring _ = _ := by rw [hnormal, mul_one] rw [hid] at hu nlinarith [N.scale_pos, P.scale_pos] have hsqrt : Real.sqrt (1 + N.epsilon) * Real.sqrt 2 ≤ 2 := by have hsq : (Real.sqrt (1 + N.epsilon) * Real.sqrt 2) ^ 2 = (1 + N.epsilon) * 2 := by rw [mul_pow, Real.sq_sqrt (by linarith [N.epsilon_pos]), Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] nlinarith [N.epsilon_lt_half] have hdiam : g.edist P.center (N.coordinate_map (q, z.2)) ≤ ENNReal.ofReal ((4 * Real.pi) * P.scale) := by have hh := N.edist_coordinate_map_slice_le z.1 q hz rw [hcoord] at hh apply hh.trans (ENNReal.ofReal_le_ofReal ?_) calc N.scale * Real.sqrt (1 + N.epsilon) * Real.sqrt 2 * Real.pi ≤ (2 * Real.pi) * N.scale := by nlinarith [mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hsqrt N.scale_pos.le) Real.pi_pos.le] _ ≤ (4 * Real.pi) * P.scale := by nlinarith [mul_le_mul_of_nonneg_left hscale (by positivity : 0 ≤ 2 * Real.pi)] by_contra hout have hpaxis := (P.mem_central_sphere_iff P.center).mp P.center_on_central_sphere have hpinner : P.center ∈ P.region (-P.epsilon⁻¹ / 2) (P.epsilon⁻¹ / 2) := by refine ⟨hpaxis.1, ?_, ?_⟩ <;> rw [hpaxis.2] · simpa only [neg_div] using neg_neg_of_pos (half_pos (inv_pos.mpr P.epsilon_pos)) · exact half_pos (inv_pos.mpr P.epsilon_pos) have hlower := P.quarter_width_le_edist_of_mem_middle_half hpinner hout have hscaleP := P.scale_pos have hreal : P.scale * P.epsilon⁻¹ / 4 ≤ (4 * Real.pi) * P.scale := (ENNReal.ofReal_le_ofReal_iff (by positivity)).mp (hlower.trans hdiam) have hinv : (200 : ℝ) ≤ P.epsilon⁻¹ := by have hi := one_div_le_one_div_of_le P.epsilon_pos hP norm_num at hi simpa only [one_div] using hi have hlarge := mul_le_mul_of_nonneg_left hinv P.scale_pos.le have hpi := mul_lt_mul_of_pos_right Real.pi_lt_four P.scale_pos nlinarith [P.scale_pos] end PoincareMT.EpsilonNeck