Exercises from Category Theory for Scientists (CTfS), Chapter 2 (“The category of sets”). CTfS gives no solutions; the solutions here are the wiki’s own. This is a selection: the exercises referenced from concept notes. Solutions: CTfS Chapter 2 Solutions. Index: Map of Content.
Exercise 2.1.2.2
A simplified account of how the brain receives light: the eye contains about 100 million photoreceptor (PR) cells, each connected to a retinal ganglion (RG) cell. No PR cell connects to two different RG cells, but usually many PR cells attach to a single RG cell.
- a. Does the connection pattern constitute a function , a function , or neither?
- b. Would you guess that the connection patterns between other areas of the brain are “function-like”?
CTfS §2.1.2; context: Function, Map of Content.
Sources: CTfS, Exercise 2.1.2.2.
Solution: Solution 2.1.2.2
Exercise 2.1.2.5
Let and .
- a. How many elements does have?
- b. How many elements does have?
CTfS §2.1.2; context: Function, Map of Content.
Sources: CTfS, Exercise 2.1.2.5.
Solution: Solution 2.1.2.5
Exercise 2.1.2.10
Let and let be a set with exactly elements.
- a. How many isomorphisms are there from to itself?
- b. Does your formula from part a hold when ?
CTfS §2.1.2; context: Cardinality, Map of Content.
Sources: CTfS, Exercise 2.1.2.10.
Solution: Solution 2.1.2.10
Exercise 2.1.2.13
Find a set such that for any set there is an isomorphism of sets . (Hint: draw a picture of proposed ‘s and ‘s.)
CTfS §2.1.2; context: Global Element, Map of Content.
Sources: CTfS, Exercise 2.1.2.13.
Solution: Solution 2.1.2.13
Exercise 2.4.1.15
- a. Let be sets. Construct the “swap map” using only the universal property for products. Write in terms of the projections and the symbols , (or ).
- b. Can you prove that is an isomorphism using only the universal property for product?
CTfS §2.4.1; context: Map of Content, Product.
Sources: CTfS, Exercise 2.4.1.15.
Solution: Solution 2.4.1.15
Exercise 2.4.2.13
Understand Example 2.4.2.12 (the coproduct of “an animal that can fly” and “an animal that can swim” counts ducks twice) and see if a similar idea makes sense for particles and waves. Make an Olog, choosing your wording according to the olog rules. How do photons, which exhibit properties of both waves and particles, fit into the coproduct in your olog?
CTfS §2.4.2; context: Coproduct, Map of Content.
Sources: CTfS, Exercise 2.4.2.13.
Solution: Solution 2.4.2.13
Exercise 2.5.1.3
- a. Draw a set with five elements and a set with three elements. Colour each element of and of red, blue or yellow in a “random-looking” way. Regarding the colourings as functions and with , draw the fiber product , coloured appropriately.
- b. The universal property for products gives a function , which is an injection. Draw the grid and indicate this subset.
CTfS §2.5.1; context: Map of Content, Pullback.
Sources: CTfS, Exercise 2.5.1.3.
Solution: Solution 2.5.1.3
Exercise 2.5.1.5
Given and :
- a. Suppose ; what can you say about ?
- b. Suppose instead is any set but has exactly one element; what can you say about ?
CTfS §2.5.1; context: Finite Limits in Set, Map of Content.
Sources: CTfS, Exercise 2.5.1.5.
Solution: Solution 2.5.1.5
Exercise 2.5.1.6
Let (space), (time), with the origin of the centre of mass of MIT at its founding. Let with projections , , and let with , both picking the origin.
- a. What are the fiber products (along ) and (along )?
- b. Interpret these sets in terms of the centre of mass of MIT at its founding.
CTfS §2.5.1; context: Finite Limits in Set, Map of Content.
Sources: CTfS, Exercise 2.5.1.6.
Solution: Solution 2.5.1.6
Exercise 2.5.1.10
For each of the following, an author proposes that the square is a pullback. Is the label on the upper-left box reasonable given the rest of the olog, or suspect?
- a. “a person” “a colour” “blue”; proposed pullback: “a person whose favourite colour is blue”.
- b. “a dog” “a person” “a woman”; proposed pullback: “a dog whose owner is a woman”.
- c. “a space in our house” “a width” “a piece of furniture”; proposed pullback: “a good fit”.
CTfS §2.5.1; context: Map of Content, Pullback.
Sources: CTfS, Exercise 2.5.1.10.
Solution: Solution 2.5.1.10
Exercise 2.5.3.3
Come up with an olog that uses equalizers in a reasonably interesting way. Alternatively, use an equalizer to specify those published authors who have published exactly one paper. (Hint: find a function from authors to papers; then find another.)
CTfS §2.5.3; context: Equalizer, Map of Content.
Sources: CTfS, Exercise 2.5.3.3.
Solution: Solution 2.5.3.3
Exercise 2.6.1.3
Let be the set of people, and let if spends a lot of time thinking about . Is (a) reflexive, (b) symmetric, (c) transitive?
CTfS §2.6.1; context: Equivalence Relation, Map of Content.
Sources: CTfS, Exercise 2.6.1.3.
Solution: Solution 2.6.1.3
Exercise 2.6.1.5
Let be a function and define . Is an equivalence relation?
- a. Are all equivalence relations on obtainable in this way (as the fibers of some function with domain )?
- b. Does this viewpoint relate to that of Example 2.6.1.4 (partitions)?
CTfS §2.6.1; context: Equivalence Relation, Map of Content.
Sources: CTfS, Exercise 2.6.1.5.
Solution: Solution 2.6.1.5
Exercise 2.6.1.10
Let be a network (graph) with node set , and let be the relation “there is an edge connecting and ”.
- a. What is the equivalence relation generated by ?
- b. What is the quotient ?
CTfS §2.6.1; context: Equivalence Relation, Map of Content.
Sources: CTfS, Exercise 2.6.1.10.
Solution: Solution 2.6.1.10
Exercise 2.6.2.6
Let , , . Define by and let be the unique map. Describe the pushout .
CTfS §2.6.2; context: Finite Colimits in Set, Map of Content.
Sources: CTfS, Exercise 2.6.2.6.
Solution: Solution 2.6.2.6
Exercise 2.6.2.7
Let be an equivalence relation, with maps .
- a. What is the pushout of ?
- b. If is not assumed to be an equivalence relation, we can still form this pushout. How does it relate to the equivalence relation generated by ?
CTfS §2.6.2; context: Equivalence Relation, Map of Content, Pushout.
Sources: CTfS, Exercise 2.6.2.7.
Solution: Solution 2.6.2.7
Exercise 2.6.3.2
Let . What is the coequalizer of the two maps given by and ?
CTfS §2.6.3; context: Finite Colimits in Set, Map of Content.
Sources: CTfS, Exercise 2.6.3.2.
Solution: Solution 2.6.3.2
Exercise 2.7.1.2
Create an olog that includes sets and functions and such that but , i.e. is a retract section but not an isomorphism.
CTfS §2.7.1; context: Map of Content, Section and Retraction.
Sources: CTfS, Exercise 2.7.1.2.
Solution: Solution 2.7.1.2
Exercise 2.7.2.2
For a finite set let be its cardinality. If are finite (possibly empty), is it always true that ?
CTfS §2.7.2; context: Arithmetic of Sets, Map of Content.
Sources: CTfS, Exercise 2.7.2.2.
Solution: Solution 2.7.2.2
Exercise 2.7.2.5
We have . Applying the inverse of the currying bijection gives a function .
- a. Describe on elements.
- b. Why might one be tempted to denote this function ?
CTfS §2.7.2; context: Currying, Map of Content.
Sources: CTfS, Exercise 2.7.2.5.
Solution: Solution 2.7.2.5
Exercise 2.7.2.6
was introduced as an abbreviation for , but also as (functions ). Use Exercise 2.1.2.13, Proposition 2.7.2.3 (currying), Exercise 2.4.2.10 (maps out of a coproduct) and to prove .
CTfS §2.7.2; context: Arithmetic of Sets, Currying, Map of Content.
Sources: CTfS, Exercise 2.7.2.6.
Solution: Solution 2.7.2.6
Exercise 2.7.3.2
Proposition 2.7.3.1 claims both and for every set , which conflict for . What is the correct answer for , based on the definitions of , and ?
CTfS §2.7.3; context: Arithmetic of Sets, Cardinality, Map of Content.
Sources: CTfS, Exercise 2.7.3.2.
Solution: Solution 2.7.3.2
Exercise 2.7.3.3
For natural numbers, implies or . Is the analogous statement true for sets?
CTfS §2.7.3; context: Arithmetic of Sets, Map of Content.
Sources: CTfS, Exercise 2.7.3.3.
Solution: Solution 2.7.3.3
Exercise 2.7.4.7
The 2-simplex is drawn as a filled-in triangle with vertices . There is a simplicial complex , drawn as an empty triangle with the same vertices. What is , i.e. what are ?
CTfS §2.7.4; context: Map of Content, Simplicial Complex.
Sources: CTfS, Exercise 2.7.4.7.
Solution: Solution 2.7.4.7
Exercise 2.7.4.12
Let be the characteristic function of , and let be its complement.
- a. What is the characteristic function of ?
- b. Can you phrase it in terms of some function ?
CTfS §2.7.4; context: Booleans, Map of Content.
Sources: CTfS, Exercise 2.7.4.12.
Solution: Solution 2.7.4.12
Exercise 2.7.5.6
Show, in analogy to Proposition 2.7.5.5 (pullbacks preserve monomorphisms), that pushouts preserve epimorphisms.
CTfS §2.7.5; context: Epimorphism, Map of Content.
Sources: CTfS, Exercise 2.7.5.6.
Solution: Solution 2.7.5.6
Exercise 2.7.6.4
A pseudo-multiset is like a multiset except that need not be surjective. Write down a pseudo-multiset that is not a multiset.
- a. Describe the difference between the two notions in terms of multiplicities.
- b. Which do you think is more useful: multisets or pseudo-multisets?
CTfS §2.7.6; context: Map of Content, Multiset.
Sources: CTfS, Exercise 2.7.6.4.
Solution: Solution 2.7.6.4
Exercise 2.7.6.5
Consider the multisets and of Exercise 2.7.6.2.
- a. Write each of them in the form .
- b. What are the mappings (pairs with )?
- c. If we remove the requirement that the square commutes, how many mappings are there?
CTfS §2.7.6; context: Map of Content, Multiset.
Sources: CTfS, Exercise 2.7.6.5.
Solution: Solution 2.7.6.5
Exercise 2.7.6.8
Given relative sets , , over and mappings , (functions with , ), is there a reasonable notion of composition giving a mapping ?
CTfS §2.7.6; context: Map of Content, Multiset.
Sources: CTfS, Exercise 2.7.6.8.
Solution: Solution 2.7.6.8
Exercise 2.7.6.9
- a. Let be a one-element set. What is the difference between sets over and simply sets?
- b. Describe the sets relative to . How many are there?
CTfS §2.7.6; context: Map of Content, Multiset.
Sources: CTfS, Exercise 2.7.6.9.
Solution: Solution 2.7.6.9
Exercise 2.7.6.14
There is a strong relationship between -indexed sets and relative sets over . What is it?
CTfS §2.7.6; context: Dependent Type, Indexed Set, Map of Content.
Sources: CTfS, Exercise 2.7.6.14.
Solution: Solution 2.7.6.14