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.
Lawvere says a theory is a category with finite products equipped with an identity-on-objects product-preserving functor from the skeleton of FinSet [edit: should be ] to . Adámek et al. say it's just a category with finite products. Trimble's multisorted Lawvere theories generalizes FinSet to , giving a set of sorts; whereas the category Set (thought of as an algebraic theory) has a proper class of sorts. What theorems no longer hold in the latter case?
Does it have a proper class of sorts? It seems like it has a proper class of arities.
At least if it works like FinSet.
E.G. you can have 'countable Lawvere theories' by generalizing from FinSet to countable sets, I think. And that gives you operations like where may be a countable set rather than a finite set.
being a model, because this is still single-sorted.
If you view Set as an algebraic theory à la cartesian category, then it has a proper class of sorts, because you take the objects to be the sorts.
Well, okay, but then FinSet isn't single sorted, is it?
However, taking Set to be an algebraic theory (rather than the category of models of an algebraic theory) seems like an unusual thing to want to do.
No, it's not either. You need to equip FinSet° (or rather its skeleton) with the generating object to see it as a one-sorted theory. Otherwise you have no chance of recovering the generators up to equality.
It's "essentially" one-sorted, though.
@Mike Stay: could you explain some of your motivation for wanting to treat Set as an algebraic theory?
Isn't there an "op" missing somewhere? Are we talking about Set^op as a finite product category?
Mike Stay said:
Lawvere says a theory is a category with finite products equipped with an identity-on-objects product-preserving functor from the skeleton of FinSet to . Adámek et al. say it's just a category with finite products.
That should never be called a Lawvere theory - a better term would be "algebraic theory", and I'd use "essentially algebraic theory" for a category with finite limits, regarded as a kind of theory.
Trimble's multisorted Lawvere theories generalizes FinSet to , giving a set of sorts whereas the category Set (thought of as an algebraic theory) has a proper class of sorts. What theorems no longer hold in the latter case?
Note that the set of sorts is extra structure on an algebraic theory making it into a multi-sorted Lawvere theory, not merely an extra property. This extra structure is what makes multisorted Lawvere theories so different than algebraic theories: a model of a Lawvere theory (in Set) has an underlying set, and a model of a multi-sorted Lawvere theory has a set of underlying sets, and this is crucial for many theorems involving theses theories.
So it doesn't make sense to say Set has a proper class of sorts; what you should say is "there's no way to make Set into a multi-sorted Lawvere theory with a set of sorts".
This is a technical, nitpicky remark, but it's pretty important.
Your actual question then is "what can and can't we do with a generalization of multi-sorted Lawvere theories that have a proper class of sorts?"
And while this might be somewhat interesting, if I ever needed to deal with this I'd instantly use the axiom of universes and define to be the category of small sets - sets in the first universe. Then could be made into a multi-sorted Lawvere theory with every small set as a sort. So, all of Todd's theorems would apply!
So it doesn't make sense to say Set has a proper class of sorts
There is a canonical class of sorts associated to any cartesian category: namely, the class of objects. This way, every small cartesian category is canonically a (multisorted) Lawvere theory.
Taking a syntactic point of view, I was thinking of "sorts" as primitives from which one freely generates product types (the construct is the free category with finite products generated from ), and then one can define a -sorted algebraic theory to be a category with finite products equipped with a product-preserving functor that is variously essentially surjective, or bijective on objects, or the identity on objects, according to taste. For example, there is a 2-sorted theory of vector spaces, where one of the sorts carries the ground field structure, and the other carries a vector space structure over that field. A virtue of the "evil" bijective-on-objects choice is that it assigns a definite -sorted arity to morphisms in considered as operations; for example, the Lawvere theory of Jonsson-Tarski algebras is equivalent to a one-object category (a monoid), since all powers of the generating object are isomorphic, but the monoid wouldn't remember anything about arities.
Isn't there an "op" missing somewhere?
Oops, yes, sorry. Should be from FinSet^op to the cartesian category.
If one takes the Adamek et al. point of view of (let's say small) categories with products, which is completely fine, one can follow Nathanael's suggestion and call the objects of "sorts", and then one would still have an essentially surjective product-preserving functor induced by the inclusion of (as discrete category) into . Roughly speaking, one can then "pull back" the morphism structure along this functor to get a more "traditional" multi-sorted Lawvere theory from a theory in the sense of Adamek et al. that is equivalent to in the doctrine of categories with products. So in the end there's not a tremendous amount of difference between these approaches.
Lawvere says a theory is a category with finite products equipped with an identity-on-objects product-preserving functor from the skeleton of FinSet to . Adámek et al. say it's just a category with finite products.
That should never be called a Lawvere theory - a better term would be "algebraic theory", and I'd use "essentially algebraic theory" for a category with finite limits, regarded as a kind of theory.
So I guess my question is, what theorems hold for (single- or multisorted) Lawvere theories that don't hold for algebraic theories? Are there algebraic theories that don't correspond to a finitary monad on Set?
Well, one should speak rather of finitary monads on in the multisorted case.
Mike Stay said:
Lawvere says a theory is a category with finite products equipped with an identity-on-objects product-preserving functor from the skeleton of FinSet to . Adámek et al. say it's just a category with finite products.
That should never be called a Lawvere theory - a better term would be "algebraic theory", and I'd use "essentially algebraic theory" for a category with finite limits, regarded as a kind of theory.
So I guess my question is, what theorems hold for (single- or multisorted) Lawvere theories that don't hold for algebraic theories? Are there algebraic theories that don't correspond to a finitary monad on Set?
If you restrict yourself to essentially small cartesian categories, there should be no real difference.
Nathanael Arkor said:
So it doesn't make sense to say Set has a proper class of sorts
There is a canonical class of sorts associated to any cartesian category: namely, the class of objects. This way, every small cartesian category is canonically a (multisorted) Lawvere theory.
Yes, but if you apply this trick to an ordinary Lawvere theory you'll get a multi-sorted Lawvere theory with infinitely many sorts. Which is fine if that's what you want!
Mike Stay said:
Lawvere says a theory is a category with finite products equipped with an identity-on-objects product-preserving functor from the skeleton of FinSet to . Adámek et al. say it's just a category with finite products.
That should never be called a Lawvere theory - a better term would be "algebraic theory", and I'd use "essentially algebraic theory" for a category with finite limits, regarded as a kind of theory.
So I guess my question is, what theorems hold for (single- or multisorted) Lawvere theories that don't hold for algebraic theories?
Well, as I mentioned, the main thing about Lawvere theory that you don't have with an algebraic theory is this: every model (in ) has an underlying set. So you get a god-given functor , and this is monadic: it has a left adjoint which creates a monad on on . And the category of algebras of this monad is equipped with an equivalence to .
The same story works with slight changes if you have a multi-sorted Lawvere theory: just replace with , where is the set of sorts.
If you start with an arbitrary algebraic theory you don't get this stuff until you pick a set of sorts.
Of course as @Nathanael Arkor mentioned you are always free to choose all objects as sorts. So the whole discussion is about technical convenience rather than anything deeply thrilling.
But when I"m talking about the theory of groups I would prefer to let , the group, be my only sort, rather than have infinitely many sorts. Why? Because I would prefer to say a group has an underlying set, rather than an infinite sequences of underlying sets equipped with isomorphisms that make an infinite collection of diagrams commute.
Choosing sorts is a way of focusing on what you're really interested in.
Are there algebraic theories that don't correspond to a finitary monad on Set?
I believe so: for example, the algebraic theory for a pair of groups.
I suppose you could pack the information about a pair of groups into a single-sorted Lawvere theory, but I don't see how it would work.
Someone should settle this: is monadic over or not?
As you mentioned recently, sometimes there are surprises: reflexive graphs seem naturally to involve two sorts, and they're clearly monadic over - but they're also monadic over !
But I'm convinced that these surprises are the exception rather the rule.
If you restrict to "pure" algebras (in which every sort is either empty or every sort is nonempty), then every multisorted variety is equivalent to a one-sorted variety. (E.g. see Theorem 5 of Barr's "The point of the empty set".) That's not quite the same question, though.
John Baez said:
I suppose you could pack the information about a pair of groups into a single-sorted Lawvere theory, but I don't see how it would work.
Someone should settle this: is monadic over or not?
It seems to me that is monadic over , straightforwardly, via the composite
This follows from the crude monadicity theorem: both these functors are right adjoints and reflect isomorphisms, and the composite preserves reflexive coequalizers because it is isomorphic to the composite
where both functors preserve reflexive coequalizers. (But someone please feel free to check up on this.)
However, cannot be monadic over . Any monadic functor , being a right adjoint, is representable, say by a pair of sets where . Such a representable cannot be faithful: for example, if both and are empty then the functor takes on only terminal values, whereas if say is nonempty, then the values on pairs are all empty and this is fatal as well.
Darn! First I picked the example of but then I thought @Mike Stay would consider that too boring so I switched to .
I'm too crude to really understand even the crude monadicity theorem, so if is monadic over I hope it gives a finitary monad - it's be crazy otherwise, huh? - and I hope I can find the Lawvere theory for pairs of groups explicitly.
Oh, maybe the operations that make it possible correspond to these operations that any pair of groups has: the operation that sends any element to , and the operation that sends to .
In other words, what operations on a set , obeying what laws, do we need to be sure it's of the form for groups and ?
We figure them out by figuring out what operations has when and are groups.
We have all the obvious "pairwise" operations, coming from the usual group operations - for example multiplication gives a binary operation
and so on, and these obey all the usual group axioms. This is just a longwinded way of saying that is a group.
But then there are operations
and
and these obey a bunch of further laws (for example, each one is a group endomorphism of ), and from these we can tell that any model of our Lawvere theory is not just a group but a product of two groups.
So I think it's really crucial here that a group has an underlying pointed set - that's what allows us to define these operations and .
So:
Conjecture. If is the category of pointed sets, then is monadic over .
Presumably this follows as a corollary of my comment above regarding pure algebras: for pointed algebraic structures, every sort is inhabited, thus pure. Consequently every multisorted algebraic theory with a constant for each sort is (Morita) equivalent to a one-sorted algebraic theory. This includes the square of pointed sets and of groups.
Interesting comment, Nathanael. I don't know Barr's paper -- I should have a look.
Alternatively, the proof I gave that is monadic over applies equally well to .
Thanks, Nathanael. I didn't quite understand your comment at first. Now I do.