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.
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 didn't specify the source and target of your morphisms.
If an object is a matrix and you think a morphism is a matrix such that times is , then a morphism is not really just a matrix: it's a pair consisting of and . Otherwise the same morphism would have more than one source and target, since you're trying to make be a morphism from every to every such that times is .
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."
Doesn't the arrow category have morphisms which are pairs of morphisms forming commutative squares? Are you thinking of the over/slice category?
You're right, sorry, that's what I meant.
Another possible interpretation of the OP is to consider a category of matrices enriched over itself - that's how I parsed it initially anyway
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)
... which was my first thought when I read the OP, before deciding that the question was actually about something different
Isn't monoidal closed the definition of self-enriched?
I think what Emily is talking about is the fact that you can reconstruct the usual category of matrices from the enriched one
And vice versa
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).
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
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?"
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!
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
(I guess this is also what Fabrizio is referencing above)
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 to , called , is an object.
But it's important to be careful and not assume that 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 to as 'an arrow from to ' but this often results in a loss of information.
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"
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)
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.
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/ , and this is the category you want!
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
- there is only one object, called .
- morphisms from to are element of M
- composition is multiplication M.
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
- objects are morphisms f : x c in C
- a morphism from f : x c to f': x c is a morphism g: x x' in C such that
f' g = f
- composition is done in C.
(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/ , and this is the category you want!
Thank you! I believe this is what I was looking for
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.
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