The category of groups Grp\mathbf{Grp} has as objects and as morphisms. Thus a map f:G→Hf:G\to H obeys f(xy)=f(x)f(y)f(xy)=f(x)f(y). It automatically sends identity to identity and inverses to inverses. Identities and composition are the corresponding functions.

Convention and comparison

This category imposes no topology or differentiability. The constant map with value the target identity is always a morphism; a constant map with any other value is not.