Let be a category with a null object. A kernel of a morphism is an equalizer of the morphisms . In other words, it is a morphism such that and every with factors uniquely through :
Since is an equalizer, the morphism is a monomorphism (i.e., left cancellable). It is thus common to think of the kernel as a subobject of , although technically subobjects of are equivalence classes of monomorphisms.
Example in
In , the kernel of a group morphism is the inclusion , where is the usual kernel.
Example in -categories
In any -category , all equalizers are kernels. This is because the hom-set is an abelian group, and so for arrows and we have exactly when . The arrow can therefore be described either as the equalizer of and , or as the kernel of . This is why we usually deal with kernels (and not equalizers) in , , etc.
If we dualize the notion of kernel we obtain the notion of cokernel:
Definition of cokernel
Let be a category with a null object. A cokernel of a morphism is a coequalizer of the morphisms . In other words, it is a morphism such that and every with factors uniquely through :
Example in
In , the cokernel of is the projection .
Abelian categories
Definition of an abelian category
An abelian category is an -category satisfying the following conditions:
has a null object.
has binary biproducts.
Every morphism in has a kernel and a cokernel.
Every monomorphism is a kernel and every epimorphism is a cokernel.
The first two conditions ensure is an additive category. The existence of kernels (and binary products) then implies has all finite limits, while the existence of cokernels (and binary coproducts) implies the existence of all finite colimits.
The fourth condition is strong. It implies that any morphism that is both monomorphism and epimorphism is an isomorphism.
Examples of abelian categories
The categories , , and many others are abelian, with the usual kernels and cokernels.
If is an abelian category, then so is any functor category . See page 199 in Mac Lane for the short proof.
Examples of additive categories that are not abelian
The category of even-dimensional vector spaces over a field is additive but not abelian, since linear transformations with odd rank do not have kernels in that category.
The category of finitely generated modules over a non-Noetherian ring (such as ) is also additive but not abelian.