solution

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

Solution 1.1

Exercise 1.1

  • Order: preserves order; does not ( but ).
  • Metric: preserves the metric; does not ( but ).
  • Addition: preserves addition; does not ().

The moral: “asking which aspects of one wants to preserve under the observation becomes the question what category are you working in?”

Sources: 7 Sketches, Exercise 1.1 and Solution A.1.

Solution 1.4

Exercise 1.4

Take the transitive closure of the union of connections: and give , and the second system adds nothing to the bottom row, so the join is .

Sources: 7 Sketches, Exercise 1.4 and Solution A.1.

Solution 1.6

Exercise 1.6

  1. : two elements, one arrow.
  2. The 15 partitions of in four rows: bottom ; then the six with one pair ; then the seven with a triple or two pairs ; top . Choose , .
  3. .
  4. Yes.
  5. .
  6. Yes: and .

Sources: 7 Sketches, Exercise 1.6 and Solution A.1.

Solution 1.7

Exercise 1.7

, , , — the join in is OR.

Sources: 7 Sketches, Exercise 1.7 and Solution A.1.

Solution 1.10

Exercise 1.10

  1. True. 2. False: but . 3. True: no integer lies strictly between and .

Sources: 7 Sketches, Exercise 1.10 and Solution A.1.

Solution 1.11

Exercise 1.11

  1. .
  2. E.g. .
  3. .
  4. (tagged by which set they come from).
  5. .

Sources: 7 Sketches, Exercise 1.11 and Solution A.1.

Solution 1.16

proof — Exercise 1.16

  1. If then ; by the partition axiom distinct labels have disjoint parts, so .
  2. Pick (parts are nonempty). Since there is with , and by assumption for some . Then , so and .

Hence “same partition up to relabeling” is a well-defined notion.

Sources: 7 Sketches, Exercise 1.16 and Solution A.1.

Solution 1.17

Exercise 1.17

.

Sources: 7 Sketches, Exercise 1.17 and Solution A.1.

Solution 1.20

proof — Exercise 1.20

  1. Connected subsets are nonempty by definition.
  2. Suppose . For , connectedness gives , and closedness of gives ; symmetrically . So , contradicting .
  3. For let . is closed (if and then by transitivity/symmetry), connected (if then ), and contains (reflexivity). So lies in some part.

Sources: 7 Sketches, Exercise 1.20 and Solution A.1.

Solution 1.24

Exercise 1.24

  1. The unique function . 2. The unique function . 3–4. The second and third relations are not functions (the second is not deterministic — one element related to two — and neither is total). The first is a function that is neither injective nor surjective; the fourth is a Bijection.

Sources: 7 Sketches, Exercise 1.24 and Solution A.1.

Solution 1.25

proof — Exercise 1.25

By Definition 1.22, is a subset such that for every there is a unique with . There are no , so there can be no : . (Categorically: is initial and strict in — any map into it is an isomorphism.)

Sources: 7 Sketches, Exercise 1.25 and Solution A.1.

Solution 1.27

Exercise 1.27

partitionsurjection onto
,
, ,
, ,
, ,
, everything

Sources: 7 Sketches, Exercise 1.27 and Solution A.1.

Solution 1.38

Exercise 1.38

, , , , .

Sources: 7 Sketches, Exercise 1.38 and Solution A.1.

Solution 1.40

Exercise 1.40

with iff there is a path : . The parallel arrows and the loop are “useless” from a preorder point of view but do no harm.

Sources: 7 Sketches, Exercise 1.40 and Solution A.1.

Solution 1.41

Exercise 1.41

Yes: it is the Hasse diagram of the discrete order iff (a graph with no arrows).

Sources: 7 Sketches, Exercise 1.41 and Solution A.1.

Solution 1.42

Exercise 1.42

Writing , , , , : the five reflexive pairs ; ; .

Sources: 7 Sketches, Exercise 1.42 and Solution A.1.

Solution 1.44

Exercise 1.44

Almost: every element is comparable with itself. A discrete preorder is one where and are comparable iff .

