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: category where objects and arrows are the same thing?


view this post on Zulip Bassel El Mabsout (Mar 15 2021 at 05:06):

Lets say for example we're talking about the Category where 2x2 Matrices are the objects and a morphism is a matrix multiplication by a certain 2x2 Matrices. The identity arrow is then multiplication by an identity matrix. There's then a direct correspondence between arrows and objects. What's happening here? What kind of category is this and how can this correspondence be specified in the language of Category theory?

view this post on Zulip John Baez (Mar 15 2021 at 05:49):

You didn't specify the source and target of your morphisms.

If an object is a 2×22 \times 2 matrix and you think a morphism f:xyf: x \to y is a 2×22\times 2 matrix such that ff times xx is yy, then a morphism is not really just a 2×22 \times 2 matrix: it's a pair consisting of ff and xx. Otherwise the same morphism would have more than one source and target, since you're trying to make ff be a morphism from every xx to every yy such that ff times xx is yy.

view this post on Zulip Nathaniel Virgo (Mar 15 2021 at 05:53):

If you did mean the category that John just described, then you can say that it's the arrow category of the monoid of 2x2 matrices. In other words, take the following category:

then form the arrow category for that category, and you get the category John described. This gives you a general pattern for forming "categories where the arrows and the objects are the same kind of thing."

view this post on Zulip Morgan Rogers (he/him) (Mar 15 2021 at 07:29):

Doesn't the arrow category have morphisms which are pairs of morphisms forming commutative squares? Are you thinking of the over/slice category?

view this post on Zulip Nathaniel Virgo (Mar 15 2021 at 07:36):

You're right, sorry, that's what I meant.

view this post on Zulip Javier Prieto (Mar 15 2021 at 11:11):

Another possible interpretation of the OP is to consider a category of matrices enriched over itself - that's how I parsed it initially anyway

It just occurred to me that the category of matrices is enriched over itself, which feels very weird. A priori it seems like the enriched category of matrices is forgetting a ton of information, but somehow it's not.

- Emily Riehl (@emilyriehl)

view this post on Zulip Jules Hedges (Mar 15 2021 at 11:14):

