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 cross-post a question I put on the nForum here.
Define a boolean rig as a rig such that . The question is whether such a rig is necessarily commutative. Every boolean ring is commutative. They also show in this paper: The variety of Boolean semirings that boolean rigs which verify are commutative. The only boolean rigs of cardinal are , and with (you can interpret this with "False", "True", "exclusive disjunction", "conjonction" whereas in , must be seen as the classical disjunction).
Therefore if a noncommutative boolean rig exists, it must be of cardinal , not be a ring and not verify .
Seems a bit strange to call that a Boolean rig; "idempotent rig" seems more transparent to me.
Observe that the idempotent condition results in ; this is close enough to commutativity that one can see how it might collapse to commutativity in a bunch of special cases.
Let's try considering the free rig on two elements , which has formal sums of words on those letters as elements, with products of these formal sums defined via distributivity. To get the free idempotent rig, we quotient by the congruence generated by . Since this rig represents pairs of elements in arbitrary idempotent rigs (universal property of the free object), there exists a non-commutative idempotent rig if and only if this rig is not commutative, since commutativity is preserved under rig homomorphisms.
(I tried to check whether is in this congruence, but haven't succeeded; see how you get on!)
Thanks, very good start! I'm gonna try.
I think not. Let be an idempotent monoid which is not commutative (these exist). We think of the monoid operation on as multiplication. Let . Extend the monoid structure on to one on by setting and for , and . Then define addition on by making be the additive identity (so for all ), making an absorbing element (so for all ), and setting for . Then I believe that is an idempotent semiring which is not commutative.
@Tim Campion not enough info there to see that the free idempotent monoid on two generators is not commutative; once again it's sufficient to check the free such monoid on two generators, which should look like ; from your link it has 7 elements, so all of these are distinct, and so we indeed have non-commutativity. :ok:🏻
Congrats @Tim Campion @Morgan Rogers (he/him) ! Problem solved so.
Incidentally, extending the reasoning means that the free idempotent rig on two generators is finite: its elements are formal sums of the elements of the free idempotent monoid, whose positive coefficients are reduced modulo 2 to or , since and hence (note that we don't have without subtraction!)
There are some further identifications here meaning that there are far fewer than elements; for example, . I'm sure there's an algebra package that can handle a reduction to a neat explicit presentation. I wonder how many elements there are!
Maybe I'll pose that as a puzzle on Mathstodon!
How are you getting 3 1, @Morgan Rogers (he/him)?
By mistake, apparently :sweat_smile:
Boolean rings are maybe named liked this because if you put , and , then you get a boolean algebra. But without the commutativity, it seems difficult to prove anything. We nevertheless have at least in an idempotent rig. As @Toby Bartels wrote on the nLab page Boolean rig, it seems difficult to prove these kind of order-theoretic/boolean properties without further assumptions.
But so, knowing everything about the free idempotent rig on two generators would be very interesting ahah.
I edited my question on Mathstodon so it doesn't put Morgan on the spot for claiming 3 = 1.
The identity looks useful.
Jean-Baptiste Vienney said:
Boolean rings are maybe named liked this because if you put , and , then you get a boolean algebra. But without the commutativity, it seems difficult to prove anything. We nevertheless have at least in an idempotent rig. As Toby Bartels wrote on the nLab page Boolean rig, it seems difficult to prove these kind of order-theoretic/boolean properties without further assumptions.
But so, knowing everything about the free idempotent rig on two generators would be very interesting ahah.
Well, well, with I'm gonna recheck these things.
Wonderfull, using , you also get, by defining , that .
I would want to know what properties of skew lattices you get.
Sadly, you don't even get or ...
, also gives ..., so by iterating negations, you only get and
If we work out a systematic method for how big the free idempotent rig is, it would be fun to submit the first few values to the OEIS
For no generators we get two elements; if I haven't missed any identities then for one generator we get 13:
and the current upper bound for two generators is over 2000.
The free idempotent rig on 3 generators is probably infinite, because the free idempotent monoid on 3 generators is:
https://en.m.wikipedia.org/wiki/Square-free_word
Aha, beware @John Baez, according to @Tim Campion 's link earlier, the free idempotent monoid on any number of generators is actually finite: it's not simply the set of squarefree words, since there can be non-trivial identities between these. Counterintuitive!
Interesting -- I hadn't appreciated this before -- it seems to be a quite nontrivial claim that the free idempotent monoid on 3 generators is finite. So I suppose a general element of must typically have infinitely many representations as a square-free word. Whatever references that OEIS page has must have some interesting methods to study this sort of thing...
Wow, I just assumed that taking an element of the free idempotent monoid on n letters and repeatedly using the rewrite rule
where are words would be a terminating confluent algorithm taking any element to a unique 'normal form', and that any square-free word would be one of these normal forms.
It's definitely a terminating algorithm, and any square-free word is 'terminal' (i.e. you can't apply the algorithm anymore), so I guess my error was assuming it's confluent!
But I'm not finding a counterexample to confluence.
On another note, 2 people seem to have shown that the free idempotent ring on 2 generators has 284 elements, and Greg Egan seems to be getting close to agreeing with that.
ababcbc abcbc abc
ababcbc ababc abc
Hmm, that one was confluent.
I'm also struggling to find non-confluent reductions! But I've only had a few tries.
Can you explain why this rewrite rule should be non-confluent? I think that if we take the words over an alphabet , if you take any word , write under the unique form where are distinct letters , and , then the only normal form such that is . I don't think that it is non-confluent...
Sorry, it's false.
You can't write any under this form (example: ).
What is true is that any word can be written under a unique form where are letters such that , ,, and then (which is not necessarily a normal form :sad: ).
Can you explain why this rewrite rule should be non-confluent?
Simply because if it were confluent the free idempotent monoid on 3 generators would be infinite (since there are infinitely many square-free words in 3 letters), yet we've been told it's finite.
This is an annoyingly indirect argument.
It's possible I'm making some sort of conceptual error here....
There also infinitely many words in 3 letters so...
maybe it's simply that, I should think two minutes
If two words represent the same element of the free idempotent monoid on three generators iff they have the same normal form under this rewrite rule then the free idempotent monoid on three generators is infinite
And I think it's true that two words represent the same element of the free idempotent monoid on three generators iff they have the same normal form under this rewrite rule?
But we should first be sure that every word has a unique normal form maybe
So if this rewrite rule is confluent then it is non-confluent, I think there is something like this in the argument.
But I don't know either how to prove that this rewrite rule is confluent. (I tried to above, and it doesn't look easy.)
Honestly I don't know. One should write the argument why it is non confluent with all the details.
I wrote a blog article about this stuff:
Here is a counterexample to confluence:
ababcbabc ababc abc
ababcbabc abcbabc
abc and abcbabc denote the same element of the free idempotent monoid, but they are different square-free words.
Nice! That's so much simpler than the example given on page 32 of the canonical reference:
Btw, it's really confusing to call these idempotent rigs, since idempotent semiring has an established usage meaning that the addition is idempotent.
I'm writing this up this week. Any suggestions for what it should be called? It seems @Toby Bartels created the nLab page and called them Boolean rigs, but I've already said why I don't like that name (too far from anything Boole did for the association to be valid).
I don't know a good name, if people reject both "boolean rig" and "idempotent rig". It's true there's a huge study, often called "idempotent analysis", of rigs where the addition is idempotent - like the tropical rig.
Multiplicatively idempotent rig? Mir?
Luckily for me, I don't care about this much.
If we had a compelling example besides the free ones we've discussed, it would probably help with choosing a name. Otherwise I could just call it a Bartels rig :rolling_on_the_floor_laughing:
First it is not new, a little Google search would show you that it is much older than the nlab page, examples:
Boolean semirings (1962)
The variety of Boolean semirings (1992)
Boolean semirings (1993)
There are also references which use "multiplicatively idempotent rig/semi-ring".
There are multiple such papers where you could find examples.
Secondly, as to the link with Boole: Boole studied logic from an algebraic point of view, with a so-called Calculus of thoughts. Boolean rigs (mainly the free maybe) can be understood as a set of propositions with , , as exclusive disjunction and as conjunction. I pointed out before that it would be interesting to understand the link with logic/lattices which will help to use the best name. This is what Toby Bartels wrote on the nlab.
Feel free to use the name that you prefer. People always speak of the same thing for dozen of years with different names before things stabilize.
While I'd be flattered to have these named after me, I only wrote down a definition and failed to prove any interesting properties, which doesn't really justify getting them named after me. Since {0,1} with 1 + 1 = 1 (and isn't this inclusive disjunction?) is a prominent example, I think that ‘Boolean’ is justified. And besides, it's already been used in the literature, albeit with ‘semiring’ rather than ‘rig’.
Hah it's clear I was lazy in my search. Thanks for the references @Jean-Baptiste Vienney.
If 0 is false and 1 is true then what should 2 be when it's not identified with 0? Double true? A general such rig doesn't look enough like the more constrained Boolean rings to inherit the name, and not just because of the failure of commutativity.
Oh sorry, I was mistaken. In the boolean ring formed from a boolean algebra by putting , is the exclusive disjunction. You can also get a boolean algebra from a boolean ring, so the two notions are equivalent. But with is not a boolean ring but only a semi-ring with . So, it doesn't apply and yes it is the inclusive disjunction here!
The semi-ring such that with elements and , ie. + as an exclusive disjunction, which is a boolean ring, is .
Oh I'm super confused. Boolean algebras and boolean rings are equivalent by going from inclusive disjunction to exclusive disjunction and vice versa. Now the two are examples of commutative semi-rings such that . And with is the boolean algebra associated to the boolean ring .
So, as examples which are not rings you have all the boolean algebras!!
Jean-Baptiste Vienney said:
Secondly, as to the link with Boole: Boole studied logic from an algebraic point of view, with a so-called Calculus of thoughts.
As someone whose favourite genre is scientific biography, I am glad I made time to read this article about Boole; thanks for sharing it. A quote from Boole that appears towards the end of the piece which might speak to people here is the following:
“We have as an elemental part of our nature the ability to observe imperfection and from that imperfection deduce the laws of Nature – deduce perfection. This ability is our capacity to ‘abstract’ and it may well be the case that a different capacity to abstract, even in the face of a universal order of things, would lead to a different perception of that order.”
This quote is so nice it made it to my webpage. Lovely!