Category
See category theory, first.
A category
-
A class
, whose elements are called objects. -
A class
, whose elements are called morphisms (or arrows, maps). Each morphism has: - A source object
- A target object
We write
to indicate that is a morphism from to . For any pair of objects
, we denote by (or simply ) the hom-class of all morphisms from to . Note that is the union of all such hom-classes. - A source object
-
A binary operation
called composition:
For any three objects, we have The composition of
and is written as (or simply ). -
Two axioms governing composition:
- Associativity: For any
, , and , - Identity: For every object
, there exists a morphism called the identity morphism for , such that for every morphism ,
From these axioms, it follows that the identity morphism for each object is unique.
- Associativity: For any
The "processes" or "maps" between categories that preserve the structure given above are called functors.
In practice, most working mathematicians impose additional size restrictions:
(a) Locally Small Category (Most Common Usage)
A category
Why this matters: Most important constructions in category theory (the Yoneda’s lemma, functor categories, limits/colimits) require local smallness. When mathematicians say "category" without qualification, they usually mean "locally small category."
(b) Small Category
A category
is a set is a set
Small categories are particularly manageable and form the objects of the important category Cat.
The "Category of All Categories"
This definition clarifies why there is ambiguity about whether categories form a category:
-
Under the general definition above: Categories do form a category called CAT, where:
- Objects: All categories
- Morphisms: All functors between categories
- Composition: Ordinary composition of functors
-
Under the locally small restriction: Categories do not form a category, because for two large categories
and , the collection of all functors may be a proper class, violating the "hom-classes must be sets" requirement.
Examples
Basic examples of categories:
- groups.
- category of sets
- powerset category
- topos theory
Two important construction in a categoryare product in categories and coproduct in categories.
An important strategy in category theory is to use universal propertys.