This sounds at least closely related to the fact that the category of matrices is monoidal closed? (Actually I'm not sure how to think about the difference between a category being monoidal closed and a category being enriched in itself)

view this post on Zulip Jules Hedges (Mar 15 2021 at 11:15):

... which was my first thought when I read the OP, before deciding that the question was actually about something different

view this post on Zulip Fawzi Hreiki (Mar 15 2021 at 11:17):

Isn't monoidal closed the definition of self-enriched?

view this post on Zulip Fawzi Hreiki (Mar 15 2021 at 11:20):

I think what Emily is talking about is the fact that you can reconstruct the usual category of matrices from the enriched one

view this post on Zulip Fawzi Hreiki (Mar 15 2021 at 11:20):

And vice versa

view this post on Zulip Fawzi Hreiki (Mar 15 2021 at 11:21):

In this case though, the arrows and the objects aren't the same; rather, the hom-objects and the objects are the same (as in any enriched category).

view this post on Zulip Javier Prieto (Mar 15 2021 at 11:28):

Isn't monoidal closed the definition of self-enriched?

Only if you start with a monoidal category, no?

In this case though, the arrows and the objects aren't the same; rather, the hom-objects and the objects are the same (as in any enriched category).

You're right, so this is not exactly the OP's question

view this post on Zulip Fabrizio Genovese (Mar 15 2021 at 11:56):

In principle there's no problem in defining a (small) category where arrows and objects are given by the same set, as long as you can define source, target and all the rest such as the categorical axioms hold. Still, I guess one of the main points of category theory is type hygiene, that is, categorical language allows to have everything neatly compartmentalized so that keeping track of things becomes easier. The idea of defining a category where objects and morphisms are the same seems to go, at least for me, against this basic principle. So it's not that you cannot do it, but more like "do you really want to do it?"

view this post on Zulip Fabrizio Genovese (Mar 15 2021 at 11:59):

As others already mentioned, there are concepts such as "categories enriched over themselves" which offer a neater way to express similar ideas. The point here is that "you can consider arrows between two objects as an object in your category", which sounds similar to what you want to some extend, but in addition to this you have a whole infrastructure in place that disambiguates stuff for you!

view this post on Zulip Chad Nester (Mar 15 2021 at 13:18):

In a monoidal closed category there's a distinction between a thing and its name, the presence of names being what makes it closed.

@Bassel El Mabsout you might like the "single-sorted" presentation of a category: nlab

view this post on Zulip Chad Nester (Mar 15 2021 at 13:22):

(I guess this is also what Fabrizio is referencing above)

view this post on Zulip Joshua Meyers (Mar 15 2021 at 13:45):

Just to point out, in a category enriched over itself, the object-set is not identical to the arrow-set. A single arrow is not an object. Rather, the entire collection of arrows from xx to yy, called Hom(x,y)\text{Hom}(x,y), is an object.

view this post on Zulip Fawzi Hreiki (Mar 15 2021 at 13:48):

But it's important to be careful and not assume that Hom(x,y)\text{Hom}(x, y) forms anything like a collection a priori. Strictly speaking, in an enriched category, there are no arrows separate from the hom-objects. We can talk about a map from the monoidal unit II to Hom(x,y)\text{Hom}(x, y) as 'an arrow from xx to yy' but this often results in a loss of information.

view this post on Zulip Fabrizio Genovese (Mar 15 2021 at 14:28):

Just to be sure, I'm not claiming that in a category enriched over itself objects and arrows are the same thing. I'm claiming that, probably, what @Bassel El Mabsout really wants is a category enriched over itself, or some other similar concept that seems to be more hygienic than "a category where objects and arrows are the same thing"

view this post on Zulip Simon Burton (Mar 15 2021 at 15:17):

Bassel El Mabsout said:

Lets say for example we're talking about the Category where 2x2 Matrices are the objects and a morphism is a matrix multiplication by a certain 2x2 Matrices. The identity arrow is then multiplication by an identity matrix. There's then a direct correspondence between arrows and objects. What's happening here? What kind of category is this and how can this correspondence be specified in the language of Category theory?

You can also formulate the definition of a category just using the arrows*, and then the identity arrows correspond to "objects" in the usual definition of a category. To me it seems like this is what you are getting at here.

(* and a couple of unary predicates: source and target)

view this post on Zulip Bassel El Mabsout (Mar 15 2021 at 15:20):

Ok so let me try to simplify things a bit to get to the heart of the issue. Let's say we're talking about Natural numbers with the sum operation. You can treat this as a monoid where the arrows name the numbers and their composition is their sums. But the other view I'm trying to talk about is having each number be an object and there's an arrow between every object and objects that are greater than it. The arrow between 2 and 5 is the (2, +3) arrow for example. Like John said, here the arrow has to be indexed by the initial number we're mapping and the +3 function. Here the +x function "uses" objects that are in this category. Meaning there's a mapping from collections of arrows to objects (if we focus on the second element of the arrow) and objects to collections of arrows which I am finding weird and I'm trying to understand how to utter this.

view this post on Zulip John Baez (Mar 15 2021 at 15:33):

Here's how you utter it, @Bassel El Mabsout: @Nathaniel Virgo and @Morgan Rogers (he/him) explained it right after I guessed what you were talking about, but their explanation was so quick you might not have noticed, and then a bunch of other people talked about a bunch of other things.

As you noticed, your construction that works for any monoid. It involves two steps that are important and well-known in themselves! Nathaniel Virgo described the first step. For any monoid M there's a category BM where

People often summarize this by saying "a monoid is a one-object category", but what they mean is that you can turn a monoid into a one-object category and vice versa (and more).

Morgan Rogers described the second step. For any category C and any object x of C there's a slice category C/x where

f' g = f

(The explanation on the nLab is nice because you should be imagining triangles when you think about this.)

Starting from a monoid M you can thus form BM and then BM/ \bullet, and this is the category you want!

view this post on Zulip Bassel El Mabsout (Mar 15 2021 at 15:37):

John Baez said:

Here's how you utter it, Bassel El Mabsout: Nathaniel Virgo and Morgan Rogers (he/him) explained it right after I guessed what you were talking about, but their explanation was so quick you might not have noticed, and then a bunch of other people talked about a bunch of other things.

This is an example of a general construction that works for any monoid. It involves two well-known steps. Nathaniel Virgo described the first step. For any monoid M there's a category BM where

People often summarize this by saying "a monoid is a one-object category", but what they mean is that you can turn a monoid into a one-object category and vice versa (and more).

Morgan Rogers described the second step. For any category C and any object x of C there's a slice category C/x where

f' g = f

(The explanation on the nLab is nice because you should be imagining triangles when you think about this.)

Starting from a monoid M you can thus form BM and then BM/ \bullet, and this is the category you want!

Thank you! I believe this is what I was looking for

view this post on Zulip John Baez (Mar 15 2021 at 16:01):

Bassel El Mabsout said

Thank you! I believe this is what I was looking for.

Great! I think so.

This is a fairly well-known construction when your monoid is a group: then the category you get is actually a groupoid, and it's called the translation groupoid or action groupoid of your group.

I haven't seen this construction used as often when the monoid isn't a group, but I've sometimes used it for the monoid of nonnegative real numbers, with addition as the monoid operation.

By the way, people asking questions here should note a general phenomenon that happened here: your question may be answered quite quickly, and then people will move on to talk about related things. It may be necessary to look carefully at the initial answers and ask for more detail.

view this post on Zulip Bassel El Mabsout (Mar 15 2021 at 19:20):

John Baez said:
By the way, people asking questions here should note a general phenomenon that happened here: your question may be answered quite quickly, and then people will move on to talk about related things. It may be necessary to look carefully at the initial answers and ask for more detail.

I didn't expect to get this many responses this quickly! The other answers are also very interesting so I'll be going through them as well