Category
A structure of objects and morphisms with associative composition and identity morphisms.
A category consists of:
- A collection of objects.
- For each pair , a collection of morphisms .
- For each triple , a composition operation
- For each object , an identity morphism .
These data satisfy:
- Associativity: whenever the composites are defined.
- Identity laws: for every .
These are the category axioms.
Guiding picture
The definition abstracts the behavior of functions and their composition.
Examples
- : objects are sets, morphisms are functions, composition is ordinary function composition, and is the identity function on .
- : objects are groups, morphisms are group homomorphisms, with composition given by composing homomorphisms.
- : objects are topological spaces, morphisms are continuous maps, with composition the usual composition of continuous maps.