nLab
identity morphism

The identity morphism, or simply identity, of an object x in some category C is the morphism 1 x:xx, or id x:xx, which acts as a two-sided identity for composition.

Given a small category C with set of objects C 0 and set of morphisms C 1, the identity assigning function of C is the function i:C 0C 1 that maps each object in C 0 to its identity morphism in C 1.

For the generalisation to an internal category C, see identity-assigning morphism.

In Set, the identity morphisms are the identity functions.