The areas / V24. Category theory
Mathlib.CategoryTheory.Category.Pointed
40 declarations. Mathlib docs · Source
theorem Pointed.Hom.mk.congr_simp E1 #
∀ {X Y : Pointed} (toFun toFun_1 : X.X → Y.X) (e_toFun : toFun = toFun_1) (map_point : toFun X.point = Y.point),
{ toFun := toFun, map_point := map_point } = { toFun := toFun_1, map_point := ⋯ }
theorem Pointed.mk.injEq E0 #
∀ (X : Type u) (point : X) (X_1 : Type u) (point_1 : X_1),
({ X := X, point := point } = { X := X_1, point := point_1 }) = (X = X_1 ∧ point ≍ point_1)
theorem Pointed.mk.inj E1 #
∀ {X : Type u} {point : X} {X_1 : Type u} {point_1 : X_1},
{ X := X, point := point } = { X := X_1, point := point_1 } → X = X_1 ∧ point ≍ point_1
def Pointed.ctorIdx E1 #
Pointed → ℕ
def Pointed.Hom.ctorIdx E1 #
{X Y : Pointed} → X.Hom Y → ℕ
theorem Pointed.Hom.mk.inj E1 #
∀ {X Y : Pointed} {toFun : X.X → Y.X} {map_point : toFun X.point = Y.point} {toFun_1 : X.X → Y.X}
{map_point_1 : toFun_1 X.point = Y.point},
{ toFun := toFun, map_point := map_point } = { toFun := toFun_1, map_point := map_point_1 } → toFun = toFun_1
theorem Pointed.Hom.mk.injEq E0 #
∀ {X Y : Pointed} (toFun : X.X → Y.X) (map_point : toFun X.point = Y.point) (toFun_1 : X.X → Y.X)
(map_point_1 : toFun_1 X.point = Y.point),
({ toFun := toFun, map_point := map_point } = { toFun := toFun_1, map_point := map_point_1 }) = (toFun = toFun_1)
structure Pointed E1 #
Type (u + 1)
The category of pointed types.
ctor Pointed.mk E0 #
(X : Type u) → X → Pointed
abbrev Pointed.X E1 #
Pointed → Type u
the underlying type
abbrev Pointed.point E1 #
(self : Pointed) → self.X
the distinguished element
instance Pointed.instCoeSortType E0 #
CoeSort Pointed (Type u_1)
abbrev Pointed.of E1 #
{X : Type u_1} → X → Pointed
Turns a point into a pointed type.
theorem Pointed.coe_of E0 #
∀ {X : Type u_1} (point : X), (Pointed.of point).X = X
def Prod.Pointed E1 #
{X : Type u_1} → X → Pointed
Alias of Pointed.of.
Turns a point into a pointed type.
instance Pointed.instInhabited E0 #
Inhabited Pointed
structure Pointed.Hom E1 #
Pointed → Pointed → Type u
Morphisms in Pointed.
theorem Pointed.Hom.ext E1 #
∀ {X Y : Pointed} {x y : X.Hom Y}, x.toFun = y.toFun → x = y
theorem Pointed.Hom.ext_iff E0 #
∀ {X Y : Pointed} {x y : X.Hom Y}, x = y ↔ x.toFun = y.toFun
ctor Pointed.Hom.mk E0 #
{X Y : Pointed} → (toFun : X.X → Y.X) → toFun X.point = Y.point → X.Hom Y
abbrev Pointed.Hom.toFun E1 #
{X Y : Pointed} → X.Hom Y → X.X → Y.X
the underlying map
theorem Pointed.Hom.map_point E0 #
∀ {X Y : Pointed} (self : X.Hom Y), self.toFun X.point = Y.point
compatibility with the distinguished points
def Pointed.Hom.id E1 #
(X : Pointed) → X.Hom X
The identity morphism of X : Pointed.
theorem Pointed.Hom.id_toFun E0 #
∀ (X : Pointed) (a : X.X), (Pointed.Hom.id X).toFun a = id a
instance Pointed.Hom.instInhabited E0 #
(X : Pointed) → Inhabited (X.Hom X)
def Pointed.Hom.comp E1 #
{X Y Z : Pointed} → X.Hom Y → Y.Hom Z → X.Hom Z
Composition of morphisms of Pointed.
theorem Pointed.Hom.comp_toFun E0 #
∀ {X Y Z : Pointed} (f : X.Hom Y) (g : Y.Hom Z) (a : X.X), (f.comp g).toFun a = (g.toFun ∘ f.toFun) a
instance Pointed.largeCategory E0 #
CategoryTheory.LargeCategory Pointed
theorem Pointed.Hom.id_toFun' E0 #
∀ (X : Pointed), (CategoryTheory.CategoryStruct.id X).toFun = id
theorem Pointed.Hom.comp_toFun' E0 #
∀ {X Y Z : Pointed} (f : X ⟶ Y) (g : Y ⟶ Z), (CategoryTheory.CategoryStruct.comp f g).toFun = g.toFun ∘ f.toFun
instance Pointed.instFunLikeSubtypeForallXEqPoint E0 #
(X : Pointed) → (Y : Pointed) → FunLike { f // f X.point = Y.point } X.X Y.X
instance Pointed.hasForget E0 #
CategoryTheory.ConcreteCategory Pointed fun X Y ↦ { f // f X.point = Y.point }
def Pointed.Iso.mk E1 #
{α β : Pointed} → (e : α.X ≃ β.X) → e α.point = β.point → (α ≅ β)
Constructs an isomorphism between pointed types from an equivalence that preserves the point between them.
theorem Pointed.Iso.mk_inv_toFun E0 #
∀ {α β : Pointed} (e : α.X ≃ β.X) (he : e α.point = β.point) (a : β.X), (Pointed.Iso.mk e he).inv.toFun a = e.symm a
theorem Pointed.Iso.mk_hom_toFun E0 #
∀ {α β : Pointed} (e : α.X ≃ β.X) (he : e α.point = β.point) (a : α.X), (Pointed.Iso.mk e he).hom.toFun a = e a
def typeToPointed E1 #
CategoryTheory.Functor (Type u) Pointed
Option as a functor from types to pointed types. This is the free functor.
theorem typeToPointed_map_toFun E0 #
∀ {X Y : Type u} (f : X ⟶ Y) (a : Option X),
(typeToPointed.map f).toFun a = Option.map (⇑(CategoryTheory.ConcreteCategory.hom f)) a
theorem typeToPointed_obj_X E0 #
∀ (X : Type u), (typeToPointed.obj X).X = Option X
theorem typeToPointed_obj_point E0 #
∀ (X : Type u), (typeToPointed.obj X).point = none
def typeToPointedForgetAdjunction E1 #
typeToPointed ⊣ CategoryTheory.forget Pointed
typeToPointed is the free functor.