A Puzzle on Multi-Sorted Lawvere Theories
Posted by John Baez
I hope you know that a Lawvere theory is a category with finite products where the objects are all of the form for some object . A model of is a finite-product-preserving functor . There’s a category where the objects are models and the morphisms are natural transformations between such functors. Many familiar algebraic structures defined by -ary operations and equations, like groups or vector spaces over some field , can be seen as models of Lawvere theories. So, there’s a Lawvere theory for which is equivalent to , another one that gives , and so on.
Categories of this sort have been studied a lot and are sometimes called finitary monadic categories or finitary algebraic categories (though sometimes the latter term is used more generally — see the link). These categories always have coproducts, so it’s natural to wonder when the canonical morphism
is monic. After all, it’s true in and , and in enough other cases that people sometimes call the ‘inclusion’ of an object in .
But is not always monic in the category of models of a Lawvere theory. Can you think of a counterexample before read on?
Okay, here’s one: it’s not always monic in the category , where the coproduct is the familiar ‘tensor product’ of commutative rings. Consider the commutative rings and ; then , since we always have
so of course the canonical morphism is not monic.
However, something weaker is true. For any Lawvere theory there’s a forgetful functor
and this is monadic, meaning there’s a left adjoint
giving a monad on whose category of algebras is equivalent (in a standard sort of way) to .
So, we can talk about ‘free’ models of , and it turns out that the canonical morphism
is monic when is free.
Proposition. If is a Lawvere theory, and , the canonical morphism is monic.
I would like, just for the sake of my happiness, to know that this proposition generalizes to multi-sorted Lawvere theories. These are like ordinary Lawvere theories except instead of describing a single set with -ary operations obeying equations, they describe a bunch of sets with -ary operations obeying equations. For example, there’s a 2-sorted Lawvere theory that describes ring-module pairs. A model of this theory is a ring together with a module of that ring.
Here’s the definition: a multi-sorted Lawvere theory with as its set of sorts is a category with finite products where every object is a finite product of some chosen objects . So, if we’re back to an ordinary Lawvere theory, and if we have a 2-sorted Lawvere theory, and so on. Click the link if you want a more conscientious definition… but honestly, I’m not leaving out anything.
A model of an -sorted Lawvere theory is a functor . Again we get a category with these models as objects and natural transformations as morphisms. Again we have a forgetful functor
that’s monadic, and thus a left adjoint
Here’s my guess:
Conjecture. If is an multi-sorted Lawvere theory with as its set of sorts, and , the canonical morphism is monic.
Can you prove this? One approach would be to actually ‘build’ in a very concrete way as an -tuple of sets equipped with a bunch of -ary operations, then look at the underlying morphism
in and show this is monic. That would do the job: since is faithful it reflects monics. And it’s easy to check if a morphism in is monic: it’s an -tuple of functions, and they all need to be monic. But it would be nice to find a less grungy proof.
Todd Trimble found a very quick proof for the unsorted case, but curiously, it doesn’t obviously generalize to this case. Nonetheless, he figured out how to handle the case I actually needed: I’m studying PROPs, which are models of a certain multi-sorted Lawvere theory, and I needed to show that for any PROP and any free PROP , the canonical morphism is monic. In fact Todd’s argument applies to any multi-sorted Lawvere theory that comes from a multi-sorted operad, more commonly called a colored operad.
Any good ideas?
Re: A Puzzle on Multi-Sorted Lawvere Theories
I don’t know what the very elegant proof is in the unsorted case. But: would it apply to your setup in the case that only has elements of a single sort? If so, the result would follow (using that filtered colimits in commute with ).