A functor is what goes between categories.
A functor from to is an image of in .
A functor between (small) categories is a morphism of the underlying graphs that respects the composition of edges.
A functor from a category to a category is a map sending each object to an object and each morphism in to morphism in , such that
preserves composition: whenever the left-hand side is well-defined,
preserves identity morphisms: for each object , .
The functors between two categories and form themselves a category, the functor category , whose morphisms are natural transformations. Equipped with these functor categories as hom-objects, we have a -category Cat of categories, functors and natural transformations. In other words, functors are morphisms in .
Functors with special properties are important in applications. See for instance
And for more background on this see stuff, structure, property.
Suppose now that and are internal categories in some ambient category . Then an internal functor is
a morphism of objects in ;
a morphisms of morphisms in ;
such that the following diagrams commute
respect for the source map: ;
respect for the target map: ;
respect for identities ;
respect for composition .
In many cases, this notion is too restrictive, and we should use internal anafunctors instead.
For monoids or groups, let , , be the corresponding obe-object categories (as described at delooping). Then functors
are canonically in bijection with monoid homomorphisms and accordingly functors
are canonically in bijection with group homomorphisms .
With as above, functors on with values in Vect are the same as linear representations of the group . In fact, we have a canonical isomorphism of categories
of the functor category with the representation category.
Let and be one-object categories whose objects are each finite-dimensional vector space and whose morphisms are all of the linear endomorphisms on that space, i.e. one-object full subcategories of .
If the linear map has a left inverse, i.e.
where is the preimage, then we can construct a functor
by defining its action on objects by
where on the right-hand side is the image and its action on endomorphisms by
Composition follows immediately
Identity morphisms are preserved since for any vector in , then
for some vector in and we have
so that
as required. Hence, is a functor.
If the linear map has a right inverse, i.e.
where is the preimage, then we can construct a functor
by defining its action on objects by
where on the right-hand side is preimage, and its action on endomorphisms by
Composition follows immediately
Identity morphisms are preserved since for any vector in , then
for some vector in and we have
so that
as required. Hence, is a functor.
Functors with values in Set are also called presheaves. As such one calls them presheaves on the opposite category of . See presheaf for more on this.
A generalization of the notion of functor within ordinary category theory and then naturally further within enriched category theory is the notion of profunctor.
In higher category theory there are corresponding higher notions of functor, such as
See also an informal discussion about an experimental alternative definition of functor.