There is a very general notion of injective objects in a category , and a sequence of refinements as is equipped with more structure and property, in particular for an abelian category or a relative.
Let be a category and a collection of morphisms in . Frequently is the class of all monomorphisms or a related class. An object in is -injective if all diagrams
admit an extension
If has a terminal object this can be thought of as a lift
as for factorization systems.
If is a locally small category then is -injective precisely if the hom-functor
takes morphisms in to epimorphisms in Set.
If is the class of all monomorphisms, we speak merely of an injective object. We say that a category has enough injectives if every object admits a monomorphism into an injective object.
The dual notion is a projective object.
The term injective object is used most frequently in the context that is an abelian category. In this case the class of monomorphisms is the same as the class of morphisms such that is exact. An object of an abelian category is then injective if it satisfies the following equivalent conditions:
the hom-functor is exact;
for all morphisms such that is exact and for all , there exists such that .
See homotopically injective object for a relevant generalization to categories of chain complexes, and its relationship to ordinary injectivity.
Every topos has enough injectives. In fact, every power object can be shown to be injective, and every object embeds into its power object by the “singletons” map.
At least assuming some form of the axiom of choice, the category of abelian groups has enough injectives. Full AC is much more than required, however; small violations of choice suffices. The abelian category of modules over some ring is similar.
The category of abelian sheaves on any small site also has enough injectives. This is in stark contrast to the situation for projectives, which generally do not exist in categories of sheaves.
Much of this discussion can be found in
The general notion of injective objects is in section 9.5, the case of injective complexes in section 14.1.