Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: Spaces vs/and Categories


view this post on Zulip John Onstead (Mar 14 2024 at 14:36):

Recently, I read an article here that specified a number of points that will be well familiar to anyone on this server. For instance, the author discusses how "mathematical objects are like people: we understand them better when we study them in families with other objects of the same type". In addition, they later discuss mappings between classes of objects and how they allow you to use your understanding of a simpler class to understand a more complicated one, and how maps will take an object of one type to a similar one of another type. These sound exactly like categories and functors, right? Well, not quite- the author is talking about intersection theory and moduli spaces, not category theory and categories, but it really is odd just how similar these talking points are! There are many similar examples of families of similar objects being able to form either categories or spaces with which they can be studied together, but I am having difficulty reconciling this...

view this post on Zulip John Onstead (Mar 14 2024 at 14:41):

One way is by seeing spaces like moduli spaces as certain enriched categories, notably Lawvere metric spaces, but this isn't fully satisfying to me because the information about the mathematical objects is conveyed in different ways from spaces (and Lawvere metric spaces) to categories. After a recent discussion on "chimera categories" (which may or may not be relevant here), it got me thinking about if there was such a thing as a "category with distances". This could potentially be a "chimera category" with an object of objects that is a space like a metric space of some form and an object of morphisms which is a set. It's basically a 1-category with the extra structure of having a notion of "distance" between the objects, which is meant to convey some level of "similarity" between the math objects the category's objects represent. In any case, this construction would allow us to see how mathematical objects can form a single structure that is BOTH a category AND a space at the same time! However, I am not exactly sure how to construct such a category, and if such a category has been described already in the literature, or what uses it could have. Any thoughts on these, and also on any personal thoughts about spaces vs categories in terms of settings by which we can study families of math objects, are very welcome!

view this post on Zulip David Egolf (Mar 14 2024 at 15:24):

I was recently reading this blog post. The things you are saying about having a structure that can be viewed as a category and as a space reminds me of an idea discussed in that blog post, where I learned that Grothendieck defined sheaves on any category equipped with a 'coverage' or 'Grothendieck topology'. And I also learned that sheaves on a topological space contain a lot of information about that topological space. So maybe one can consider the category of sheaves on a site (which is a category equipped with a coverage) as a sort of topological thing that also contains a lot of information about the original category?

view this post on Zulip David Egolf (Mar 14 2024 at 15:30):

A less fancy idea occurs to me, which involves considering a category enriched over metric spaces. Then each hom-set is also a metric space. Using that, we could define the distance from an object AA to an object BB as the minimum distance between the identity morphism on AA and any endomorphism of AA that factors through BB.

My intuition here is to measure how much of AA you irreparably lose when you change AA in to (part of) BB, e.g. as one does in categories where the morphisms are functions that respect certain "internal structure" of the objects - like the category of groups and group homomorphisms.

view this post on Zulip David Egolf (Mar 14 2024 at 15:31):