Sources: 7 Sketches, Exercise 1.44 and Solution A.1.

Solution 1.46

Exercise 1.46

No: e.g. and , so and are incomparable.

Sources: 7 Sketches, Exercise 1.46 and Solution A.1.

Solution 1.48

Exercise 1.48

Yes: for all , either or . See Real Numbers.

Sources: 7 Sketches, Exercise 1.48 and Solution A.1.

Solution 1.51

Exercise 1.51

: a single point. : . : a square .

?f1gf1;2g?f1gf2g??f1gf1;2g?f1gf2g?

Sources: 7 Sketches, Exercise 1.51 and Solution A.1.

Solution 1.53

Exercise 1.53

Coarsest: the unique map . Finest: the identity . See Preorder of Partitions.

Sources: 7 Sketches, Exercise 1.53 and Solution A.1.

Solution 1.55

proof — Exercise 1.55

Every subset is an upper set: if , the only with is itself, which is in . So contains all subsets and is ordered by inclusion, i.e. .

Sources: 7 Sketches, Exercise 1.55 and Solution A.1.

Solution 1.57

Exercise 1.57

The product has six elements: at the bottom; above it; above ; above (diagram in Product Preorder).

Upper sets (14 of them, ordered by inclusion): ; , ; , , ; , , ; , ; ; and all six elements.

Sources: 7 Sketches, Exercise 1.57 and Solution A.1.

Solution 1.63

Exercise 1.63

is the cube in Power Set; the chain is ; sends , singletons , pairs , — each level of the cube to the corresponding element of the chain. It is a Monotone Map.

Sources: 7 Sketches, Exercise 1.63 and Solution A.1.

Solution 1.65

Exercise 1.65

maps into the square by inclusion, missing only . See Upper Set, Booleans.

Sources: 7 Sketches, Exercise 1.65 and Solution A.1.

Solution 1.66

proof — Exercise 1.66

See Yoneda Lemma for Preorders for the proofs. For 4: , , ; in , , and sends the bottom element of to the top element of .

Sources: 7 Sketches, Exercise 1.66 and Solution A.1.

Solution 1.67

proof — Exercise 1.67

If then (discreteness), so , and hence by reflexivity.

Sources: 7 Sketches, Exercise 1.67 and Solution A.1.

Solution 1.69

Exercise 1.69

Let , , sending negatives to , zero to , positives to . With and : and .

Sources: 7 Sketches, Exercise 1.69 and Solution A.1.

Solution 1.71

proof — Exercise 1.71

  1. , so implies .
  2. , which is monotonicity of . See Category of Preorders.

Sources: 7 Sketches, Exercise 1.71 and Solution A.1.

Solution 1.73

proof — Exercise 1.73

Skeletal: and imply . Dagger: implies . Hence implies , which is the definition of discrete. So such a preorder “can be identified with” its underlying set.

Sources: 7 Sketches, Exercise 1.73 and Solution A.1.

Solution 1.77

proof — Exercise 1.77

Let be partitions, i.e. is finer: implies . If then , hence , so . Thus . It nonetheless has a Generative Effect.

Sources: 7 Sketches, Exercise 1.77 and Solution A.1.

Solution 1.79

proof — Exercise 1.79

Let classify , i.e. iff . Then iff iff , so classifies . This is the preorder version of preimage as precomposition (Kittenlab Lecture 14).

Sources: 7 Sketches, Exercise 1.79 and Solution A.1.

Solution 1.80

proof — Exercise 1.80

  1. for all .
  2. Suppose is a lower bound with . Pick with ; then , contradicting that is a lower bound. So every lower bound is .

Sources: 7 Sketches, Exercise 1.80 and Solution A.1.

Solution 1.85

proof — Exercise 1.85

  1. for the only ; and if then : so is a Meet. Any other meet satisfies and , so .
  2. In a partial order implies .
  3. Yes; replace by and “meet” by “join” throughout.

Sources: 7 Sketches, Exercise 1.85 and Solution A.1.

