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: deprecated: id my structure

Topic: "Monoidification" of a category


view this post on Zulip Moana Jubert (Aug 16 2023 at 19:12):

Let C\mathcal{C} be a small category.

Consider two subsets X,YC(c,d)X, Y \subseteq \coprod \mathcal{C}(c, d) of arrows of C\mathcal{C}. I can define a "pointwise composition" of XX and YY:

XY{fgfX,gY,codg=domf}X \circ Y \coloneqq \{f \circ g \mid f \in X, g \in Y, \operatorname{cod} g = \operatorname{dom} f\}

Now inductively define a set MCM\mathcal{C} with the following:

  1. For any arrow f:cdf : c \to d of C\mathcal{C}, the set {f}{idxxC}\{f\} \cup \{\mathrm{id}_x \mid x \in \mathcal{C}\} is an element of MCM\mathcal{C}
  2. Given X,YMCX, Y \in M\mathcal{C}, then XYMC X \circ Y \in M\mathcal{C}

It turns out (MC,)(M\mathcal{C}, \circ) is a monoid with unit element {idxxC}\{\mathrm{id}_x \mid x \in \mathcal{C}\}, and the construction surely is simple enough for it to have been formulated by someone else.

Is it the case? Does this have a name?

Additional points:

view this post on Zulip Ivan Di Liberti (Aug 16 2023 at 22:30):

Hello Moana! How are you doing?

I hope to say more tomorrow on this, but I cannot guarantee it. For the moment, check out "How Comprehensive is the Category of Semigroups?". It does not give you precisely what you want, but I like it. :)

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 01:07):

More simply, I would define, MCM\mathcal{C} to be the set of non-empty subsets of Mor(C)Mor(\mathcal{C}) with composition as you defined it. I think, it's not exactly the same thing that what you obtain with your definition by induction?

Now, if C\mathcal{C} is already a monoid ie. a category with a single object, MCM\mathcal{C} is still equal to the set of all the non-empty subsets of Mor(C)Mor(\mathcal{C}). It is not the same thing than C\mathcal{C} but you have an injective function i:Mor(C)MCi:Mor(\mathcal{C}) \rightarrow M\mathcal{C} which send an element mm of the monoid to {m}\{m\} and you can identify your monoid C\mathcal{C} with the image i(C)i(\mathcal{C}).

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 01:16):


I got a better idea: define M0CM_{0}\mathcal{C} to be the subset of Ob(C)×Ob(C)×Mor(C)Ob(\mathcal{C})\times Ob(\mathcal{C}) \times Mor(\mathcal{C}) such that (a,b,f)M0C(a,b,f) \in M_{0}\mathcal{C} if and only if dom(f)=adom(f)=a and cod(f)=bcod(f)=b. Now define MC:=M0C{0,1}M\mathcal{C} := M_{0}\mathcal{C} \sqcup \{0,1\}.

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 01:20):

Define (a,b,f)(b,c,g):=(a,c,f;g)(a,b,f) * (b,c,g) := (a,c, f;g), (a,b,f)(c,d,h)=0(a,b,f) * (c,d,h) = 0 if bcb \neq c, (a,b,f)0=0(c,d,g):=0(a,b,f) * 0 = 0 * (c,d,g) := 0, (a,b,f)1=1(a,b,f)=(a,b,f)(a,b,f)*1=1*(a,b,f)=(a,b,f), 11:=11*1:=1 and 10=01=01*0=0*1=0.

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 01:26):

It looks like it's really a monoid. And if you start with a monoid, ie. a category C\mathcal{C} with a single object \star then M0(C)={(,,f),fMor(C)}\mathcal{M}_{0}(\mathcal{C}) = \{(\star,\star,f), f \in Mor(\mathcal{C})\}, you obtain M(C)={(,,f),fMor(C)}{0,1}\mathcal{M}(\mathcal{C}) = \{(\star,\star,f), f \in Mor(\mathcal{C})\} \sqcup \{0,1\} and it's almost isomorphic to C\mathcal{C} except that you have two new useless elements 0,10,1.

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 01:36):

The general idea is that your monoid, by multiplication, composes the morphisms like in C\mathcal{C} and there is also an element "0 ie. error" for when you multiply morphisms which are not composable, and a unit 11 which is here because you want a unit.

view this post on Zulip Jean-Baptiste Vienney (Aug 17 2023 at 02:05):

Remark that in the case where C\mathcal{C} is a monoid, then M0CM_{0}\mathcal{C} is a sub-semi-group of MCM\mathcal{C} which is isomorphic to C\mathcal{C}. A solution to obtain that MM preserves monoids would therefore be to do the {0,1}- \sqcup \{0,1\} if and only if M0CM_{0}\mathcal{C} don't become a sub-semi-group of MCM\mathcal{C} which is a monoid if you do the {0,1}- \sqcup \{0,1\}. But it is maybe simpler not to care about that.

