Skip to the Main Content

Note:These pages make extensive use of the latest XHTML and CSS Standards. They ought to look great in any standards-compliant modern browser. Unfortunately, they will probably look horrible in older browsers, like Netscape 4.x and IE 4.x. Moreover, many posts use MathML, which is, currently only supported in Mozilla. My best suggestion (and you will thank me when surfing an ever-increasing number of sites on the web which have been crafted to use the new standards) is to upgrade to the latest version of your browser. If that's not possible, consider moving to the Standards-compliant and open-source Mozilla browser.

May 3, 2023

Metric Spaces as Enriched Categories II

Posted by Simon Willerton

In the previous post I set the scene a little for enriched category theory by implying that by working ‘over’ the category of sets is a bit like working ‘over’ the integers in algebra and sometimes it is more appropriate to have a different base category just as it is sometimes more appropriate to have a different base ring. Below, we’ll see with the case of metric spaces that changing the base category can seemingly change the flavour quite a lot.

An example which I was using for illustration in the last post was that whilst, on the one hand, you can encapsulate the group actions of a group GG via the functor category [G,𝒮et][{\mathbf{\mathcal{B}}} G, \mathbf{\mathcal{S}et}] where G{\mathbf{\mathcal{B}}} G is the one object category with GG as its set of morphisms, on the other hand, you cannot in ordinary category theory encapsulate the category of representations of AA, an algebra over the complex numbers, as a category of functors into the category of vector spaces as you might hope. Indeed in ordinary category theory you can’t really see the structure of a vector space lurking in the one-object category A{\mathbf{\mathcal{B}}} A.

In this post I’ll explain what an enriched category is and how enriched category theory can, for example, allow a natural expression for a representatation category as a functor category. I’ll go on to show, following Lawvere’s insight, how metric spaces and much metric space theory can be seen to live within the realm of enriched category theory.

I’ll finish with an afterword on my experiences and thoughts on why enriched categories should be more appreciated but aren’t!

Enriched categories

We get the notion of an enriched category by first considering the following definition of category. (Actually, it’s a definition of locally small category as it requires that the morphisms between a pair of objects form a set rather than anything bigger.) Here we will switch notation for hom-sets, moving from Hom 𝒞(c,c)\operatorname{Hom}_{\mathbf{\mathcal{C}}}(c, c') to the category theorists’ 𝒞(c,c){\mathbf{\mathcal{C}}}(c, c').

Definition 1. A category consists of a collection of objects, Ob𝒞\operatorname{Ob}{\mathbf{\mathcal{C}}}, together with the following data which is required to satisfy the unit and associativity axioms:

(i) for all c,cOb𝒞c, c'\in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified set 𝒞(c,c)Ob𝒮et;{\mathbf{\mathcal{C}}}(c, c') \in \operatorname{Ob}{\mathbf{\mathcal{S}et}};

(ii) for all c,c,cOb𝒞c, c', c''\in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified function between sets 𝒞(c,c)×𝒞(c,c)𝒞(c,c);{\mathbf{\mathcal{C}}}(c, c') \times {\mathbf{\mathcal{C}}}(c', c'') \to {\mathbf{\mathcal{C}}}(c, c'');

(iii) for all cOb𝒞c \in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified element id c𝒞(c,c)\operatorname{id}_c\in {\mathbf{\mathcal{C}}}(c, c) which we can consider as a specified function id c:{*}𝒞(c,c).\operatorname{id}_c\colon \{\ast\} \to {\mathbf{\mathcal{C}}}(c, c).

We obtain the defintion of enriched category by simply replacing the references to the monoidal category (𝒮et,×,{*})({\mathbf{\mathcal{S}et}}, \times, \{\ast\}) with references to the monoidal category (𝒱,,𝟙)({\mathbf{\mathcal{V}}}, \otimes, \mathbb{1}) that we are using as our base category.

Definition 2. A category enriched over 𝒱{\mathbf{\mathcal{V}}}, or simply a 𝒱{\mathbf{\mathcal{V}}}-category, consists of a collection of objects, Ob𝒞\operatorname{Ob}{\mathbf{\mathcal{C}}}, together with the following data which is required to satisfy unit and associativity axioms:

(i) for all c,cOb𝒞c, c'\in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified object 𝒞(c,c)Ob𝒱;{\mathbf{\mathcal{C}}}(c, c') \in \operatorname{Ob}{\mathbf{\mathcal{V}}};

