Let C\mathcal C be a and let XX be an of C\mathcal C. An identity morphism on XX is a morphism 1X:X→X1_X : X \to X such that:

  • For every morphism f:X→Yf : X \to Y, one has f∘1X=ff \circ 1_X = f.
  • For every morphism g:Y→Xg : Y \to X, one has 1X∘g=g1_X \circ g = g.

(Here ∘\circ is .)

Uniqueness: If e:X→Xe : X \to X also satisfies these unit laws, then e=1Xe = 1_X.

This generalizes the on a set.

Examples
  1. In Set\mathbf{Set}, 1X1_X is the identity function x↦xx\mapsto x on the set XX.
  2. In Grp\mathbf{Grp}, 1G:G→G1_G : G\to G is the identity group homomorphism.
  3. In Top\mathbf{Top}, 1X:X→X1_X : X\to X is the identity continuous map on a space XX.