Contravariant functors flip the direction of morphisms between categories, unlike their covariant counterparts. They're essential in category theory, offering unique perspectives on relationships between mathematical structures.
Understanding contravariant functors helps grasp the duality principle in mathematics. They're used in various fields, from linear algebra to set theory, providing powerful tools for analyzing and transforming mathematical objects.
Contravariant Functors
Contravariant functors and applications
- Contravariant functors reverse the direction of morphisms in a category
- Given categories and , a contravariant functor maps objects of to objects of
- Morphisms in are mapped to morphisms in , effectively reversing the direction of the arrows
- Contravariant functors preserve composition and identity morphisms
- For morphisms and in , the composition is preserved:
- For an object in , the identity morphism is preserved:
- Examples of contravariant functors showcase their utility in various mathematical contexts
- The dual vector space functor maps a vector space to its dual space and a linear transformation to its dual
- The powerset functor maps a set to its powerset and a function to the preimage map

Covariant vs contravariant functors
- Covariant functors preserve the direction of morphisms between categories
- Given categories and , a covariant functor maps objects of to objects of
- Morphisms in are mapped to morphisms in , preserving the direction of the arrows
- Contravariant functors reverse the direction of morphisms between categories
- Given categories and , a contravariant functor maps objects of to objects of
- Morphisms in are mapped to morphisms in , reversing the direction of the arrows
- Both covariant and contravariant functors preserve composition and identity morphisms, ensuring the structure of the categories is maintained

Composition of contravariant functors
- The composition of two contravariant functors results in a covariant functor
- Let and be two contravariant functors
- The composition is a covariant functor, as demonstrated by the following proof:
- For objects in ,
- For morphisms in :
- in (contravariant)
- in (contravariant)
- (covariant)
- Composition is preserved:
- For morphisms and in :
- Identity morphisms are preserved:
- For an object in ,
Opposite Categories and Contravariant Functors
Contravariant from covariant functors
- The opposite category of a category is defined as follows:
- , meaning the objects of are the same as the objects of
- For objects in , , meaning the morphisms in are the morphisms in with reversed direction
- Composition in is defined as for morphisms and in
- Given a covariant functor , we can obtain a contravariant functor as follows:
- For objects in ,
- For morphisms in (which correspond to morphisms in ),
- Proof that is a contravariant functor:
- For morphisms and in (which correspond to morphisms and in ):
- For an object in ,