(ii) for all c,c,cOb𝒞c, c', c''\in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified morphism in 𝒱{\mathbf{\mathcal{V}}} 𝒞(c,c)𝒞(c,c)𝒞(c,c);{\mathbf{\mathcal{C}}}(c, c') \otimes {\mathbf{\mathcal{C}}}(c', c'') \to {\mathbf{\mathcal{C}}}(c, c'');

(iii) for all cOb𝒞c \in \operatorname{Ob}{\mathbf{\mathcal{C}}} there is a specified morphism in 𝒱{\mathbf{\mathcal{V}}} id c:𝟙𝒞(c,c).\operatorname{id}_c\colon \mathbb{1}\to {\mathbf{\mathcal{C}}}(c, c).

If you take 𝒱{\mathbf{\mathcal{V}}} to be the category of vector spaces 𝒱ect{\mathbf{\mathcal{V}ect}} then you see that a 𝒱ect{\mathbf{\mathcal{V}ect}}-category is like a category except the ‘hom-sets’ are actually vector spaces and the composition maps are bilinear. The identity morphism in 𝒞(c,c){\mathbf{\mathcal{C}}}(c, c) is recovered by taking id c(1)\operatorname{id}_c(1) where 11\in \mathbb{C} means the unit complex number. For instance, for an algebra AA, there is the one-object 𝒱ect{\mathbf{\mathcal{V}ect}}-category A{\mathbf{\mathcal{B}}}A and the 𝒱ect{\mathbf{\mathcal{V}ect}}-category ep(A){\mathbf{\mathcal{R}ep}}(A) of AA-representations.

There is an accompanying notion of 𝒱{\mathbf{\mathcal{V}}}-functor between 𝒱{\mathbf{\mathcal{V}}}-categories.

Definition 3. For 𝒱{\mathbf{\mathcal{V}}}-categories 𝒞{\mathbf{\mathcal{C}}} and 𝒟{\mathbf{\mathcal{D}}}, a 𝒱{\mathbf{\mathcal{V}}}-functor F:𝒞𝒟F\colon {\mathbf{\mathcal{C}}}\to {\mathbf{\mathcal{D}}} consists of a function F:Ob𝒞Ob𝒟F\colon \operatorname{Ob}{\mathbf{\mathcal{C}}}\to \operatorname{Ob}{\mathbf{\mathcal{D}}} and for each pair c,cOb𝒞c,c'\in \operatorname{Ob}{\mathbf{\mathcal{C}}} a specified morphism 𝒞(c,c)𝒟(F(c),F(c)){\mathbf{\mathcal{C}}}(c, c') \to {\mathbf{\mathcal{D}}}(F(c), F(c')) in 𝒱{\mathbf{\mathcal{V}}}. These are required to satisfy composition and unit axioms.

In particular, a 𝒱ect{\mathbf{\mathcal{V}ect}}-functor is required to be given by linear maps between the hom-spaces.

The nicer that the enriching category 𝒱{\mathbf{\mathcal{V}}} is, the nicer that the theory of 𝒱{\mathbf{\mathcal{V}}}-categories is. I won’t go into detail here, but in particular, we have the following.

  • If 𝒱{\mathbf{\mathcal{V}}} is so-called closed monoidal then you can make 𝒱{\mathbf{\mathcal{V}}} into a 𝒱{\mathbf{\mathcal{V}}}-category itself, analogous to how you can make a ring into a module over itself.

  • If 𝒱{\mathbf{\mathcal{V}}} is braided (in particular if it is symmetric) so that there are natural and coherent isomorphisms v 1v 2v 2v 1v_1 \otimes v_2 \cong \v_2 \otimes v_1 for v 1,v 2𝒱v_1, v_2 \in {\mathbf{\mathcal{V}}}, then for a pair of 𝒱{\mathbf{\mathcal{V}}}-categories 𝒞{\mathbf{\mathcal{C}}} and 𝒟{\mathbf{\mathcal{D}}} you can form the tensor product 𝒱{\mathbf{\mathcal{V}}}-category 𝒞𝒟{\mathbf{\mathcal{C}}}\otimes {\mathbf{\mathcal{D}}}, analogous to how you can take tensor product of modules for commutative rings.

  • If 𝒱{\mathbf{\mathcal{V}}} has sufficiently many limits then for a pair of 𝒱{\mathbf{\mathcal{V}}}-categories 𝒞{\mathbf{\mathcal{C}}} and 𝒟{\mathbf{\mathcal{D}}} you can form the functor 𝒱{\mathbf{\mathcal{V}}}-category [𝒞,𝒟][{\mathbf{\mathcal{C}}}, {\mathbf{\mathcal{D}}}] where the objects are 𝒱{\mathbf{\mathcal{V}}}-functors of the form F:𝒞𝒟F\colon {\mathbf{\mathcal{C}}}\to {\mathbf{\mathcal{D}}}. (There can be size issues here if CC is not sufficiently small.)

In many cases of interest the enriching category 𝒱{\mathbf{\mathcal{V}}} is braided closed monoidal with sufficiently many limits, so a small 𝒱{\mathbf{\mathcal{V}}}-category 𝒞{\mathbf{\mathcal{C}}} has a 𝒱{\mathbf{\mathcal{V}}}-category [𝒞,𝒱][{\mathbf{\mathcal{C}}}, {\mathbf{\mathcal{V}}}] of scalar-valued functors, or presheafs, on 𝒞{\mathbf{\mathcal{C}}}.

For instance, for an algebra AA, the 𝒱ect{\mathbf{\mathcal{V}ect}}-category ep(A){\mathbf{\mathcal{R}ep}}(A) of representations of AA can be given as the functor category on A{\mathbf{\mathcal{B}}}A:

ep A=[A,𝒱ect].{\mathbf{\mathcal{R}ep}}_A = [{\mathbf{\mathcal{B}}}A, {\mathbf{\mathcal{V}ect}}].

This is what we were hoping for above.

Metric spaces as ¯ +\overline{\mathbb{R}}_{+}-categories

If we enrich over the monoidal category ¯ +\overline{\mathbb{R}}_{+} of extended non-negative real numbers then we can simplify the general definition a little and get the following.

Definition 4. An ¯ +\overline{\mathbb{R}}_{+}-category, consists of a collection of objects, ObX\operatorname{Ob}X, together with the following data:

(i) for all x,xObXx, x'\in \operatorname{Ob}X there is a specified number X(x,x)[0,];X(x, x') \in [0,\infty];

(ii) for all x,x,xObXx, x', x''\in \operatorname{Ob}X there is an inequality X(x,x)+X(x,x)X(x,x);X(x, x') + X(x', x'') \ge X(x, x'');

(iii) for all xObXx \in \operatorname{Ob}X there is an equality 0=X(x,x).0 = X(x, x).

There are several things to note here. Firstly, because ¯ +\overline{\mathbb{R}}_{+} is a thin category, all diagrams commute so the associativity and unitality conditions are automatically satisfied and so do not need to be specified. Secondly, the “composition morphism” in (ii) is clearly a “triangle inequality”, so we can think of the hom-object X(x,x)X(x, x') as a “distance” from xx to xx'. Thirdly, from the definition of enriched category the “zero self-distance” in (iii) would be written as 0X(x,x)0 \ge X(x, x) but as we know that the hom-object is non-negative, we can conclude the inequality is actually an equality.

If, as indicated above, we think of the hom-objects as being distances then we can think of a ¯ +\overline{\mathbb{R}}_{+}-category as a kind of generalized metric space. The traditional notion of metric space was due to Fréchet: by contrast, ¯ +\overline{\mathbb{R}}_{+}-categories are sometimes known as Lawvere metric spaces; these differ from Fréchet metric spaces in the following three ways.

  1. The distance is not necessarily symmetric, so we allow X(x,x)X(x,x)X(x, x') \ne X(x', x).

  2. The distance between two points can be infinite.

  3. The distance from one point to a different point can be zero.

We’ll see some examples illustrating these below.

From this generalized metric space perspective, an ¯ +\overline{\mathbb{R}}_{+}-functor f:XYf\colon X \to Y is viewed as a short map or distance non-increasing function, so it is a function f:ObXObYf\colon \operatorname{Ob}X \to \operatorname{Ob}Y such that X(x,x)Y(f(x),f(x))X(x, x') \ge Y\big(f(x), f(x')\big) for all x,xObXx, x' \in \operatorname{Ob}X.

Here are the promised examples.

  • We can equip ¯ +\overline{\mathbb{R}}_{+} with the structure of an ¯ +\overline{\mathbb{R}}_{+}-category. This is basically the fact that ¯ +\overline{\mathbb{R}}_{+} is a closed monoidal category. It is a slight abuse of notation to refer to the category and the ¯ +\overline{\mathbb{R}}_{+}-category as ¯ +\overline{\mathbb{R}}_{+} but it doesn’t usually cause confusion. Anyway we define the generalized metric as follows. ¯ +(a,b)=b.amax(ba,0).\overline{\mathbb{R}}_{+}(a, b) = b  \stackrel{.}{-} a \coloneqq \max(b - a, 0). The operation . \stackrel{.}{-}  is sometimes referred to as truncated subtraction. If we think of the extended non-negative real numbers as standing going upwards, then for bab \ge a we can think of it being ‘free’ to descend from bb to aa, but having a ‘cost’ of bab-a associated with ascending from aa to bb.

R plus bar

  • As ¯ +\overline{\mathbb{R}}_{+} is sufficiently nice – it has all limits, which are given by suprema – if XX and YY are ¯ +\overline{\mathbb{R}}_{+}-categories then there is the functor ¯ +\overline{\mathbb{R}}_{+}-category [X,Y][X, Y] consisting of short maps from XX to YY and the generalized metric given as follows:

    [X,Y](f,g)sup xXY(f(x),g(x)).[X, Y](f, g) \coloneqq\sup_{x\in X} Y(f(x), g(x)).

    msaec_function_metric.jpg

    This is a measurement of the furthest apart that ff and gg get. In particular, if we take Y=¯ +Y= \overline{\mathbb{R}}_{+} then we can get the following generalized metric on scalar-valued short maps: [X,¯ +](f,g)sup xX(g(x).f(x)).[X, \overline{\mathbb{R}}_{+}](f, g) \coloneqq\sup_{x\in X} \left(g(x)  \stackrel{.}{-} f(x)\right).

    The Yoneda embedding is an distance preserving (ie. isometric) function: X[X op,¯ +];xX(,x).X \hookrightarrow [X^{\mathrm{op}}, \overline{\mathbb{R}}_{+}]; \quad x \mapsto X({-}, x). In the case of a classical metric space we have X=X opX = X^\mathrm{op} as the distance is symmetric and the embedding in sometimes known as the Kuratowski embedding.

    We can see that this notion of generalized metric on function spaces is a refinement of the standard notion of ‘sup-metric’ on function spaces. If we look at all functions from the unit interval I={x0x1}I = \{x \mid 0 \le x \le 1\} to the set 0\mathbb{R}_{\ge 0} then we can consider these as short maps from I δI_\delta to ¯ +\overline{\mathbb{R}}_{+} where I δI_\delta is the interval equipped with the discrete metric so that the distance I(x,x)I(x, x') is 00 if x=xx=x' and is \infty otherwise. Then for functions f,g:I 0f, g\colon I\to \mathbb{R}_{\ge 0} we have that the sup-metric between them is a symmetrization of the enriched category metric: sup x|f(x)g(x)| =max(sup x(g(x).f(x)),sup x(f(x).g(x))) =max([I δ,¯ +](f,g),[I δ,¯ +](g,f)).\begin{aligned}\textstyle\sup_x \left| f(x) - g(x) \right| &= \max\Bigl( \sup_x (g(x)  \stackrel{.}{-} f(x)), \sup_x (f(x)  \stackrel{.}{-} g(x))\Bigr)\\ &=\max\Bigl([I_\delta, \overline{\mathbb{R}}_{+}](f, g), [I_\delta, \overline{\mathbb{R}}_{+}](g, f)\Bigr). \end{aligned}

  • Now we can see an example where even if we are just interested in classical metric spaces we naturally end up with an asymmetric metric, although it is usually symmetrized to obtain the Hausdorff metric! Given a classical metric space MM we can take the set of compact, non-empty subsets, S M{AMAcompact,A}S_M \coloneqq\{A \subseteq M \mid A\ \text{compact},A\ne \emptyset\}. We can then define a generalized metric on this by S M(A,B)sup aAinf bBM(a,b).S_M(A, B) \coloneqq \sup_{a\in A}\inf_{b\in B} M(a, b).

    metric on the set of compact subsets

    One way of thinking about S M(A,B)S_M(A, B) is that it is measuring the furthest you would have to go if you were dropped at a random point in AA and wanted to take the shortest route to BB. Because we are considering compact sets we have the following simple characterization of zero-distance, which is telling us that the generalized metric is encoding the usual order on subsets: S M(A,B)=0AB.S_M(A, B) = 0 \quad \Longleftrightarrow \quad A \subseteq B. (If we hadn’t used compact subsets then we wouldn’t have had such a nice characterization.) This leads us to see that this generalized metric is naturally asymmetric even though we started with a symmetric metric on MM. The usual Hausdorff metric d H\operatorname{d}_{\mathrm{H}} is obtained by symmetrizing this generalized metric: d H(A,B)=max(S M(A,B),S M(B,A)).\operatorname{d}_{\mathrm{H}}(A, B) = \max\big(S_M(A, B), S_M(B, A)\big). Clearly, however, the Hausdorff metric is losing information, such as the partial order, that was contained in the generalized metric.

This concludes the quick introduction to metric spaces as enriched categories. However, this perspective does allow other categorical techniques to be used with metric spaces, leading to some fruitful mathematics.

Afterword

It’s probably worth mentioning my experiences a little. As a Part III student at Cambridge, like many students before and after me, I attended Peter Johnstone’s Category Theory course, so I had familiarity with category theory, but, as I didn’t take the exam, I didn’t have a deep understanding. I then went on to do my PhD and later work on things related to algebraic topology and topological quantum field theory which both have strong categorical underpinnings. Coming back to the basics of category theory when I was involved in the Catsters with Eugenia Cheng I realised that various things didn’t chime with my experience of using categories and certain things seemed almost arcane to me, for example the importance put on things like monoids and functors into the category of sets.

It wasn’t until many, many years later that I started to understand that this cognitive dissonance was because in areas like algebraic topology, topological field theory, representation theory and algebraic geometry it is much more useful to consider that you’re not working over the category of sets but over some other category like vector space or abelian groups or chain complexes. As a ‘working mathematician’, rather than monoids and functors into the category of sets, I would have been much more familiar with algebras or rings and with functors into the category of vector spaces or abelian groups.

Although I was aware of the notion of enriched category theory, I didn’t get a thorough appreciation of quite what it meant until I’d spent a lot of time thinking about metric spaces in this context in particular via Lawvere’s rather wonderful paper Metric spaces, generalized logic and closed categories. I think one reason that enriched category is not more appreciated as a perspective is that the main text, Kelly’s Basic Concepts of Enriched Category Theory, is not particularly welcoming and only entered into by the brave! I could probably try to make the area more welcoming by polishing up my first attempt at a draft book on enriched categories, but with all of the other things I want to do, unfortunately I don’t see that happening too soon.

Posted at May 3, 2023 2:16 PM UTC

TrackBack URL for this Entry:   https://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/3464

27 Comments & 0 Trackbacks

Re: Metric Spaces as Enriched Categories II

You liken enriched categories to working with k-algebras for k not necessarily the integers. Is there a notion of “base change” in the enriched category context?

Typos btw: definiton, cateogry.

Posted by: Allen Knutson on May 4, 2023 3:16 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

[TL;DR: A lax monoidal functor 𝒱𝒲\mathcal{V}\to \mathcal{W} gives rise to a base-change functor 𝒱-cat𝒲-cat\mathcal{V}\text{-cat}\to \mathcal{W}\operatorname{-cat}.]

I guess that “base change” can mean a few different things, but in the enriched category context there is the following.

Suppose that (𝒱,,𝟙 𝒱)(\mathcal{V}, \otimes, \mathbb{1}_{\mathcal{V}}) and (𝒲,,𝟙 𝒲)(\mathcal{W}, \odot, \mathbb{1}_{\mathcal{W}}) are two monoidal categories to be used as base categories for enrichment. Then there are the associated (ordinary) categories 𝒱\mathcal{V}-cat and 𝒲\mathcal{W}-cat, where 𝒱\mathcal{V}-cat is the category of 𝒱\mathcal{V}-categories and 𝒱\mathcal{V}-functors, and similarly for 𝒲\mathcal{W}-cat.

[You can also consider 𝒱\mathcal{V}-natural transformations and have an associated 22-category of 𝒱\mathcal{V}-categories, 𝒱\mathcal{V}-functors and 𝒱\mathcal{V}-natural transformations, but I’ll keep things simpler here.]

The correct notion of map between the base categories here is that of lax-monoidal functor, and that means a functor F:𝒱𝒲F\colon \mathcal{V} \to \mathcal{W} which laxly preserves the monoidal structure in the sense that there are comparison maps

F(v 1)F(v 2)F(v 1v 2)for all v 1,v 2F(v_1) \odot F(v_2) \to F(v_1 \otimes v_2) \quad for all v_1, v_2

and

𝟙 𝒲F(𝟙 𝒱)\mathbb{1}_{\mathcal{W}} \to F(\mathbb{1}_{\mathcal{V}})

which are natural and appropriately coherent, but which are not necessarily isomorphisms.

For instance, every monoidal category (𝒱,,𝟙 𝒱)(\mathcal{V}, \otimes, \mathbb{1}_{\mathcal{V}}) has a lax monoidal functor to the category of sets, Γ:𝒱𝒮et\Gamma \colon \mathcal{V} \to \mathbf{\mathcal{S}et}, given by

Γ(v)𝒱(𝟙 𝒱,v).\Gamma(v) \coloneqq \mathcal{V}(\mathbb{1}_\mathcal{V}, v).

This goes by many names, such as the “underlying set” functor or the “set of elements” functor or “set of generalized elements” functor. You can think about what that functor is when 𝒱\mathcal{V} is 𝒱ect\mathbf{\mathcal{V}ect} or ¯ +\bar{\mathbb{R}}_+.

Another example of a lax monoidal functor is the “free vector space” functor (𝒮et,×,{*})(𝒱ect,,)({\mathbf{\mathcal{S}et}}, \times, \{\ast\}) \to (\mathbf{\mathcal{V}ect}, \otimes, \mathbb{C}) given by S SS\mapsto \mathbb{C}^S.

Anyway, given such a lax monoidal functor F:𝒱𝒲F\colon \mathcal{V}\to \mathcal{W} you get a “base-change” functor F *:𝒱-cat𝒲-catF_\ast \colon\mathcal{V}\text{-cat}\to \mathcal{W}\text{-cat}. If 𝒞\mathcal{C} is a 𝒱\mathcal{V}-category then F *(𝒞)F_\ast(\mathcal{C}) has the same objects as 𝒞\mathcal{C} but the hom-objects are given by applying FF:

F *(𝒞)(c 1,c 2)F(𝒞(c 1,c 2)).F_\ast(\mathcal{C})(c_1, c_2) \coloneqq F\bigl(\mathcal{C}(c_1, c_2)\bigr).

From the “set of generalized elements” functor Γ:𝒱𝒮et\Gamma \colon \mathcal{V} \to \mathbf{\mathcal{S}et} above, we get, for any base category 𝒱\mathcal{V} an “underlying category” functor Γ *:𝒱-cat𝒮et-cat\Gamma_\ast \colon \mathcal{V}\text{-cat} \to \mathbf{\mathcal{S}et}\text{-cat}.

Exercises (for anyone)

  1. What is the “underlying category” of a 𝒱ect\mathbf{\mathcal{V}ect}-category?

  2. What is the “underlying category” of an ¯ +\bar{\mathbb{R}}_+-category?

  3. Given a classical metric spaces MM, what is the “underlying category” Γ *(S M)\Gamma_\ast (S_M) of S MS_M, the generalized metric space of non-empty, compact subsets of MM?

Posted by: Simon Willerton on May 4, 2023 12:37 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Thanks for a great post. Attempt at the exercises:

  1. I think it will be the “actual” underlying category (since a Vect-enriched category is in particular a category).

  2. I think it will be the poset (thought of as a category) where x<yx \lt y if and only if Hom(x,y)(0,)Hom(x,y) \in (0, \infty).

  3. I think it will be the poset (thought of as a category) of non-empty compact subspaces of MM, ordered by inclusion.

Posted by: Bruce Bartlett on May 4, 2023 6:59 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

If I’ve untangled the definitions correctly, then I think exercise 2 “is” the weighted digraph representation of the generalized metric space.

So exercise 3, as a special case of that, is the digraph whose nodes are nonempty compact subsets of MM, and the unique arrow XYX \to Y has as weight the maximum distance from a point in XX to YY (or maybe the other way around).

I agree with Bruce on exercise 1.

Posted by: Mark Meckes on May 4, 2023 11:10 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

I asked

  1. What is the “underlying category” of a 𝒱ect\mathbf{\mathcal{V}ect}-category?

Bruce said:

I think it will be the “actual” underlying category (since a Vect-enriched category is in particular a category).

Well, the answer given is kind of right, but the reason given is not great and will lead to errors, as I’ll try to illustrate with an example.

[From a didactic point of view it’s actually a great answer as it illustrates a common line of reasoning. Knowing Bruce, I could almost think that he gifted it to me. :-) ]

Suppose we take 𝒱{\mathbf{\mathcal{V}}} to be ep(G){\mathbf{\mathcal{R}ep}}(G) the category of finite dimensional complex representations of a finite group GG. The objects are representations of GG: I’ll write a representation as (V,τ)(V, \tau) for τ:GEnd(V))\tau \colon G\to \operatorname{End}(V)). The hom set ep(G)((V,τ),(W,ρ)){\mathbf{\mathcal{R}ep}}(G)\bigl((V, \tau), (W, \rho)\bigr) is the set of equivariant or intertwining maps from (V,τ)(V, \tau) to (W,ρ)(W, \rho). The category ep(G){\mathbf{\mathcal{R}ep}}(G) is a monoidal category using the tensor product of representations and the monoidal unit is the complex numbers with the trivial action.

