solution

Solutions to the exercises of 7 Sketches, Chapter 3: 7S Chapter 3 Exercises. Index: Map of Content.

Solution 3.3

Exercise 3.3

Five and five; not a coincidence — in a Database Schema there is exactly one arrow per non-ID column.

Sources: 7 Sketches, Exercise 3.3 and Solution A.3.

Solution 3.9

proof — Exercise 3.9

Define a path as with , ; source , target (or if ); concatenation appends the arrow lists. Concatenating with a length-0 path returns the same tuple, and both bracketings of a triple concatenation give . See Free Category.

Sources: 7 Sketches, Exercise 3.9 and Solution A.3.

Solution 3.10

Exercise 3.10

Morphisms (identities), . Composites exist only when target meets source: , , , , , , and identities compose with themselves; the identities sit on the diagonal.

Sources: 7 Sketches, Exercise 3.10 and Solution A.3.

Solution 3.12

Exercise 3.12

: one object, one (identity) morphism — the Terminal Object of . : empty. has morphisms (triangle numbers): paths of length .

Sources: 7 Sketches, Exercise 3.12 and Solution A.3.

Solution 3.15

Exercise 3.15

Addition: a path of length followed by one of length has length . So ; see Free Category, Monoid.

Sources: 7 Sketches, Exercise 3.15 and Solution A.3.

Solution 3.16

Exercise 3.16

. Parallel: and (both ). Non-parallel: and any other. See Presentation of a Category.

Sources: 7 Sketches, Exercise 3.16 and Solution A.3.

Solution 3.17

Exercise 3.17

— nine, since .

Sources: 7 Sketches, Exercise 3.17 and Solution A.3.

Solution 3.19

Exercise 3.19

Four: , , , ; the equation collapses all longer paths.

Sources: 7 Sketches, Exercise 3.19 and Solution A.3.

Solution 3.21

Exercise 3.21

: . : ( where is the identity path). : . : no equations — there are no parallel paths. A Hasse Diagram presents a preorder by equating all parallel paths.

Sources: 7 Sketches, Exercise 3.21 and Solution A.3.

Solution 3.22

Exercise 3.22

: one object with its identity, since there are morphisms from the object to itself.

Sources: 7 Sketches, Exercise 3.22 and Solution A.3.

Solution 3.25

Exercise 3.25

Functions are pairs : — a grid, (the Exponential Object).

Sources: 7 Sketches, Exercise 3.25 and Solution A.3.

Solution 3.30

Exercise 3.30

, , . There are isomorphisms; in general between two -element sets. See Isomorphism.

Sources: 7 Sketches, Exercise 3.30 and Solution A.3.

Solution 3.31

proof — Exercise 3.31

Take : in both orders, so it is its own inverse.

Sources: 7 Sketches, Exercise 3.31 and Solution A.3.

Solution 3.32

Exercise 3.32

is not: has no inverse, since . is: is its own inverse; it is .

Sources: 7 Sketches, Exercise 3.32 and Solution A.3.

Solution 3.33

proof — Exercise 3.33

Yes. Lengths add under composition and identities are the length-0 paths; if then and have length 0.

Sources: 7 Sketches, Exercise 3.33 and Solution A.3.

Solution 3.37

Exercise 3.37

A functor is determined by the images of , which must satisfy in : six choices in total, so the remaining three are , , — with sent to the unique path. See Functor, Walking Arrow.

Sources: 7 Sketches, Exercise 3.37 and Solution A.3.

Solution 3.39

Exercise 3.39

, , , , , , , , , — which is also , so the last is not an outlier. See Presentation of a Category.

Sources: 7 Sketches, Exercise 3.39 and Solution A.3.

Solution 3.40

Exercise 3.40

, , , . Functors are not in general determined by their action on objects.

Sources: 7 Sketches, Exercise 3.40 and Solution A.3.

Solution 3.43

proof — Exercise 3.43

  1. fixing every object and morphism preserves identities and composites trivially.
  2. For , , and .
  3. Unitality and associativity hold because they hold for the underlying functions on objects and hom-sets: . See Category of Categories.

Sources: 7 Sketches, Exercise 3.43 and Solution A.3.

Solution 3.45

Exercise 3.45

, ; the only composite in is , which is preserved. So sets are instances on the schema .

Sources: 7 Sketches, Exercise 3.45 and Solution A.3.

Solution 3.48

