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.
The discussion in #learning: questions > enriched graphs got me thinking. Sometimes it is the case that we have a collection of objects we would like to study. For example, we may wish to study graphs, or groups, or sets, or statements in predicate logic, or electrical circuits. One can consider a basic category in each case by creating a category where the objects are the things of interest and there are no morphisms (besides the required identity morphisms). However, doing this doesn't seem to gain anything. There is then the (I think tricky) process of adding morphisms to this category in a way that the result is something interesting and useful.
What are some strategies for adding morphisms to get an interesting category in the end? As a more specific question, say I have some property that I want to talk about - e.g. I want to be able to talk about "bipartite" graphs - then: how should morphisms be added to enable discussion of this property in terms of morphisms?
As a related question, how can one make precise what is "gained" by adding more morphisms? For example, consider (1) a category where the objects are sets and the morphisms are bijective functions and (2) the category where the objects are sets and the morphisms are (unrestricted) functions. What properties of sets can we talk about in that we can't in ?
Maybe more of a guiding principle than a technique, but it's very fruitful to try to build your new category out of known categories in a way that's as natural/canonical as possible. E.g. directed graphs can be realized as two sets (edges and vertices) equipped with two functions (source and target). So there's a very natural way to define morphisms between such things: you want functions between the sets such that any diagram you could feasibly form with them and the source and target maps commutes. This sort of process is generalizable, it's presheaf categories. A variation of this is algebras of a Lawvere theory, or PROPs, or monads, or operads... In all these cases there's a sense in which the maps are determined by the definition of the objects. And when you define your category in one of these ways, there are general results about how nice it is.
This question is already interesting in the case of groups (as one object categories). Cutting out the morphisms, corresponds to taking various subgroups, and this leads to the idea of Kleinian geometry. Symmetry breaking = adding structure.
David Egolf said:
As a related question, how can one make precise what is "gained" by adding more morphisms?
This is an amazingly broad question. I'm glad you narrowed it down:
For example, consider (1) a category where the objects are sets and the morphisms are bijective functions and (2) the category where the objects are sets and the morphisms are (unrestricted) functions. What properties of sets can we talk about in that we can't in ?
One could write a little book just about this example!
Notice that is a groupoid, while is a topos (indeed the most famous topos).
One does very different things with groupoids than one does with topoi. Roughly speaking, groupoids describe symmetries, or topological spaces whose homotopy groups become trivial above dimension 1. (The fact that these are 'the same' is an important chapter in mathematics.) Topoi, on the other hand, are roughly worlds in which one can do 'all of mathematics'.
For example: topoi have all finite limits and colimits. has all (small) limits and colimits. At the other extreme, groupoids only have rather trivial limits and colimits.
As a little puzzle to get a sense for this, figure out when two objects in have a product. (Not often.)
John Baez said:
As a little puzzle to get a sense for this, figure out when two objects in have a product. (Not often.)
Let's see. A product of two objects and is a limit over the diagram containing just those two objects. So, we need an object with morphisms to and , to start with. That means that the elements of must be in bijection with those of and with those of , which means that and need to have a bijection between them. However, for any object having morphisms to both and , we need there to be a unique morphism from to . There is a unique bijection between two sets exactly when: either the two sets contain a single element, or the two sets are empty.
So, I think, two objects and in have a product exactly when either (1) both and contain a single element or (2) both and are empty.
David Egolf said:
However, for any object having morphisms to both and , we need there to be a unique morphism from to .
This part is not quite right, but the conclusion seems right to me.
Morgan Rogers (he/him) said:
David Egolf said:
However, for any object having morphisms to both and , we need there to be a unique morphism from to .
This part is not quite right, but the conclusion seems right to me.
Hmmm. I probably should have talked about things being required to commute. Let and be the morphisms used to define our product. Then for any object with morphisms and we need there to exist a unique morphism so that and .
Now that I think about it a bit more carefully, I don't immediately see why we can't have products of sets with two elements. Hmm.
The only sets with any morphisms to a two-element set are two-element sets. So now you just have to count :wink:
Morgan Rogers (he/him) said:
The only sets with any morphisms to a two-element set are two-element sets. So now you just have to count :wink:
I'm not following your hint, unfortunately, although I appreciate it.
I have drawn out a little example on paper for sets with two elements, and it seems (?) like once I set the morphisms and then the morphism is forced to be unique by virtue of requiring the things described above to commute.
Oh, interesting. There are two conditions on : and . These two things aren't always equal. If they aren't, then that means that there is no that exists that makes all the required things commute. If that can happen, then that means that we don't have a product.
I can be a bit more precise: how many automorphisms would the product of a pair of 2-element sets have? (okay, I'm not actually sure this will help you, but either this or the argument you're developing will get you where you want to go)
Morgan Rogers (he/him) said:
I can be a bit more precise: how many automorphisms would the product of a pair of 2-element sets have?
So, the product of a pair of 2-element sets must have two elements. An automorphism is a bijection from such a product to itself. I believe there would be two such automorphisms.
However, I don't immediately see how this helps figure out the products in .
What I was alluding to is: if , and are two-element sets, with our candidate product of and , then how many spans of the form are there? If were the product, each such span would produce an endomorphisms of (and hence an automorphism, since the only the morphisms are bijections)
What's the product of a 2-element set and a 3-element set?
Joe Moeller said:
What's the product of a 2-element set and a 3-element set?
It doesn't exist in this setting, to my understanding.
Sorry, it's actually not clear to me what you don't know about products in .
Morgan Rogers (he/him) said:
What I was alluding to is: if , and are two-element sets, with our candidate product of and , then how many spans of the form are there? If were the product, each such span would produce an endomorphisms of (and hence an automorphism, since the only the morphisms are bijections)
We need a bijection from to - and there are two of these. We also need a bijection from to , and there are also two of these. So, it seems like there should be four such spans.
If (together with particular morphisms and ) is the product, there needs to be a unique morphism to that span from any of the four spans from to and . Each of these morphisms corresponds to an endomorphism (and hence an automorphism) of .
I think this is roughly what you are saying?
And then there is presumably some problem related to wanting four endomorphisms of , but only having two. I think this is going to work out to a similar argument to what I was saying above, where we can't always form morphisms from spans to our proposed product so that everything required commutes.
Joe Moeller said:
Sorry, it's actually not clear to me what you don't know about products in .
I would like to know when the product of two sets and exists in . We for sure need and to have the same number of elements, but the question is if any (common) number of elements will let us form a product.
I think you've worked it out. A concise way of saying this is that the universal property of the product can be expressed as , where this is an isomorphism of sets natural in . But from your very first argument, assuming that the product exists, we have , which means that we can up to chosen isomorphisms replace everything with copies of to deduce...
,
for all sets . Choosing too, we arrive at the counting problem I was alluding to.
But this "reduction to counting" argument loses a bit too much information! After all, we can have for infinite sets too! So can you refine your 'no-go' argument to work for infinite sets? Or are there products of infinite sets too?
Thanks @Morgan Rogers (he/him) . I'll have to give what you wrote a proper think and response once I have a bit more energy!
David Egolf wrote:
So, I think, two objects and in have a product exactly when either (1) both and contain a single element or (2) both and are empty.
However you got this answer, I think it's right! So people living in the groupoid of finite sets learn their times table very easily:
Note that is the 'disjoint union' (coproduct) of a bunch of groupoids:
and so on for every cardinality. So my question really boils down to asking which of these groupoids have (binary) products. And most of them don't. It turns out that the two that do - the first two - are the groupoids where there is just one morphism from any object to any other.
It's pretty easy to see that any groupoid with just one morphism from any object to any other has binary products. So if anyone wants another puzzle, this one is pretty natural: is the converse true?
(By the way, I urge experts not to step in and crush these puzzles, which are more for beginners.)
Morgan Rogers (he/him) said:
I think you've worked it out. A concise way of saying this is that the universal property of the product can be expressed as , where this is an isomorphism of sets natural in .
I'm trying to understand this. is the set of bijective functions from to , is the set of bijective functions from to , and is the set of bijective functions from to . The statement corresponds to the claim that has elements in bijection with the elements of . This claim is not immediately obvious to me, but if I understand, it follows from the universal property of the product.
Let's see if I can figure out how it follows from the universal property of the product. For finite sets, at least, the number of different spans from to and is given by the number of elements of . For each such span, by the universal property of the binary product, we have a unique morphism from to so that all the required things commute. If each of these morphisms from to were distinct, that would imply that would have at least as many elements as . How can we show that different choices for the span morphisms from to and will induce different morphisms to from , though?
To try and show this, call the unique morphism that makes the required things commute in the definition of the product for choice of morphisms and . Then we must have and for and the morphisms in the span corresponding to the product. So, the choice of and forces a particular value for , and because all these morphisms are isomorphisms, different choices for and will result in different values for . I think this means that has at least as many elements as .
It think it remains to show that has no more elements than .
To do that, pick some . Then set and . So, given an element of , we have identified (uniquely) an element of .
Ok, hopefully I've done this close to right.
I am now willing to believe that .
Instead of focusing on "at least as many" and "no more than", which is about cardinalities of sets, a more modern approach is to get a bijection between and .
One standard way to do this is to first get a map from to , and then get a map from to , and then prove these maps are inverses.
I think you did all of this except the last step: proving these maps are inverses.
David Egolf said:
I am now willing to believe that .
I'd probably be willing to believe it at that point too. But to really prove it you need to show the two maps you've gotten are inverses. (I'm not pressuring you to do it, just making sure it's clear this is the remaining bit of work necessary for a complete proof.)
John Baez said:
I think you did all of this except the last step: proving these maps are inverses.
Oh, good point! Also, thinking in terms of maps does seem better than focusing on "at least as many" and "no more than", because it makes it easier to talk about infinite sets.
We need two maps. For the first map, define by . By the universal property of the product, there exists a unique morphism from to that makes the needed things commute in the definition of the product. This means that , actually.
For the second map, define by .
Now we want to see if these are inverses.
.
I think we can use at this point to conclude , although I'm a bit hazy on this point.
If that's true, then I think and are inverses.
Now, accepting , let's see what we can conclude regarding the existence of the product of and . For it to exist, we need . Assuming we can replace sets with sets that are isomorphic to them, and setting , we get that must hold if the product of and exists in .
If has a finite number of elements , then this corresponds to setting , we find which implies or . This I believe implies that must have either 0 or 1 elements, as we concluded above.
Morgan Rogers (he/him) said:
But this "reduction to counting" argument loses a bit too much information! After all, we can have for infinite sets too! So can you refine your 'no-go' argument to work for infinite sets? Or are there products of infinite sets too?
And so we arrive at this question! I'm not really sure where to start with this. I'm not even sure how to show that for some infinite set we can have in .
David Egolf said:
Now, accepting , let's see what we can conclude regarding the existence of the product of and . For it to exist, we need .
No.
You didn't prove we need it, in fact we don't need it, and indeed any pair of sets has a product in the category .
Or are you working in here, your name for the category of sets and bijections?
John Baez said:
Or are you working in here, your name for the category of sets and bijections?
Yeah, I'm working in , where I believe this is required.
Nice one @David Egolf! Seems like you got to exactly what I was hinting at.
So, to summarize what we've been talking about, in context of the first post in this thread -
In the category , where the objects are sets and the morphisms are bijective functions, we can only take certain products. In particular, a product of two finite sets and exists exactly when both and are empty, or both and have a single element.
In the category , where the objects are sets and the morphisms are (unrestricted) functions, the product of any two sets exists.
So, by adding additional morphisms (going from bijective functions to all functions), we have added the ability to consider more products of sets.
A related question - what's the minimum of morphisms that would need to be added between sets to make the product of any pair of finite sets exist in the resulting category? As a first (somewhat random) guess, I'd be tempted to see if would have all these products, where is the category having sets as its objects, and surjective functions as its morphisms.
It's a very good exercise to show that's false. It's a good guess. Well, what I mean by that is that it fooled me too for a while. :upside_down:
One nice fact is that the category of finite sets and all functions between them is the "free category with finite coproducts on one object". In other words, if you posit that your category has one object, and assume it has finite coproducts, and throw in no extra equations than those that are required by this, you get a category equivalent to .
This is a more high-powered version of the fact that the natural numbers are the free commutative monoid on one element.
I.e., if you have a number and you start adding it to itself following the rules of a commutative monoid and no others, you get something isomorphic to the natural numbers.
David Egolf said:
As a first (somewhat random) guess, I'd be tempted to see if would have all these products, where is the category having sets as its objects, and surjective functions as its morphisms.
In fact this is wrong for two different reasons, one of which is a bit trivial and boring, the other of which is more interesting.
Thanks for the interesting responses. I plan on thinking about this once I have a bit more energy. (I unfortunately suffer from chronic fatigue, which is acting up this week).
More handwavily, adding more morphisms gives you more ways to distinguish two objects from each other. It's sort of like how more open sets in a topology gives you more ways to distinguish elements and is called a "finer topology". It's late and I'm having trouble figuring out how to make this intuition more precise but I'm sure there's a way. Maybe something to do with the Yoneda lemma.
I would have said the opposite, that adding more morphisms gives you more ways to identify two objects with each other. Surely that's the case when the morphisms are invertible. And isn't it easiest to distinguish objects in a discrete category that has no nonidentity morphisms?
identify is a form of distinguishing ;) but yeah I think distinguish is not quite the right word. The analogy I stand by is that more morphisms is like a finer topology and less morphisms is like a coarser one.
So the Yoneda lemma says that for all c. So if there are more morphisms you really need to do more work to prove that the two objects are isomorphic...there's a greater burden of proof.
How can making two things the same be a way of telling them apart?
If your category is a preorder, like the preorder of open sets in a topology, then adding more morphisms in the extreme would make it into a chaotic category, which is the indiscrete topology in which nothing at all ca be told apart.
Mike Shulman said:
How can making two things the same be a way of telling them apart?
This sounds like a zen koan, it's a paradox but I definitely do think there is a lot of truth to it. When you have more ways of making two things the same you also have more ways of explaining their difference. And besides, not every morphism is an isomorphism.