Zulip Chat Archive

Stream: new members

Topic: How to show a function is a retraction


Joseph Cooper (Jul 14 2024 at 11:39):

import Mathlib

open Set
open Function

def complex_nth_hawaiian_circle (n : ): Set  :=
  Metric.sphere (1/((n:)+1)) (1/((n:)+1))

def hawaiian_earring_complex: Set :=
   (n:), complex_nth_hawaiian_circle n

open Classical in
noncomputable
def my_function (n: ):   :=
  Set.piecewise ((complex_nth_hawaiian_circle n)) (id) (fun z  0)


-- want to show f is a retraction
example (n:): CategoryTheory.retraction (my_function n):= by
  sorry

I wish to show that my function, when restricted to the Hawaiian earring, is a retraction from the Hawaiian earring to the nth circle. How would one usually write this, using definitions from Mathlib?


Last updated: May 02 2025 at 03:31 UTC