Subcategory
Let be a category .
Definition
A subcategory of consists of:
- (identities) for each , the identity morphism lies in ;
- (closure under composition) if and , then their composite (computed in ) lies in .
In this situation, is itself a category , with composition and identities inherited from .
A particularly important case is a full subcategory , where contains all morphisms in between its objects.
Examples
Injective maps inside : Let .
Define to have the same objects as , but only injective functions as morphisms.
This is a subcategory of (closed under composition and contains identities), but it is not full.inside : The category of abelian groups is a subcategory of by restricting to those objects that happen to be abelian.
Moreover, it is a full subcategory : between two abelian groups, a group homomorphism is the same morphism whether viewed in or in .Hausdorff spaces inside : Let be the category whose objects are Hausdorff spaces and whose morphisms are continuous maps.
Then is a subcategory of , and in fact it is full (all continuous maps between Hausdorff spaces are included).