Let \mathcal{C} be a category. A
subcategory \mathcal{S} of \mathcal{C} is given by • a subcollection of objects of \mathcal{C}, denoted \operatorname{ob}(\mathcal{S}), • a subcollection of morphisms of \mathcal{C}, denoted \operatorname{mor}(\mathcal{S}). such that • for every X in \operatorname{ob}(\mathcal{S}), the identity morphism idX is in \operatorname{mor}(\mathcal{S}), • for every morphism f:X\to Y in \operatorname{mor}(\mathcal{S}), both the source X and the target Y are in \operatorname{ob}(\mathcal{S}), • for every pair of morphisms f and g in \operatorname{mor}(\mathcal{S}) the composite f\circ g is in \operatorname{mor}(\mathcal{S}) whenever it is defined. These conditions ensure that \mathcal{S} is a category in its own right: its collection of objects is \operatorname{ob}(\mathcal{S}), its collection of morphisms is \operatorname{mor}(\mathcal{S}), and its identities and composition are as in \mathcal{C}. There is an obvious
faithful functor I:\mathcal{S}\to\mathcal{C}, called the
inclusion functor which takes objects and morphisms to themselves. Let \mathcal{S} be a subcategory of a category \mathcal{C}. We say that \mathcal{S} is a
of \mathcal{C} if for each pair of objects X and Y of \mathcal{S}, :\mathrm{Hom}_\mathcal{S}(X,Y)=\mathrm{Hom}_\mathcal{C}(X,Y). A full subcategory is one that includes
all morphisms in \mathcal{C} between objects of \mathcal{S}. For any collection of objects A in \mathcal{C}, there is a unique full subcategory of \mathcal{C} whose objects are those in A. == Examples ==