Define the 𝒱{\mathbf{\mathcal{V}}}-category (i.e., ep(G){\mathbf{\mathcal{R}ep}}(G)-category) 𝒞{\mathbf{\mathcal{C}}} to have, again, representations of GG as objects, but now the homs are going to be 𝒱{\mathbf{\mathcal{V}}} objects, i.e., GG-representations, and we take 𝒞((V,τ),(W,ρ)){\mathbf{\mathcal{C}}}\bigl((V, \tau), (W, \rho)\bigr) to be Lin(V,W)\operatorname{Lin}(V, W) the vector space of all linear maps from VV to WW equipped with the action defined for φLin(V,W)\varphi\in \operatorname{Lin}(V, W) by gφ=ρ(g)φτ(g 1)g \cdot \varphi= \rho(g)\circ \varphi\circ \tau(g^{-1}). This is the usual action you would expect.

What is Γ *(𝒞)\Gamma_\ast({\mathbf{\mathcal{C}}}), the “underlying category” of 𝒞{\mathbf{\mathcal{C}}}?

If we apply the reasoning that the hom-objects are already sets (sets of linear maps) and so we already have a category there then we obtain the answer that it is the category where the objects are representations of GG and the hom-sets are the sets of linear maps between the underlying vector spaces. This is the wrong answer!

