The areas / V24. Category theory
Mathlib.CategoryTheory.PUnit
12 declarations. Mathlib docs · Source
The category Discrete PUnit
We define star : C ⥤ Discrete PUnit sending everything to PUnit.star,
show that any two functors to Discrete PUnit are naturally isomorphic,
and construct the equivalence (Discrete PUnit ⥤ C) ≌ C.
def CategoryTheory.Functor.star E1 #
(C : Type u) →
[inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor C (CategoryTheory.Discrete PUnit.{w + 1})
The constant functor sending everything to PUnit.star.
theorem CategoryTheory.Functor.star_obj_as E0 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] (x : C),
((CategoryTheory.Functor.star C).obj x).as = PUnit.unit
def CategoryTheory.Functor.punitExt E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(F G : CategoryTheory.Functor C (CategoryTheory.Discrete PUnit.{w + 1})) → F ≅ G
Any two functors to Discrete PUnit are isomorphic.
theorem CategoryTheory.Functor.punit_ext' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
(F G : CategoryTheory.Functor C (CategoryTheory.Discrete PUnit.{w + 1})), F = G
Any two functors to Discrete PUnit are equal.
You probably want to use punitExt instead of this.
abbrev CategoryTheory.Functor.fromPUnit E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → C → CategoryTheory.Functor (CategoryTheory.Discrete PUnit.{w + 1}) C
The functor from Discrete PUnit sending everything to the given object.
def CategoryTheory.Functor.equiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Discrete PUnit.{w + 1}) C ≌ C
Functors from Discrete PUnit are equivalent to the category itself.
theorem CategoryTheory.Functor.equiv_functor_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
(F : CategoryTheory.Functor (CategoryTheory.Discrete PUnit.{w + 1}) C),
CategoryTheory.Functor.equiv.functor.obj F = F.obj { as := PUnit.unit }
theorem CategoryTheory.Functor.equiv_unitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
CategoryTheory.Functor.equiv.unitIso =
CategoryTheory.NatIso.ofComponents
(fun x ↦
CategoryTheory.Discrete.natIso fun x_1 ↦
CategoryTheory.Iso.refl
(((CategoryTheory.Functor.id (CategoryTheory.Functor (CategoryTheory.Discrete PUnit.{w + 1}) C)).obj x).obj
x_1))
⋯
theorem CategoryTheory.Functor.equiv_functor_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C]
{X Y : CategoryTheory.Functor (CategoryTheory.Discrete PUnit.{w + 1}) C} (θ : X ⟶ Y),
CategoryTheory.Functor.equiv.functor.map θ = θ.app { as := PUnit.unit }
theorem CategoryTheory.Functor.equiv_inverse E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
CategoryTheory.Functor.equiv.inverse = CategoryTheory.Functor.const (CategoryTheory.Discrete PUnit.{w + 1})
theorem CategoryTheory.Functor.equiv_counitIso E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
CategoryTheory.Functor.equiv.counitIso = CategoryTheory.NatIso.ofComponents CategoryTheory.Iso.refl ⋯
theorem CategoryTheory.equiv_punit_iff_unique E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
Nonempty (C ≌ CategoryTheory.Discrete PUnit.{w + 1}) ↔ Nonempty C ∧ ∀ (x y : C), Nonempty (Unique (x ⟶ y))
A category being equivalent to PUnit is equivalent to it having a unique morphism between
any two objects. (In fact, such a category is also a groupoid;
see CategoryTheory.Groupoid.ofHomUnique)