(I haven't checked to see if this satisfies much in the way of properties that we'd like of a notion of distance; it's just a very rough idea! Although at least if AA and BB are isomorphic the distance from AA to BB and the distance from BB to AA should both be zero!)

view this post on Zulip David Egolf (Mar 14 2024 at 15:45):

One last idea - if you have a functor F:CDF: \mathsf{C} \to \mathsf{D} and you have some notion of distance between objects in D\mathsf{D}, then you can maybe "pull back" this notion of distance to C\mathsf{C}. If dd is used to compute distance between objects in D\mathsf{D}, we could try computing a distance in C\mathsf{C} from an object AA to an object BB as d(F(A),F(B))d(F(A), F(B)).

My intuition is that this involves measuring the similarity of two objects by measuring the similarity of some particular property of those objects.

view this post on Zulip Mike Shulman (Mar 14 2024 at 15:51):

I haven't looked at the links, but another thing that connects categories to spaces is groupoids. A groupoid is a kind of category, and every category has an underlying groupoid of objects and invertible morphisms. But a groupoid is also a kind of space: the 2-category of groupoids is equivalent to the homotopy 2-category of spaces that are homotopy 1-types. Moduli spaces are often a kind of groupoid, or perhaps a sheaf of groupoids.

view this post on Zulip Eric M Downes (Mar 14 2024 at 16:40):

If you have something like a Hahn measure from your category ..:CR+|..|:\mathsf{C}\to\mathbb{R}_+ (like cardinality etc), you can use a "homutator" (my made-up term) to measure distance dd (in a Lawvere metric space sense) between morphisms in C\mathsf{C} and the hom-endofunctor in D\mathsf{D} given a functor F:DC\mathcal{F}:\mathsf{D}\to\mathsf{C}. Essentially, if you can construct a D\mathsf{D}-object in C\mathsf{C}, you're good to go.

These tend to be obvious if you're familiar with the categories. Like, lets say you have a set function between groups f:GKf:G\to K, and you want to know how close it is to a group homomorphism; then there are a couple measures readily available given the images of inverses ζ\zeta and group laws μ\mu in Set\mathsf{Set} under F\mathcal{F}; here is one in which you invert after multiplying and mapping

Hf:GGK;Hf=μK(fμG×ζKμK(f×f))(23)Δ42\mathcal{H}f:GG\to K; \mathcal{H}f= \mu_K\circ\big(f\circ\mu_G\times \zeta_K\circ\mu_K\circ(f\times f)\big)\circ(23)\circ\Delta_{4\leftarrow 2}
d(f,hom.Grp)=logHf(GG)d(f,hom.\mathsf{Grp})=\log|\mathcal{H}f^*(G G)|
(where (23)(23) is a transposition of arguments in cycle notation, Δ\Delta dups args etc.)

You can realize the cross ratio from projective geometry as a homutator vs inclusion-exclusion between two sets this way as well. I suspect this all should follow from May's papers on categorifying traces, but I don't know yet... still working through the latter slowly; @Spencer Breiner might be interested in this.
https://www.math.uchicago.edu/~may/PAPERS/AddJan01.pdf

view this post on Zulip John Onstead (Mar 14 2024 at 21:11):

@David Egolf Interesting perspectives! I think the site idea is very interesting, though it may not work fully for my purposes as the objects in sites are interpreted to be like the open sets of a topological space as opposed to the points of a topological space (though maybe I'm overlooking something!). The metric space idea is also interesting because in some cases, you can consider a category to be enriched over two other categories. For instance, the category Ab of abelian groups can be viewed as enriched over itself, but also enriched over Set (if we take the underlying set of the hom abelian groups between the objects in Ab). In addition, Cat is self-enriched in multiple ways, giving things such as the Gray tensor product for the category of 2-categories. Perhaps there exists certain (2-)categories that can be viewed as enriched over both metric spaces and categories?
@Mike Shulman This is an interesting connection. I believe I read somewhere that there is some form of equivalence between topological spaces and infinity-groupoids through the "fundamental infinity-groupoid". Is this true or did I misread/misremember something?
@Eric M Downes This is a very interesting analysis, but it does go a little above what I have learned so far. Though I wonder if one can assign a Hahn measure to the product category C x C to get a value C x C -> R. In a way this resembles the definition of a metric spaces in terms of sets, since those are given by a function S x S -> R that satisfies the axioms of a metric space. It could be like an "internal metric space" internal to Cat rather than Set?

view this post on Zulip John Onstead (Mar 14 2024 at 21:18):

As a related question, I was also wondering about the difference between a Set-enriched category and a "discrete Lawvere metric space". A discrete Lawvere metric space is one that assigns a discrete natural number to every pair of objects in a category, rather than a real number as the usual Lawvere metric space does. I am wondering about the connection between these two kinds of category because you might be able to express a normal 1-category as a discrete Lawvere metric space where the number assigned between two objects is the cardinality of that Hom set. So if I have objects A and B in some normal category C and have 4 morphisms from A to B, then a corresponding discrete Lawvere metric space would assign the number 4 to Hom(A, B). Is this a valid construction or thing to consider?

view this post on Zulip John Baez (Mar 14 2024 at 21:30):

John Onstead said:

These sound exactly like categories and functors, right? Well, not quite- the author is talking about intersection theory and moduli spaces, not category theory and categories, but it really is odd just how similar these talking points are!

I think the reason is that most moduli spaces in nature are watered-down versions of moduli stacks. A moduli space is a set with extra structure - like a topological space, or algebraic variety. A moduli stack is a groupoid with analogous extra structure.

This may sound mysterious, but the basic idea is simple.

To get a moduli space, we start with a category CC of some sort. Then we take the set of isomorphism classes of objects. Then we notice that this set has extra structure: for example, we can tell when one isomorphism class of objects is 'close' to another. So, we put this extra structure on the set of isomorphism classes... and that's our moduli space.

To get a moduli stack, we start with CC again. Then we form the groupoid core(C)\mathrm{core}(C) of objects and isomorphisms between them. Then we notice that this has extra structure: for example, we can tell when one object is 'close' to being isomorphic to another. Then we put this structure on core(C)\mathrm{core}(C)... and that's our moduli stack.

view this post on Zulip John Baez (Mar 14 2024 at 21:32):

The details get a bit technical, and they depend a lot on what sort of extra structure we're dealing with. So it's good to look at examples. Here's a nice example:

view this post on Zulip John Baez (Mar 14 2024 at 21:35):

I only discuss the moduli space, not the stack. But the fact that some acute triangles have extra symmetry (isosceles and right triangles) manifest itself in the moduli space: these triangles give points at the edges or corners of the moduli space. And the moduli stack actually keeps track of the extra symmetries.

view this post on Zulip John Baez (Mar 14 2024 at 21:35):

All this is very typical of moduli spaces and moduli stacks.

view this post on Zulip John Baez (Mar 14 2024 at 21:36):

Anyone wanting to learn about stacks using concrete examples can try this:

He uses moduli stacks of triangles as his examples!

view this post on Zulip John Baez (Mar 14 2024 at 21:37):

First he talks about topological stacks, and then algebraic stacks. These are two choices of 'extra structure'.

view this post on Zulip John Onstead (Mar 14 2024 at 22:03):

@John Baez Ah! This kind of extra structure on categories/groupoids is exactly what I was looking for. Thanks!

view this post on Zulip Mike Shulman (Mar 14 2024 at 22:27):

John Onstead said:

you might be able to express a normal 1-category as a discrete Lawvere metric space where the number assigned between two objects is the cardinality of that Hom set. So if I have objects A and B in some normal category C and have 4 morphisms from A to B, then a corresponding discrete Lawvere metric space would assign the number 4 to Hom(A, B).

The result won't (in general) satisfy the triangle inequality or (ever) the reflexivity property d(x,x)=0d(x,x)=0, so it won't be a metric space.

I think it would be closer to sensible to define the distances to be the logarithms of the cardinalities of homsets, since the monoidal structure of Set corresponds to multiplication of cardinalities and the logarithm would take that to addition. Of course the distances would no longer be discrete, but at least you could get d(x,x)=0d(x,x)=0 in the case when xx has no nonidentity endomorphisms. But the triangle identity is still going to fail.

view this post on Zulip John Onstead (Mar 14 2024 at 22:35):

@Mike Shulman Ah thanks, I can't believe I totally forgot about the triangle inequality!

view this post on Zulip David Egolf (Mar 14 2024 at 23:03):

Just throwing another idea out there, with regards to equipping an arbitrary category with a notion of distance between objects:

view this post on Zulip David Egolf (Mar 14 2024 at 23:09):

It's probably good to note that this "distance" I sketched above is not symmetric (the distance from AA to AA' is in general different from the distance from AA' to AA). So maybe one would wish to symmetrize this by computing the distance from AA to AA' and the distance from AA' to AA (in the sense above) and then computing a symmetrized distance as their sum.

(I have no idea if the triangle inequality is remotely close to holding!)

view this post on Zulip David Egolf (Mar 14 2024 at 23:40):

To give an example: I wonder what this symmetrized "distance" between a set with two elements (call it "2") and a set with one element (call it "1") is in Set\mathsf{Set}. All the subobjects of 1 are linked to 2, I think. Working with subobjects of 2:

So, 3/4 of the subobjects of 2 are linked to 1. Then our total distance between 1 and 2 is -log(3/4)+-log(1), which is about 0.29.

(Hopefully I did that right!)

view this post on Zulip Eric M Downes (Mar 15 2024 at 02:16):

In the context of measuring the distance between objects in categories with all limits and colimits, I like categorizing this metric:

d:N+2R0;  d(m,n)=loglcm(m,n)gcd(m,n)d:\mathbb{N}_+^2\to\mathbb{R}_{\geq0};~~d(m,n)=\log\frac{lcm(m,n)}{gcd(m,n)}

The uniqueness of the prime power expansion proves the triangle inequality, and in Set\mathsf{Set} each p:1Np:1\to N plays the role of a prime in a squarefree expansion; they span the object NN. Of course gcd and lcm have their natural categorizations, and if you have some sense of both quotient and a log functor, as with for instance Lie groups, perhaps you just stay in the category.

However for a strict metric, one then need a measure ..|..| of the "weight" of the fibers weaving through these objects. Cardinality works for FinSet\mathsf{FinSet}, I'm not sure if there is a natural way to choose this fiber-measure in general, but using the sum-product algorithm in a category enriched over a ring seems to work. When two fibers meet, you add their weights, with each composition you multiply the weight assigned to that morphism.

Maybe its obvious to others, but here things get a little wobbly for me. I agree with you @David Egolf to think in terms of monos. Generally it seems one must determine what kind of module the fibers of monos form; we like modules where the limits and colimits always have unique expansions relative to one another... some kind of PBW theorem.

In Grp\mathsf{Grp} if we restrict to finitely-generated groups, again things are nice and maps from the generators of NMN\vee M play the role of primes and we can just use cardinality. Something more interesting happens when we think of the image of each group homomorphism acting on the rest of the fibers incident upon a group... there should be a Haar measure consistent with these "action bundles".

view this post on Zulip Eric M Downes (Mar 15 2024 at 02:55):

John Onstead said:

Eric M Downes Though I wonder if one can assign a Hahn measure to the product category C x C to get a value C x C -> R. In a way this resembles the definition of a metric spaces in terms of sets, since those are given by a function S x S -> R that satisfies the axioms of a metric space. It could be like an "internal metric space" internal to Cat rather than Set?

First -- yeah! Do it.

Second. See above, though also I will note that a morphism ϕ:XY\phi:X\to Y is already very close to an object in obj.C×obj.Cobj.\mathsf{C}\times obj.\mathsf{C}... the homset of the category is like a set relation++, extra data (direction, composition data with other morphisms), and multiple morphisms per (co)domain pair, but adjoint to the product of objects. MacLane just defines a "product" ×C\times_\mathsf{C} that returns exactly hom.Chom.\mathsf{C}! :)

No guarantees this is always good idea, but sometimes I find it useful to think of a category algebra. Same way as you construct a group algebra over a ring R[C]R[\mathsf{C}]; I imagine a cayley table describing products of unit vectors, with entry in row XX and column YY: hom(X,Y)hom(X,Y). The sum of unit vectors is just the free abelian group (though in a symmetric monoidal category there is an internal choice), and the algebraic "product" of vectors is the composition of homs distributing over the sum. When f:XY\nexists f:X\to Y, we just default to 0R0_R. (I think I got the direction right there, often screw that up.) This is nearly a category enriched over a ring though it has a different construction.

All that is to say, I don't think looking at a metric over objects in C×C\mathsf{C}\times\mathsf{C} is fundamentally that far from looking at a metric over morphisms in C\mathsf{C}, though obviously the details can differ substantially. If you buy my category algebra construction (admittedly vague, but I swear it's legit; other people do this too! :) then you might see that if we can calculate distances of morphisms from some platonic ideal (like what I'm trying to do), then we can immediately compute the distances between objects using a sum-product approach. And if we first assign distances to objects, these are either inconsistent with any assignment of weights to morphisms, or they constrain said assignments.