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.
Equations
Instances For
Monoid laws become category laws for the single object category.
Equations
If M is finite and in universe zero, then SingleObj M is a FinCategory.
Equations
Groupoid structure on SingleObj M.
Equations
Abbreviation that allows writing CategoryTheory.SingleObj.star rather than
Quiver.SingleObj.star.
Equations
Instances For
There is a 1-1 correspondence between monoid homomorphisms M → N and functors between the
corresponding single-object categories. It means that SingleObj is a fully faithful functor.
Stacks Tag 001F (We do not characterize when the functor is full or faithful.)
Equations
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)⁻¹.
Equations
Instances For
Construct a natural transformation between functors SingleObj M ⥤ C by
giving a compatible morphism SingleObj.star M.
Equations
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.
Equations
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.