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 have only found in the literature a description of the Lawvere theory for boolean algebras. Is there a nice monad presented by the theory of boolean algebras (preferrably with a reference describing it)?
In this nlab page, it seems that we could extract a monad structure on the double finite powerset functor whose algebras will be boolean algebras, but I am not totally convinced.
I don't know a reference. It would be nice to find one. But if we can't find one, what needs to be added to the nLab page to totally convince you that the square of the finite powerset functor can be made into a monad whose algebras are boolean algebras?
A proof, obviously. :upside_down:
But what spot(s) in the argument already there seem weak?
That page only describes the free boolean algebra right? But what tells me that all algebras for this monad are boolean algebras. The free cancellative monoid on is , but algebras of are (possibly not cancellative) monoids.
After reading again, I think the argument in the [[Boolean ring]] page convinces me. I see that the monad that is implicit in [[BoolAlg]] is the monad for boolean rings, and then the equivalence between boolean rings and boolean algebras does it. That is a neat example of distributive law between monads!
I'm willing to improve the nLab a bit and try to clarify this.
@Ralph Sarkis I think the way to see that the double powerset is the free Boolean algebra on a set is to go via the presentation definition I showed you on that picnic bench ;D You want to think of the exponent-side powerset as being the set of conjunctions over literals from . So, rewrite an element as . Then an element of is a disjunction of these terms (in ``normal form'', say). There is clearly exactly one BA homomorphism that lifts each map from into a Boolean algebra.
I haven't read the nLab article though. Maybe this is already there.
Edit: I said conjunction in the lower layer when I meant disjunction!
Ralph Sarkis said:
That page only describes the free boolean algebra right? But what tells me that all algebras for this monad are boolean algebras. The free cancellative monoid on is , but algebras of are (possibly not cancellative) monoids.
But Boolean algebras are algebras, so they are clearly monadic over set unlike cancellative monoids, so I'm not sure I understand the issue. Or are you thinking of them as special posets or something?
Graham Manuell said:
Ralph Sarkis said:
That page only describes the free boolean algebra right? But what tells me that all algebras for this monad are boolean algebras. The free cancellative monoid on is , but algebras of are (possibly not cancellative) monoids.
But Boolean algebras are algebras, so they are clearly monadic over set unlike cancellative monoids, so I'm not sure I understand the issue. Or are you thinking of them as special posets or something?
True, I did not remember this problem was because cancellative monoids are not algebraic.
Todd Schmid (he/they) said:
Ralph Sarkis I think the way to see that the double powerset is the free Boolean algebra on a set
Nice explanation - thanks!
It's clear you meant this, but just for beginners I'll reiterate that the free boolean algebra on is the double finite powerset: the set of finite subsets of finite subsets of .
Todd Schmid (he/they) said:
So, rewrite an element as . Then an element of is a conjunction of these terms (in ``normal form'', say).
Sorry Todd, I don't understand this. I am not sure how to think of the lifting to terms using possibly infinite conjunction (because Boolean algebras don't have infinite conjuctions). And your terms seem to use intersection in both layers of the powerset, which is not what the nlab page suggests.
Sorry, typo! I meant to say "disjunction" the second time.
About the no-infinite-conjunctions business, you make a good point. I'm used to the situations where either is finite or the intention is to build a complete Boolean algebra. It is my suspicion that the free complete Boolean algebra is also the free Boolean algebra, but would have to check.
Actually, I take that back: is not complete at all...
Todd Schmid (he/they) said:
I meant to say "disjunction" the second time.
I don't think that works either, because union and intersection are two semilattice operations on and you cannot compose the free semilattice monad with itself (see the no-go theorems by Zwart and Marsden). The nlab page suggests to take another monad structure on presented by (I believe) a binary operation and a constant satisfying
The binary operation will be interpreted as the symmetric difference of sets and as the empty set. To compose this monad with the usual monad on (free semilattices where the binary operation should be interpreted as intersection), there should be a distributive law presented by the equation .
@Ralph Sarkis Yeah, this is a lot more complicated than I thought initially. Although, I'm not convinced the no-go theorem is relevant here: We're not asking for the free distributive lattice on a set of generators, we're asking for a somewhat unrelated structure.
At least for finite , the construction I suggest does work. But yes, for infinite , the situation is less nice, and I'm not sure how to fix it. I will think about this for a bit... I have successfully been nerd sniped
Ralph is sketching out the situation in a way that agrees with what I gather from the nLab. The one thing that bothers me is this.
Ralph, following the nLab, mentions
the usual monad on (free semilattices where the binary operation should be interpreted as intersection)
But the unit for intersection of subsets of is the whole set , which is not generally a finite subset!
Right, we should change that to union (which is also a semilattice operation), but we need to find the corresponding distributive law.
This seems sad, at least now, since the distributive law for intersection over symmetric difference is just the classic distributive law we're used to in rings.... and we are, in the end, trying to get the monad for Boolean rings!
But we seem forced into coming up with a new way of thinking about Boolean rings, with a new distributive law.
Actually maybe everything is fine. Let me try again.
There is a Lawvere theory for [[boolean algebras]] and one for [[boolean rings]], but these Lawvere theories are isomorphic (as you can show by following hints in the second link) so let us work with the latter.
Anything described by a Lawvere theory can be described by a finitary monad and vice versa, so there is some finitary monad for boolean rings.
Claim. The monad for boolean rings is isomorphic to where are two different finitary monads related by a distributive law. Moreover the underlying functors are both naturally isomorphic to the finite powerset functor .
Proof Sketch.
Consider two monads on :
These two algebraic structures are described by Lawvere theories, so they are algebras of finitary monads on . One might wonder how these two monads both have underlying functors isomorphic to .
For 1. we need to see how for any set , can be made into the free semilattice on . To do this we think of monoid operation as the union of finite subsets, , and the unit of this monoid operation as . Note is associative, commutative, unital and idempotent: .
For 2. we need to see how for any set , can be made into the free -vector space over . To do this we think of addition as the symmetric difference of finite sets, , and the unit of this monoid operation as . Note is associative, commutative, unital and has .
Assuming we are happy with this, we can now forget about : we now need to find the distributive law that makes into the monad for boolean rings.
This is just the classic distributive law for rings, which maps a product of sums to a sum of products!
So, to finish off, we need to check that is (isomorphic to) the monad for boolean rings.
This amounts to checking that a boolean ring is a set with
a constant and binary operation making that set into a semilattice: that is a commutative monoid where
a constant and binary operation making that set into a vector space over : that is, a commutative monoid where
together with the usual distributive laws ensuring that is a commutative ring.
We need to actually check that the natural transformation is actually a distributive law. Too many mistakes have been made when not being careful with distributive laws.
Also, how do we interpret the constants in ? Both are the empty set?
Ralph Sarkis said:
We need to actually check that the natural transformation is actually a distributive law. Too many mistakes have been made when not being careful with distributive laws.
Theoretically we need to check it, but it's the usual distribution of products over sums in a ring, specialized to the case where multiplication obeys and addition obeys . So I don't see how it could fail.
Ralph Sarkis said:
Also, how do we interpret the constants in ? Both are the empty set?
Note that I'm carefully avoiding thinking about and instead thinking about , which is isomorphic.
This is just to avoid getting confused by various things, like the question you just asked.
In the free Boolean ring on , namely , we have two distinct constants, and .
You can then trace these through the isomorphisms that I described, and .
You will inevitably find that and , being distinct in , correspond to two different elements of .
Luckily for any infinite set there are exactly two elements of preserved by all permutations of .
So we know these must be the elements that correspond to 0 and 1 in the free boolean ring on , even before we start calculating.
By the way, I added a lot of detail about the monad for boolean algebras to the nLab, in the section free boolean algebras.
Hi, Are you sure the other monad structure (from ) has the same functorial action of as the one from ? I thought it would be something like
.
By the way, I thought was the free Boolean algebra in terms of the contravariant powerset. I hope this is right: is monadic by (say) Pare's theorem, and by Stone duality. Maybe there are many different angles on this.
We are looking at the free boolean algebra over .
Sam Staton said:
By the way, I thought was the free Boolean algebra in terms of the contravariant powerset. I hope this is right: is monadic by (say) Pare's theorem, and by Stone duality. Maybe there are many different angles on this.
This is essentially what I had in mind above, although a bit hidden behind the finite Stone duality-type statement here.
Since I'm on category theory social media, let me clarify my previous contribution as follows: @Ralph Sarkis is right that the finite covariant power set does not distribute over itself. But the covariant covariant structure is not the only covariant functor structure one can put on , or even for that matter. In the last case, thinking of as (as @John Baez suggests) clarifies the situation a lot.
Does the distributive law amount to the construction of the semilattice of finite and cofinite dimensional subspaces (plus the empty subspace)? To @Ralph Sarkis 's question about the constants: would be the "empty subspace" and would be the whole space.
My understanding is that the monad structure on that gives you boolean algebras is (what computer scientists call) the continuation monad, which comes from the adjunction between and given by the contravariant powerset functor
(This is probably what's already been said, slightly too many pages to read in a hurry)
I have a related question: on a cartesian closed category, is a monad for any , and I don't know what are its algebras except when your category is and
Jules Hedges said:
I have a related question: on a cartesian closed category, is a monad for any , and I don't know what are its algebras except when your category is and
When the base category is , then for any ! See e.g. Proposition 10 of Combining algebraic effects with continuations.
Sam Staton said:
By the way, I thought was the free Boolean algebra in terms of the contravariant powerset. I hope this is right: is monadic by (say) Pare's theorem, and by Stone duality. Maybe there are many different angles on this.
All this sounds right to me, but Ralph was asking about possibly infinite boolean algebras. Then the argument you're sketching can be adapted to show that the square of the contravariant powerset functor can be made into the monad for complete atomic boolean algebras, or CABAs. The category of CABAs is equivalent to . But right now we weren't wanting to describe CABAs as algebras of a monad on : we were wanting to describe boolean algebras.
Jules Hedges said:
My understanding is that the monad structure on that gives you boolean algebras is (what computer scientists call) the continuation monad, which comes from the adjunction between and given by the contravariant powerset functor
No, this trick gives you a special kind of boolean algebras called complete atomic boolean algebras or CABAs. These are boolean algebras with infinitary 'ands', infinitary 'ors', both distributing over each other, and such that every element is an infinitary or of 'atoms', meaning propositions that are implied by nothing other than themselves and 'false'.
Every finite boolean algebra is a complete atomic boolean algebra, so if you don't mess with infinite sets none of this matters.
Thanks @John Baez, I see. Still, it's fascinating that your distributive-laws description also applies to , and so there seem to be two very different views on the same monad on .
Do you agree that the functorial actions of and , when transported to , are actually different? I think this is right?
@Sam Staton - I don't know what "functorial actions" means. I believe and are (naturally isomorphic to) the same functor from the category of sets to itself, the finite power set functor, but they are made into monads in two different ways.
I.e., the multiplication on these monads is different (and maybe the unit too).
I think Sam is right to say that and should not be the same functor, they have the same action on objects, but not on morphisms. For the free -vector space monad, the multiplication takes a finite set of finite subsets of to a finite subset of by taking the symmetric difference, i.e. . Another way to say this is that it takes the "multiunion" and keeps only elements appearing an odd amount of times.
Now, this means that for a function is not the usual image map because e.g. the following naturality square does not commute when and takes and to .
Oh, okay - I didn't understand Sam's point! I knew that M and S had different multiplications, so the interesting point I hadn't understood is that they act differently on morphisms. So part of what I said (and wrote in the nLab) is wrong: S is not what I'd normally call the finite power set functor. On the other hand, I still believe M is the finite powerset functor.
Just to be clear: for me the finite powerset functor maps any set to the set , and it maps any function to the function sending any subset to its image under .
Great, I agree. It also seems these two monads ( and ) are the free-module monads corresponding to the two different possible rig structures on the two element set.
Oh, that's very nice. That makes it seems more natural somehow.
I fixed the nLab article discussing this:
It would still be nice to get a reference for this stuff! It should be classical (pardon the pun).
Jules Hedges said:
I have a related question: on a cartesian closed category, is a monad for any , and I don't know what are its algebras except when your category is and
If you take to be a monoid, do you get a free semiring structure of some kind? Just judging from the discussion above.