import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeInitialPair import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.FirstNeckGraphFrontier /-! # The actual initial source graph's negative component The retained list identifies zero as the least index of the tube's own chain. Its first-end barrier therefore applies to the literal zero node and any of the constructed narrow source graphs. Source: Morgan--Tian Proposition 10.7, pp. 253-254; M28 derivations 91 and 109. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Topology universe u namespace PoincareMT.M28.SourceTubeData variable {epsilon C A D₀ D : ℝ} {E : SameTimeCounterexample.{u} epsilon C A D₀ D} {S : CounterexampleNeckSegment E} /-- The nonempty retained list has least chain index zero, even if there is no successor. The chain is the tube certificate's actual chain. Source: Proposition 10.7; M28 derivation 91. -/ theorem isLeast_tube_chain_zero (T : SourceTubeData S) : IsLeast T.tube.chain.shape.active 0 := by have hlen : 0 < T.list.nodes.length := List.length_pos_iff.mpr T.list.nonempty rw [T.tube_chain_readout.1] refine ⟨?_, fun _ hi => hi.1⟩ change 0 ≤ (0 : ℤ) ∧ (0 : ℤ) ≤ (T.list.nodes.length : ℤ) - 1 constructor <;> omega /-- Below a narrow graph in the actual zero node lies a connected full component of the source tube minus the graph. Its entire relative frontier is the graph, and the whole component remains in that first node. Source: Proposition 10.7, pp. 253-254; M28 derivations 91 and 109. -/ theorem initial_graph_negative_region (T : SourceTubeData S) (f : UnitTwoSphere → ℝ) (hf : Continuous f) (hbound : ∀ q, |f q| < epsilon⁻¹ / 32) : IsConnected ((T.list.node 0).2.belowGraph_m28 f) ∧ frontier ((T.list.node 0).2.belowGraph_m28 f) ∩ T.tube.carrier = range (fun q => (T.list.node 0).2.coordinate_map (q, f q)) ∧ ∀ x ∈ (T.list.node 0).2.belowGraph_m28 f, connectedComponentIn (T.tube.carrier \ range (fun q => (T.list.node 0).2.coordinate_map (q, f q))) x = (T.list.node 0).2.belowGraph_m28 f := by have hleast := T.isLeast_tube_chain_zero have hneck : T.tube.chain.neck 0 = (T.list.node 0).2 := congrFun T.tube_chain_readout.2 0 have heps : (T.list.node 0).2.epsilon = epsilon := by rw [← hneck, T.tube.chain.epsilon_eq 0 hleast.1, T.epsilon_eq] have hepspos : 0 < epsilon := heps ▸ (T.list.node 0).2.epsilon_pos have hA := inv_pos.mpr hepspos have hdom (q : UnitTwoSphere) : f q ∈ Ioo (-(T.list.node 0).2.epsilon⁻¹) (T.list.node 0).2.epsilon⁻¹ := by rw [heps] have h := abs_lt.mp (hbound q) constructor <;> linarith [h.1, h.2] have hchainDom (q : UnitTwoSphere) : f q ∈ Ioo (-(T.tube.chain.neck 0).epsilon⁻¹) (T.tube.chain.neck 0).epsilon⁻¹ := by rw [hneck] exact hdom q have hc : epsilon⁻¹ / 16 < T.tube.epsilon⁻¹ := by rw [T.epsilon_eq]; linarith have hupper (q : UnitTwoSphere) : f q ≤ epsilon⁻¹ / 16 := by linarith [(abs_lt.mp (hbound q)).2] refine ⟨(T.list.node 0).2.isConnected_belowGraph_m28 f hf hdom, ?_, ?_⟩ · simpa only [hneck] using T.tube.frontier_first_belowGraph hleast f hf hchainDom hc hupper · intro x hx have hxchain : x ∈ (T.tube.chain.neck 0).belowGraph_m28 f := by rwa [hneck] simpa only [hneck] using T.tube.connectedComponentIn_first_belowGraph hleast f hf hchainDom hc hupper hxchain end PoincareMT.M28.SourceTubeData