view this post on Zulip Moana Jubert (Aug 17 2023 at 09:45):

Ivan Di Liberti said:

Hello Moana! How are you doing?

I hope to say more tomorrow on this, but I cannot guarantee it. For the moment, check out "How Comprehensive is the Category of Semigroups?". It does not give you precisely what you want, but I like it. :)

Hello Ivan :) How are you?

It sure looks very interesting! I will definitely put it at the top of my to-read list :)

view this post on Zulip Moana Jubert (Aug 17 2023 at 10:20):

@Jean-Baptiste Vienney Thank you :) One solution indeed would be to add an absorbing element 00 that would "skip" composition when it's impossible. I see two consequences to this:

In any case I'll think about this!

view this post on Zulip Carlos Zapata-Carratala (Aug 20 2023 at 17:40):

Moana Jubert said:

Let C\mathcal{C} be a small category.

Consider two subsets X,YC(c,d)X, Y \subseteq \coprod \mathcal{C}(c, d) of arrows of C\mathcal{C}. I can define a "pointwise composition" of XX and YY:

XY{fgfX,gY,codg=domf}X \circ Y \coloneqq \{f \circ g \mid f \in X, g \in Y, \operatorname{cod} g = \operatorname{dom} f\}

Now inductively define a set MCM\mathcal{C} with the following:

  1. For any arrow f:cdf : c \to d of C\mathcal{C}, the set {f}{idxxC}\{f\} \cup \{\mathrm{id}_x \mid x \in \mathcal{C}\} is an element of MCM\mathcal{C}
  2. Given X,YMCX, Y \in M\mathcal{C}, then XYMC X \circ Y \in M\mathcal{C}

It turns out (MC,)(M\mathcal{C}, \circ) is a monoid with unit element {idxxC}\{\mathrm{id}_x \mid x \in \mathcal{C}\}, and the construction surely is simple enough for it to have been formulated by someone else.

Is it the case? Does this have a name?

Additional points:

Hi Moana,
I cannot add much more to your original question about the construction you propose but I find the topic intriguing. I was wondering, what motivates you to want to capture "everything you need to know about a category" into a monoid? Why that particular (total) algebraic structure?

view this post on Zulip Moana Jubert (Aug 21 2023 at 09:23):

Hello Carlos! Here's what I have been thinking about:

Let MM be a monoid seen as a one-object category M\mathcal{M}. A functor X:MSetX : \mathcal{M} \to \mathbf{Set} amounts to a set XX equipped with an action M×XXM \times X \to X when we unfold the necessary data. Now, a natural transformation XYX \Rightarrow Y between X,Y:MSetX, Y : \mathcal{M} \to \mathbf{Set} merely is a function XYX \to Y on the underlying sets which preserves the action of MM.

MM canonically acts on itself "on the left" via the only (co)representable functor MM(,):MSetM \coloneqq \mathcal{M}(\ast, -) : \mathcal{M} \to \mathbf{Set}.

I then have two questions:

  1. When is a natural transformation XMX \Rightarrow M between X:MSetX : \mathcal{M} \to \mathbf{Set} and MM(,):MSetM \coloneqq \mathcal{M}(\ast, -) : \mathcal{M} \to \mathbf{Set} equivalent to the data of a discrete fibration over M\mathcal{M}?
  2. Given any small category C\mathcal{C} and a "reasonable monoidification" MCM\mathcal{C}, when is a natural transformation XMCX \Rightarrow M\mathcal{C} equivalent to the data of a discrete fibration over C\mathcal{C}?

view this post on Zulip Carlos Zapata-Carratala (Aug 21 2023 at 23:31):

I see! So you are looking for constructions of such a MCMC right? Why should we expect it to be a total algebraic structure?

view this post on Zulip Moana Jubert (Aug 23 2023 at 06:19):

Yes! Well because I'm curious if it would work!

But for example, a module is a particular case of monoid, yet it is more "natural" to define a module in terms of an action over an abelian group rather than as a single monoid with some prescribed properties...

In any case monoids are such a basic structure that maybe, maybe there's some way to encode all of, or many of the properties of a category

view this post on Zulip Carlos Zapata-Carratala (Aug 23 2023 at 12:17):

I can see the pattern for (total) associative-like algebras to be encoded into monoids, like the case of modules you point out, but I am having a hard time thinking how you are going to encode the partial/typed nature of categories. In a sense, that's precisely what categories do beyond just being monoids. If one insists that monoid be the name of an algebra with an associative binary and identity, then categories should be called "monoidoids" in the same naming convention that gives "groupoids" from groups ;) Maybe I am missing something... I do find this question interesting since I am exploring exotic higher-arity algebras and I have just focused on the "-oid" version from the start, since they are easier to define in a typed framework (totality is a specific property of certain diagrams or type constraints).