solution

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

Solution 4.1.1.8

Exercise 4.1.1.8

A monotone map is a non-decreasing sequence in , i.e. a multiset of size from values.

  • a. (any point).
  • b. ( is terminal).
  • c. .
  • d. (pairs ).
  • e. by “stars and bars”.

See Simplex Category, Monotone Map.

Sources: CTfS, Exercise 4.1.1.8; see Map of Content, Monotone Map, Simplex Category.

Solution 4.1.2.29

Exercise 4.1.2.29

Itineraries. A morphism from city to city is a finite sequence of connecting flights (each landing where the next departs), composition is concatenation of trips, and the identity at is “stay at “. Different itineraries between the same cities are different morphisms, since no equations are imposed (Free Category, Path in a Graph). Real itineraries also need compatible times; modelling that requires a richer graph, e.g. with (city, time) vertices.

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

Solution 4.2.1.10

Exercise 4.2.1.10

  • a. The symmetric group of permutations, elements.
  • b. All functions under composition, elements.
  • c. No. is a proper submonoid (24 of 256) of ; non-bijective endomorphisms such as constant maps have no inverse (Endomorphism Monoid).

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

Solution 4.2.1.11

Exercise 4.2.1.11

Since there is at most one arrow between any ordered pair of vertices, an automorphism is determined by its vertex permutation. That permutation must preserve adjacency in the 4-cycle . These are the symmetries of a square: 4 rotations (e.g. ) and 4 reflections (e.g. swap fixing ). So the automorphism group is the dihedral group of order 8 (Endomorphism Monoid, Group Action).

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

Solution 4.2.1.13

Exercise 4.2.1.13

In a preorder, iff and (the unique arrows compose to identities automatically). Antisymmetry says this forces . So a preorder is a partial order iff the only isomorphisms in are identities, i.e. is a skeletal category (Partial Order, Skeleton).

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

Solution 4.2.1.22

Exercise 4.2.1.22

Test: a graph admits a symmetric structure iff for all vertices the number of arrows equals the number . Loops can be fixed by .

  • (b) No. In (3.3), has no reverse, nor do . The part with the loop would be symmetric on its own.
  • (e) Yes, with .
  • (f) Yes: .
  • (a), (c), (d): apply the same count to the pictures. Any arrow without a partner in the opposite direction rules symmetry out.

Note that symmetry is structure, not just a property. A graph with two loops at a vertex admits several (swap them, or fix both). See Symmetric Graph.

Sources: CTfS, Exercise 4.2.1.22; see Map of Content, Symmetric Graph.

Solution 4.2.1.23

Exercise 4.2.1.23

The hom-sets of are , , , and .

  • a. is free on the two arrows, so a functor is an object assignment plus two parallel morphisms. : . : . : . : . Total .
  • b. Yes: , , the inclusion.
  • c. is the underlying graph: the same vertices and arrows, where every arrow appears together with its reverse, but is forgotten. The graph no longer “knows” which arrows are reverses of each other (Symmetric Graph, Data Migration Functor: this is ).

Sources: CTfS, Exercise 4.2.1.23; see Map of Content, Symmetric Graph.

Solution 4.2.2.3

Exercise 4.2.2.3

Five. Paths alternate and . Every occurrence of reduces to , so the normal forms are , , , and (“a child’s father’s first child”). The last is an idempotent on : . Longer paths reduce to these (Presentation of a Category, Categories and Schemas are Equivalent).

Sources: CTfS, Exercise 4.2.2.3; see Map of Content, Presentation of a Category.

Solution 4.2.3.12

Exercise 4.2.3.12

The set of paths from to up to homotopy (continuous deformation keeping the endpoints fixed): the “essentially different ways” of getting from to on the donut’s surface. It is a torsor for , recording how many times the path winds around each of the two circles. Choosing one path identifies (Groupoid).

Sources: CTfS, Exercise 4.2.3.12; see Groupoid, Map of Content.

Solution 4.2.4.4

Exercise 4.2.4.4

  • a. Not covariantly. If , a law respected by everyone in is respected by everyone in , so . We get maps , i.e. a functor (a presheaf), not . (There is no natural map in general.)
  • b. Yes. Order propositions by implication. If , then , so the conjunction over the larger set implies the conjunction over : . Hence gives , a covariant functor . See Contravariant Functor, Presheaf.

Sources: CTfS, Exercise 4.2.4.4; see Contravariant Functor, Map of Content.

Solution 4.3.1.10

