solution

Solutions to the exercises of Category Theory for Scientists, Chapter 3 (written for this wiki; the book has none): CTfS Chapter 3 Exercises. Index: Map of Content.

Solution 3.1.1.7

Exercise 3.1.1.7

  • b. first: a one-element set with . The empty set cannot be a monoid, since a monoid must contain its unit.
  • a. Three elements. A monoid with one element is trivial. With two elements , the only product not fixed by the unit laws is , and any choice is commutative. With three elements, take where for (“the last one wins”). This is associative, since whenever the last factor is not , and (Monoid).

Sources: CTfS, Exercise 3.1.1.7; see Map of Content, Monoid.

Solution 3.1.1.13

Exercise 3.1.1.13

  • a. ; a list is determined by its length and concatenation adds lengths, so it is .
  • b. , the trivial monoid (Free Monoid).

Sources: CTfS, Exercise 3.1.1.13; see Free Monoid, Map of Content.

Solution 3.1.1.18

Exercise 3.1.1.18

With size 3, the relations are and , applied inside longer words (the congruence generated).

: .

: .

See Presentation of a Monoid.

Sources: CTfS, Exercise 3.1.1.18; see Map of Content, Presentation of a Monoid.

Solution 3.1.1.23

Exercise 3.1.1.23

Names: the symbol , and pairs with , .

  • names , where all powers are distinct.
  • names . It has elements , a “tail” of length running into a cycle of length (the shape of the letter ρ).

Every cyclic monoid is named. If the powers are distinct, the monoid is . Otherwise let be least such that for some , and let be the least such . Then iff or ( and ), so the monoid is .

Names are distinct. The cycle is the smallest ideal of , i.e. the smallest nonempty subset closed under multiplication by arbitrary elements. Being defined without reference to the generator, it is an isomorphism invariant. So is the size of the smallest ideal and is the size of the monoid, and both are recovered from the isomorphism class. is the only infinite one.

The hint fails because both and vary: and with both have two elements but are not isomorphic. See Presentation of a Monoid.

Sources: CTfS, Exercise 3.1.1.23; see Map of Content, Presentation of a Monoid.

Solution 3.1.2.4

Exercise 3.1.2.4

  • a. Take . The coequalizer identifies with , giving with .
  • b. The map coequalizes the pair: . So it factors uniquely through as a map with .
  • c. , and . Uniqueness in the universal property makes these equations hold on the nose. So acts on (Monoid Action, Coequalizer).

Sources: CTfS, Exercise 3.1.2.4; see Map of Content, Monoid Action.

Solution 3.1.2.13

Exercise 3.1.2.13

Read words left to right: and . The action law then reads , “first , then “. This is a right action; CTfS’s recursion from the other end gives the mirror-image convention, see Finite State Machine.

  • a. The unit law holds by definition. For the action law, induct on the length of . For both sides are . For , both sides unfold to and , which agree by the induction hypothesis.
  • b. , so . Conversely, for an action , and agree on the empty word (unit law) and on one-letter words. By the action law both are determined by their values on letters, so an induction on word length shows they agree everywhere. This is the universal property of the Free Monoid, composed with Currying.

Sources: CTfS, Exercise 3.1.2.13; see Finite State Machine, Map of Content.

Solution 3.1.4.7

Exercise 3.1.4.7

  • : for any , e.g. the inclusion.
  • : for any , , e.g. .
  • : (or ).
  • : only the trivial homomorphism . For any and , , so the natural number is divisible by every power of 2, hence .
  • : fails, since for . In fact only the trivial homomorphism exists: with both terms forces .

(The does give an isomorphism — you just need negative numbers.) See Monoid.

Sources: CTfS, Exercise 3.1.4.7; see Map of Content, Monoid.

Solution 3.1.4.15

Exercise 3.1.4.15

The action table of Example 3.1.3.1 is and . The generator acts as the word :

state (= )
State 0State 1
State 1State 2
State 2State 0

Reading left to right: , , . Reading right to left gives the same table. acts as the -th power, a cyclic rotation (Finite State Machine, Monoid Action).

Sources: CTfS, Exercise 3.1.4.15; see Finite State Machine, Map of Content.

Solution 3.2.1.8

Exercise 3.2.1.8

Exactly the for , including the trivial group . If the tail is positive, has no inverse: never returns to . is not a group either. The infinite cyclic group is not a cyclic monoid: as a monoid it needs two generators (Presentation of a Monoid, Group).