Exercise. 4. Why is this the wrong answer? What is the right answer?

Hint: You should first figure out the “set of generalized elements” functor Γ:ep(G)𝒮et\Gamma \colon {\mathbf{\mathcal{R}ep}}(G) \to {\mathbf{\mathcal{S}et}}.

Posted by: Simon Willerton on May 5, 2023 10:53 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

If (V,τ)(V,\tau) is a GG-representation, then Γ(V,τ)\Gamma(V,\tau) is the set of GG-intertwining maps from the trivial representation to (V,τ)(V,\tau). That is, FΓ(V,τ)F \in \Gamma(V,\tau) is a linear map F:VF:\mathbb{C} \to V such that τ(g)F=F\tau(g) \circ F = F for every gGg \in G, i.e., the one-dimensional (assuming non-zero) image of FF is a τ\tau-invariant subspace.

So, up to a canonical identification of FLin(,V)F \in Lin(\mathbb{C},V) with F(1)F(1), Γ(V,τ)\Gamma(V,\tau) is the subspace of VV on which GG acts trivially via τ\tau. (My knowledge of representation theory is quite rusty and I’m forgetting what that would usually be called.)

Then in your category 𝒞\mathcal{C}, Γ *((V,τ),(W,ρ))\Gamma_*((V,\tau),(W,\rho)) is the subspace of Lin(V,W)Lin(V,W) consisting of linear maps φ\varphi such that ρ(g)φτ(g 1)=φ\rho(g) \circ \varphi \circ \tau(g^{-1}) = \varphi. In other words, the space of intertwiners. (Except that in 𝒮et\mathcal{S}et we’re forgetting that it’s a vector space and just treating it as a set.)