Exercise 4.3.1.10

  • a. and b. Take every component equal to : . The naturality square for reads , which holds trivially. In fact every natural transformation has this form, and embeds into (Constant Functor, Natural Transformation).

Sources: CTfS, Exercise 4.3.1.10; see Constant Functor, Map of Content.

Solution 4.3.1.11

Exercise 4.3.1.11

  • a. and b. , whose component at a graph is its source function . Naturality for a graph homomorphism is , exactly the defining condition of a graph homomorphism.
  • c. Yes, by the other half of the definition: . In fact, by the Yoneda Lemma these are the only two natural transformations . and are represented by the one-arrow graph and the one-vertex graph, and there are exactly two maps from the one-vertex graph to the one-arrow graph (Natural Transformation, Representable Functor).

Sources: CTfS, Exercise 4.3.1.11; see Map of Content, Natural Transformation.

Solution 4.3.2.13

Exercise 4.3.2.13

Renamings of states. A natural isomorphism is a bijection between the state sets that commutes with every input letter, . So is with its states relabelled, and the transition tables are the same up to the relabelling. Nothing observable about the machine’s behaviour changes (Finite State Machine, Natural Transformation).

Sources: CTfS, Exercise 4.3.2.13; see Finite State Machine, Map of Content, Natural Transformation.

Solution 4.3.3.3

Exercise 4.3.3.3

Take , the discrete schema with one object per and no arrows. An instance assigns a set to each , i.e. an -indexed set. A natural transformation is a family of functions , with no naturality conditions because there are no non-identity arrows. That is exactly a mapping of -indexed sets, so the notions align (Indexed Set, C-Set, Discrete Category).

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

Solution 4.3.3.6

Exercise 4.3.3.6

  • a. : a graph homomorphism out of is determined by where the arrow goes (its endpoints are then forced), and has 3 arrows.
  • b. , the arrows .
  • c. naturally in . is the representable graph on the “arrow” object, and this is the Yoneda Lemma. Likewise maps from the one-vertex graph pick out vertices (C-Set).

Sources: CTfS, Exercise 4.3.3.6; see C-Set, Map of Content, Representable Functor.

Solution 4.3.4.5

Exercise 4.3.4.5

Choose for each (with ). Define by and . It is a functor: . Let be the inclusion. Then , and with components is a natural isomorphism, since naturality is by definition. So and form an equivalence, and is a Skeleton of (Category of Finite Sets, Equivalence of Categories).

Sources: CTfS, Exercise 4.3.4.5; see Category of Finite Sets, Map of Content.

Solution 4.3.4.13

Exercise 4.3.4.13

  • a. Not full: cannot map onto .
  • b. Faithful: each hom-set of has at most one element, so each map on hom-sets is injective (Full and Faithful Functor).

Sources: CTfS, Exercise 4.3.4.13; see Full and Faithful Functor, Map of Content.

Solution 4.3.4.14

Exercise 4.3.4.14

  • a. and b. Yes, vacuously: there are no pairs of objects in to check.
  • c. Only if is empty. An equivalence is essentially surjective, and no object of a nonempty is isomorphic to an object in the image. This shows that “fully faithful” alone does not give an equivalence (Full and Faithful Functor, Equivalence of Categories).

Sources: CTfS, Exercise 4.3.4.14; see Full and Faithful Functor, Map of Content.

Solution 4.3.4.16

Exercise 4.3.4.16

No. The unique functor sends both morphisms to , so it is full but not faithful. Hence , although both have one object (Full and Faithful Functor).

Sources: CTfS, Exercise 4.3.4.16; see Full and Faithful Functor, Map of Content.

Solution 4.4.1.5

Exercise 4.4.1.5

  • a. . Choose where goes and a path for , then where goes and a path for . The paths from are , , , ; from they are , ; from only .

  • (): then is any of the 4 paths from . That gives 4.

  • (): then or . That gives 2.

  • ( or ): then . That gives 2.

  • b. . is a preorder, so a morphism is determined by the images of with . The pairs are , and is forced to the unique path .

See Categories and Schemas are Equivalent.

Sources: CTfS, Exercise 4.4.1.5; see Categories and Schemas are Equivalent, Map of Content.

Solution 4.4.1.6

Exercise 4.4.1.6

  • a. No. presents the monoid with , which has two morphisms, while presents the terminal category with one.
  • b. Yes, : its PED is , so it presents the terminal category, and the schema morphisms (empty path) and back are mutually inverse up to path equivalence. For , has morphisms (Categories and Schemas are Equivalent).

