1.1Basic Topology
Chapter (PDF)A category comprises:
Class of Objects. a class of objects .
Set of Morphisms. for any two objects , a set of morphisms whose elements are maps .
Law of Composition. a composition rule such that, for any two morphisms and , there exists a morphism .
A category obeys the following rules:
Associativity of Composition. That is, for morphisms , , and , we have that .
Identity Morphisms. For any two objects and a morphism , there exist identity morphisms and such that .
We say that comprises a class of objects due to set-theoretic considerations as to how large a set can be, ideas behind sets of sets, etc. We purposefully treat the maps between two objects as a set for simplicity. Also note that, by the usual argument for identity maps being unique, identity morphisms are unique as well.
Let be a category, and let be arbitrary objects. Then is said to be left-invertible (resp. right-invertible) if there exists a morphism such that (resp. such that ).
In the case where has both a left inverse and right inverse, then
and the single morphism is said to be the inverse of . A morphism is said to be an isomorphism if it is invertible, and the objects are said to be isomorphic (denoted ).
An isomorphism is a type of equivalence relation—given that it is reflexive, symmetric, and transitive—and so it forms equivalence classes, called isomorphism classes. For example, isomorphisms in are bijections, and two isomorphic sets are said to have the same cardinality; a cardinal is an isomorphism class of sets.
We shift our study of point-set topology from examining an object's structure, its points, and its elements. We instead observe how topological spaces, the objects of , behave in relation to other topological spaces. For any object , we can characterize by the morphisms that go in and out of . This description completely characterizes up to unique isomorphism; that is, if we have a description of how the morphisms in and out of behave, we know the object belongs to a unique isomorphism class. Indeed, isomorphism is now our new form of equality: since two spaces that are isomorphic are essentially the same up to the labeling of their elements, we are well equipped to study topology through this categorical lens.
Let be a category with three objects , and let . The pushforward of is the map of sets such that . The pullback of is the map of sets such that .
Consider the same setup as in the previous definition. For some and some morphism , induces a pushforward on maps from to . Namely, if is a morphism, we can apply so that , and so the result is pushed to from . On the other hand, also induces a pullback on maps from to . Namely, if , we can apply so that , and so the inputs are pulled back into from .
The following are equivalent.
is an isomorphism.
The pushforward is an isomorphism of sets.
The pullback is an isomorphism of sets.
We prove and note follows in a symmetric fashion.
: Suppose is an isomorphism. Then let be its inverse, and note the pushforward is the inverse to the pushforward .
: Suppose is an isomorphism. Choose , and note . Since is an isomorphism in , it is a bijection. By surjectivity there exists some such that . Moreover, note that and , and by injectivity of , note that . Thus is 's inverse, completing the proof.
Note that category theory studies not only the relationships between objects within a category, but also the maps between categories themselves. A map between categories is called a functor, which we will formally define later.
One might wonder if we can simply form a "category of categories," where the objects are categories and the morphisms are functors. Treating this naively causes three major issues:
Size. We defined a category such that the collection of morphisms between any two objects must form a set. However, the collection of functors between two categories is often too massive to be considered a standard set.
Hierarchy. Unlike basic objects (like sets or groups), categories have their own internal structure. Because of this, we can actually define mappings between functors (called natural transformations). A category of categories inherently possesses a "higher" hierarchy that a standard category cannot capture.
Rigidity. In a standard category, two objects are isomorphic if there are morphisms and such that and . If our objects are categories, this requires a strict one-to-one matching (bijection) of the objects inside them. This violates the philosophy of category theory, which only cares about objects up to isomorphism, not strict equality.
For example, consider the category of all finite-dimensional real vector spaces, and a second, smaller category containing only the standard spaces . Conceptually, these convey the exact same mathematical information, since every finite-dimensional vector space is isomorphic to some . However, they cannot be strictly isomorphic because the first has uncountably many objects, while the second only has a countable amount. There is no way to pair them one-to-one.
Because of this rigidity, we avoid strict isomorphisms of categories and instead use a looser concept called an equivalence of categories, which allows us to treat categories as "the same" without requiring a strict matching of their objects.
A functor is a mapping from a category to a category that ensures the following data.
For every , there is some .
For any two and any , there is some .
A functor must obey the following properties.
for any morphisms and .
for any .
A functor is said to be covariant if it maps the category into as defined above. A functor is said to be contravariant if it maps the category into . Note that and have the same objects, so the first rule doesn't change, but the arrows are reversed, so every morphism in is assigned a morphism in .
Consider the category of vector spaces over a field , whose objects are vector spaces over and whose morphisms are linear maps . Consider also the category of dual vector spaces, where objects are of the form for some vector space and morphisms are dual maps . Then consider a functor between these two categories, one that sends and . This is a contravariant functor: a morphism in the category of vector spaces is a linear map from to , but after the functor is applied, it becomes a map from to , an obvious reversal of the morphism's direction.
Consider the functor . When given a functor in this notation, objects are mapped to an object by replacing with the object in question, and so . Morphisms are mapped to a morphism by replacing the with the domain and codomain, and so , which is exactly the pushforward .
The contravariant functor from to maps objects in to the set of all morphisms from itself to , and it maps morphisms to their pullbacks. Indeed, if , then the functor acts by , taking to the set of all morphisms from to . If is a morphism, note that by contravariance it is mapped to a morphism , which is exactly the pullback.
The functor , where inputs are taken from the category of vector spaces, maps each vector space to its dual and maps each linear map to its dual map.
A forgetful functor acts by forgetting the special features and structure of the domain. For example, a forgetful functor from to works by mapping all objects (topological spaces) in to a set without its topology, and it can map all morphisms (continuous maps) in to just a general function.
A free functor is conceptually the “opposite” of a forgetful functor; it adds structure to a set in the most generic, canonical way possible. For example, a free functor from to takes a set of generators and maps it to the free group . We omit the formal definition for now, as it requires the machinery of adjoint functors (to be discussed later).
Let be a functor from category to category . Then the functor induces a map between hom-sets in and , defined by
for any . If the map is
injective, is called a faithful functor.
surjective, is called a full functor.
bijective, is called a fully faithful functor.
Note that fullness and faithfulness are defined entirely on the level of hom-sets (morphisms). They don't place restrictions on how the functor maps the objects of the category. If is fully faithful, then every morphism in is the image of exactly one morphism in under the induced map. Thus a fully faithful functor provides a lossless way to go between the the morphisms of the domain category and the codomain category. As mentioned though, there is no method prescribed by a fully faithful functor to go losslessly between the objects of the two categories. There is some restriction on how fully faithful functors map objects, but failure of injectivity is still possible.
Before we discuss fully faithful functors any further, we discuss some of the utility of functors in general.
Suppose is a functor. If in , then in .
Let be an isomorphism with inverse . Applying the functor axioms:
,
.
Thus, is an isomorphism with inverse . Note and , and so .
If two objects are “the same”, then two objects are also “the same.” We say is an invariant of . We say computes the invariant for : for any data shared between isomorphic objects in , the functor encodes this in . For example, consider the forgetful functor from to : this functor acts as an invariant since if any two topological spaces are homeomorphic, their sets are bijective. We may also consider the contrapositive, that if , then . Once again, using the forgetful functor, one notes that if the underlying sets of topological spaces are not bijective, then they are certainly not homeomorphic.
Now noting that functors act by computing invariants of isomorphism classes in the domain, we ask the question of when are two invariants the same? We study this question by comparing functors.
Suppose are two functors from to . A natural transformation from to comprises morphisms for each , where these morphisms make the diagram
commute (i.e., ). If is an isomorphism for each , we say is a natural isomorphism/natural equivalence, and we say and are naturally isomorphic, denoted . The collection of all natural transformations between two functors is denoted .
Note that a natural transformation can be viewed as either a map between two functors, or a collection of maps between diagrams, one for each object in . With these two perspectives, we hope to show that a functor can also be represented as a diagram, which turns out to be the case. While functors can be viewed as processes that map an object to an invariant, we will see later that they can be viewed as diagrams as well.
For every object in the category and for every contravariant functor , we have that
That is, every element of is in bijection with a natural transformation .
We omit the proof (it follows readily from the diagram for natural transformations), but consider the special case of the contravariant functor . Then we have that
For any categories , let denote the category whose objects are functors and whose morphisms are natural transformations . Now let , and consider the category . Note that the objects of this category are contravariant functors , and a functor like this is called a presheaf. This category itself is quite important since it has nice properties, but for now we will discuss a special functor.
Note that is a contravariant functor from to , and so it is an object in our category . Let us consider the functor , which sends objects and sends morphisms to a natural transformation whose components are all pushforwards of . That is, for each , we have that , which is exactly the pushforward of when considering a map .
Consider the map , which is a map , which is equivalently rewritten as . Note that by Yoneda Lemma. We can show that is the inverse of the bijection , and so is a bijection.
These are just examples, but the overarching example is clear: an object can be studied completely by all the morphisms into and out of it.
We will now shift over to basic categorical results in set theory.
Suppose is a morphism. We say is a monomorphism if is left cancellative. That is, for any two morphisms , we have that
Conversely, we say is an epimorphism if is right cancellative. That is, for any two morphisms , we have that
We denote a monomorphism by and an epimorphism by .
Note that monomorphisms coincide with injections and epimorphisms coincide with surjections in .
If is an injective function and , it is clear that by injectivity, and so is left cancellative (and thus monic). On the other hand, we can prove that if is left cancellative, is injective by contraposition. If is not injective, then there exists for which . Let be maps such that , and so but , and so is not left cancellative. Thus a map in is injective if and only if it is monic.
If is a surjective function and for every , then since every in the codomain is some , we have for every . Thus is right cancellative (and thus epic). Conversely, we show that if is not surjective, it is not epic. If is not surjective, there is some not in the image of . Define such that both maps agree on the image of (e.g., they both map every to ), but and . Then but , so is not right cancellative.
A map that is both monic and epic in is also an isomorphism, since it forces a unique inverse for the map. This is not always true in other categories. For example, a continuous bijection in is monic and epic, but it is not a homeomorphism (and thus not an isomorphism).
Suppose is a category. An object is called initial if there is a unique map from to every other object in . Conversely, is called final if there is a unique map from every other object in to .
It is immediate from the definition that initial and final objects are unique up to unique isomorphism, but we omit the proof due to its ease.
The empty set is the initial object in . There is exactly one map for any set , which is the “empty map”, or in other words the map that does nothing. Conversely, all singletons are terminal in . For any set , there is exactly one map , which is the constant map for every . Note that singletons are unique up to unique isomorphism in , abiding by our previous intuition.
Recall the Cartesian product of two sets is the set of all ordered pairs , with and . We have a concrete characterization of what the structure inside a Cartesian product looks like, but we want a more complete characterization. We want to be able to describe morphisms into or out of . We can do this by interpreting the product categorically.
We form a product by taking two sets together with two projection maps and . We characterize the product of two sets by the property that if we have any two maps and , we can factor these maps through the product by and , where is unique. We can represent this with a commutative diagram.
Note that forces this diagram to commute. If we drew out of and out of , the diagram wouldn't be “connected” (thus wouldn't commute) until a map was drawn from . The universal property of a product completely characterizes every single map going into from some set by the relationships and . Using this, we have a straight forward proof that all the sets that satisfy this universal property are unique up to unique isomorphism, and in the language of category theory, we have that is well defined.
Note that we can extend the definition of a product from a product of two objects to an arbitrary product by an indexing set , simply by assigning the product a projection map for each . This is one nice aspect of the categorical product: it scales nicely. Its main utility, however, is characterizing products in different categories. If a construction in some other category satisfies this universal property, we have established a concrete link between the product in with whatever construction is described by the universal property in the other category.
Recall the coproduct of two sets (often called the disjoint union) is the set of all elements belonging to either or , typically distinguished by indexing tags: . We have a concrete characterization of what the structure inside a disjoint union looks like, but we want a more complete characterization. We want to be able to describe morphisms into or out of . We can do this by interpreting the coproduct categorically.
We form a coproduct by taking two sets together with two canonical injection maps and . We characterize the coproduct of two sets by the property that if we have any two maps and , we can factor these maps through the coproduct by and , where is unique. We can represent this with a commutative diagram.
Note that forces this diagram to commute. If we drew into and into , the diagram wouldn't be “connected” (thus wouldn't commute) until a map was drawn from . The universal property of a coproduct completely characterizes every single map going out of to some set by the relationships and . Using this, we have a straightforward proof that all the sets that satisfy this universal property are unique up to unique isomorphism, and in the language of category theory, we have that is well defined.
Note that we can extend the definition of a coproduct from a coproduct of two objects to an arbitrary coproduct by an indexing set , simply by assigning the coproduct an injection map for each . This is one nice aspect of the categorical coproduct: it scales nicely. Its main utility, however, is characterizing coproducts in different categories. If a construction in some other category satisfies this universal property, we have established a concrete link between the coproduct in with whatever construction is described by the universal property in the other category.