Sources: CTfS, Exercise 3.2.1.8; see Map of Content, Presentation of a Monoid.

Solution 3.2.1.14

Exercise 3.2.1.14

  • a. The orbit of is the horizontal circle of radius at height centred on the axis. Points on the -axis are fixed, so their orbits are single points. The orbit set is in bijection with the half-plane via .
  • b. A single orbit : any element can be moved to any other (the action is transitive). See Group Action.

Sources: CTfS, Exercise 3.2.1.14; see Group Action, Map of Content.

Solution 3.2.1.15

Exercise 3.2.1.15

Yes. Write iff for some . It is reflexive because . It is symmetric: if then (this uses inverses). It is transitive: if and then . The classes are the orbits, which therefore partition . For a mere monoid action, “reachable from” is only a preorder (Group Action, Equivalence Relation).

Sources: CTfS, Exercise 3.2.1.15; see Equivalence Relation, Group Action, Map of Content.

Solution 3.3.2.4

Exercise 3.3.2.4

In general no. Concatenation is only defined when the target of is the source of . And there is no single identity: the trivial path at a vertex is a unit only for paths starting or ending at . With two or more vertices there are several “identities”. Composition is partial and the identities are indexed by vertices, which is exactly the structure of a category — the Free Category on . When has one vertex, the paths do form a monoid: the free monoid on the arrows.

Sources: CTfS, Exercise 3.3.2.4; see Free Category, Map of Content.

Solution 3.3.3.5

Exercise 3.3.3.5

  • a. Lengths are preserved: a path goes to .
  • b. Yes. Two paths with the same image have the same length and the same image arrow by arrow, so by injectivity of they are equal. For length-0 paths use injectivity of .
  • c. No. Let have two separate arrows and , and let be , with sending . Then is surjective on vertices and arrows, but the path of length 2 is not the image of any path in . See Graph Homomorphism, Path in a Graph.

Sources: CTfS, Exercise 3.3.3.5; see Graph Homomorphism, Map of Content.

Solution 3.3.3.6

Exercise 3.3.3.6

Yes. Two maps into a product are equal iff their composites with both projections are equal. And while , and likewise for and . So the single square commutes iff both squares do (Graph Homomorphism, Product).

Sources: CTfS, Exercise 3.3.3.6; see Graph Homomorphism, Map of Content.

Solution 3.3.3.9

Exercise 3.3.3.9

is the closed diagonal band between the lines and . It contains the diagonal, so it is reflexive, and it is symmetric about the diagonal. It is not transitive: and lie in the band but does not. Approximate equality is a tolerance relation, not an Equivalence Relation (Relation).

Sources: CTfS, Exercise 3.3.3.9; see Map of Content, Relation.

Solution 3.4.1.8

Exercise 3.4.1.8

  • a. Four. Every preorder contains ; the other pairs are optional: the discrete order (nothing else), , , and the indiscrete order (both).
  • b. : a linear order is a ranking of the elements.
  • c. Yes: the empty set has exactly one (empty) linear order, and (Preorder, Total Order).

Sources: CTfS, Exercise 3.4.1.8; see Map of Content, Preorder.

Solution 3.4.1.12

Exercise 3.4.1.12

False as stated: every single element is a clique (a set of mutually related elements), so no nonempty preorder has “no cliques”. The nearby true statement: a partial order is a preorder in which every clique has at most one element. Antisymmetry says exactly that forces (Partial Order).

Sources: CTfS, Exercise 3.4.1.12; see Map of Content, Partial Order.

Solution 3.4.1.14

Exercise 3.4.1.14

The reflexive–transitive closure: iff or is a descendant of (child, grandchild, …). Read the other way, is or an ancestor of (Reflexive Transitive Closure, Preorder). It is in fact a partial order, since nobody is their own ancestor.

Sources: CTfS, Exercise 3.4.1.14; see Map of Content, Preorder.

Solution 3.4.4.3

Exercise 3.4.4.3

Order the taxa (species, genera, families, …) by “is a kind of”.

  • a. No. The meet of two taxa would be the most general taxon that is a kind of both. Distinct species (or, say, a cat and a dog) have no common subkind, and taxa at the same level are disjoint.
  • b. Essentially yes, provided there is a top element such as “life”. The join of two taxa is their most specific common ancestor taxon, e.g. the join of Homo sapiens and Pan troglodytes is the tribe Hominini.
  • c. The meet is a common refinement and the join is the least common generalization. See Join, Meet, Tree of Life.