Solution 1.90

Exercise 1.90

and : the meet is the greatest common divisor, the join the least common multiple.

Sources: 7 Sketches, Exercise 1.90 and Solution A.1.

Solution 1.94

proof — Exercise 1.94

Since and , monotonicity gives and . So is an upper bound of , and the join is the least one: .

Sources: 7 Sketches, Exercise 1.94 and Solution A.1.

Solution 1.98

proof — Exercise 1.98

The right adjoint is ; we must show iff . If then . If then , and since is an integer below it is below the greatest such, .

Sources: 7 Sketches, Exercise 1.98 and Solution A.1.

Solution 1.99

Exercise 1.99

  1. , . Checking all nine pairs, iff holds (for both sides fail; otherwise both hold), so .
  2. Here but , so is not left adjoint to . In pictures of total orders, adjoint pairs are exactly those whose bent arrows do not cross (Remark 1.100).

Sources: 7 Sketches, Exercise 1.99 and Solution A.1.

Solution 1.101

proof — Exercise 1.101

Suppose . Then iff . Take , : , so ; similarly for every , so . But then , a contradiction. So there is no left adjoint. (Equivalently: does not preserve meets — ; see Adjoint Functor Theorem for Preorders.)

Sources: 7 Sketches, Exercise 1.101 and Solution A.1.

Solution 1.103

Exercise 1.103

; ; ; ; ; . In general merge into and take the transitive closure.

Sources: 7 Sketches, Exercise 1.103 and Solution A.1.

Solution 1.105

Exercise 1.105

iff ; since , elements are always identified: , , , , .

Sources: 7 Sketches, Exercise 1.105 and Solution A.1.

Solution 1.106

Exercise 1.106

Take ; then . Let (coarser) and (not coarser). Then and . Indeed , but since while in — consistent with the Galois Connection formula .

Sources: 7 Sketches, Exercise 1.106 and Solution A.1.

Solution 1.109

proof — Exercise 1.109

  1. Apply the definition with to the reflexivity fact : .
  2. If , apply : . If , apply : .

Sources: 7 Sketches, Exercise 1.109 and Solution A.1.

Solution 1.110

proof — Exercise 1.110

  1. Using with and monotonicity of applied to : . Symmetrically .
  2. Yes, by the dual argument. (Categorically: adjoints are unique up to unique Natural Isomorphism.)

Sources: 7 Sketches, Exercise 1.110 and Solution A.1.

Solution 1.112

proof — Exercise 1.112

Let , with join . Monotonicity gives for all , so is an upper bound of . If is another upper bound, for all , so by adjunction for all , hence , hence . So .

Sources: 7 Sketches, Exercise 1.112 and Solution A.1.

Solution 1.114

Exercise 1.114

11yesyes
12nono
14yesyes
21nono
22yesyes
24yesyes
3.91nono
3.92nono
3.94yesyes
41nono
42nono
44yesyes

All agree, so ; yet does not preserve joins (Right Adjoints Preserve Meets but not joins).

Sources: 7 Sketches, Exercise 1.114 and Solution A.1.

Solution 1.118

Exercise 1.118

, , “projects down” (, ). 1. , . 2. , . 3. , .

Sources: 7 Sketches, Exercise 1.118 and Solution A.1.

Solution 1.119

proof — Exercise 1.119

  1. This is the unit inequality of Proposition 1.107.
  2. : apply (1) to . : the counit gives ; apply the monotone to get .

Sources: 7 Sketches, Exercise 1.119 and Solution A.1.

Solution 1.124

Exercise 1.124

is the Power Set of a four-element set: a 4-dimensional cube with 16 vertices, from at the bottom to the total relation at the top.

Sources: 7 Sketches, Exercise 1.124 and Solution A.1.

Solution 1.125

Exercise 1.125

  1. Take : .
  2. , .
  3. .
  4. . This illustrates the adjunction of Reflexive Transitive Closure.

Sources: 7 Sketches, Exercise 1.125 and Solution A.1.