In the case of 𝒱ect\mathcal{V}ect-categories, none of the intertwining considerations come up and you end up with all of Lin(V,W)Lin(V,W), as Bruce said.

If we asked for the “underlying 𝒱ect\mathcal{V}ect-category of a ep(G)\mathcal{R}ep(G)-category”, all this would be the same except at the end we would still remember that the homs are vector spaces, right?

Posted by: Mark Meckes on May 5, 2023 2:21 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

In working through that I was so focused on the individual steps that I never turned back to see where I was coming from, so I missed the punchline: the underlying category of the ep(G)\mathcal{R}ep(G)-category 𝒞\mathcal{C} is the category ep(G)\mathcal{R}ep(G) itself.

And my last sentence above is the observation that likewise, the underlying 𝒱ect\mathcal{V}ect-category of the ep(G)\mathcal{R}ep(G)-category 𝒞\mathcal{C} is the 𝒱ect\mathcal{V}ect-category ep(G)\mathcal{R}ep(G) itself.

Posted by: Mark Meckes on May 5, 2023 6:52 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

(Wrong answer)… Knowing Bruce, I could almost think that he gifted it to me.

Sadly it was a genuine conceptual error :-)

Exercise. 4. Why is this the wrong answer? What is the right answer?

The right answer is the one Mark gave.

