solution

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

Solution 4.4

Exercise 4.4

  1. Six elements: at the bottom, then , , , then , on top — tasks in decreasing difficulty.
  2. E.g. on , , and on , : she can explain monoids unaided and categories with the book. Upper set: if she can do a task, she can do any easier one. See Feasibility Relation.

Sources: 7 Sketches, Exercise 4.4 and Solution A.4.

Solution 4.7

Exercise 4.7

Same as 7S Exercise 2.84: if both sides always hold; if both sides say . See Bool (Monoidal Preorder).

Sources: 7 Sketches, Exercise 4.7 and Solution A.4.

Solution 4.9

proof — Exercise 4.9

A -functor condition reads , i.e. using the opposite, the product and self-enrichment. By the hom-element adjunction (2.80) and symmetry this is .

Sources: 7 Sketches, Exercise 4.9 and Solution A.4.

Solution 4.10

Exercise 4.10

Yes: a -functor is exactly a monotone map, so the definitions line up perfectly.

Sources: 7 Sketches, Exercise 4.10 and Solution A.4.

Solution 4.12

Exercise 4.12

abcde
Ntftft
Ettttt
Wtftft
Sttttt

Sources: 7 Sketches, Exercise 4.12 and Solution A.4.

Solution 4.15

Exercise 4.15

xyz
A172020
B111414
C141717
D12915

Sources: 7 Sketches, Exercise 4.15 and Solution A.4.

Solution 4.17

Exercise 4.17

(the distance matrix of 7S Exercise 2.58), ; has columns , , , and multiplying by gives exactly the matrix of Exercise 4.15. They agree. See Matrix Multiplication in a Quantale.

Sources: 7 Sketches, Exercise 4.17 and Solution A.4.

Solution 4.18

Exercise 4.18

Valid: for all $p \in $$ — a good-natured funny movie is not feasible at any of the listed costs (at least not under a million dollars). See Co-design.

Sources: 7 Sketches, Exercise 4.18 and Solution A.4.

Solution 4.22

Exercise 4.22

All shortest paths go through the bridges (length 9) and (length 0), so :

pqrs
A22242021
B16181415
C19211718
D1113910

Alternatively by min-plus multiplication. See Category of Profunctors.

Sources: 7 Sketches, Exercise 4.22 and Solution A.4.

Solution 4.26

Exercise 4.26

Take from Eq. (2.56); draw two copies of its weighted graph side by side and connect each vertex to its copy by a bridge of length . Then . See Category of Profunctors.

Sources: 7 Sketches, Exercise 4.26 and Solution A.4.

Solution 4.30

proof — Exercise 4.30

  1. (4.28): (unitality); (monotonicity of with ); (a join bounds each term); (definition).
  2. In , is top, so and the first inequality is an equality. For the second: if equality is forced; if , then whenever monotonicity gives , so every term of the join is .
  3. (4.29): ; with monotonicity; the profunctor inequality of 7S Exercise 4.9.

Sources: 7 Sketches, Exercise 4.30 and Solution A.4.

Solution 4.32

proof — Exercise 4.32

As in 7S Exercise 2.104: , using distributivity of over (closedness) and skeletality to turn into .

Sources: 7 Sketches, Exercise 4.32 and Solution A.4.

Solution 4.36

Exercise 4.36

.

Sources: 7 Sketches, Exercise 4.36 and Solution A.4.

Solution 4.38

Exercise 4.38

, .

Sources: 7 Sketches, Exercise 4.38 and Solution A.4.

Solution 4.41

proof — Exercise 4.41

  1. and ; by skeletality, adjointness is the equality .
  2. is adjoint to itself (both sides equal ), so . See Companion and Conjoint.

Sources: 7 Sketches, Exercise 4.41 and Solution A.4.

Solution 4.44

Exercise 4.44

The union of the two weighted graphs (on ) and (on ) together with the bridges and as extra weighted edges.

Sources: 7 Sketches, Exercise 4.44 and Solution A.4.

Solution 4.48

Exercise 4.48

Constituent (i) agrees (a unit element/object). For (ii), Definition 2.2 asks for a function , Definition 4.45 for a functor; functors between preorders are monotone maps, and monotonicity of is exactly axiom (a). The natural isomorphisms (a)–(d) of Definition 4.45 become the equations/equivalences (b)–(d) of Definition 2.2 (unitality gives both unitors).

Sources: 7 Sketches, Exercise 4.48 and Solution A.4.

Solution 4.50

Exercise 4.50

  1. , . 2. , . 3. . 4. . 5. . 6. , (since , , , , ). 7. , (, , ).

Sources: 7 Sketches, Exercise 4.50 and Solution A.4.

Solution 4.52

Exercise 4.52

Yes: objects and hom-sets agree; is an element of ; composition is the composite; “the usual associative and unital laws” are the two axioms. Categories are -categories (Enriched Category).

Sources: 7 Sketches, Exercise 4.52 and Solution A.4.

Solution 4.54

Exercise 4.54

A morphism in is the condition , hence : the distance from a point to itself is zero.

Sources: 7 Sketches, Exercise 4.54 and Solution A.4.

Solution 4.62

Exercise 4.62

Unit and counit are the same equivalence relation on , pairing each in the first copy with in the second. Composing with on : element of the first copy is linked to of the second (by ) which is linked to of the third (by ), so after restricting to the outer copies we get the pairing : the identity corelation. See Compact Closed Category.

Sources: 7 Sketches, Exercise 4.62 and Solution A.4.

Solution 4.64

Exercise 4.64

is the preorder of pairs of resources with iff is available given and given . is the conjunction: can be obtained given iff can be obtained given AND given . See Category of Profunctors.

Sources: 7 Sketches, Exercise 4.64 and Solution A.4.

Solution 4.65

proof — Exercise 4.65

, , with inverse . Then : by , by composition in . Similarly , and handles .

Sources: 7 Sketches, Exercise 4.65 and Solution A.4.

Solution 4.66

proof — Exercise 4.66

The composite has value at equal to (using distributivity), which collapses to by repeatedly applying Lemma 4.27 (composing with the unit profunctor is the identity). So the composite is ; the other snake equation is analogous. See Compact Closed Category.

Sources: 7 Sketches, Exercise 4.66 and Solution A.4.