Single-object category #
Single object category with a given monoid of endomorphisms. It is defined to facilitate transferring some definitions and lemmas (e.g., conjugacy etc.) from category theory to monoids and groups.
Main definitions #
Given a type M with a monoid structure, SingleObj M is Unit type with Category structure
such that End (SingleObj M).star is the monoid M. This can be extended to a functor
MonCat โฅค Cat.
If M is a group, then SingleObj M is a groupoid.
An element x : M can be reinterpreted as an element of End (SingleObj.star M) using
SingleObj.toEnd.
Implementation notes #
categoryStruct.componEnd (SingleObj.star M)isflip (*), not(*). This way multiplication onEndagrees with the multiplication onM.By default, Lean puts instances into
CategoryTheorynamespace instead ofCategoryTheory.SingleObj, so we give all names explicitly.
Abbreviation that allows writing CategoryTheory.SingleObj rather than Quiver.SingleObj.
Instances For
One and flip (*) become id and comp for morphisms of the single object category.
Monoid laws become category laws for the single object category.
If M is finite and in universe zero, then SingleObj M is a FinCategory.
Groupoid structure on SingleObj M.
Abbreviation that allows writing CategoryTheory.SingleObj.star rather than
Quiver.SingleObj.star.
Instances For
The endomorphisms monoid of the only object in SingleObj M is equivalent to the original
monoid M.
Instances For
Given a function f : C โ G from a category to a group, we get a functor
C โฅค G sending any morphism x โถ y to f y * (f x)โปยน.
Instances For
A monoid homomorphism f: M โ End X into the endomorphisms of an object X of a category C
induces a functor SingleObj M โฅค C.
Instances For
Construct a natural transformation between functors SingleObj M โฅค C by
giving a compatible morphism SingleObj.star M.
Instances For
Reinterpret a monoid homomorphism f : M โ N as a functor (single_obj M) โฅค (single_obj N).
See also CategoryTheory.SingleObj.mapHom for an equivalence between these types.
Instances For
The units in a monoid are (multiplicatively) equivalent to
the automorphisms of star when we think of the monoid as a single-object category.
Instances For
The fully faithful functor from MonCat to Cat.