It’s a nice example. Is there a “derived” version of this enriched category theory where the action of G on the hom-sets is “up to homotopy”… in that case the “underlying derived category” of the derived version of ℛℯ𝓅(G)\mathcal{Rep}(G) would be the derived quotient or something.

Posted by: Bruce Bartlett on May 9, 2023 9:12 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Bruce said

Sadly it was a genuine conceptual error :-)

But still it was a good way to get the conversation started!

As for your question about derived things, I don’t know at this point.

I can say two things that might or might not be relevant to how you are thinking.

Firstly, consider the category of chain complexes of RR-modules for a commutative ring RR: this is closed monoidal.

The “underlying set functor” takes a chain complex to its set of zero-cycles (which is just its set of zero-chains if the complex is non-negatively graded). Naively I might have thought that it gave zeroth homology, but that’s not the case. You can then see what the “underlying category” of a chain-complex-enriched category is.

Secondly, taking homology groups gives a lax monoidal functor from the category of chain complexes to the category of graded RR-modules. For nice RR, the Künneth Theorem tells us how far the functor is from being strong monoidal: for example, for RR a field, the functor is strong monoidal, and for RR a PID, such as \mathbb{Z}, the failure to be strong is measured by Tor\operatorname{Tor} groups.

Anyway, this tells us that taking homology of hom-complexes gives a functor from chain-complex-enriched categories to graded-module-enriched categories.

