Let \(\mathcal{V}\xrightarrow{f}\mathcal{W}\) be a monoidal monotone map. Given a \(\mathcal{V}\) category, called \(\mathcal{C}\), one can construct an associated \(\mathcal{W}\) category, let’s call it \(\mathcal{C}_f\)
Take the same objects: \(Ob(\mathcal{C}_f):=Ob(\mathcal{C})\)
\(\mathcal{C}_f(a,b) := f(\mathcal{C}(a,b))\)
Check this obeys the definition of an enriched category:
Condition on the monoidal unit:
\(I_W \leq f(I_V)\) — from the first condition of a monoidal monotone map.
\(\forall c \in Ob(\mathcal{C}): I_V \leq \mathcal{C}(c,c)\) — first condition of an enriched category, which \(\mathcal{C}\) is
\(\forall c \in Ob(\mathcal{C}):f(I_V) \leq f(\mathcal{C}(c,c))\) — monotone map property
\(\forall c \in Ob(\mathcal{C}):f(I_V) \leq \mathcal{C}_f(c,c)\) — definition of \(\mathcal{C}_f\)
\(\forall c \in Ob(C_f): I_W \leq C_f(c,c)\) — transitivity, using 1 and 4, noting \(Ob(\mathcal{C})=Ob(\mathcal{C}_f)\)
Condition on monoidal product:
\(\mathcal{C}_f(c,d) \otimes_W \mathcal{C}_f(d,e) = f(\mathcal{C}(c,d)) \otimes_W f(\mathcal{C}(d,e))\) — definition of \(\mathcal{C}_f\)
\(f(\mathcal{C}(c,d)) \otimes_W f(\mathcal{C}(d,e)) \leq f(\mathcal{C}(c,d) \otimes_V \mathcal{C}(d,e))\) — second condition of a monoidal monotone map
\(\mathcal{C}(c,d) \otimes_V \mathcal{C}(d,e) \leq \mathcal{C}(c,e)\) — Second condition of an enriched category
\(f(\mathcal{C}(c,d) \otimes_V \mathcal{C}(d,e)) \leq f(\mathcal{C}(c,e)\) — monotone map property
\(f(\mathcal{C}(c,d) \otimes_V \mathcal{C}(d,e)) \leq \mathcal{C}_f(c,e)\) — definition of \(\mathcal{C}_f\)
\(\mathcal{C}_f(c,d) \otimes_W \mathcal{C}_f(d,e) \leq \mathcal{C}_f(c,e)\) — transitivity, 1,2 and 5
Consider the function \([0,\infty] \xrightarrow{f} \mathbb{B}\) which maps 0 to true and otherwise to false.
Can check that f is monotonic and preserves the monoidal product+unit, so it is a monoidal monotone. (this was shown in Exercise 2.44)
Thus we have a tool to convert metric spaces into preorders.
Recall the “regions of the world” Hausdorff metric space We learned that a metric space can be converted into a preorder by a particular monoidal monotone map. How would you interpret the resulting preorder?
Find a different monoidal monotone map \(\mathbf{Cost}\xrightarrow{g}\mathbf{Bool}\) from the one in Example 2.65. Using the construction from Proposition 2.64, convert a Lawvere metric space into two different preorders. Find a metric space for which this happens.NOCARD
Take the two monoidal monotone maps from Exercise 2.44
f yields a discrete preorder whereas g does not.
A \(\mathcal{V}\) functor \(\mathcal{X}\xrightarrow{F}\mathcal{Y}\) between two \(\mathcal{V}\) categories
A function \(Ob(\mathcal{X})\xrightarrow{F}Ob(\mathcal{Y})\) subject to the constraint:
\(\forall x_1,x_2 \in Ob(\mathcal{X}): \mathcal{X}(x_1,x_2) \leq \mathcal{Y}(F(x_1),F(x_2))\)
Monotone maps, considering the source and target preorders as Bool-categories, are in fact Bool-functors.
The monotone map constraint, that \(x_1\ \leq_X\ x_2 \implies F(x_1)\leq_Y F(x_2)\), translates to the enriched category functor constraint, that \(\mathcal{X}(x_1,x_2) \leq \mathcal{Y}(F(x_1),F(x_2))\).
A Cost-functor is also known as a Lipschitz function.
Therefore a Lipschitz function is one under which the distance between any pair of points does not increase.
The concepts of opposite/dagger/skeleton extend from preorders to \(\mathcal{V}\) categories.
Recall an extended metric space \((X,d)\) is a Lawvere metric space with two extra properties.
Show that a skeletal dagger Cost-category is an extended metric space
The skeletal dagger cost category has a set of objects, \(Ob(\mathcal{X})\) which we can call points.
For any pair of points, we assign a hom-object in \([0,\infty]\) (we can call this a distance function).
Skeletal property enforces the constraint \(d(x,y)=0 \iff x=y\).
The second enriched category property enforces the triangle inequality.
Because we have a dagger category, our distance function is forced to be symmetric.
Just like the information of a preorder is discarded (to yield a set) when we only consider skeletal dagger preorders, information must be discarded from Cost-categories to yield a Lawvere metric space.
The \(\mathcal{V}\) product of two \(\mathcal{V}\) categories, \(\mathcal{X} \times \mathcal{Y}\)
This is also a \(\mathcal{V}\) category with:
\(Ob(\mathcal{X}\times\mathcal{Y}) := Ob(\mathcal{X})\times Ob(\mathcal{Y})\)
\((\mathcal{X} \times \mathcal{Y})((x,y),(x',y')) := \mathcal{X}(x,x') \otimes \mathcal{Y}(y,y')\)
Let \(\mathcal{X}\) and \(\mathcal{Y}\) be the Lawvere metric spaces (i.e. Costcategories) defined by the following weighted graphs.
The product can be represented by the following graph:
The distance between any two points \((x,y),(x',y')\) is given by the sum \(d_X(x,x)+d_Y(y,y)\).
We can also consider the Cost-categories as matrices
\(\mathcal{X}\) | A | B | C |
---|---|---|---|
A | 0 | 2 | 5 |
B | \(\infty\) | 0 | 3 |
C | \(\infty\) | \(\infty\) | 0 |
\(\mathcal{Y}\) | P | Q |
---|---|---|
P | 0 | 5 |
Q | 8 | 0 |
\(\mathcal{X}\times\mathcal{Y}\) | (A,P) | (B,P) | (C,P) | (A,Q) | (B,Q) | (C,Q) |
---|---|---|---|---|---|---|
(A,P) | 0 | 2 | 5 | 5 | 7 | 10 |
(B,P) | \(\infty\) | 0 | 3 | \(\infty\) | 5 | 8 |
(C,P) | \(\infty\) | \(\infty\) | 0 | \(\infty\) | \(\infty\) | 5 |
(A,Q) | 8 | 10 | 13 | 0 | 2 | 5 |
(B,Q) | \(\infty\) | 8 | 11 | \(\infty\) | 0 | 3 |
(C,Q) | \(\infty\) | \(\infty\) | 8 | \(\infty\) | \(\infty\) | 0 |
Can view this as a 2x2 grid of 3x3 blocks: each is a \(\mathcal{X}\) matrix shifted by \(\mathcal{Y}\).
Let \(\mathcal{X} \times \mathcal{Y}\) be the \(\mathcal{V}\)-product of two \(\mathcal{V}\) categories.
Check that for every object we have \(I \leq (\mathcal{X} \times \mathcal{Y})((x,y),(x,y))\)
Check that for every three objects we have:
\((\mathcal{X} \times \mathcal{Y})((x_1,y_1),(x_2,y_2)) \otimes (\mathcal{X} \times \mathcal{Y})((x_2,y_2),(x_3,y_3)) \leq (\mathcal{X} \times \mathcal{Y})((x_1,y_1),(x_3,y_3))\)
By axioms of \(\mathcal{V}\) categories: \(I \leq \mathcal{X}(x,x')=xx\) and \(I \leq \mathcal{Y}(y,y')=yy\)
By monotonicity: \(I \leq xx \land I \leq yy\) implies \(I = I \otimes I \leq xx \otimes yy\).
By the definition of a product category this last term can be written as \((\mathcal{X} \times \mathcal{Y})((x,y),(x,y))\)
By axioms of \(\mathcal{V}\) categories: \(\mathcal{X}(x_1,x_2) \otimes \mathcal{X}(x_2,x_3) \leq \mathcal{X}(x_1,x_3)\) and \(\mathcal{Y}(y_1,y_2) \otimes \mathcal{Y}(y_2,y_3) \leq \mathcal{Y}(y_1,y_3)\)
Therefore, by monotonicity, we have \((\mathcal{X}(x_1,x_2) \otimes \mathcal{X}(x_2,x_3)) \otimes (\mathcal{Y}(y_1,y_2) \otimes \mathcal{Y}(y_2,y_3)) \leq \mathcal{X}(x_1,x_3) \otimes \mathcal{Y}(y_1,y_3)\)
Desugaring the definiton of the hom-object in \(\mathcal{X}\times\mathcal{Y}\), the property we need to show is that \((\mathcal{X}(x_1,x_2) \otimes\mathcal{Y}(y_1,y_2)) \otimes (\mathcal{X}(x_2,x_3) \otimes\mathcal{Y}(y_2,y_3)) \leq (\mathcal{X}(x_1,x_3) \otimes\mathcal{Y}(y_1,y_3))\)
Given the associativity and commutitivity of the \(\otimes\) operator, we can rearange the order and ignore parentheses for the four terms on the LHS. Do this to yield the desired expression.
Consider \(\mathbb{R}\) as a Lawvere metric space, i.e. as a Cost-category.
Form the Cost-product \(\mathbb{R}\times\mathbb{R}\).
What is the distance from \((5,6)\) to \((-1,4)\)?
The distance is the Manhattan/\(L_1\) distance: \(|5-(-1)| + |6-4| = 8\)