The category of pointed types #
This defines Pointed
, the category of pointed types.
TODO #
- Monoidal structure
- Upgrade
typeToPointed
to an equivalence
Equations
- Pointed.instCoeSortPointedType = { coe := Pointed.X }
Turns a point into a pointed type.
Equations
- Pointed.of point = { X := X, point := point }
Instances For
Equations
- Pointed.instInhabitedPointed = { default := Pointed.of ((), ()) }
theorem
Pointed.Hom.ext
{X : Pointed}
{Y : Pointed}
(x : Pointed.Hom X Y)
(y : Pointed.Hom X Y)
(toFun : x.toFun = y.toFun)
:
x = y
theorem
Pointed.Hom.ext_iff
{X : Pointed}
{Y : Pointed}
(x : Pointed.Hom X Y)
(y : Pointed.Hom X Y)
:
@[simp]
Equations
- Pointed.Hom.instInhabitedHom X = { default := Pointed.Hom.id X }
@[simp]
theorem
Pointed.Hom.comp_toFun
{X : Pointed}
{Y : Pointed}
{Z : Pointed}
(f : Pointed.Hom X Y)
(g : Pointed.Hom Y Z)
:
∀ (a : X.X), (Pointed.Hom.comp f g).toFun a = (g.toFun ∘ f.toFun) a
def
Pointed.Hom.comp
{X : Pointed}
{Y : Pointed}
{Z : Pointed}
(f : Pointed.Hom X Y)
(g : Pointed.Hom Y Z)
:
Pointed.Hom X Z
Composition of morphisms of Pointed
.
Equations
Instances For
Equations
- Pointed.largeCategory = CategoryTheory.Category.mk
Equations
@[simp]
theorem
Pointed.Iso.mk_hom_toFun
{α : Pointed}
{β : Pointed}
(e : α.X ≃ β.X)
(he : e α.point = β.point)
(a : α.X)
:
(Pointed.Iso.mk e he).hom.toFun a = e a
@[simp]
theorem
Pointed.Iso.mk_inv_toFun
{α : Pointed}
{β : Pointed}
(e : α.X ≃ β.X)
(he : e α.point = β.point)
(a : β.X)
:
(Pointed.Iso.mk e he).inv.toFun a = e.symm a
Constructs an isomorphism between pointed types from an equivalence that preserves the point between them.
Equations
- Pointed.Iso.mk e he = CategoryTheory.Iso.mk { toFun := ⇑e, map_point := he } { toFun := ⇑e.symm, map_point := (_ : e.symm β.point = α.point) }
Instances For
@[simp]
theorem
typeToPointed_map_toFun :
∀ {X Y : Type u} (f : X ⟶ Y) (a : Option X), (typeToPointed.toPrefunctor.map f).toFun a = Option.map f a
@[simp]
@[simp]
Option
as a functor from types to pointed types. This is the free functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
typeToPointed
is the free functor.
Equations
- One or more equations did not get rendered due to their size.