For a locally small category , an object , and a functor , the covariant Yoneda lemma is the natural bijection
Its inverse sends to the natural transformation whose component at maps to .
Suppose now that is a small category. For , form the coproduct in a category
The Yoneda lemma associates to every summand the natural transformation determined by , and these transformations combine to a map . At an object , the element is the image of in the summand indexed by , so is a pointwise epimorphism in a functor category. Each representable functor is a projective object in a category, since
and evaluation preserves pointwise epimorphisms. A coproduct of projectives is projective, so is the required projective object. This is the projective cover of a set-valued functor by representables.
We next prove the three equivalent conditions. If every morphism of is a monomorphism, then for and every , postcomposition
is injective. Thus every covariant representable functor is a monofunctor. Conversely, taking shows that injectivity for every representable implies that forces , so every is monic.
If all representables are monofunctors, the object above is a monofunctor because a coproduct of injective functions is injective. Hence every is an epimorphic image of a monofunctor. Conversely, suppose every functor is an epimorphic image of a monofunctor and apply this to a representable . Choose an epimorphism with a monofunctor. Since is projective, lifts to with . Thus is a retract in a category of . Every retract of a monofunctor is a monofunctor: if , then injectivity of applied to and gives , and applying gives . This completes the equivalence.
Finally, every functor is a monofunctor exactly when every morphism of is a split monomorphism. The forward implication is immediate because every functor preserves a left inverse. For the converse, fix and form a quotient of by identifying the distinguished point with every arrow of the form , where . In the resulting functor , the two elements and of have equal images under because . If every functor is a monofunctor, is injective, so . By construction this means for some . Thus is split monic. Equivalently, every morphism of must be an absolute monomorphism.
For a locally small category , a representation of a functor is an object and an element such that
is a bijection for every , naturally in . Equivalently, is a natural isomorphism.
Suppose and are two representations. Universality gives unique maps
such that and . Then , and uniqueness applied to the element gives . Similarly . Thus the representing objects are uniquely isomorphic in a way carrying one universal element of a set-valued functor to the other.
For and , the comma category has objects with . A morphism is a map satisfying
The universal arrow from an object to a functor criterion says that has a left adjoint exactly when has an initial object for every . Indeed, an initial represents the functor , and uniqueness makes functorial.
When and is a singleton, an arrow is just an element . Hence is the category of elements, and its initial objects are exactly the representations of . This proves
If has a left adjoint, the universal-arrow criterion immediately makes it representable. Conversely, suppose is cocomplete and . For a set , form the copower
The coproduct in a category universal property gives natural bijections
so .
Cocompleteness cannot be omitted. Let be the category of ordinals in reverse order: there is one arrow exactly when in the ordinary ordering. This large poset is locally small and complete. For a set-indexed family , its product in the reversed order is the ordinary supremum , and equalizers in a poset are automatic. But has no initial object, since that would be a largest ordinal. Any representable functor is therefore the requested example: if it had a left adjoint , then
would be a singleton for every , making initial, a contradiction.
Because preserves finite limits and colimits, is a singleton and . For , let select and define
where is the unique element of . This is natural in . Any natural transformation has the unique possible component at , and naturality along every forces the displayed value, so is unique.
If , the equalizer of is empty. Since preserves this equalizer, . Hence every is injective, so is pointwise monic.
Finite-colimit preservation makes bijective for every finite set. Use the stated characterization of by the coproduct diagram
and the coequalizer of . Applying preserves both diagrams. Naturality and uniqueness in this characterization identify as an isomorphism.
For a countable family , let record the summand. Each square
is a pullback. Applying and using and shows that is exactly the fiber of over . Those fibers partition , so the canonical map
is bijective. Thus preserves countable coproducts.
Now choose and define
It is upward closed. Since and preserves binary coproducts, lies in exactly one of the two summands, so exactly one of and its complement lies in . Pullback preservation gives closure under finite intersections.
For countable completeness, take and put . If , then . Partition into and the sets
which record the first failed membership. Since preserves countable coproducts, exactly one cell of this partition lies in . It cannot be , so some . But , forcing , contrary to . Hence .
Finally no finite belongs to . Indeed, through , so if came from then naturality would put in the image of . Thus is a countably complete ultrafilter and is nonprincipal.
Conversely, let be such an ultrafilter on and define the ultrapower endofunctor of sets
It preserves the terminal object and products: the map
is bijective because is closed under finite intersections. It preserves equalizers because an equality holding for an equivalence class holds on a -large set, and the representative can be changed off that set to land in the equalizer. Hence it preserves all finite limits.
For , countable completeness implies that one index fiber
belongs to ; otherwise the countable intersection of all complementary fibers would be empty and belong to . Thus every class lies in one and only one , proving preservation of countable coproducts.
The class of the identity map is not represented by a constant map, since every equality set is a singleton and is not in . Therefore is not surjective. Since is the unique natural transformation from the identity functor to , a natural isomorphism would have to equal , which is impossible.