Sources: CTfS, Exercise 4.4.1.6; see Categories and Schemas are Equivalent, Map of Content.

Solution 4.4.1.7

Exercise 4.4.1.7

A schema morphism sends to a path , taken up to path equivalence in , where iff or . So . It must send the PED to a PED: in . This holds iff or .

  • a. , : or , i.e. , giving .
  • b. , : or , i.e. , giving .

Check against the hint: , gives , which is 8 ✓. See Categories and Schemas are Equivalent.

Sources: CTfS, Exercise 4.4.1.7; see Categories and Schemas are Equivalent, Map of Content, Start Here.

Solution 4.5.1.4

Exercise 4.5.1.4

In the product order both coordinates must be related.

  • : true ( and ).
  • : false ().
  • : true (, and since ).
  • : false ().

See Divisibility Order, Product Preorder.

Sources: CTfS, Exercise 4.5.1.4; see Divisibility Order, Map of Content.

Solution 4.5.1.15

Exercise 4.5.1.15

  • a. , e.g. .
  • b. is the unique map with and (Product).

Sources: CTfS, Exercise 4.5.1.15; see Map of Content, Product.

Solution 4.5.2.5

Exercise 4.5.2.5

  • a. No. The chain is indexed by the linear order , with infinitely many objects and at most one arrow between any two. The loop is indexed by the monoid (the schema ), with one object and arrows .
  • c. The coincidence is that both diagrams send every generating arrow to the same and every object to . There is a functor (all objects ↦ the one object, ↦ ), and the chain diagram factors through it. Their limits and colimits differ: the colimit of the chain is a sequential colimit (“where the iteration of ends up”), while the colimit of the loop is the coequalizer of and , the orbit set. See Diagram.

Sources: CTfS, Exercise 4.5.2.5; see Diagram, Map of Content.

Solution 4.5.2.9

Exercise 4.5.2.9

Each cone adds a new initial object below everything. (a point), , , and : the linear order with all composites, i.e. 4 objects and non-identity arrows. The newest cone point is the bottom (Cone Category, Simplex Category).

Sources: CTfS, Exercise 4.5.2.9; see Cone Category, Map of Content, Simplex Category.

Solution 4.5.2.10

Exercise 4.5.2.10

has objects and arrows , and (unique), with the forced equations . This is the shape of an equalizer cone: a diagram of this shape is an object with a map to that equalizes and . It is (4.18) plus the path equation, so limits of graphs are equalizers, i.e. sets of loops (Cone Category, Equalizer).

Sources: CTfS, Exercise 4.5.2.10; see Cone Category, Map of Content.

Solution 4.5.3.12

Exercise 4.5.3.12

Neither. The only object would be initial iff had exactly one element, but is infinite. The same argument applies to terminal objects. A one-object category has an initial or terminal object only if it is the trivial monoid (Initial Object, Terminal Object).

Sources: CTfS, Exercise 4.5.3.12; see Map of Content, Terminal Object.

Solution 4.5.3.13

Exercise 4.5.3.13

If , every object is both initial and terminal: from any to any there is exactly one morphism. If there are none. That all objects are initial reflects that they are all uniquely isomorphic, and (Codiscrete Category).

Sources: CTfS, Exercise 4.5.3.13; see Codiscrete Category, Map of Content.

Solution 4.5.3.19

Exercise 4.5.3.19

  • a. See Exercise 4.5.2.10: with .
  • b. A cone is a set with and such that . For the graph of Example 3.3.1.2 (, , , , ), take with both points mapped to the loop and to .
  • c. The limit is the set of loops of , here : the Equalizer of and . The colimit is the set of connected components (Cone Category, Limit).

Sources: CTfS, Exercise 4.5.3.19; see Cone Category, Map of Content.

Solution 4.6.2.5

Exercise 4.6.2.5

Its objects are the states (pairs ). A morphism is a word with , and composition is concatenation. It is generated by the arrows and , which are exactly the arrows drawn in Figure 3.1. So is the category presented by the state diagram, with the equations that hold in the action. The projection forgets the states and remembers the letters (Category of Elements, Finite State Machine).

Sources: CTfS, Exercise 4.6.2.5; see Category of Elements, Finite State Machine, Map of Content.

Solution 4.6.4.3

Exercise 4.6.4.3

Its objects are triples , i.e. the morphisms . A morphism consists of identity morphisms in making the square commute, which forces . So is the discrete category on the hom-set (Comma Category, Discrete Category).

Sources: CTfS, Exercise 4.6.4.3; see Comma Category, Map of Content.