exercise

Exercises from 7 Sketches, Chapter 4. Solutions: 7S Chapter 4 Solutions. Index: Map of Content.

Exercise 4.4

Let and . 1. Draw the Hasse diagram of . 2. Give a profunctor , reading as “my aunt can explain an given ”, and interpret the fact that is an Upper Set.

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

Solution: Solution 4.4

Exercise 4.7

Show that (with and otherwise) satisfies iff .

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

Solution: Solution 4.7

Exercise 4.9

Show that a -Profunctor is the same as a function with .

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

Solution: Solution 4.9

Exercise 4.10

Is a -profunctor exactly a Feasibility Relation?

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

Solution: Solution 4.10

Exercise 4.12

Fill in the feasibility matrix of the bridge profunctor of Example 4.11.

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

Solution: Solution 4.12

Exercise 4.15

Fill in the Cost-matrix of the bridge profunctor of Example 4.13.

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

Solution: Solution 4.15

Exercise 4.17

Compute with min-plus multiplication and compare with 7S Exercise 4.15.

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

Solution: Solution 4.17

Exercise 4.18

The node has no bridge out of it. Valid? Meaning?

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

Solution: Solution 4.18

Exercise 4.22

Fill in the composite of the two Cost-profunctors shown.

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

Solution: Solution 4.22

Exercise 4.26

Draw a bridge diagram for the unit profunctor of a Cost-category .

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

Solution: Solution 4.26

Exercise 4.30

Justify the steps in Eqs. (4.28)–(4.29) of Lemma 4.27, and show they are equalities when .

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

Solution: Solution 4.30

Exercise 4.32

Prove associativity of profunctor composition (Lemma 4.31).

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

Solution: Solution 4.32

Exercise 4.36

Check that the companion of is the unit profunctor.

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

Solution: Solution 4.36

Exercise 4.38

What is the conjoint of ?

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

Solution: Solution 4.38

Exercise 4.41

For a skeletal quantale : 1. show -functors are -adjoint iff ; 2. deduce .

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

Solution: Solution 4.41

Exercise 4.44

Draw the Hasse diagram of the Collage of the Cost-profunctor of Example 4.13.

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

Solution: Solution 4.44

Exercise 4.48

Check that a Symmetric Monoidal Preorder is a Monoidal Category with at most one morphism between any two objects.

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

Solution: Solution 4.48

Exercise 4.50

In with , , , , , , if then else : compute the listed values and the composite .

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

Solution: Solution 4.50

Exercise 4.52

Does Rough Definition 4.51 with agree with the definition of Category?

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

Solution: Solution 4.52

Exercise 4.54

What are identity elements in Cost-categories?

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

Solution: Solution 4.54

Exercise 4.62

For in : draw the unit , the counit , and check a snake equation.

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

Solution: Solution 4.62

Exercise 4.64

Interpret monoidal products in in terms of feasibility.

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

Solution: Solution 4.64

Exercise 4.65

What are the isomorphisms and in ?

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

Solution: Solution 4.65

Exercise 4.66

Check the snake equations for and in .

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

Solution: Solution 4.66