Exercise 3.48

  1. A set with an involution: everyone picks a partner (possibly themselves) and swaps — a “do-si-do”; e.g. pixels of a photo with the mirror-image map.
  2. A secret-Santa party: the people, the gifts, the giver and the receiver of each gift, the gifts given to oneself with the inclusion. See C-Set.

Sources: 7 Sketches, Exercise 3.48 and Solution A.3.

Solution 3.55

proof — Exercise 3.55

  1. “For each object , compose the -components”: . Naturality: the outer rectangle of two pasted naturality squares commutes. “Most beginners think of a natural transformation via its squares, but the main thing is its components; the squares are a check that comes later.”
  2. ; its naturality square commutes trivially, and .

Sources: 7 Sketches, Exercise 3.55 and Solution A.3.

Solution 3.58

Exercise 3.58

  1. True: each component lives in a hom-set of with at most one element.
  2. False: , with , , : both and are natural transformations. See Natural Transformation.

Sources: 7 Sketches, Exercise 3.58 and Solution A.3.

Solution 3.62

Exercise 3.62

Vertex table: Employee, Department, string. Arrow table (source, target): Mngr (Employee, Employee), WorksIn (Employee, Department), Secr (Department, Employee), FName (Employee, string), DName (Department, string). See Category of Graphs.

Sources: 7 Sketches, Exercise 3.62 and Solution A.3.

Solution 3.64

Exercise 3.64

; , , . Check: , and both paths from through target end at ; similarly for .

Sources: 7 Sketches, Exercise 3.64 and Solution A.3.

Solution 3.67

Exercise 3.67

Arrow table: arrow has source and target : — the graph of Eq. (3.66) with all arrows reversed. See Discrete Dynamical System, Data Migration Functor.

Sources: 7 Sketches, Exercise 3.67 and Solution A.3.

Solution 3.73

Exercise 3.73

  1. — functorial. 2. for — functorial since . 3. is , “the function that adds three”.

Sources: 7 Sketches, Exercise 3.73 and Solution A.3.

Solution 3.76

Exercise 3.76

Every object goes to the unique object and every morphism to . Hence is the Terminal Object of ; migration along gives single-set summaries.

Sources: 7 Sketches, Exercise 3.76 and Solution A.3.

Solution 3.78

Exercise 3.78

Vertices Bob, Doug, Emmy, Grace, Pat, Sue; arrows , , , , , (a loop). Two connected components — the two values of ; one loop — the single element of (Data Migration Functor).

Sources: 7 Sketches, Exercise 3.78 and Solution A.3.

Solution 3.81

proof — Exercise 3.81

In a preorder there is at most one morphism between two objects, so “a unique morphism for every ” reduces to “a morphism for every ”, i.e. for all .

Sources: 7 Sketches, Exercise 3.81 and Solution A.3.

Solution 3.82

Exercise 3.82

, by 7S Exercise 3.76: exactly one functor for every .

Sources: 7 Sketches, Exercise 3.82 and Solution A.3.

Solution 3.83

Exercise 3.83

The Discrete Category on two objects ( of two vertices, no arrows): there are no morphisms from one object to the other. Another: has no top element.

Sources: 7 Sketches, Exercise 3.83 and Solution A.3.

Solution 3.88

proof — Exercise 3.88

A product is with , such that any with , has ; uniqueness of the mediating map and commutativity of the triangles are automatic in a preorder. This is exactly the definition of the meet.

Sources: 7 Sketches, Exercise 3.88 and Solution A.3.

Solution 3.90

Exercise 3.90

  1. . 2. Composition is componentwise, and each component is associative. 3. Two objects and one non-identity morphism: it is (isomorphic to) ; in general . 4. The category of the Product Preorder .

Sources: 7 Sketches, Exercise 3.90 and Solution A.3.

Solution 3.91

proof — Exercise 3.91

An object of is an object with maps to and (a Span); a morphism is a map making the two triangles commute. The product’s universal property says exactly that every such has a unique morphism to in : terminality.

Sources: 7 Sketches, Exercise 3.91 and Solution A.3.

Solution 3.97

Exercise 3.97

For two vertices with , and no arrows, the formula gives with the projections. See Finite Limits in Set.

Sources: 7 Sketches, Exercise 3.97 and Solution A.3.

Solution 3.98

Exercise 3.98

One vertex, no arrows: . Directly: a cone is a set with a map , and the terminal one is .

Sources: 7 Sketches, Exercise 3.98 and Solution A.3.

Solution 3.101

Exercise 3.101

on objects; a morphism in is in , so set in . It preserves identities and composites. See Opposite Category.

Sources: 7 Sketches, Exercise 3.101 and Solution A.3.