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.
I know category theorists prefer commutative monoids, and I do too, but people who study them intensively seem to prefer commutative semigroups, so that's what I talked about today on Twitter:
I outlined what could be called the "fundamental structure theorem of commutative semigroups".
You can always stick a unit in a commutative semigroup without damaging it too much: if it already had a unit it'll be dethroned by the new one, but the commutative monoid you had will sit inside the new one. So maybe let's think about commutative monoids.
Various questions that I'll pose as puzzles, regardless of whether I know the answers or not:
Puzzle 1. You can take the nerve of a category, so you can take the nerve of a commutative monoid . What sort of space do you get? (Here I'm calling a simplicial set a "space": if you don't like that, do geometric realization and get a topological space.)
Puzzle 2. Any commutative monoid maps to a semilattice formed by imposing the relations for all . What sort of space do you get by taking the nerve of a semilattice? What can you say about the map ?
Puzzle 3. The fundamental theorem says the fibers of the map are 'archimedean monoids' (defined in my tweet more generally for semigroups). What sort of space do you get by taking the nerve of an archimedean monoid?
Puzzle 4. What topological picture of do you get from the fundamental theorem?
I stand up for all downtrodden, oppressed mathematical objects. Consider the humble "commutative semigroup". This is a set with a binary operation + obeying a+b = b+a (a+b)+c = a+(b+c) Too simple for any interesting theorems? No! (1/n) https://twitter.com/johncarlosbaez/status/1246470112321953792/photo/1
- John Carlos Baez (@johncarlosbaez)Ooh! I wonder how this compares to Krohn Rhodes Decomposition? (Noncommutative structure theorem I've long tried to grok without yet success)
Thanks for reminding me of Krohn-Rhodes theory. I ran into it in a strange book by Rhodes, sometimes called The Wild Book:
This book was originally written in 1969 by Berkeley mathematician John Rhodes. It is the founding work in what is now called algebraic engineering, an emerging field created by using the unifying scheme of finite state machine models and their complexity to tie together many fields: finite group theory, semigroup theory, automata and sequential machine theory, finite phase space physics, metabolic and evolutionary biology, epistemology, mathematical theory of psychoanalysis, philosophy, and game theory. The author thus introduced a completely original algebraic approach to complexity and the understanding of finite systems. The unpublished manuscript, often referred to as "The Wild Book," became an underground classic, continually requested in manuscript form, and read by many leading researchers in mathematics, complex systems, artificial intelligence, and systems biology. Yet it has never been available in print until now.
But I don't really understand the Krohn-Rhodes decomposition, though I understand most of the words by now.
It's a very entertainingly written book! For example, the first few pages motivate the structure problem for semigroups as philosophical quest to understand time. When I tried to read it in undergrad, I got lost. Maybe I'm more mature now.
For this, am I supposed to think of a commutative monoid as a one object monoidal category? Making it a semilattice seems to make it compact closed? I don't know much about nerves besides the definitions, what are some ways those are usually described?
I'm in similar boat as you, @vikraman. I'm not sure how nerves are usually described. Here, though, I think that the nerves we get are especially nice as (geometrically realized) spaces. [For example, commutativity of the semigroup means that every square fills: ab = ba, meaning that the fundamental group is a bit simpler than otherwise (not trivial, like I said before)
(Unlike in normal math, each of my statements is false with some probability, so the overall correctness decays with length of comment. I might be totally wrong)
It decayed: the nerve of the abelian group A is a space whose fundamental group is A.
Ah! Thanks! Yeah we don't have the 2 cell relations for general a and b, just for ab=ba and likewise.
The nerve of any group G, thought of as a category, is called the Eilenberg-Mac Lane space K(G,1). It's good to think about these.
To form the nerve of G you start with a point, add an edge from it to itself for each element of G, add a triangle with edges g,h,gh for each pair of group elements... and so on, with an n-simplex for each n-tuple of group elements.
You get a space with fundamental group G and all higher homotopy groups being trivial.
Hmm okay so if monoid C maps to monoid G then we should have NC mapping to NG, since hopefully N is functorial. I'd like to say that when G is the abelian group generated by C, NC and NG are homotopic. I can see that I'm not equipped to think well about this, though. Off to learn about nerves and basic alg top!
For monoids that aren't groups, the nerve is less famous... hmm, this looks good:
The geometric realization of the nerve is often called the "classifying space".
Yes, N is a functor. The thesis above shows the nerve of a free monoid is homotopy equivalent to the corresponding free group.
So for example,
Yeah, and that's about all there is to it, morally speaking....
John Baez said:
Yes, N is a functor. The thesis above shows the nerve of a free monoid is homotopy equivalent to the corresponding free group.
There's something to be said here about group completion, I imagine, but I can't think of it off the top of my head. I do know that the classifying space of a category has as fundamental group the localisation of the category that inverts all morphisms (this is due to Quillen).
So the fundamental group of the classifying space of a monoid is the group completion of that monoid. That's nice! But maybe you were talking about group completions of topological monoids.
The group completion of a semilattice (thought of as a monoid) is trivial, since in the semilattice forces in the corresponding group. So, the fundamental group of the classifying space of a semilattice is trivial - that's a partial answer to Puzzle 2.
I have a vague feeling that the classifying space of a semilattice is contractible, but I don't know if that's true.
And I just got some insight into Puzzle 1 from MathOverflow:
If is the group completion of a commutative monoid , the
canonical map is a homotopy equivalence; even if
is not injective. (This is easy to prove: think of as a
functor between one object categories and apply Quillen's Theorem A to
it. There is only one slice category to check and using commutativity
it is easy to see this category is filtered and thus contractible.)
Here is the geometric realization of the nerve of .
@John Baez yes, topological monoids. So in this case it's even easier!
So the remarks above let us solve this puzzle:
Puzzle 2. Any commutative monoid maps to a semilattice formed by imposing the relations for all . What sort of space do you get by taking the nerve of a semilattice? What can you say about the map ?
I'll talk in terms of the geometric realizations of these nerves. The classifying space of a commutative monoid is homotopy equivalent to its group completion, and the group completion of a semilattice is the trivial group, so the classifying space of a semilattice is contractible! My guess was right! :+1:
Thus, is contractible, while is homotopy equivalent to where is the group completion of . So the natural map is homotopy equivalent to the map from to a point.
I never really got the point of Quillen's Theorem A before, but now that I've used it to solve this puzzle I like it!
Yes, Quillen's Theorem A is really nice. As a student I once worked out a version for categories internal to Top (and used it to prove the geometric realisation of a weak equivalence is a homotopy equivalence), but it was probably already known or quickly surpassed by infinity-category techniques.
fyi I made a monoid stream not too long ago. If this topic ends up expanding, please feel free to carry it over there!
Morgan Rogers said:
fyi I made a monoid stream not too long ago. If this topic ends up expanding, please feel free to carry it over there!
But semigroups do not have an identity! :grinning_face_with_smiling_eyes:
Fun fact: The category of semigroups is a full reflective subcategory of the category of monoids. This sounds the wrong way around, so it makes you think.
Morgan Rogers said:
Fun fact: The category of semigroups is a full reflective subcategory of the category of monoids. This sounds the wrong way around, so it makes you think.
How does this work? The forgetful functor does not have a right adjoint.
No, it has a left adjoint :stuck_out_tongue:
I'm having second thoughts about it being a full subcategory, though, you should definitely check whether my claim was right or not :wink:
The best I can see is that the category of monoids is comonadic over the category of semigroups (classically).
And the category of semigroups is monadic over the category of monoids, since the functor adding an identity element preserves coequalizers.
PS: why "classically"?
I meant you need excluded middle to prove that the adjunction is comonadic: given a monoid , you want to construct a coalgebra map that maps the unit to the second component, and you need decidable equality on (at least for the unit) to do that.
Would you mind giving more detail? I can't see where one needs to decide equality here, given that the units of internal monoids in a category are specified by morphisms :thinking:
sorry, that was backwards, let me try again
To show that the functor from semigroups to coalgebras is essentially surjective, given a monoid with a coalgebra structure, you need to construct the corresponding semigroup. Classically, you do that by removing the unit from the monoid, but that does not work constructively.
You need that as sets.
Paolo Capriotti said:
The best I can see is that the category of monoids is comonadic over the category of semigroups (classically).
Oops, I meant it the other way, sorry for the confusion. :blush:
And the category of semigroups is monadic over the category of monoids, since the functor adding an identity element preserves coequalizers.
This I don't see, because the functor adding an identity does not have a left adjoint. It has a right adjoint, so of course it preserves coqualisers.
mild embarrassment I... may have drawn my adjunction upside down at the start of this discussion, and you making the same mistake re which is comonadic over which meant I didn't notice until now :scream:
This has been way more confusing than I expected it would be. :smile:
Have we reached an agreement, though? The adjunction between monoids and semigroups is both monadic and comonadic. Is that right?
So the counit at a monoid is the map which identifies the added unit with the original one, while the unit at a semigroup is the inclusion into . Both functors are conservative, adding a unit preserves equalisers, and the forgetful functor preserves coequalizers (as far as I can tell), so yes, the adjunction is both monadic and comonadic. :tada:
Sam Tenka (naive student) said:
It's a very entertainingly written book! For example, the first few pages motivate the structure problem for semigroups as philosophical quest to understand time. When I tried to read it in undergrad, I got lost. Maybe I'm more mature now.
Sorry for the off-topic, but holy moly. I just realized that I must have taken a very strange seminar for undergraduates from Rhodes at Berkeley, and not known much about him at the time. I remember being given runoffs from a manuscript of his to read (must have been the Wild Book!), and thinking they were the oddest things I'd ever seen a professor write and hand out to students. I did learn a fair amount about automata in that class, along with some very confusing discussions about how they could explain consciousness...
Out of curiosity - Has anyone ever studied "colored" semigroups, (or categories without unities)? I wonder what category theory results break when removing unity. I can envision the concept of adjunction, but there wouldn't be unit and counit, so probably no monad and comonad associated to an adjunction. Sorry if this is too off-topic, the "commutative" part doesn't fit well with colors
All I know is that it's called a “semicategory”. https://ncatlab.org/nlab/show/semicategory
What do the unit and counit of an adjunction have to do with the presence of identity morphisms?
^structures without identity elements still have an identity automorphism!
@Amar Hadzihasanovic isn't the unit of the adjunction obtained as being the image of the identity morphism through the isomorphism ? if there is no identity morphism I can't see where the unit comes from. To be fair, maybe I should have said that there are two notions of adjunction - one stating the equivalence of Homs and the other one being a pair of functor with unit and counit satisfying the correct coherence. Without identity morphism, I don't see a reason why with two notions would coincide
Oh I see what you meant there, my bad!
I mixed up between the internal and eternal part
Thibaut Benjamin said:
Amar Hadzihasanovic isn't the unit of the adjunction obtained as being the image of the identity morphism through the isomorphism ? if there is no identity morphism I can't see where the unit comes from. To be fair, maybe I should have said that there are two notions of adjunction - one stating the equivalence of Homs and the other one being a pair of functor with unit and counit satisfying the correct coherence. Without identity morphism, I don't see a reason why with two notions would coincide
This is a good point, perhaps I spoke too quickly. :hushed:
John Baez said:
But I don't really understand the Krohn-Rhodes decomposition, though I understand most of the words by now.
One intuitive way to see it is in automata-theoretic terms. A Mealy machine is like a deterministic finite automaton, but each transition also outputs a letter; it computes the function obtained by concatenating the ouputted letters for a run over some input word. Then the Krohn-Rhodes theorem says that a string-to-string function computable by a Mealy machine (called a synchronous function) can be obtained by composing (by ordinary function composition) simpler Mealy machines:
This version can also be extended to more general automata models (e.g. sequential transducers) and is now a common workhorse of algebraic language theory (as someone who is not really an automata theorist I get the feeling that there are two intensively used results on semigroups, one is Krohn-Rhodes and the other is Simon's factorization forest theorem). I recommend looking at https://www.mimuw.edu.pl/~bojan/2019-2020/transducers-and-their-krohn-rhodes-decompositions
Let me take this opportunity to do some self promotion :p Pierre Pradic and I used Krohn-Rhodes to relate star-free languages to a non-commutative lambda-calculus in a recent preprint: https://hal.archives-ouvertes.fr/hal-02476219/document
About star-free languages, there have been some blog posts recently on Gödel's Last Letter, https://rjlipton.wordpress.com/2020/03/21/star-free-regular-languages-and-logic/ and https://rjlipton.wordpress.com/2020/03/29/logic-and-star-free-part-deux/
Thibaut Benjamin said:
Out of curiosity - Has anyone ever studied "colored" semigroups, (or categories without unities)? I wonder what category theory results break when removing unity. I can envision the concept of adjunction, but there wouldn't be unit and counit, so probably no monad and comonad associated to an adjunction. Sorry if this is too off-topic, the "commutative" part doesn't fit well with colors
Not quite the same, but in "A remark on the theory of semi-functors" Hoofman and Moerdijk study categories and semifunctors (i.e. "functors" that preserve composition but not necessarily identity morphisms), and show that the resulting 2-category is equivalent to the 2-category of Karoubi-complete categories and ordinary functors. Perhaps this equivalence extends to an adjunction between semicategories and categories? Edit: indeed, this is more or less said in the nlab article linked above.
I think I've heard these categories without identity maps called semi-categories...
They're also called semigroupoids.
Nguyễn Lê Thành Dũng said:
This version can also be extended to more general automata models (e.g. sequential transducers) and is now a common workhorse of algebraic language theory (as someone who is not really an automata theorist I get the feeling that there are two intensively used results on semigroups, one is Krohn-Rhodes and the other is Simon's factorization forest theorem). I recommend looking at https://www.mimuw.edu.pl/~bojan/2019-2020/transducers-and-their-krohn-rhodes-decompositions
Thanks! I should learn these theorems well, then. I'll never be an expert on semigroups, but as a category theorist I should not be ignorant of them!
Since that follows the algebra-oid naming scheme.
Unfortunately this name is quite difficult for category theorists I think because "groupoid" is about 100x as common as "semigroup", so it looks like a unit.
While the intended parsing is "(semigroup)oid".
Yeah.
What would a semi(groupoid) be, though? Groupoid is the categorification of group, right? So wouldn't it be expected to work out given what a semigroup is (although that might not be well known)?
right, it can't be anything so my brain just goes :boom: and doesn't backtrack to the other parsing.
or well that's not quite what you said, hmm
Semigroup might be a bad name already.
I think "semi-" has been co-opted to mean "nonunital" (really, "nonunital category" is the safest name) and so... yeah. You can't have a semigroup in that sense because it's no longer a group.
Anyhow, a lot of hits for 'semigroupoid' will probably be functional programmers, because they're good at coming up with structures where composition makes sense, but where there's no unit unless you formally add one (which just causes you more bookkeeping work). But I did see at least one paper that sounded more like examining the theory of 'semigroupoids.'
The only thing I remember theory-wise from the programming context is that the Yoneda lemma probably doesn't work anymore.
Dan Doel said:
What would a semi(groupoid) be, though?
For better or worse, here Dusa McDuff defined semigroupoids to be non-empty, small, discrete categories in which all objects are isomorphic.
If it's discrete and all objects are isomorphic, can it only have one object?
I guess not.
why not?
Because 'discrete' doesn't necessarily mean 'all maps are identities' like I thought.
What does 'discrete' mean here?
Sorry: she means discrete in the topological sense. She's a topologist.
So category theorists can leave out the word "discrete" here.
So, is this a contractible groupoid with a small set of objects or something?
So up to equivalence we're talking about the deloopings of (EDIT: small) monoids
Or is it groupoids that are equivalent to groups?
So, is this a contractible groupoid with a small set of objects or something?
No, McDuff is not demanding that all morphisms be invertible: she said "non-empty, small category in which all objects are isomorphic." So it's a small category that's equivalent to a monoid.
I don't think this is a good thing to call a "semigroupoid" - I'm just warning y'all that she did it.
Oh, I see. It needn't be a groupoid.
Great. :)
This seems like it's using the algebra-oid version though: https://arxiv.org/pdf/1902.09375.pdf
So I guess they're both in use in actual category theory papers.
Oh wait, I guess it isn't? Because it says categories are semigroupoids. This may even be a third definition of 'semigroupoid'.
@Nguyễn Lê Thành Dũng Thanks! This is clarifying. It seems that KR morally reveals that those 2 state machines are the "source of all non-invertibility" --- neat!