lemmaIsCAT0.exists_lipschitz_contraction {X : Type u} [MetricSpaceX]
(hX : IsCAT0X) (o : X) (R : ℝ≥0) (hR : ∀ x, dist o x ≤R) :
∃f : ClosedCylinderX→X, LipschitzWith (1+R) f ∧
(∀ x, f (⟨0,by constructor <;> norm_num⟩,x) = o) ∧
(∀ x, f (⟨1,by constructor <;> norm_num⟩,x) = x) :=by
proof · 27
lines
obtain ⟨s,hs,hseg,hcomp⟩ := hX
have hsame (x y : X) (t : Icc (0:ℝ) 1) : dist (s o x t) (s o y t) ≤ t.val*dist x y :=by
apply (sq_le_sq₀ dist_nonneg (mul_nonneg t.2.1 dist_nonneg)).mp
calc dist (s o x t) (s o y t)^2≤
(t.val*dist o x-t.val*dist o y)^2 +
t.val*t.val*(dist x y^2-(dist o x-dist o y)^2) := hcomp o x y t t t.2 t.2
_ = (t.val*dist x y)^2:=by ring
refine ⟨fun p => s o p.2 p.1,?_,fun x => (hs o x).1,fun x => (hs o x).2⟩
apply LipschitzWith.of_dist_le_mul
intro p q
havehdspace : dist p.2 q.2≤ dist p q := le_max_right _ _
havehdtime : |p.1.val-q.1.val| ≤ dist p q :=by
change dist (p.1.val) (q.1.val) ≤ max (dist p.1 q.1) (dist p.2 q.2)
exact le_max_left _ _
calc
dist (s o p.2 p.1) (s o q.2 q.1) ≤
dist (s o p.2 p.1) (s o q.2 p.1) + dist (s o q.2 p.1) (s o q.2 q.1) :=
dist_triangle _ _ _
_ ≤ p.1.val*dist p.2 q.2+|p.1.val-q.1.val| *dist o q.2:=by
rw [hseg o q.2 p.1 q.1 p.1.2 q.1.2]
exact add_le_add (hsame p.2 q.2 p.1) le_rfl
_ ≤ dist p.2 q.2+|p.1.val-q.1.val| *(R:ℝ) :=by
exact add_le_add (mul_le_of_le_one_left dist_nonneg p.1.2.2)
(mul_le_mul_of_nonneg_left (hR _) (abs_nonneg _))
_ ≤ dist p q+dist p q*(R:ℝ) :=
add_le_add hdspace (mul_le_mul_of_nonneg_right hdtime R.coe_nonneg)
_ = (↑(1+R):ℝ)*dist p q :=by push_cast; ring