Idea
There is a natural symmetry in the definition of a category which allows for a construction of a dual or opposite category obtained by reversing all arrows of . This then extends to other category theoretic notions, such as allowing for a natural definition of contravariant functors.
Category
Let be a category. We define its opposite category :
- The objects are the same as the objects of
- The hom-set write for inhabitants of instead of .
- Identity morphisms are simply the identity morphisms in .
- Composition is given as Then it can easily be checked that associative and identity laws hold for .
Dual notions
Under this definition of duality, the following concepts are dual:
Extension to higher categories
In 2-categories, 1-cells and 2-cells may have distinct notions of duality. The notation used in this case is for inverting 1-cells and for inverting 2-cells. They can be combined with the notation to invert both 1- and 2-cells.