Sources: CTfS, Exercise 3.4.4.3; see Join, Map of Content.

Solution 3.4.4.7

Exercise 3.4.4.7

  • a. As posed, carries no order. The nearby preorder is , or with inclusion. One can also preorder people by iff needs to know everything needs to know.
  • b. : needing to know more pieces is a stronger condition. is antitone.
  • c. Yes: , and likewise for arbitrary families, so meets are intersections.
  • d. Joins exist, since is closed under arbitrary intersections and contains . But they are not unions. The join of and is , where is the set of pieces of information that everyone in needs to know. It contains the union and is generally bigger, a closure operation from a Galois Connection. See Join, Meet, Galois Connection.

Sources: CTfS, Exercise 3.4.4.7; see Join, Map of Content.

Solution 3.4.4.11

Exercise 3.4.4.11

  • a. Yes: if then the temperatures recorded in are among those recorded in , so . is monotone.
  • b. Joins are preserved. The join of two intervals is the smallest interval containing both, and is exactly the hull of : its low is the lower of the two lows and its high the higher of the two highs. Meets are not preserved. always, but the inclusion can be strict: if ranges over and over , the overlap may only see . See Join, Monotone Map.

Sources: CTfS, Exercise 3.4.4.11; see Join, Map of Content.

Solution 3.5.2.12

Exercise 3.5.2.12

Yes: (equivalently for all ). Check it: every element reaches the fixed point or the 2-cycle within two steps, and applying twice more returns the same place, e.g. , so . No shorter PED holds. fails at (, ). fails at . fails at . fails at . So the classes are : four equivalence classes (Discrete Dynamical System, Presentation of a Monoid: the cyclic monoid ).

Sources: CTfS, Exercise 3.5.2.12; see Discrete Dynamical System, Map of Content.

Solution 3.5.2.13

Exercise 3.5.2.13

  • a. Yes: the set of positions (with side to move) and the function “position ↦ position after ‘s move” form a set with an endomorphism, i.e. an instance on . Here plays both sides.
  • b. Terminal positions (checkmate, stalemate) have no legal move. To keep the function total, let send them to themselves, so game-ending positions are fixed points. Draws by repetition or by the fifty-move rule depend on the history, not just on the position. To model them the state must include the relevant history, such as a move counter and previous positions. Then these rules also become “absorbing” states (Discrete Dynamical System).

Sources: CTfS, Exercise 3.5.2.13; see Discrete Dynamical System, Map of Content.

Solution 3.5.2.18

Exercise 3.5.2.18

: a father’s first child’s father is that father (). No PED holds for : a child’s father’s first child is that child only if the child is the firstborn. So is a section of (Section and Retraction). The presented category has five morphisms , the last an idempotent on (Database Schema, Presentation of a Category).

Sources: CTfS, Exercise 3.5.2.18; see Database Schema, Map of Content.

Solution 3.5.3.2

Exercise 3.5.3.2

  • a. , seven emails.
  • b. .
  • c. Em1206 ↦ Bob, Em1207 ↦ Carl, Em1208 ↦ Sue, Em1209 ↦ Chris, Em1210 ↦ Chris, Em1211 ↦ Julia, Em1212 ↦ Martha.
  • d. The PED is as paths from “a self-email” to “a person”. It holds: SEm1207 ↦ Carl both ways, SEm1210 ↦ Chris, SEm1211 ↦ Julia. The self-email table is in fact the Equalizer of sender and recipient (C-Set, Database Schema).

Sources: CTfS, Exercise 3.5.3.2; see C-Set, Map of Content.

Solution 3.5.3.5

Exercise 3.5.3.5

In a group action every element acts by a bijection, since undoes . So every column of the action table (one per generator) must be a permutation of the rows: no repeated entries, and every row ID appears. A column with a repeated entry shows that the action does not factor through a group. Conversely, all-permutation columns are only evidence: the action factors through the permutation group of the rows, but itself might not be a group (e.g. acting on a finite cycle). See Monoid Action, Group Action.

Sources: CTfS, Exercise 3.5.3.5; see Map of Content, Monoid Action.