Posted by: Simon Willerton on May 9, 2023 1:40 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

The underlying set functor takes a chain complex to its set of zero-cycles (which is just its set of zero-chains if the complex is non-negatively graded).

Ok, that’s interesting.

Secondly, taking homology groups gives a lax monoidal functor from the category of chain complexes to the category of graded modules… Anyway, this tells us that taking homology of hom-complexes gives a functor from chain-complex-enriched categories to graded-module-enriched categories.

That’s nice - it’s a nice example of “lax monoidal” being very useful. In practice, people will just write down this functor and check by hand that it is a functor. But one thing the enriched category theory has done is isolate the crucial thing which makes it a functor (the lax monoidal-ness).

Posted by: Bruce Bartlett on May 18, 2023 11:55 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

I asked:

2{}. What is the “underlying category” of an ¯ +\bar{\mathbb{R}}_+-category?

Neither Bruce nor Mark have quite nailed this. So let me go back a step.

Exercise. 2a. What is the “set of generalized elements” functor Γ:¯ +𝒮et\Gamma\colon \bar{\mathbb{R}}_+ \to \mathbf{\mathcal{S}et}?

Posted by: Simon Willerton on May 5, 2023 11:07 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Oops, I think I had my arrows reversed in ¯ +\overline{\mathbb{R}}_+. So now I think the underlying category of a classical metric space as an ¯ +\overline{\mathbb{R}}_+-category is just the discrete category on the same set of objects.

But for a generalized (Lawvere) metric space, there is also a unique morphism xyx \to y whenever d(x,y)=0d(x,y) = 0.

Posted by: Mark Meckes on May 5, 2023 1:18 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Hit “Post” sooner than I meant to.

So the underlying category of an ¯ +\overline{\mathbb{R}}_+-category XX is a poset where the partial order on objects is given by xyx \le y iff X(x,y)=0X(x,y) = 0.

For the case of S MS_M, the partial order on compact nonempty subsets of MM says that ABA \le B iff sup AAinf bBd(a,b)=0\sup_{A\in A} \inf_{b \in B} d(a,b) = 0, hence iff inf bBd(a,b)=0\inf_{b \in B} d(a,b) = 0 for every aAa \in A, hence (by compactness) iff ABA \subseteq B. Which is to say, I now believe Bruce’s answer to exercise 3 was correct.

Posted by: Mark Meckes on May 5, 2023 1:30 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Full marks to Mark on all the questions now.

I will just fill in some details.

Exercise. 2a. What is the “set of generalized elements” functor Γ:¯ +𝒮et\Gamma\colon \bar{\mathbb{R}}_+ \to \mathbf{\mathcal{S}et}.

Solution. If x¯ +x \in \bar{\mathbb{R}}_+ then Γ(x)¯ +(0,x)\Gamma(x) \coloneqq \bar{\mathbb{R}}_+(0, x) and in ¯ +\bar{\mathbb{R}}_+ there is a single morphism aba\to b precisely when aba\ge b and no morphism otherwise. Thus

