3.1. Let be a category. Consider a structure with
Show how to make this into a category (that is, define composition of morphisms in and verify the properties listed in ).
Intuitively, the 'opposite' category is simply obtained by 'reversing all the arrows' in .
Solution
First we'll define an identity morphism. Since is a category, for every object of , there exists an identity morphism . By our definition of we have and , so we can just use as is for .
Now for the heart of the matter, defining the composition of morphisms in and verifying the properties of . Let be objects of (which is the same as being an object of ), and let and . By definition, we have and . This gives us by composition. Define . This notation is a bit confusing because the LHS is composition in and the RHS is composition in . We proceed by verifying that this composition is associative and respects the identity.
Let , , and . Then , where now on the RHS we are using composition in in the parentheses. Applying the definition of composition in again we get . Now that on the RHS we are entirely in we can use associativity in to get . Then using the definition of composition in twice we get proving associativity.
This is a bit unclear, so let me rewrite this denoting composition in as and composition in as . Then
It is pretty clear that the identity respects composition, let . Because the identity respects composition in we have
So by the definition of composition in and because the identities are the same in both and
which is exactly what we set out to show.
3.3. Formulate precisely what it means to say that is an identity with respect to composition in Example 3.3, and prove this assertion.
Solution
In this example is the relation which can also be viewed as the pair , to show that it is the identity with respect to composition we need to show that for all we have
In our category the only element of is the pair representing the true statement , so the above is equivalent to
which follows directly from the definition of composition in the example.
3.5. Explain in what sense Example 3.4 is an instance of the categories considered in Example 3.3.
Solution
Let and define . Because and implies that , is transitive. Because , is reflective. Because is a set and is a reflexive and transitive relation on , Example 3.4 is an instance of the categories considered in Example 3.3.
3.6. (Assuming some familiarity with linear algebra) Define a category by taking and letting the set of matrices with real entries, for all . (I will leave the reader the task of making sense of a matrix with rows or columns.) Use product of matrices to define composition. Does this category 'feel' familiar?
Solution
It 'feels' like the category of finite dimensional vector spaces, as each object is a natural number (the dimension) and the morphisms correspond to linear transformations.
3.7. Define carefully objects and morphisms in Example 3.7, and draw the diagram corresponding to composition.
Solution
Let be a category and . We define the co-slice category as follows:
Then elements of are commutative diagrams like
And if we were to take two morphisms, and pictured below
we can define their composition by first putting the diagrams side-by-side
And then removing the middle and composing and
The above diagram commutes because
because composition in categories is associative, and
due to the commutative diagrams in (1).
Composition in is associative because (TODO: FIX THIS ARGUMENT) the following diagram commutes
so .
For every in , the identity is the following commutative diagram
which commutes because is a category.
Finally, the identity is an identity with respect to our composition. To show this first take the diagram earlier for , representing an arbitrary morphism in , and put the identity diagram with it side-by-side
then, as per the definition of composition in , we remove the middle and compose and
The diagram above is by definition . Because is a category so is equal to the below diagram
which is the original diagram for , so we can conclude that . The argument that is similar.
3.8. A subcategory of a category consists of a collection of objects of with sets of morphisms for all objects in , such that identities and compositions in make into a category. A subcategory is full if for all in . Construct a category of infinite sets and explain how it may be viewed as a full subcategory of .
Solution
Let . Then by the definition of ,
Let . For , let . We must show that identities and compositions in make into a category. This is obvious as all of the properties are inherited from .
3.9. An alternative to the notion of multiset introduced in is obtained by considering sets endowed with equivalence relations; equivalent elements are taken to be multiple instances of elements 'of the same kind'. Define a notion of morphism between such enhanced sets, obtaining a category containing (a 'copy' of) as a full subcategory. (There may be more than one reasonable way to do this! This is intentionally an open-ended exercise.) Which objects in determine the ordinary multisets as defined in and how? Spell out what a morphism of multisets would be from this point of view. (There are several natural notions of morphisms of multisets. Try to define morphisms in so that the notion you obtain for ordinary multisets captures your intuitive understanding of these objects.)
Solution
In our objects are surjective projections that send to its equivalence class ,
and our morphisms are diagrams like
where takes an equivalence class where as input and outputs an equivalence class where .
Given two morphisms and , to combine them we stack them,
compose and to get and remove the middle, as shown below.
the identity morphism is the diagram below,
where is of course the identity on . Since this identity morphism is an identity with respect to composition, following the steps we first stack the diagrams for and for ,
compose and remove the middle to get
which is the original morphism. This also works in the other direction: consider the right-sided identity morphism,
stack the morphism for on top of it,
remove the middle and compose to get the original diagram for ,
showing that indeed both indentity morphisms do function as identities with respect to composing morphisms.
Finally we need to show that with respect to morphisms we have associativity, for this we need a new morphism and to show that
First we find , which by definition involves first stacking and ,
then removing the middle and composing and to get
so to find the morphism we have to first stack the morphism for onto the above morphism for ,
then composing with to get , and removing the middle to get the below diagram.
Now we need to show that the morphism is the above diagram. We start by taking the diagram for , which is by definition the below diagram,
and stack on the diagram for ,
to get the following
and then remove the middle and compose with to get ,
and we have the desired diagram, so we have shown that the composition of our morphisms is associative.
We conclude that as defined is indeed a category. It has as a full subcategory by only considering objects of the type
Where is the standard equivalence relation, that only elements of a set that are normally considered equal are considered equal.
3.11. Draw the relevant diagrams and define composition and identities for the category mentioned in Example 3.9. Do the same for the category mentioned in Example 3.10.
We define the category to have the following objects and morphisms
in ; and
Now let's look at another morphism.
To compose these two let's first put them side by side,
then remove the middle and compose and .
Here's what an identity looks like
we can compose it with the following morphism
by first putting them side by side,
and then removing the middle part and composing and to get
we have another identity
we can compose it with the one above by first putting them side by side,
and then removing the middle and composing and to get ,
and now we have shown that the identity works on both sides.
We define the category to have the following objects and morphisms
in , and
here's another morphism
to compose them we first put them side by side,
then compose and to get and remove the middle.
Here's an identity,
we can compose it with the following morphism
by first putting the two side by side,
then removing the middle and composing and to get .
As you can see we get the original morphism, so the right-sided identy works. Our left-sided identity would be
we can compose it with the previous morphism by first putting them side by side,
and then removing the middle and composing and to get .
Clearly this is the original morphism, so the left-sided identity works as well.