Categories and Functors - Core Definitions
Category theory provides a unified framework for studying mathematical structures and their relationships. At its foundation lies the concept of a category, which abstracts the notion of objects and morphisms between them.
A category consists of:
- A collection of objects
- For each pair of objects , a collection of morphisms (or arrows) from to
- For each object , an identity morphism
- A composition operation that assigns to morphisms and a composite morphism
These must satisfy:
- Associativity: whenever the compositions are defined
- Identity laws: For any , we have
Important examples of categories include:
- Set: Objects are sets, morphisms are functions
- Grp: Objects are groups, morphisms are group homomorphisms
- Top: Objects are topological spaces, morphisms are continuous maps
- Vect: Objects are vector spaces over field , morphisms are linear transformations
- Poset: A partially ordered set forms a category with objects being elements of and a unique morphism whenever
Let and be categories. A functor consists of:
- An object function that assigns to each object in an object in
- A morphism function that assigns to each morphism in a morphism in
These must satisfy:
- Identity preservation: for all objects
- Composition preservation: for all composable morphisms
Functors can be thought of as structure-preserving maps between categories. They relate different mathematical contexts while maintaining the categorical structure.
The forgetful functor sends each group to its underlying set and each group homomorphism to its underlying function. This functor "forgets" the group structure while preserving the set-theoretic data.
Similarly, the functor forgets the vector space structure, sending each vector space to its underlying set of vectors.
A contravariant functor reverses the direction of morphisms. It assigns:
- To each object in , an object in
- To each morphism in , a morphism in (note the reversal)
The composition axiom becomes .
A standard (covariant) functor is sometimes called a covariant functor for emphasis.
The distinction between covariant and contravariant functors is fundamental in category theory. Many natural constructions, such as taking dual spaces in linear algebra or computing cohomology groups in topology, are naturally contravariant.
The language of categories and functors provides a powerful abstraction that reveals deep connections between seemingly different areas of mathematics. By focusing on objects, morphisms, and structure-preserving maps, category theory enables mathematicians to recognize and exploit common patterns across diverse mathematical disciplines.