import Mathlib import OAI.Geometry.Cannon.Boundary.ExpansionGlobalUpper import OAI.Geometry.Cannon.PlaneTopology.Lift import OAI.Geometry.Cannon.PlaneTopology.IntersectionCountEmbedding namespace OAI section section section noncomputable section open Set unitInterval Topology noncomputable section noncomputable section noncomputable section open Set Topology unitInterval noncomputable section open Set Metric Topology unitInterval namespace CannonRelease open Set Metric Topology unitInterval CannonGraph CannonEmbeddedArc CannonEmbeddedArc.Arc variable {G : Type*} [Group G] [TopologicalSpace G] [DiscreteTopology G] variable (D : CayleyData G) {δ : ℕ} (hδ : Thin D.graph δ) theorem boundary_uniform_connected_complement_graph (φ : Boundary D ≃ₜ SphereTwo) : let _ := visualMetricSpace D hδ ∃ A L r₀ : ℝ, 1≤A ∧ 1≤L ∧ 0 Compatible (F e) (F f)) ∧ (∀ j, diam (range (F j))≤A*r) ∧ (∀ x, intersectionCount F (ball x (2*A*r))≤K) ∧ IsPathConnected ((⋃ j, range (F j))∪(T:Set (Boundary D))) ∧ (∀ S : Set (Boundary D), IsPreconnected S → S⊆((⋃ j, range (F j))∪(T:Set (Boundary D)))ᶜ → ∀ x∈S, ∀ y∈S, dist x y H (1,t),by fun_prop⟩ refine ⟨g,hHc 1,?_,?_⟩ · rintro _ ⟨t,rfl⟩ exact hH₁ t · intro t change dist (H (1,t)) (f t)