The areas / V24. Category theory
Mathlib.CategoryTheory.Category.TwoP
50 declarations. Mathlib docs · Source
The category of two-pointed types
This defines TwoP, the category of two-pointed types.
References
- [nLab, coalgebra of the real interval] (https://ncatlab.org/nlab/show/coalgebra+of+the+real+interval)
def TwoP.ctorIdx E1 #
TwoP → ℕ
theorem TwoP.mk.inj E1 #
∀ {X : Type u} {toTwoPointing : TwoPointing X} {X_1 : Type u} {toTwoPointing_1 : TwoPointing X_1},
{ X := X, toTwoPointing := toTwoPointing } = { X := X_1, toTwoPointing := toTwoPointing_1 } →
X = X_1 ∧ toTwoPointing ≍ toTwoPointing_1
theorem TwoP.mk.injEq E0 #
∀ (X : Type u) (toTwoPointing : TwoPointing X) (X_1 : Type u) (toTwoPointing_1 : TwoPointing X_1),
({ X := X, toTwoPointing := toTwoPointing } = { X := X_1, toTwoPointing := toTwoPointing_1 }) =
(X = X_1 ∧ toTwoPointing ≍ toTwoPointing_1)
structure TwoP E1 #
Type (u + 1)
The category of two-pointed types.
ctor TwoP.mk E0 #
(X : Type u) → TwoPointing X → TwoP
abbrev TwoP.X E1 #
TwoP → Type u
The underlying type of a two-pointed type.
abbrev TwoP.toTwoPointing E1 #
(self : TwoP) → TwoPointing self.X
The two points of a bipointed type, bundled together as a pair of distinct elements.
instance TwoP.instCoeSortType E0 #
CoeSort TwoP (Type u_1)
abbrev TwoP.of E1 #
{X : Type u_1} → TwoPointing X → TwoP
Turns a two-pointing into a two-pointed type.
theorem TwoP.coe_of E0 #
∀ {X : Type u_1} (toTwoPointing : TwoPointing X), (TwoP.of toTwoPointing).X = X
def TwoPointing.TwoP E1 #
{X : Type u_1} → TwoPointing X → TwoP
Alias of TwoP.of.
Turns a two-pointing into a two-pointed type.
instance TwoP.instInhabited E0 #
Inhabited TwoP
def TwoP.toBipointed E1 #
TwoP → Bipointed
Turns a two-pointed type into a bipointed type, by forgetting that the pointed elements are distinct.
theorem TwoP.coe_toBipointed E0 #
∀ (X : TwoP), X.toBipointed.X = X.X
instance TwoP.largeCategory E0 #
CategoryTheory.LargeCategory TwoP
instance TwoP.concreteCategory E0 #
CategoryTheory.ConcreteCategory TwoP fun X Y ↦ X.toBipointed.HomSubtype Y.toBipointed
instance TwoP.hasForgetToBipointed E0 #
CategoryTheory.HasForget₂ TwoP Bipointed
theorem TwoP.hom_ext_iff E0 #
∀ {X Y : TwoP} {f g : X ⟶ Y}, f = g ↔ f.hom = g.hom
theorem TwoP.hom_ext E1 #
∀ {X Y : TwoP} {f g : X ⟶ Y}, f.hom = g.hom → f = g
def TwoP.swap E1 #
CategoryTheory.Functor TwoP TwoP
Swaps the pointed elements of a two-pointed type. TwoPointing.swap as a functor.
theorem TwoP.swap_obj_toTwoPointing E0 #
∀ (X : TwoP), (TwoP.swap.obj X).toTwoPointing = X.toTwoPointing.swap
theorem TwoP.swap_map E0 #
∀ {X Y : TwoP} (f : X ⟶ Y),
TwoP.swap.map f =
CategoryTheory.InducedCategory.homMk
{ toFun := ⇑(CategoryTheory.ConcreteCategory.hom f.hom), map_fst := ⋯, map_snd := ⋯ }
theorem TwoP.swap_obj_X E0 #
∀ (X : TwoP), (TwoP.swap.obj X).X = X.X
def TwoP.swapEquiv E1 #
TwoP ≌ TwoP
The equivalence between TwoP and itself induced by Prod.swap both ways.
theorem TwoP.swapEquiv_functor_map_hom_toFun E0 #
∀ {X Y : TwoP} (f : X ⟶ Y) (a : X.toBipointed.X),
(TwoP.swapEquiv.functor.map f).hom.toFun a = (CategoryTheory.ConcreteCategory.hom f.hom) a
theorem TwoP.swapEquiv_inverse_obj_X E0 #
∀ (X : TwoP), (TwoP.swapEquiv.inverse.obj X).X = X.X
theorem TwoP.swapEquiv_unitIso_hom_app_hom_toFun E0 #
∀ (X : TwoP) (a : ((CategoryTheory.Functor.id TwoP).obj X).toBipointed.X),
(TwoP.swapEquiv.unitIso.hom.app X).hom.toFun a = a
theorem TwoP.swapEquiv_counitIso_inv_app_hom_toFun E0 #
∀ (X : TwoP) (a : ((TwoP.swap.comp TwoP.swap).obj X).toBipointed.X),
(TwoP.swapEquiv.counitIso.inv.app X).hom.toFun a = a
theorem TwoP.swapEquiv_functor_obj_X E0 #
∀ (X : TwoP), (TwoP.swapEquiv.functor.obj X).X = X.X
theorem TwoP.swapEquiv_functor_obj_toTwoPointing_toProd E0 #
∀ (X : TwoP), (TwoP.swapEquiv.functor.obj X).toTwoPointing.toProd = (X.toTwoPointing.toProd.2, X.toTwoPointing.toProd.1)
theorem TwoP.swapEquiv_inverse_obj_toTwoPointing_toProd E0 #
∀ (X : TwoP), (TwoP.swapEquiv.inverse.obj X).toTwoPointing.toProd = (X.toTwoPointing.toProd.2, X.toTwoPointing.toProd.1)
theorem TwoP.swapEquiv_inverse_map_hom_toFun E0 #
∀ {X Y : TwoP} (f : X ⟶ Y) (a : X.toBipointed.X),
(TwoP.swapEquiv.inverse.map f).hom.toFun a = (CategoryTheory.ConcreteCategory.hom f.hom) a
theorem TwoP.swapEquiv_counitIso_hom_app_hom_toFun E0 #
∀ (X : TwoP) (a : ((TwoP.swap.comp TwoP.swap).obj X).toBipointed.X),
(TwoP.swapEquiv.counitIso.hom.app X).hom.toFun a = a
theorem TwoP.swapEquiv_unitIso_inv_app_hom_toFun E0 #
∀ (X : TwoP) (a : ((CategoryTheory.Functor.id TwoP).obj X).toBipointed.X),
(TwoP.swapEquiv.unitIso.inv.app X).hom.toFun a = a
theorem TwoP.swapEquiv_symm E0 #
TwoP.swapEquiv.symm = TwoP.swapEquiv
theorem TwoP_swap_comp_forget_to_Bipointed E0 #
TwoP.swap.comp (CategoryTheory.forget₂ TwoP Bipointed) = (CategoryTheory.forget₂ TwoP Bipointed).comp Bipointed.swap
def pointedToTwoPFst E1 #
CategoryTheory.Functor Pointed TwoP
The functor from Pointed to TwoP which adds a second point.
theorem pointedToTwoPFst_obj_toTwoPointing_toProd E0 #
∀ (X : Pointed), (pointedToTwoPFst.obj X).toTwoPointing.toProd = (some X.point, none)
theorem pointedToTwoPFst_obj_X E0 #
∀ (X : Pointed), (pointedToTwoPFst.obj X).X = Option X.X
theorem pointedToTwoPFst_map_hom_toFun E0 #
∀ {X Y : Pointed} (f : X ⟶ Y) (a : Option X.X), (pointedToTwoPFst.map f).hom.toFun a = Option.map f.toFun a
def pointedToTwoPSnd E1 #
CategoryTheory.Functor Pointed TwoP
The functor from Pointed to TwoP which adds a first point.
theorem pointedToTwoPSnd_obj_X E0 #
∀ (X : Pointed), (pointedToTwoPSnd.obj X).X = Option X.X
theorem pointedToTwoPSnd_map_hom_toFun E0 #
∀ {X Y : Pointed} (f : X ⟶ Y) (a : Option X.X), (pointedToTwoPSnd.map f).hom.toFun a = Option.map f.toFun a
theorem pointedToTwoPSnd_obj_toTwoPointing_toProd E0 #
∀ (X : Pointed), (pointedToTwoPSnd.obj X).toTwoPointing.toProd = (none, some X.point)
theorem pointedToTwoPFst_comp_swap E0 #
pointedToTwoPFst.comp TwoP.swap = pointedToTwoPSnd
theorem pointedToTwoPSnd_comp_swap E0 #
pointedToTwoPSnd.comp TwoP.swap = pointedToTwoPFst
theorem pointedToTwoPFst_comp_forget_to_bipointed E0 #
pointedToTwoPFst.comp (CategoryTheory.forget₂ TwoP Bipointed) = pointedToBipointedFst
theorem pointedToTwoPSnd_comp_forget_to_bipointed E0 #
pointedToTwoPSnd.comp (CategoryTheory.forget₂ TwoP Bipointed) = pointedToBipointedSnd
def pointedToTwoPFstForgetCompBipointedToPointedFstAdjunction E1 #
pointedToTwoPFst ⊣ (CategoryTheory.forget₂ TwoP Bipointed).comp bipointedToPointedFst
Adding a second point is left adjoint to forgetting the second point.
def pointedToTwoPSndForgetCompBipointedToPointedSndAdjunction E1 #
pointedToTwoPSnd ⊣ (CategoryTheory.forget₂ TwoP Bipointed).comp bipointedToPointedSnd
Adding a first point is left adjoint to forgetting the first point.