Γ(x)={{0!0} ifx=0; ifx>0. \Gamma(x) = \begin{cases} \{0\xrightarrow{!} 0 \}&\text{if}\quad x=0;\\ \emptyset&\text{if}\quad x\mathop{&gt;}0.\end{cases}

Posted by: Simon Willerton on May 5, 2023 5:15 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Allen said:

Typos btw: definiton, cateogry.

Thanks; fixed.

Posted by: Simon Willerton on May 5, 2023 10:58 AM | Permalink | Reply to this

Mozibur Rahman

I had a similar experience with Kelly! But I found a chapter in Borceaux’s second volume of Categorical Algebra a bit more enlightening. But as I’m more of an interested bystander rather than a professional mathematician I promptly forgot most of it.

Recently though I dipped into it again as I got curious as to why it’s not possible to enrich over topological spaces. According to Borceaux it’s enough for a category to be monoidal to enrich over it. And as Top has a Cartesian monoidal structure, we can enrich over it. And because it’s symmetric monoidal, we can even construct its opposite. But because it’s not closed monoidal, we can’t show that Top itself is an enriched category. And this means we can’t have hom categories and hence no Yoneda lemma. So although we can enrich over Top, it doesn’t have enough nice properties that we have a nice healthy enriched category. I’m guessing that this is what is meant by saying we can’t enrich over Top.

However, diffeology is nice category - which I think - and I’m no expert, so take this with a pinch of salt - that is a kind of blending between topology and smooth spaces, taking the best of both. As it is a closed Cartesian category, we ought to be able to get a nice enriched category over it which I think ought to be a nice replacement for Top enriched categories.

But can we do better?

This leads me onto a question which I hope isn’t too naive. As diffeology is a certain construction over smooth manifolds, it seems to me we ought to be able to do the same over topological manifolds and which for the sake of this post, I’ll christen as “topeology”. And this ought to also be Cartesian closed and so we ought to be able to get “topeologically enriched categories” which should be closer replacement.

Probably this is all well known and I just don’t happen to know it. And even more probably I got it all wrong. Like I said I’m an amateur at this. So feel free to correct me.

Posted by: Mozibur Rahman Ullah on May 4, 2023 11:43 AM | Permalink | Reply to this

Re: Mozibur Rahman

I don’t know much about this, I’m afraid, but hopefully there are people around here who can say more.

I certainly know that the category of topological spaces is not a nice category for working with, definitely not a nice category of spaces in the sense of the nLab; and I know that people tend to enrich over other categories of “spaces” such as compactly generated spaces or simplicial sets which are closed monoidal.

Posted by: Simon Willerton on May 4, 2023 1:19 PM | Permalink | Reply to this

Re: Mozibur Rahman

Mozibur wrote:

However, diffeology is nice category - which I think - and I’m no expert, so take this with a pinch of salt - that is a kind of blending between topology and smooth spaces, taking the best of both.

Most people I know regard diffeological spaces not as a blend of topology and smooth spaces, but as a nice concept of smooth spaces. A diffeological space is a generalization of smooth manifold where we weaken the definition of ‘chart’ enough to get a cartesian closed category of diffeological spaces. By the way, Alex Hoffnung and I have a paper on this:

One thing we point out is that diffeological spaces form something better than a cartesian closed category: they have all limits and colimits, and indeed form a ‘quasitopos’—but not a topos. A slight further generalization (and simplification!) produces an actual topos.

As it is a closed Cartesian category, we ought to be able to get a nice enriched category over it which I think ought to be a nice replacement for Top enriched categories.

Yes, it’s nice to enrich over diffeological spaces. Personally I would say that categories enriched over diffeological spaces form a nice replacement for categories enriched over the category of smooth manifolds (which is not cartesian closed). It allows you to do differential geometry on the hom-sets.

I got interested in diffeological spaces because I was doing things in geometry where I wanted to look at categories internal to diffeological spaces. But categories enriched in diffeological spaces can be seen as a special case of these.

As diffeology is a certain construction over smooth manifolds, it seems to me we ought to be able to do the same over topological manifolds and which for the sake of this post, I’ll christen as “topeology”.

Yes, I see a way to do this: just take the definition of diffeological space and replace the word ‘smooth’ with the word ‘continuous’ everywhere. This gives a quasitopos which you can think of as an improved version of the category of topological manifolds.

Posted by: John Baez on May 5, 2023 7:35 AM | Permalink | Reply to this

Mozibur Rahman

Thanks for the clarification.

It was actually your paper with Alex Hoffnung on diffeological spaces that got me interested in them! I thought it very readable and a great introduction to the area.

I also want to thank Simon Willerton for his Catsters videos on category theory with Eugenia Cheng. I thought they were fab too.

As far as I understand quasitoposes - which isn’t very far - they have a classifier for strong subobjects instead of ordinary objects.

I’m curious as to how one turns the category of diffeological spaces into a topos? Presumably we have to get rid of the points in some way. Actually, doesn’t that also turn each topological space into Cartesian closed category too? I mean by considering it simply as a locale of opens? Am I then being too hopeful in expecting the category of all such locales - I think they’re called sober locales - form a closed Cartesian category?

Just one last thought here given that this cafe is devoted to philosophy. I recall reading somewhere that Aristotle was against infinite division in the continuum. This was a bit of a puzzle to me until I realised the other day it was likely he was against this because he was against the notion that the continuum was made up of points.

Posted by: Mozibur Rahman Ullah on May 6, 2023 3:02 AM | Permalink | Reply to this

Mozibur Rahman

Well, I’ve discovered that Loc isn’t closed Cartesian and that the exponentiable locales are the locally compact ones. So it was too much to hope for.

Posted by: Mozibur Rahman Ullah on May 6, 2023 9:38 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Just two quick thoughts.

Truncated subtraction is like “ReLU” in machine learning, i.e. f(x)=xf(x) = x if x1x \geq 1 and f(x)=0f(x) = 0 otherwise. Machine learning has been on my mind :-)

It is also like put and call options in finance. If the share price today is dollars, and today you are given a call option on the share 1 year from now at a strike price K=20K=20 dollars (i.e. you will have the option, but not the obligation, to buy the share at 20 dollars 1 year from now), then the payout 1 year from now will be

P=max(SK,0) P = max(S - K, 0)

where SS is the price of the share 1 year from now. So the payout of a call option is the truncated difference between the share price and the strike price (and conversely for a put option).

Posted by: Bruce Bartlett on May 4, 2023 7:11 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

It reminds me of valves and diodes, (ideally) physical one-way streets.

Posted by: unekdoud on May 8, 2023 1:21 AM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Simon wrote:

I could probably try to make the area more welcoming by polishing up my first attempt at a draft book on enriched categories, but with all of the other things I want to do, unfortunately I don’t see that happening too soon.

Maybe it’d help, and be a lot less work, to turn this series of blog posts into an expository article that you could put on the arXiv. The perfect can be the enemy of the good!

Posted by: John Baez on May 5, 2023 2:53 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

You might like to add some comments to the MathOverflow question “Mention of Bernoulli principle by Bill Lawvere” to widen the audience.

Posted by: Tom Copeland on May 14, 2023 10:20 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Found another typo: expcept

Thanks for the interesting post!

Posted by: Stéphane Desarzens on May 6, 2023 10:56 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II

Fixed, thanks.

Posted by: Simon Willerton on May 9, 2023 2:24 PM | Permalink | Reply to this

Re: Metric Spaces as Enriched Categories II: Related MO-Q

I suspect you could provide some informative comments to the recently posted MathOverflow question Mention of Bernoulli principle by Bill Lawvere.

Posted by: Tom Copeland on May 14, 2023 10:15 PM | Permalink | Reply to this

Post a New Comment