Presheaves are contravariant functors from a category to Set, assigning sets to objects and functions to morphisms. They generalize the notion of a family of sets indexed by a category, providing a flexible framework for studying structures that vary over different contexts.
The category of presheaves on a category C is itself a rich mathematical structure called a topos. This category has objects as presheaves and morphisms as natural transformations, allowing for powerful constructions and connections to other areas of mathematics.
Presheaves
Definition and examples of presheaves
- A presheaf on a category is a contravariant functor that assigns a set to each object in and a function between sets to each morphism in
- For each object in , assigns a set (stalks)
- For each morphism in , assigns a function (restriction maps) that reverses the direction of the morphism
- preserves identity morphisms and composition ensuring consistency and compatibility of the assigned sets and functions
- Examples of presheaves illustrate the concept:
- For a topological space , the assignment of open sets to the set of continuous functions (sheaf of continuous functions) is a presheaf on the category of open sets of
- For a group , the assignment of each subgroup to the set of left cosets (coset space) is a presheaf on the category of subgroups of

Construction of presheaf categories
- The category of presheaves on a category , denoted or , is a category whose objects are presheaves on and morphisms are natural transformations between presheaves
- Objects: Presheaves on , i.e., contravariant functors
- Morphisms: Natural transformations between presheaves and
- A natural transformation assigns to each object in a function such that for every morphism in , the following diagram commutes ensuring compatibility of the assigned functions:
F(Y) --F(f)--> F(X) | | α_Y α_X | | v v G(Y) --G(f)--> G(X)
- A natural transformation assigns to each object in a function such that for every morphism in , the following diagram commutes ensuring compatibility of the assigned functions:
- Composition of morphisms is the usual composition of natural transformations preserving the structure of the presheaf category
- The identity morphism on a presheaf is the natural transformation with components serving as the identity for composition

Proof of presheaf category as topos
- The category of presheaves is a topos, a category with rich structure and properties, because it satisfies the following:
- has all finite limits and colimits computed pointwise for each object in , enabling the construction of complex objects from simpler ones
- has exponentials, where for presheaves and , the exponential is defined by with being the Yoneda embedding of , allowing for function spaces within the presheaf category
- has a subobject classifier defined by , where a sieve on is a collection of morphisms with codomain closed under precomposition, enabling the classification of subobjects
Presheaves vs representable functors
- A representable functor is a presheaf naturally isomorphic to a functor for some object in
- is a contravariant functor from to that assigns the set to each object and the precomposition function to each morphism
- The Yoneda lemma establishes a bijection , natural in both the presheaf and the object , connecting presheaves and representable functors
- This bijection implies that the Yoneda embedding , defined by , is fully faithful, embedding into its presheaf category
- Consequently, every presheaf is a colimit (generalized limit) of representable functors
- Specifically, for a presheaf , there is a canonical isomorphism , expressing as a coend (generalized colimit) of representable functors weighted by the sets