Category axioms
The associativity and identity laws governing composition in a category.
A category consists of:
- a collection of objects ,
- for each pair , a set of morphisms ,
- a partially defined composition operation
- and for each object , an identity morphism .
The category axioms are the following two laws.
Axioms
- Associativity. For any composable morphisms one has
- Identity laws. For any morphism ,
These axioms ensure that one can unambiguously write composites like without parentheses.
Examples
- . Objects are sets and morphisms are functions. Composition is ordinary function composition and identities are identity functions.
- . Objects are groups and morphisms are group homomorphisms; composition and identities are the usual ones.
- . Objects are left -modules and morphisms are -linear maps; composition and identities are the usual ones.