solution

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

Solution 2.5

Exercise 2.5

Monotonicity (a) fails: and , but . (On it would work.)

Sources: 7 Sketches, Exercise 2.5 and Solution A.2.

Solution 2.8

Exercise 2.8

Yes. Condition (a) says , a tautology; (b) and (c) are the monoid equations; (d) is commutativity.

Sources: 7 Sketches, Exercise 2.8 and Solution A.2.

Solution 2.20

proof — Exercise 2.20

  1. Reflexivity gives , , ; transitivity chains the inequalities into .
  2. No wires cross in the diagram, so symmetry is never invoked.

Sources: 7 Sketches, Exercise 2.20 and Solution A.2.

Solution 2.21

Exercise 2.21

(a) If and are reactions then is one. (b) Adding no material changes nothing. (c) Combining three collections is independent of bracketing. (d) Combining with is the same as with . So it is a Symmetric Monoidal Preorder.

Sources: 7 Sketches, Exercise 2.21 and Solution A.2.

Solution 2.29

Exercise 2.29

The unit must be (). The remaining conditions hold by checking all cases; with , , is . See Bool (Monoidal Preorder) — this second structure is not closed.

Sources: 7 Sketches, Exercise 2.29 and Solution A.2.

Solution 2.31

Exercise 2.31

The unit is . Multiplication of naturals is monotone (), associative, unital, and commutative.

Sources: 7 Sketches, Exercise 2.31 and Solution A.2.

Solution 2.33

Exercise 2.33

No: monotonicity fails. and , but .

Sources: 7 Sketches, Exercise 2.33 and Solution A.2.

Solution 2.34

Exercise 2.34

  1. takes the smaller element:
nomaybeyes
nononono
maybenomaybemaybe
yesnomaybeyes
  1. (a) ; (b) ; (c), (d) associativity and commutativity of — all by checking cases. So is a Symmetric Monoidal Preorder. -categories are interpreted in 7S Exercise 2.61.

Sources: 7 Sketches, Exercise 2.34 and Solution A.2.

Solution 2.35

Exercise 2.35

Yes: is monotone with respect to , , and is associative and commutative. It is in fact a Quantale (7S Exercise 2.94).

Sources: 7 Sketches, Exercise 2.35 and Solution A.2.

Solution 2.36

Exercise 2.36

Take unit (” is a natural number”) and product : true iff both are. Alternatively unit (” is made of cheese”) and product . Both give symmetric monoidal preorders (compare modal operators in Example 1.123).

Sources: 7 Sketches, Exercise 2.36 and Solution A.2.

Solution 2.39

proof — Exercise 2.39

Unitality and associativity are equations not involving the order, so they transfer. Symmetry asks : in this means and , which in read and — the same two facts.

Sources: 7 Sketches, Exercise 2.39 and Solution A.2.

Solution 2.40

Exercise 2.40

with the usual increasing order; unit ; product . See Cost.

Sources: 7 Sketches, Exercise 2.40 and Solution A.2.

Solution 2.43

Exercise 2.43

Monotone: and . (a): . (b): in all four cases (, , ). All are equalities, so is strict.

Sources: 7 Sketches, Exercise 2.43 and Solution A.2.

Solution 2.44

Exercise 2.44

Yes to everything: both are strict monoidal monotones . asks “is ?”: is , and a sum is iff both summands are. asks “is finite?”: is finite, and a sum is finite iff both summands are. They give two different changes of base from metric spaces to preorders (7S Exercise 2.68).

Sources: 7 Sketches, Exercise 2.44 and Solution A.2.

Solution 2.45

Exercise 2.45

  1. Yes (7S Exercise 2.31). 2. Yes: for all (in fact it is the unique one: forces … and with monotonicity pins everything to ). 3. No: is not monotone on , e.g. but .

Sources: 7 Sketches, Exercise 2.45 and Solution A.2.

Solution 2.50

proof — Exercise 2.50

  1. From build with iff ; the preorder recovered has iff iff — the original.
  2. From a -category build the preorder iff , then the -category with iff iff . So .

Sources: 7 Sketches, Exercise 2.50 and Solution A.2.

Solution 2.52

Exercise 2.52

: from San Diego to anywhere in Spain is farther than from anywhere in Spain to New York. See Hausdorff Distance, Metric Space.

Sources: 7 Sketches, Exercise 2.52 and Solution A.2.

Solution 2.55

Exercise 2.55

The latter forbids infinite distances: a “finite-distance Lawvere metric space”.

Sources: 7 Sketches, Exercise 2.55 and Solution A.2.

Solution 2.58

Exercise 2.58

