Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 37 of 37
I’m trying to deepen my understanding of algebraic theories. As an algebraic topologist, my categorical understanding of these matters is not great: I tend to think in terms of groups and rings and think of algebraic theories as “things like groups” rather than via monads or anything else.
That source of intuition seems to be okay for Lawvere theories, but reading algebraic theory, and particularly following through to the comments on the ncafe here, it seems that my intuition might break down as size becomes an issue.
I feel okay with the ideas expressed on the page Lawvere theory; namely that there is a “universal thingy” (say, group) and that all other thingies (groups and group-like things) are shadows of that Platonic thing (indeed, this was the theme of my colloquium on category theory). This seems to extend; certainly in my reading of -algebras, I got the idea that there was a “universal -algebra” and the only problem was that people didn’t know what it was (more precisely, what the larger free -algebras were).
So suppose I start off with some random category in which there is a distinguished object, , and every other object is isomorphic to some product of . How much of Lawvere theory goes through for that? Presumably, I can consider a category of models in Set for that theory, and consider models of that theory in other categories, as product-preserving functors from into Set or into Blah.
The implication that I get from the cafe discussion is that the real distinction is between bounded and unbounded theories. Is that a fair statement? Thus -algebras are “okay” since they are bounded, albeit not finite. Is there a simple test to see if my random category is bounded or not? (Apologies if this is on the pages somewhere, I think part of this project of understanding this might be involve cleaning up the relevant pages and linking them a bit better.)
In particular, does anyone of a reference for the study of this process of starting with a random category as described above and considering the corresponding algebraic theory? (Assuming that what I’ve described works and I haven’t overlooked something!)
I think that the boundedness that you want is that your random category is small. If it is locally small and every object is isomorphic to for some finite , then you have this.
One really only thinks about unbounded theories because they sometimes arise in the wild. But they don’t so arise in the form of a large category .
Definitely locally small (categories that aren’t this scare me). So then to be small I need every object to be isomorphic to for drawn from some set (, in your example) - am I right?
Right, but my random category might not have this property itself and yet be equivalent to one (in terms of the theory so-defined) to one that does. For example, I could take the theory of groups and just throw in all arbitrary powers of my universal group object. Then in any complete category, the models of this theory are equivalent to that of groups. Can you (or anyone) think of how to tell if my random category is of this form?
Definitely locally small (categories that aren’t this scare me).
It’s not really necessary here, but nobody should ever have to be afraid of large sizes.
Then in any complete category, the models of this theory are equivalent to that of groups.
No, you’re mixing two doctrines here.
If you’re working in the doctrine of categories with all products, then the theory of groups is precisely the category that you constructed, and a model is a functor that preserves all products, and so a model of this theory is a group.
However, we’ve been working in the doctrine of categories with finite products, where a model is a functor that preserves finite products, but it need not preserve all products. So a model of this theory consists of rather more information than a single group , since the infinitary powers don’t actually have to be of the form .
I didn’t mean to mix two doctrines! They just happened to be next to each other on the shelf and I grabbed the wrong one.
Seriously, what I had in mind was that when I make this “throw in all products” extension then I would also require my functors (when defining what a model means) to preserve all products. So my infinitary powers would all be of the form . So when I ponder about enlarging the “finite” bit of a Lawvere theory, I try to do so consistently and enlarge it everywhere I see it.
when I make this “throw in all products” extension then I would also require my functors (when defining what a model means) to preserve all products
Good, then you’re not mixing doctrines; you’re simply changing doctrines. Is that what you meant to do all along?
Recall that a Lawvere theory is a category with finite products with an object such that every object is of the form for some finite cardinal number . Now let us move from the doctrine of finite products to the doctrine of small products. Then a Lawvere theory becomes a category with small products with an object such that every object is of the form for some small cardinal number . How much of what we know about Lawvere theories continues to work in this situation?
I will call this an infinitary Lawvere theory. Then one question is whether every infinitary Lawvere theory gives a monad on . Then the answer is No, precisely because an infinitary Lawvere theory might not be bounded. (Edit: This is not a precise reason, since not every monad is bounded either. Furthermore, a locally small infinitary Lawvere theory will give a monad, as Mike says below.)
Now fix a cardinal number . (We might want to be regular, or something like that.) Then we have a doctrine of categories with products indexed by a cardinal number less than . Let us call such a category a -ary Lawvere theory if it has an object such that every object is of the form for some cardinal number . Then every -ary Lawvere theory does give a monad on .
Conjecture: An infinitary Lawvere theory is bounded if and only if it is a -ary Lawvere theory for some small cardinal number . (Note that we have inclusions of doctrines , which are left adjoint to the inclusions of -categories , so this condition makes sense.)
Yes, that’s what I’m saying. So:
Then one question is whether every infinitary Lawvere theory gives a monad on Set. Then the answer is No, precisely because an infinitary Lawvere theory might not be bounded.
I don’t understand exactly what “bounded” is being used to mean, but I thought the conclusion of the cafe discussion linked above was that an infinitary (locally small) Lawvere theory really is exactly the same as a monad on Set.
Whatever the case is, when we work it out we should make sure to nLabify it clearly, so we don’t have to work it out a third time.
If I want free objects, does it need to be monadic?
Yes. I suppose “free objects” technically means just having a left adjoint, which is in general not the same as being monadic, but I think for anything called an “algebraic theory,” having a left adjoint is sufficient to be monadic.
@ Andrew
Wouldn’t it be better to say “If it is in the image of for some small cardinal number ”?
That is the definition of ‘if it is a -ary Lawvere theory for some small cardinal number ’. (And ‘is’ in ‘is in the image’ should be interpreted up to equivalence too.) Just like the definition of whether a real number is rational is if it is in the image of . I tried to make that clear by mentioning and writing ‘so this condition makes sense’.
For the rest of my reply to you, Andrew, see my upcoming reply to Mike.
@ Mike (and Andrew)
an infinitary (locally small) Lawvere theory really is exactly the same as a monad on Set
For a counterexample (edit: this is not a counterexample, since it is not locally small), take the theory of complete lattices. This is an infinitary Lawvere theory generated by two commutative operations for each cardinal number (which take an -set of elements to their supremum or infimum) and some equations that I hope are obvious. But there are no free complete lattices on a set with more than two elements.
The problem is that we not only have a large number of morphisms (obviously, since the category is large) but also a large number of generating morphisms ; see below.
I think for anything called an “algebraic theory,” having a left adjoint is sufficient to be monadic.
One theorem along these lines is that any equationally presented category with free objects is monadic.
Andrew wrote:
how do I recognise this image?
If you’re given an infinitary Lawvere theory in a way that looks algebraic, such as my description of the theory of complete lattices was meant to be, then you can recognise it as monadic if you use only a small set of operations to generate all of the morphisms. (That’s a theorem at the previous link.)
H’m, and that shows how to prove my conjecture. If we need only a small set of operations, then there is largest arity of these operations, hence it lives in ; QED.
Let me test to see if I’m following so far. In my random category, , where every object is isomorphic to a product of some chosen object, say , I want to know whether or not this is algebraic. So I want to know if it is generated by a small set of morphisms. I want to say that this happens if (and only if) there is some cardinal such that for every set of cardinality larger than , every morphism factors through (note that this is a per morphism factorisation). Is that right?
The example that springs to mind here is of totally convex space where although nominally we can talk of arbitrarily infinite convex sums, any such will have at most countably non-zero terms.
I need to think some more about this, though, particularly about the example with lattices, because I thought that I had an argument that said that in the theory defined by my random category then there were free algebras and the free algebra on is the product-preserving functor . Thus the underlying set of the free algebra on is . The adjunctions are given by:
sends to the th projection , whilst the other natural transformation is itself a natural transformation
(here is a product-preserving covariant functor and is its “underlying set”) and so, by Yoneda, is given by an element of . Since is product-preserving, we have:
and so has a specific element corresponding to the identity in . These give (I believe) the required adjunctions.
I don’t see where size becomes an issue in the above.
Ah, I have an idea of where size might make an appearance. In my set-up, the algebras are product-preserving functors . The morphisms are natural transformations between such functors. But how do I know that such natural transformations form a set? Only if satisfies some smallness condition. As my functors are product-preserving, I don’t need to know that is a small category, but that it is generated by a small category where in generating one category from another I’m allowed to throw in products as well as isomorphisms (hope that made sense).
How’m I doing?
there is some cardinal such that for every set of cardinality larger than , every morphism factors through
The hypothesis that is unnecessary but probably harmless. However, you need to require that the factor is one of the structure morphisms of a category with products; otherwise the condition is trivial.
nominally we can talk of arbitrarily infinite convex sums, any such will have at most countably non-zero terms
That’s a good analogy! Nominally we can talk of operations with abitrarily infinite arities, but any such will depend on at most arguments.
I don’t see where size becomes an issue in the above.
H’m, let me try this with complete lattices, setting to . (Because already the free complete lattice on elements is large, or so Johnstone says on page 31 of Stone Spaces, although I have not followed the proof in detail.) Certainly the underlying set should be . So maybe is not locally small???
I want to prove a theorem that if and are locally small (and these seem to be independent questions), then must be bounded. (Then this might be the result that Mike recalled in #9.) But I have to go now.
One problem I have with the complete lattices example is that it’s not clear to me what and should be. For example, if we wanted to recover groups then we can take to be the opposite category of the full subcategory of groups consisting of (things isomorphic to) the free groups - much as in the example at Lawvere theory. As free lattices don’t exist, the machinery doesn’t get started!
So above you had your inclusions of 2-categories: . In this, we could insert between the second and third terms. Then would include (?) into the 2-category of algebraic categories, but this wouldn’t extend to and, moreover, wouldn’t be surjective (in any sense) as it wouldn’t hit things like complete lattices.
If is the infinitary Lawvere theory for complete lattices, then the objects of are just cardinal numbers (or sets), although we write the number as (with in place of and in place of , to be completely precise) when thinking of it as an object of . From this perspective, it’s only the morphisms that are interesting; a morphism from to is a family of words, each written using variables, in the operations of complete lattices, modulo equations that follow from the axioms of a complete lattice. In other words, it’s a family of expressions built out of , , and variables, modulo an equivalence relation.
And indeed, this is not locally small; Wikipedia has a proof (which is the same as Johnstone’s and presumably goes back to Hales) that is a proper class. (This result should have been obvious to me after reading Andrew’s #12, but it was helpful to actually look at the proof again.) Nevertheless, is locally small, since it is .
Conversely, if is locally small, we don’t need that must be locally small. For a counterexample, let be the free category with products on a proper class of objects; an object of is a small family of elements of and a morphism from one family to another is a way of expressing the first as a multisubset of the second, and the number of ways to do this is bounded by their cardinalities. Now let take each generator to , so that it takes a general object, thought of as a family, to its cardinality. Then a natural transformation from to itself consists of independent endomorphisms of , and there are of these.
But if and are both locally small, then I agree with the argument in Andrew #12. So presumably this is the result that Mike quotes from the Café (due there to Sridhar) that every infinitary Lawvere theory gives a monad; you don’t count it as an infinitary Lawvere theory unless it’s locally small (because who wants to deal with categories that aren’t?) and its category of product-preserving functors to is locally small (because how can you use it in algebra if it isn’t?). I thought that I’d read that discussion earlier, but now I see that there was much more to it!
I see the converse that Mike just added to the bottom of functor category. Basically, this says that in the doctrine of all categories, a Lawvere theory, if required to be useful in the sense that both it and its category of functors to are locally small, must itself be small.
Here we are working in the doctrine of categories with products, so the Lawvere theory need not actually be small. But it still must satisfy a smallness condition, as Andrew suggested, being generated in a small way.
I think I understood that! And I’m actually coming to realise that keeping track of the size of everything is important. Now I just need to check whether any of the examples I have in mind satisfy the required conditions. They’re all locally small, so I need to check that is locally small. I guess that finding factorisations is the way to go.
Another condition that you could use is that has a small subcategory such that the sub(category with products) of spanned by is all of ; that is, every morphism in is a composite of product projections and tuplings of morphisms in . (So basically, we are bounding the number of generating morphisms rather than bounding the size of the generating objects.) In the doctrine of all categories, the analogue of this is is that has a small subcategory such that is all of , which is to say that itself is small, hence the theorem that Mike added to the end of functor category.
By the way, my uses of ‘is’ should all be interpreted up to isomorphism or equivalence, as appropriate.
By the way, my uses of ‘is’ should all be interpreted up to isomorphism or equivalence, as appropriate.
I was working under that assumption (Axiom of Toby), but thanks for the confirmation.
Right! This is all looking very nice. I just need to go back to my examples of and see what happens in practice.
Wait, wait, wait … I’ve just confused myself again (easily done, I know).
We have as above: a complete, locally small category wherein every object is equivalent to some power of a specified object, say . We want to consider the category of product-preserving functors , this is what Toby calls . The question is: is that locally small?
I think it is. I think that the natural transformations from to injects in to the set . Firstly, the map is obvious: send to its value at . For the injection, we need to show that if then . This comes from the fact that and are product preserving: for every projection we have a commutative diagram:
As and are product-preserving, and . Hence, by the characterisation of products, is uniquely determined by .
Thus is locally small.
Am I right? Or is there some flaw that I’ve overlooked?
every object is equivalent to some power of a specified object, say
It used to be . Earlier in the thread it was . I’m going to stick with in this comment.
Am I right?
Yes, I think that you’re right!
In #17, I gave an example of a complete, locally small category such that is not locally small, but my example was not an infinitary Lawvere theory, because there was no single object that generated the others. Instead, my example was a many-sorted infinitary Lawvere theory (which I noticed but didn’t mind) with a large number of sorts (which I didn’t really notice). Your proof generalises to any many-sorted infinitary Lawvere theory with a small number of sorts, since then injects into . Conversely, if is locally small, then (by previous arguments) we have a small subcategory that spans , so we can take the sorts to be the objects of , so again we have a many-sorted Lawvere theory with a small number of sorts.
So to sum up, in order to get the best results, we should define a many-sorted infinitary Lawvere theory to be a complete category that is
rather than the naïve definition of any complete category (equipped with a family of sorts if you like, but with the option of letting every object be a sort). Then it is a theorem that is locally small, so it is the category of -modules (aka -algebras or -models). More generally, if is any locally small complete category, then is locally small, so it is the category of -valued -modules.
In the finitary case, if a many-sorted Lawvere theory is equipped with a small family of sorts (and is locally small), then itself must be small; so you can actually take any small finitely-complete category as a many-sorted Lawvere theory, letting every object be a sort by default. When you generalise to infinitary Lawvere theories, will no longer be small (except in a few degenerate cases), but this doesn’t mean that you simply drop the smallness clause; you still have to let the objects of be generated by a small family of sorts. (And you still have to require to be locally small if you want the theorems to generalise, such as the existence of free modules.) This was throwing me off earlier.
every object is equivalent to some power of a specified object, say
It used to be . Earlier in the thread it was . I’m going to stick with in this comment.
Sorry! “Mathematics is that which is invariant under change of notation.”
I agree with your definition - that seems a good one. Thinking about the reference Mike added at functor category, we’re effectively saying that when we look at product-preserving functors, then “small” means “set of generators/sorts”. So presumably there’s a theorem that says that and are locally small if and only if has a small set of sorts. And to check that I understand the example of complete lattices: one just cannot get started with this machinery in that case.
That is Fantastic - captial ’F’ for sure - as I wasn’t looking forward to digging deep in the definitions of the morphisms in my category.
So, is this known? Are these definitions and results that we’re rediscovering (at least, for me, the rest of you may know them already)? I want to use this stuff and I’m quite happy to put in a reference, or put in the whole argument.
At the very least, we should nLabify it - or am I getting ahead of myself?
So presumably there’s a theorem that says that and are locally small if and only if has a small set of sorts.
Your argument in comment #22 generalises to prove that is locally small if has a small set of sorts. The argument from Freyd and Street generalises to prove that has a small set of sorts if both and are locally small.
However, it is possible that has a small set of sorts yet is not locally small; the theory of complete lattices, as defined in my comment #17, is an example.
I would like to prove that has a small set of sorts if alone is locally small, or else find a counterexample, but I haven’t got that yet.
And to check that I understand the example of complete lattices: one just cannot get started with this machinery in that case.
One can get started: one has (although it’s not locally small), and (which is locally small, as it must be since there is only sort). But one can’t go on to prove (as in your comment #12) that the functor from to generated by has a left adjoint, because is not locally small.
So, is this known?
Mike’s been quiet lately. Maybe he knows?
At the very least, we should nLabify it - or am I getting ahead of myself?
I’d like to make sure that we understand everything, but yes. I’ll put a stub at infinitary Lawvere theory, pointing to this discussion.
Mike’s been quiet lately.
Mike’s been very busy lately with unrelated stuff, like buying a house.
But I also don’t know whether this stuff is “known” – although I haven’t encountered a lot of people thinking about infinitary Lawvere theories.
I also feel like there is something interesting to be said here relating back to the “levels of embodiment” conclusion we reached back at the Cafe. Saying that the category is locally small and has a small set of sorts is more or less saying that it’s small when considered as a category with virtual finite products, i.e. at one lower level of embodiment. One could then ask for stronger finiteness assumptions like additionally having a small generating set of operations, or also a small generating set of axioms, corresponding to the lower levels of embodiment. It seems like the general fact is that “small theories” at any level of embodiment are well-behaved, but that a small theory at one level of embodiment can become large when embodied further (at least when the doctrine is large, as for the doctrine of finite products).
Buying a house ? Are you getting a permanent job ? Did I miss some good news ?
A possibly relevant example is in the following email from Gordon Plotkin on the categories list (I’ve taken the liberty of texing the asciimaths):
Dear Sergey, In the paper by Hyland, Levy, Power and myself, Combining algebraic effects with continuations, there is a proof that the tensor of the continuations monad with itself, or, indeed with any monad with a constant (i.e. such that is not empty), is the trivial monad.
It is not hard to see this directly, via large Lawvere theories. The large Lawvere theory of the continuations monad has:
and so the constants correspond to maps . Further, using two distinct constants, any two operations can be coded up into one operation and then recovered via the two constants. Given maps of large Lawvere theories such that the images of any two operations in and commute, as has a constant all (the images of) constants in are identified, as usual, but then so are all images of any two operations (which will, for example, include all pairs of projections) and so is trivial.
A more general theorem is also proved in the paper which has as a consequence that the tensor of any monad with rank with the continuations monad exists.
Are you getting a permanent job?
No, but my wife is, and in a place where we both really want to live (San Diego). I’ve got 2 years left on my portable NSF postdoc, after which point there are many options. (-:
In #28 I’m assuming that ’large Lawvere theories’ might have something to do with the infinitary theories discussed here. The rest is just context.
(Following on from DR’s two comments)
I’d noticed that message go flying by on the categories mailing list as well and wondered as to its relevance.
Clearly, there’s parts of the story of “infinitary Lawvere theory” that are well-known and well-studied. Things like -algebras are an obvious example of a non-finite Lawvere theory (that is, nonetheless, finitely presented) and compact Hausdorff spaces being another (is that one bounded?), whilst the theory of complete lattices is sort-of similar but not quite. I guess what my plan for this at the moment is:
Just to clarify, though I think it’s probably already become clear by now, the notion of “infinitary Lawvere theory” which I was discussing in the nCafe conversation was “a locally small category whose objects are of the form R^k for each small arity k (i.e., it has small products, and its objects are generated by this from a single object))”. Such unsorted infinitary Lawvere theories L correspond precisely to monads M on Set and furthermore the category Prod[L, Set] is equivalent to the category of Eilenberg-Moore algebras for the corresponding monad M.
Sridhar: do you have a reference for the correspondence (between such Lawvere theories and monads) and the equivalence of and EM-algebras? I would imagine that both would need only the obvious tweaking to make the corresponding statements in the many-sorted cases.
Thanks, Sridhar. That had eventually become clear to me, but it’s helpful to have your confirmation.
@Andrew: No, I’m afraid I don’t have any reference; it’s just something I worked out for myself when I was first exposed to the idea of using monads to represent infinitary algebraic theories and needed to get a better grip on it. I could write out the details if you’d like, though.
Sridhar, in that case I’d ask you to hold off for a moment! I’m learning a lot by working through it for myself. Of course, it would be useful to have your input in the general discussion (both here at at the discussion in the thread titled “infinitary Lawvere theories”).
Have you tried looking at Linton’s paper An outline of functorial semantics, LNM 80 (TAC reprint)? It’s not an easy one to read, but it seems as though it might help.
1 to 37 of 37