Category theory
What is Category Theory?
Category theory is a branch of mathematics that provides a unifying framework for studying structures and their relationships across various mathematical disciplines. In the definition of category, it is used the term collection. The term "collection" is deliberately flexible, as the objects and morphisms of a category are not required to form a set in the sense of Zermelo-Fraenkel (ZF) set theory. This flexibility is key to understanding the relationship between category theory and set theory.
Collections vs. Sets: Proper Classes
In category theory, the collection of objects in a category is not necessarily a set. For example:
In the category Set, the objects are all sets, which form a proper class—a collection too large to be a set in ZF set theory. This is because the "set of all sets" leads to paradoxes like Russell’s paradox and thus cannot exist as a set.
Similarly, categories like
In ZF set theory, everything is a set, and the axioms govern how sets are constructed. A proper class is an informal notion for a collection of sets that satisfies a property (e.g., all sets, all groups) but cannot be a set itself due to the axiom of restricted comprehension. For instance, the collection
The term collection in category theory is a general, intuitive concept that may refer to either sets or proper classes, depending on the category. Small categories, like those with a finite number of objects or objects forming a set (e.g., finite sets), have set-sized collections, while large categories, like Set, involve proper classes.
graph TD A[Category Theory] --> B[Categories] B --> C[Objects] B --> D[Morphisms] C --> E["Collection of Objects and Morphisms"] D --> E E --> F["Sets"] E --> G["Proper classes"] F-->H[Small category] G-->I[Large category]
Category Theory and ZF: Independent Foundations
Category theory and ZF set theory are distinct foundational frameworks for mathematics, neither strictly above nor below the other:
- ZF Set Theory: ZF provides a foundation where all mathematical objects are sets, and their properties are governed by axioms like pairing, union, and restricted comprehension. Proper classes are not formal objects in ZF but are understood as collections too large to be sets.
- Category Theory: Category theory focuses on objects and morphisms, emphasizing relationships over the internal structure of objects. It can be formalized within ZF by treating objects and morphisms as sets (for small categories) or classes (for large categories), but it does not depend on ZF. Category theory can also be developed in other foundations, such as type theory, topos theory, or even naively without a specific set-theoretic commitment.
For example, the category Set can be formalized in ZF by defining its objects as all sets and morphisms as functions, but the collection of all sets is a proper class, not a set. Category theory’s flexibility allows it to work with such large collections without requiring them to be sets.
Formalizing Large Collections
To handle proper classes formally, mathematicians often extend or modify ZF:
- NBG (von Neumann-Bernays-Gödel) Set Theory: NBG distinguishes between sets (which can be elements of other sets or classes) and classes (which cannot). Proper classes, like the class of all sets, are formal objects in NBG, making it a convenient foundation for category theory. NBG is conservative over ZF, meaning it does not prove new theorems about sets.
- Grothendieck Universes: In ZF, one can assume the existence of a Grothendieck universe, a set
that is "large enough" to contain all sets needed for a particular category (e.g., all sets in Set). Within , the collection of objects is a set, but the collection of all universes or objects outside behaves like a proper class. This approach is common in algebraic geometry and category theory. - Morse-Kelley (MK) Set Theory: MK is another class-based set theory that allows more flexibility in defining classes but is stronger than ZF or NBG.
These frameworks provide ways to formalize the "collections" of category theory, but category theory itself remains agnostic about the specific foundation, focusing on structural properties.
graph TD A[Foundations] --> B["ZF Set Theory"] A --> C["NBG Set Theory"] A --> D["Grothendieck Universes"] A --> E["MK Set Theory"] B --- B1["Everything is a Set"]:::thirdOrder B1 --- B2["Proper Classes are Meta-theoretical"]:::thirdOrder B2 --- B3["No 'set of all sets'"]:::thirdOrder C --- C1["Sets vs Classes"]:::thirdOrder C1 --- C2["Proper Classes are Formal"]:::thirdOrder C2 --- C3["Conservative over ZF"]:::thirdOrder classDef thirdOrder fill:#d4f1f9,stroke:#05b2dc,color:#333