ABCD
A06311
B2055
C5308
D11960

E.g. via ; .

Sources: 7 Sketches, Exercise 2.58 and Solution A.2.

Solution 2.60

Exercise 2.60

(rows/columns ). Its powers give (7S Exercise 2.105).

Sources: 7 Sketches, Exercise 2.60 and Solution A.2.

Solution 2.61

Exercise 2.61

A set of points with, for each pair , a value — whether it is possible to get from to — such that and : it is at least as possible to go directly as via .

Sources: 7 Sketches, Exercise 2.61 and Solution A.2.

Solution 2.62

Exercise 2.62

  1. , , , , (say).
  2. E.g. : paths (intersection ) and (); union . Diagonal entries are . Taking the union over all paths guarantees : it is a presented -category.
  3. Yes, the interpretation looks right.

Sources: 7 Sketches, Exercise 2.62 and Solution A.2.

Solution 2.63

Exercise 2.63

Graph , , , , gives

Diagonals equal the unit and , so it is a -category. Interpretation: weight limits for trucking cargo — the hom-object is the maximum cargo weight allowed from to ; staying put has no limit; the limit is at least of the limits via (a “bottleneck” or max-min path problem).

Sources: 7 Sketches, Exercise 2.63 and Solution A.2.

Solution 2.67

Exercise 2.67

, and Spain is only related to itself: the “is a part of” relation, since iff iff every point of is (at distance from) a point of .

Sources: 7 Sketches, Exercise 2.67 and Solution A.2.

Solution 2.68

Exercise 2.68

  1. from 7S Exercise 2.44.
  2. Two points with : is the Discrete Preorder on , while is the Codiscrete Preorder ().

Sources: 7 Sketches, Exercise 2.68 and Solution A.2.

Solution 2.73

proof — Exercise 2.73

  1. Dagger: the identity is a -functor , so for all , hence by symmetry of the quantifier — property (c). Skeletal: and imply ; given (c) this is property (b). So skeletal dagger -categories are exactly extended metric spaces.
  2. By 7S Exercise 1.73, skeletal dagger -categories (preorders) are sets. So in both cases “skeletal dagger” turns the enriched notion into the classical one.

Sources: 7 Sketches, Exercise 2.73 and Solution A.2.

Solution 2.75

proof — Exercise 2.75

  1. .
  2. by monotonicity.
  3. Symmetry is used to swap .

Sources: 7 Sketches, Exercise 2.75 and Solution A.2.

Solution 2.78

Exercise 2.78

— the Manhattan distance, not . See Product of Enriched Categories.

Sources: 7 Sketches, Exercise 2.78 and Solution A.2.

Solution 2.82

proof — Exercise 2.82

  1. If then by monotonicity (a) with .
  2. Put in (2.80): the right side holds by reflexivity, so .
  3. If then , so by (2.80) .
  4. (2.80) is exactly the Galois Connection condition for , and 1, 3 supply the required monotonicity.

Sources: 7 Sketches, Exercise 2.82 and Solution A.2.

Solution 2.84

proof — Exercise 2.84

Define by: , . Then iff : if both sides are always true; if both sides say .

Sources: 7 Sketches, Exercise 2.84 and Solution A.2.

Solution 2.92

Exercise 2.92

1a. , the least element. 1b. : because Cost uses the reversed order , is the least element — so the "" of Definition 2.90 is here; beware. 2a. OR. 2b. , the greatest number both under the usual order.

Sources: 7 Sketches, Exercise 2.92 and Solution A.2.

Solution 2.93

Exercise 2.93

It is closed (7S Exercise 2.84) and has all joins, given by OR (7S Exercise 1.7, Example 1.88; the empty join is ).

Sources: 7 Sketches, Exercise 2.93 and Solution A.2.

Solution 2.94

proof — Exercise 2.94

Yes. Joins are unions. The hom-element is : if then ; conversely if then . (This is the Heyting algebra structure of the power set.)

Sources: 7 Sketches, Exercise 2.94 and Solution A.2.

Solution 2.103

Exercise 2.103

, , — unit on the diagonal, elsewhere.

Sources: 7 Sketches, Exercise 2.103 and Solution A.2.

Solution 2.104

proof — Exercise 2.104

First, by Proposition 2.87(b) and symmetry.

  1. .
  2. , using distributivity of over joins and associativity of .

Sources: 7 Sketches, Exercise 2.104 and Solution A.2.

Solution 2.105

Exercise 2.105

The powers stabilize at the distance matrix (Matrix Multiplication in a Quantale).

Sources: 7 Sketches, Exercise 2.105 and Solution A.2.