The category of pointed types #
This defines Pointed, the category of pointed types.
TODO #
- Monoidal structure
- Upgrade
typeToPointedto an equivalence
@[implicit_reducible]
@[reducible, inline]
Turns a point into a pointed type.
Instances For
@[simp]
@[implicit_reducible]
Composition of morphisms of Pointed.
Instances For
@[implicit_reducible]
@[simp]
@[simp]
theorem
Pointed.Hom.comp_toFun'
{X Y Z : Pointed}
(f : X ⟶ Y)
(g : Y ⟶ Z)
:
(CategoryTheory.CategoryStruct.comp f g).toFun = g.toFun ∘ f.toFun
@[implicit_reducible]
Constructs an isomorphism between pointed types from an equivalence that preserves the point between them.
Instances For
Option as a functor from types to pointed types. This is the free functor.
Instances For
@[simp]
@[simp]
theorem
typeToPointed_map_toFun
{X✝ Y✝ : Type u}
(f : X✝ ⟶ Y✝)
(a✝ : Option X✝)
:
(typeToPointed.map f).toFun a✝ = Option.map f a✝
@[simp]
typeToPointed is the free functor.