Subcategory

A category obtained by restricting the objects and morphisms of a given category.
Subcategory

Let C\mathcal C be a .

Definition

A subcategory D\mathcal D of C\mathcal C consists of:

  • a collection of Ob(D)Ob(C)\mathrm{Ob}(\mathcal D)\subseteq \mathrm{Ob}(\mathcal C),
  • for every A,BOb(D)A,B\in \mathrm{Ob}(\mathcal D), a subset of HomD(A,B)HomC(A,B), \mathrm{Hom}_{\mathcal D}(A,B)\subseteq \mathrm{Hom}_{\mathcal C}(A,B), such that:
  1. (identities) for each AOb(D)A\in\mathrm{Ob}(\mathcal D), the idA\mathrm{id}_A lies in HomD(A,A)\mathrm{Hom}_{\mathcal D}(A,A);
  2. (closure under composition) if fHomD(A,B)f\in\mathrm{Hom}_{\mathcal D}(A,B) and gHomD(B,C)g\in\mathrm{Hom}_{\mathcal D}(B,C), then their gfg\circ f (computed in C\mathcal C) lies in HomD(A,C)\mathrm{Hom}_{\mathcal D}(A,C).

In this situation, D\mathcal D is itself a , with composition and identities inherited from C\mathcal C.

A particularly important case is a , where D\mathcal D contains all morphisms in C\mathcal C between its objects.

Examples

  1. Injective maps inside Set\mathbf{Set}: Let C=Set\mathcal C=\mathbf{Set}.
    Define D\mathcal D to have the same objects as Set\mathbf{Set}, but only as morphisms.
    This is a subcategory of Set\mathbf{Set} (closed under composition and contains identities), but it is not full.

  2. Ab\mathbf{Ab} inside Grp\mathbf{Grp}: The category Ab\mathbf{Ab} of abelian groups is a subcategory of Grp\mathbf{Grp} by restricting to those objects that happen to be abelian.
    Moreover, it is a : between two abelian groups, a group homomorphism is the same morphism whether viewed in Ab\mathbf{Ab} or in Grp\mathbf{Grp}.

  3. Hausdorff spaces inside Top\mathbf{Top}: Let D\mathcal D be the category whose objects are Hausdorff spaces and whose morphisms are continuous maps.
    Then D\mathcal D is a subcategory of Top\mathbf{Top}, and in fact it is full (all continuous maps between Hausdorff spaces are included).