Fiveable

🔢Category Theory Unit 1 Review

QR code for Category Theory practice questions

1.2 Basic definitions and notation

1.2 Basic definitions and notation

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🔢Category Theory
Unit & Topic Study Guides

Category theory is a powerful framework for understanding mathematical structures and relationships. It focuses on objects and morphisms, providing a unified language for describing diverse mathematical concepts across different fields.

At its core, category theory deals with composition, identity, and associativity. These fundamental principles allow us to analyze complex systems by breaking them down into simpler components and understanding how they interact.

Fundamental Concepts of Category Theory

Components of categories

  • A category C\mathcal{C} consists of two main components:
    • Objects denoted as AA, BB, CC, etc. represent the entities or structures within the category (groups, sets, vector spaces)
    • Morphisms (arrows) denoted as ff, gg, hh, etc. represent the relationships, transformations, or mappings between objects (group homomorphisms, functions, linear transformations)
  • For every pair of objects AA and BB, there exists a set HomC(A,B)\text{Hom}_{\mathcal{C}}(A, B) called the hom-set
    • Contains all morphisms from object AA to object BB, capturing the possible ways to relate or transform AA into BB
    • If fHomC(A,B)f \in \text{Hom}_{\mathcal{C}}(A, B), it is denoted as f:ABf: A \to B, indicating that ff is a morphism from AA to BB (function from set AA to set BB)
Components of categories, Bartosz Milewski's Programming Cafe | Category Theory, Haskell, Concurrency, C++

Notation for category theory

  • Composition of morphisms: If f:ABf: A \to B and g:BCg: B \to C, then there exists a morphism gf:ACg \circ f: A \to C
    • The composition is read from right to left: (gf)(a)=g(f(a))(g \circ f)(a) = g(f(a)) for aAa \in A, meaning first apply ff to aa, then apply gg to the result
    • Represents the idea of chaining transformations or mappings together (composing functions, group homomorphisms, or linear transformations)
  • Commutative diagrams used to represent the equality of compositions of morphisms
    • If f:ABf: A \to B, g:BCg: B \to C, h:ACh: A \to C, and h=gfh = g \circ f, then the following diagram commutes: A @>f>> B \\ @VhVV @VVgV \\ C @= C \end{CD}$$
    • Visually captures the idea that following different paths in the diagram yields the same result (going from AA to CC directly via hh is the same as going from AA to BB via ff, then from BB to CC via gg)
Components of categories, Category Theory | Bartosz Milewski's Programming Cafe

Properties of morphisms

  • Identity morphisms: For every object AA, there exists a unique morphism idA:AA\text{id}_A: A \to A called the identity morphism
    • For any morphism f:ABf: A \to B, the following hold:
      • fidA=ff \circ \text{id}_A = f, meaning composing ff with the identity on its domain yields ff itself (identity function, identity matrix)
      • idBf=f\text{id}_B \circ f = f, meaning composing ff with the identity on its codomain yields ff itself
    • Captures the idea of a neutral element or transformation that preserves the object
  • Associativity: For morphisms f:ABf: A \to B, g:BCg: B \to C, and h:CDh: C \to D, the following equality holds:
    • (hg)f=h(gf)(h \circ g) \circ f = h \circ (g \circ f), meaning the order of composition does not matter when grouping morphisms (associativity of function composition, matrix multiplication)
    • Allows for unambiguous composition of multiple morphisms without the need for parentheses

Types of morphisms

  • Isomorphisms: A morphism f:ABf: A \to B is an isomorphism if there exists a morphism g:BAg: B \to A such that:
    • gf=idAg \circ f = \text{id}_A and fg=idBf \circ g = \text{id}_B, meaning ff and gg are inverses of each other
    • If an isomorphism exists between AA and BB, they are considered isomorphic, denoted as ABA \cong B, indicating that AA and BB are essentially the same object up to relabeling (isomorphic groups, homeomorphic spaces)
  • Monomorphisms: A morphism f:ABf: A \to B is a monomorphism (monic) if for any object CC and morphisms g1,g2:CAg_1, g_2: C \to A, the following implication holds:
    • If fg1=fg2f \circ g_1 = f \circ g_2, then g1=g2g_1 = g_2, meaning ff is left-cancellative or injective (injective functions, injective group homomorphisms)
  • Epimorphisms: A morphism f:ABf: A \to B is an epimorphism (epic) if for any object CC and morphisms h1,h2:BCh_1, h_2: B \to C, the following implication holds:
    • If h1f=h2fh_1 \circ f = h_2 \circ f, then h1=h2h_1 = h_2, meaning ff is right-cancellative or surjective (surjective functions, surjective group homomorphisms)
2,589 studying →