Foundations
In CatDat, we work with the following convenient set-theoretic foundation for category theory.
Sets, collections, and hypercollections
We work with ZFC and two Grothendieck universes, which we denote by Thus, in principle everything is a set, but we rename them as follows to introduce three "levels of size":
- The sets in are renamed to sets (sometimes also small sets).
- The sets in are renamed to collections (sometimes also large sets).
- All available sets are renamed to hypercollections (which may or may not lie in ).
For example, is a set, is a collection, and is a hypercollection. The collection consists of all sets, and the hypercollection consists of all collections. Every set is also a collection, and every collection is also a hypercollection. There is a collection that consists of all groups, a collection of all topological spaces, etc.
Note that sets, collections, and hypercollections all satisfy the ZFC axioms. In this sense, (hyper)collections behave in the same way as sets. This is crucial for category theory. For example, we can form the collection of all maps between two collections. This basic property is not satisfied by classes, which are not adequate for category theory.
For example, there is a collection that consists of all maps .
Just imagine three copies of ZFC embedded into each other, each representing a "level of size". Grothendieck universes are merely an implementation detail, which we can and will drop from now on. Sets are on level 1, collections on level 2, and hypercollections on level 3. Concrete mathematical objects such as numbers or functions can be thought of as living on level 0 (even though they are usually modeled as sets in ZFC).
In our framework, there is no way to group all hypercollections into a single mathematical object; for this, one would need a third Grothendieck universe , but such a grouping is usually not required.
Essentially small, finite, and countable collections
Let us call a collection essentially small if it is isomorphic to a set , i.e., if there is a bijection between and . (An alternative terminology suggested here is structurally small.) For most parts of category theory, can then simply be replaced with and assumed to be small itself, i.e., a set.
For example, the collection is not small, but essentially small, since it is isomorphic to the set . This example shows that the three levels are not defined by cardinality alone. It also shows that the elements of a collection are not necessarily sets, which is yet another fundamental difference to classes.
If a collection admits a surjective map from a set , then it is also essentially small, since by the axiom of choice is isomorphic to a subset of .
A family of collections is called small when is a set. In this case, the collection of its elements is essentially small. Every essentially small collection has this form.
A collection is called finite if it is isomorphic to for some . In particular, every finite collection is essentially small. However, a finite collection is not necessarily small, as the example shows.
A collection is called countable if it admits an injective map to the set of natural numbers . In particular, every finite collection is countable, and every countable collection is essentially small. A countable collection is either finite or isomorphic to .
Categories
A category consists of a pair of collections , whose elements are called objects and morphisms, respectively, together with maps
- (identity),
- (source or domain),
- (target or codomain),
- (composition),
such that the usual axioms of a category are satisfied. The domain of consists of all pairs of morphisms with , and we write for their composition. Instead of one usually writes for the identity morphism of . Formally, a category is a tuple
of collections (and hence a collection itself). We write and . Instead of , we often write .
When is a morphism with and , we write We write or for the collection of such morphisms.
The collection need not be a set. If it is a set for all , the category is called locally small. If is essentially small (isomorphic to a set) for all , the category is called locally essentially small.
When a morphism happens to be uniquely determined, it will be written as or even just .
A small category is defined as above, but using sets and (instead of collections). A hypercategory is defined similarly using hypercollections and . Every small category is a category, and every category is a hypercategory. Notice that there is a collection of all small categories , and likewise a hypercollection of all categories .
For example, the category of sets has , the collection of all sets. The category of groups has , the collection of all groups. Other typical categories (topological spaces, graphs, metric spaces, etc.) are constructed as usual. All these examples are locally small.
Collections are the objects of a hypercategory .
Product categories
If is a collection of categories, we can define their product by and Identities and compositions are defined pointwise. This construction works for any collection because collections are closed under products; does not need to be small. The size of only matters if we want to determine whether the product is locally small: if is (essentially) small and each is locally (essentially) small, then is locally (essentially) small. If is not essentially small, the product is usually not locally essentially small.
In particular, if is a single category and is any collection, we can construct the product category , whose objects are -indexed families of objects in . This is in fact an example of a functor category , which we describe next.
Functors
A functor between two categories (or small categories, or hypercategories) is defined as usual; it consists of maps satisfying the functor axioms. Between two categories there is a collection of all functors, just as between two small categories there is a set of all functors.
Small categories and functors form the category of small categories, which is locally small. There is also a hypercategory consisting of all categories. For instance, is an object of , but not of .
If are two functors, a morphism (a natural transformation) is defined as a map satisfying the usual naturality condition. These morphisms form a collection .
If are categories, we can therefore construct the functor category as usual, whose objects are functors and whose morphisms are morphisms of functors. There is no set-theoretic issue, since collections behave like sets. If is small and is locally small, then is locally small. This extra assumption on is one of many indications that categories should not be assumed locally small by default. For example, one could not even form the category of endofunctors of a general category under such a restriction, and hence no category of monads.
It is better to state explicitly when the assumption of being locally small is needed.
Equivalences of categories are defined as usual. A category is essentially small if it is equivalent to a small category. A collection is essentially small if and only if the associated discrete category (which has only identity morphisms) is essentially small. In this sense, the two notions are compatible.
Representable Functors
If is any category and , we have the Hom-functor
defined as usual, but taking values in the hypercategory of all collections. The Yoneda lemma and its corollaries can be proved without assuming that is locally small. If is locally small, then takes values in .
Adjunctions are defined as usual via natural isomorphisms of functors valued in . No local smallness assumption is required. Equivalently, they can be defined via morphisms of functors and satisfying the triangle identities.
Limits and Colimits
Let be a category. If is a functor (in this context called a diagram), a cone over is an object equipped with morphisms for all such that for every morphism the evident triangle commutes. Cones form a category, and a terminal object in this category is called a limit of . The dual notion is a colimit.
Unless stated otherwise, we consider only small diagrams and hence small limits and colimits, i.e. those where is a small (or essentially small) category. This is because large limits rarely exist and it is cumbersome to specify "small" each time.
There are special types of limits, such as equalizers, products, and cofiltered limits, and their duals, such as coequalizers, coproducts, and filtered colimits. By convention, products and coproducts are indexed by a set, not a collection (unless stated otherwise). Filtered colimits are indexed by a small filtered category (unless stated otherwise).
Conclusion
There is much more to say about set-theoretic foundations for category theory (in fact, many papers have been written on the subject, and the approach developed above is just one of many approaches), but this suffices for the purposes of CatDat.
Context
This page is referenced by the following categories.
- category of large families of abelian groups
- category of F(I)-sets
- category of large families of sets
- category of long transfinite sequences of abelian groups
- category of large families of vector spaces which are mostly zero
- category of large vector spaces over a large field with a small basis
This page is referenced by the following properties of categories.