Exercises from Category Theory for Scientists (CTfS), Chapter 3 (“Categories and functors, without admitting it”). 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 3 Solutions. Index: Map of Content.
Exercise 3.1.1.7
Recall the notion of commutativity for monoids.
- a. What is the smallest set that you can give the structure of a non-commutative monoid?
- b. What is the smallest set that you can give the structure of a monoid?
CTfS §3.1.1; context: Map of Content, Monoid.
Sources: CTfS, Exercise 3.1.1.7.
Solution: Solution 3.1.1.7
Exercise 3.1.1.13
Let be a one-element set.
- a. What is the free monoid generated by ?
- b. What is the free monoid generated by ?
CTfS §3.1.1; context: Free Monoid, Map of Content.
Sources: CTfS, Exercise 3.1.1.13.
Solution: Solution 3.1.1.13
Exercise 3.1.1.18
Consider the buffer of Application 3.1.1.17, but of size 3 instead of 32. Using Definition 3.1.1.14, show that with the “overwrite” relations , , and with the “discard” relations , .
CTfS §3.1.1; context: Map of Content, Presentation of a Monoid.
Sources: CTfS, Exercise 3.1.1.18.
Solution: Solution 3.1.1.18
Exercise 3.1.1.23
(Classify the cyclic monoids.) Come up with a naming system such that every cyclic monoid (one generator) gets a name, no two non-isomorphic cyclic monoids get the same name, and every name refers to a cyclic monoid. (Hint: the monoids of Example 3.1.1.22 might suggest "" — on the right track, but not correct.)
CTfS §3.1.1; context: Map of Content, Presentation of a Monoid.
Sources: CTfS, Exercise 3.1.1.23.
Solution: Solution 3.1.1.23
Exercise 3.1.2.4
- a. Realize as the coequalizer of a pair of arrows .
- b. For any , realize the map (“advance the clock by hours”) using the universal property of coequalizers.
- c. Prove that it is an action.
CTfS §3.1.2; context: Map of Content, Monoid Action.
Sources: CTfS, Exercise 3.1.2.4.
Solution: Solution 3.1.2.4
Exercise 3.1.2.13
For the functions (restrict to one-letter words) and in the other direction (extend by recursion):
- a. Show that for any , is an action.
- b. Show that and are mutually inverse.
CTfS §3.1.2; context: Finite State Machine, Map of Content.
Sources: CTfS, Exercise 3.1.2.13.
Solution: Solution 3.1.2.13
Exercise 3.1.4.7
Let , and . Can you think of nontrivial monoid homomorphisms , , , , ?
CTfS §3.1.4; context: Map of Content, Monoid.
Sources: CTfS, Exercise 3.1.4.7.
Solution: Solution 3.1.4.7
Exercise 3.1.4.15
Let be the free monoid on one generator, , , and the homomorphism with . Restrict the action of Example 3.1.3.1 along to an action of on . Write down its action table.
CTfS §3.1.4; context: Finite State Machine, Map of Content.
Sources: CTfS, Exercise 3.1.4.15.
Solution: Solution 3.1.4.15
Exercise 3.2.1.8
In Exercise 3.1.1.23 you classified the cyclic monoids. Which of them are groups?
CTfS §3.2.1; context: Map of Content, Presentation of a Monoid.
Sources: CTfS, Exercise 3.2.1.8.
Solution: Solution 3.2.1.8
Exercise 3.2.1.14
- a. Consider the action on by rotation about the -axis (Example 3.2.1.10). Describe the set of orbits.
- b. What are the orbits of the permutation group acting on ?
CTfS §3.2.1; context: Group Action, Map of Content.
Sources: CTfS, Exercise 3.2.1.14.
Solution: Solution 3.2.1.14
Exercise 3.2.1.15
Let act on . Is “being in the same orbit” an equivalence relation on ?
CTfS §3.2.1; context: Equivalence Relation, Group Action, Map of Content.
Sources: CTfS, Exercise 3.2.1.15.
Solution: Solution 3.2.1.15
Exercise 3.3.2.4
Let be a graph and its set of paths. Someone claims there is a monoid structure on with multiplication given by concatenation. Are they correct? (Hint: what should the identity element be?)
CTfS §3.3.2; context: Free Category, Map of Content.
Sources: CTfS, Exercise 3.3.2.4.
Solution: Solution 3.3.2.4
Exercise 3.3.3.5
A graph homomorphism induces .
- a. Does carry paths of length to paths of length , or can lengths change?
- b. If are injective, is injective?
- c. If are surjective, is surjective?
CTfS §3.3.3; context: Graph Homomorphism, Map of Content.
Sources: CTfS, Exercise 3.3.3.5.
Solution: Solution 3.3.3.5
Exercise 3.3.3.6
For a graph let . Is commutativity of the single square equivalent to commutativity of the two squares and ?
CTfS §3.3.3; context: Graph Homomorphism, Map of Content.
Sources: CTfS, Exercise 3.3.3.6.
Solution: Solution 3.3.3.6
Exercise 3.3.3.9
A relation on is a subset of . Choose and draw the relation ” is within of “.
CTfS §3.3.3; context: Map of Content, Relation.
Sources: CTfS, Exercise 3.3.3.9.
Solution: Solution 3.3.3.9
Exercise 3.4.1.8
- a. List all the preorder relations on .
- b. For , how many linear orders exist on ?
- c. Does your formula work for ?
CTfS §3.4.1; context: Map of Content, Preorder.
Sources: CTfS, Exercise 3.4.1.8.
Solution: Solution 3.4.1.8
Exercise 3.4.1.12
True or false: a partial order is a preorder that has no cliques. (If false, is there a “nearby” true statement?)
CTfS §3.4.1; context: Map of Content, Partial Order.
Sources: CTfS, Exercise 3.4.1.12.
Solution: Solution 3.4.1.12
Exercise 3.4.1.14
Let be the set of people and the relation with if is the child of . Describe the preorder generated by .
CTfS §3.4.1; context: Map of Content, Preorder.
Sources: CTfS, Exercise 3.4.1.14.
Solution: Solution 3.4.1.14
Exercise 3.4.4.3
- a. Would you guess that the taxonomic order of biological species has all meets?
- b. All joins?
- c. What would a meet or a join mean?
CTfS §3.4.4; context: Join, Map of Content.
Sources: CTfS, Exercise 3.4.4.3.
Solution: Solution 3.4.4.3
Exercise 3.4.4.7
Let be the set of people and the set of pieces of information known by the government. For let be the set of people who need to know every piece of information in , and let , ordered by inclusion.
- a. Is a preorder? If not, find a nearby preorder.
- b. If , do we have , , or neither?
- c. Should have all meets?
- d. Should it have all joins?
CTfS §3.4.4; context: Join, Map of Content.
Sources: CTfS, Exercise 3.4.4.7.
Solution: Solution 3.4.4.7
Exercise 3.4.4.11
Let be the set of open subsets of the earth, and assign to each region the interval of recorded temperatures (low and high) throughout . Order intervals by inclusion.
- a. Is a morphism of orders?
- b. Does it preserve meets or joins? (Hint: not both.)
CTfS §3.4.4; context: Join, Map of Content.
Sources: CTfS, Exercise 3.4.4.11.
Solution: Solution 3.4.4.11
Exercise 3.5.2.12
Is there a nontrivial PED on that holds for the data of Example 3.5.2.9? If so, what is it, and how many equivalence classes of paths in remain after imposing it?
The data (a discrete dynamical system ): , , , , , , , .
CTfS §3.5.2; context: Discrete Dynamical System, Map of Content.
Sources: CTfS, Exercise 3.5.2.12.
Solution: Solution 3.5.2.12
Exercise 3.5.2.13
Let be a chess-playing program which, given any position (including whose turn it is), makes a move.
- a. Is this an example of a discrete dynamical system?
- b. How do the rules for ending the game in a win or draw play out in this model?
CTfS §3.5.2; context: Discrete Dynamical System, Map of Content.
Sources: CTfS, Exercise 3.5.2.13.
Solution: Solution 3.5.2.13
Exercise 3.5.2.18
Consider the olog with = “a father”, = “a child”, “has as first child” and “has as father”. What path equivalence declarations would be appropriate?
CTfS §3.5.2; context: Database Schema, Map of Content.
Sources: CTfS, Exercise 3.5.2.18.
Solution: Solution 3.5.2.18
Exercise 3.5.3.2
Consider the schema with objects “a self-email”, “an email”, “a person”, arrows is: self-email → email and is sent by, is sent to: email → person, and the fact “for any self-email , the sender of equals its recipient”. An instance (3.19) has emails Em1206 (Bob → Sue), Em1207 (Carl → Carl), Em1208 (Sue → Martha), Em1209 (Chris → Bob), Em1210 (Chris → Chris), Em1211 (Julia → Julia), Em1212 (Martha → Chris); self-emails SEm1207, SEm1210, SEm1211 mapping to Em1207, Em1210, Em1211; and persons Bob, Carl, Chris, Julia, Martha, Sue.
- a. What is the set ?
- b. What is ?
- c. What is the function ?
- d. Interpret the fact as a PED. Is it satisfied by the instance?
CTfS §3.5.3; context: C-Set, Map of Content.
Sources: CTfS, Exercise 3.5.3.2.
Solution: Solution 3.5.3.2
Exercise 3.5.3.5
Suppose is a monoid and some instance of it (an action table) is written out. What evidence in the table might suggest that is a group?
CTfS §3.5.3; context: Map of Content, Monoid Action.
Sources: CTfS, Exercise 3.5.3.5.
Solution: Solution 3.5.3.5