ConceptComplete

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.

DefinitionCategory

A category C\mathcal{C} consists of:

  1. A collection Ob(C)\text{Ob}(\mathcal{C}) of objects
  2. For each pair of objects A,BA, B, a collection HomC(A,B)\text{Hom}_\mathcal{C}(A, B) of morphisms (or arrows) from AA to BB
  3. For each object AA, an identity morphism idAHomC(A,A)\text{id}_A \in \text{Hom}_\mathcal{C}(A, A)
  4. A composition operation that assigns to morphisms fHomC(A,B)f \in \text{Hom}_\mathcal{C}(A, B) and gHomC(B,C)g \in \text{Hom}_\mathcal{C}(B, C) a composite morphism gfHomC(A,C)g \circ f \in \text{Hom}_\mathcal{C}(A, C)

These must satisfy:

  • Associativity: (hg)f=h(gf)(h \circ g) \circ f = h \circ (g \circ f) whenever the compositions are defined
  • Identity laws: For any fHomC(A,B)f \in \text{Hom}_\mathcal{C}(A, B), we have fidA=f=idBff \circ \text{id}_A = f = \text{id}_B \circ f
ExampleFundamental Categories

Important examples of categories include:

  1. Set: Objects are sets, morphisms are functions
  2. Grp: Objects are groups, morphisms are group homomorphisms
  3. Top: Objects are topological spaces, morphisms are continuous maps
  4. Vectk_k: Objects are vector spaces over field kk, morphisms are linear transformations
  5. Poset: A partially ordered set (P,)(P, \leq) forms a category with objects being elements of PP and a unique morphism xyx \to y whenever xyx \leq y
DefinitionFunctor

Let C\mathcal{C} and D\mathcal{D} be categories. A functor F:CDF: \mathcal{C} \to \mathcal{D} consists of:

  1. An object function that assigns to each object AA in C\mathcal{C} an object F(A)F(A) in D\mathcal{D}
  2. A morphism function that assigns to each morphism f:ABf: A \to B in C\mathcal{C} a morphism F(f):F(A)F(B)F(f): F(A) \to F(B) in D\mathcal{D}

These must satisfy:

  • Identity preservation: F(idA)=idF(A)F(\text{id}_A) = \text{id}_{F(A)} for all objects AA
  • Composition preservation: F(gf)=F(g)F(f)F(g \circ f) = F(g) \circ F(f) for all composable morphisms f,gf, g

Functors can be thought of as structure-preserving maps between categories. They relate different mathematical contexts while maintaining the categorical structure.

ExampleForgetful Functor

The forgetful functor U:GrpSetU: \textbf{Grp} \to \textbf{Set} 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 U:VectkSetU: \textbf{Vect}_k \to \textbf{Set} forgets the vector space structure, sending each vector space to its underlying set of vectors.

DefinitionContravariant Functor

A contravariant functor F:CDF: \mathcal{C} \to \mathcal{D} reverses the direction of morphisms. It assigns:

  • To each object AA in C\mathcal{C}, an object F(A)F(A) in D\mathcal{D}
  • To each morphism f:ABf: A \to B in C\mathcal{C}, a morphism F(f):F(B)F(A)F(f): F(B) \to F(A) in D\mathcal{D} (note the reversal)

The composition axiom becomes F(gf)=F(f)F(g)F(g \circ f) = F(f) \circ F(g).

A standard (covariant) functor is sometimes called a covariant functor for emphasis.

Remark

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.