Category Theory
Zulip Server
Archive

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.


Stream: theory: category theory

Topic: counting algebraic structures


view this post on Zulip John Baez (Sep 09 2023 at 08:54):

The number of groups with n elements goes like this, starting with n=0n = 0:

0, 1, 1, 1, 2, 1, 2, 1, 5, ...

The number of semigroups with nn elements goes like this:

1, 1, 5, 24, 188, 1915, 28634, 1627672, 3684030417, 105978177936292, ...

Here I'm counting isomorphic guys as the same.

Is there any sort of algebraic gadget where the number of these gadgets with nn elements goes like this?

1, 1, 2, 1, 1, 1, 1, 1, ...

view this post on Zulip John Baez (Sep 09 2023 at 08:55):

No! Not if by "algebraic gadget" we mean something described by a bunch of operations obeying equational laws --- that is, by a Lawvere theory.

This follows from a result of László Lovász in 1967:

On Mastodon, Omar Antolín sketched a proof that greases the wheels with more category theory. It relies on a rather shocking lemma:

Super-Yoneda Lemma. Let C\mathsf{C} be the category of algebras of some Lawvere theory, and let A,BCA, B \in \mathsf{C} be two algebras whose underlying sets are finite. If the functors hom(,A)\mathrm{hom}(-,A) and hom(,A)\mathrm{hom}(-,A) are unnaturally isomorphic, then ABA \cong B.

view this post on Zulip John Baez (Sep 09 2023 at 08:55):

Here we say the functors hom(,A)\mathrm{hom}(-,A) and hom(,B)\mathrm{hom}(-,B) are unnaturally isomorphic if

hom(X,A)hom(X,B) \mathrm{hom}(X,A) \cong \mathrm{hom}(X,B)

for all XCX \in \mathsf{C}. We're not imposing the usual commuting naturality square --- indeed we can't, since we're not even giving any specific choice of isomorphism!

If hom(,A)\mathrm{hom}(-,A) and hom(,B)\mathrm{hom}(-,B) are naturally isomorphic, we can show ABA \cong B using the Yoneda Lemma. But when they're unnaturally isomorphic, we have to break the glass and pull out the Super-Yoneda Lemma.

view this post on Zulip John Baez (Sep 09 2023 at 08:56):

Given this shocking lemma, it's easy to show this:

Theorem. Let A,BA, B be two algebras of a Lawvere theory whose underlying sets are finite. If AkBkA^k \cong B^k for some natural number kk then ABA \cong B.

Here's how. Since AkBkA^k \cong B^k, we have natural isomorphisms

hom(,A)khom(,Ak)hom(,Bk)hom(,B)k \mathrm{hom}(-,A)^k \cong \mathrm{hom}(-, A^k) \cong \mathrm{hom}(-, B^k) \cong \mathrm{hom}(-,B)^k

so for any XCX \in \mathsf{C} the sets hom(X,A)k\mathrm{hom}(X,A)^k and hom(X,B)k\mathrm{hom}(X,B)^k have the same cardinality. This means we have an unnatural isomorphism

hom(,A)hom(,B) \mathrm{hom}(-,A) \cong \mathrm{hom}(-,B)

The lemma magically lets us conclude that

AB A \cong B

view this post on Zulip John Baez (Sep 09 2023 at 08:57):

Now, how do we use this to solve our puzzle? Let a(n)a(n) be the number of isomorphism classes of algebras whose underlying set has nn elements. We must have

a(nk)a(n) a(n^k) \ge a(n)

since we've just seen that nonisomorphic algebras with nn elements give nonisomorphic algebras with nkn^k elements. So, for example, we can never have a(4)<a(2)a(4) \lt a(2), since 4=224 = 2^2. Thus, the sequence can't look like the one I showed you, with

a(0)=1,  a(1)=1,  a(2)=2,  a(3)=1,  a(4)=1,... a(0) = 1, \; a(1) = 1, \; a(2) = 2, \; a(3) = 1,\; a(4) = 1, ...

Nice! So let's turn to the lemma, which is the really interesting part.

view this post on Zulip John Baez (Sep 09 2023 at 08:58):

I'll just quote Omar Antolín's proof, since I can't improve on it. Remember, AA and BB are algebras of some Lawvere theory whose underlying sets are finite:

Let mon(X,A)\mathrm{mon}(X, A) be the set of monomorphisms, which here are just homomorphisms that are injective functions. I claim you can compute the cardinality of mon(X,A)\mathrm{mon}(X, A) using the inclusion-exclusion principle in terms of the cardinalities of hom(Q,A)\mathrm{hom}(Q, A) for various quotients of XX.

Indeed, for any pair of elements x,yXx, y \in X, let S(x,y)S(x, y) be the set for homomorphisms f ⁣:XAf \colon X \to A such that f(x)=f(y)f(x) = f(y). The monomorphisms are just the homomorphisms that belong to none of the sets S(x,y)S(x, y), so you can compute how many there are via the inclusion-exclusion formula: you'll just need the cardinality of intersections of several S(xi,yi)S(x_i, y_i).

Now, the intersection of some S(xi,yi)S(x_i, y_i) is the set of homorphisms ff such that for all ii, f(xi)=f(yi)f(x_i) = f(y_i). Those are in bijection with the homorphisms QAQ \to A where QQ is the quotient of XX obtained by adding the relations xi=yix_i=y_i for each ii.

So far I hope I've convinced you that if hom(,A)\mathrm{hom}(-, A) and hom(,B)\mathrm{hom}(-, B) are unnaturally isomorphic, so are mon(,A)\mathrm{mon}(-, A) and mon(,B)\mathrm{mon}(-, B). Now it's easy to finish: since mon(A,A)\mathrm{mon}(A, A) is non-empty, so is mon(A,B)\mathrm{mon}(A, B), so AA is isomorphic to a subobject of BB. Similarly BB is isomorphic to a subobject of AA, and since they are finite, they must be isomorphic.

Beautiful!

view this post on Zulip John Baez (Sep 09 2023 at 08:59):

But if you look at this argument you'll see we didn't use the full force of the assumptions. We didn't need AA and BB to be algebras of a Lawvere theory! They could have been topological spaces, or posets, or various other things. All we really need is a category C\mathsf{C} of gadgets with a forgetful functor

U ⁣:CFinSet U \colon \mathsf{C} \to \mathsf{FinSet}

that is faithful and has some extra property... roughly, that we can take an object in C\mathsf{C} and take a quotient of it where we impose a bunch of extra relations xi=yix_i = y_i, and maps out of this quotient will behave as you'd expect. More precisely, I think the extra property is this:

Given any XCX \in \mathsf{C} and any surjection p ⁣:U(X)Sp \colon U(X) \to S, there is a morphism j ⁣:XQj \colon X \to Q such that the morphisms f ⁣:XYf \colon X \to Y that factor through jj are precisely those for which U(f)U(f) factors through pp.

view this post on Zulip John Baez (Sep 09 2023 at 09:00):

Can anyone shed more light on what generalizations of Lawvere theories describe mathematical gadgets like this?

By the way: if TT is any Lawvere theory, its fine spectrum is the sequence whose $$n$$th term is the number of isomorphism classes of TT-algebras with nn elements. The idea was introduced here:

though Taylor used not Lawvere theories but an equivalent framework: 'varieties' in the sense of universal algebra. For a bit more on this, go here.

view this post on Zulip Nathanael Arkor (Sep 09 2023 at 09:24):

There is a recent paper of Luca Reggio in which is proven general "homomorphism counting" results (what you call the "Super-Yoneda Lemma"): Polyadic Sets and Homomorphism Counting.

view this post on Zulip John Baez (Sep 09 2023 at 09:28):

Oh, good!

view this post on Zulip Kevin Arlin (Sep 09 2023 at 16:14):

Wow, that lemma is so fun! The only thing I can think of that subsumes both categories of models of Lawvere theories and the category of topological spaces is categories with a solid functor into set. But I haven’t tried to see yet whether that’s actually the right idea

view this post on Zulip John Baez (Sep 09 2023 at 17:03):

Yes, the great thing about the lemma is that the statement is all category theory - but the proof relies so heavily on good old inclusion-exclusion as beloved by combinatorists!

There's a theory of [[topological concrete categories]], but I don't know if that's the right way forward.

view this post on Zulip Nathanael Arkor (Sep 09 2023 at 19:10):

(For what it's worth, Reggio's proof is also based on the inclusion–exclusion principle.)

view this post on Zulip Kevin Arlin (Sep 10 2023 at 18:48):

I'm thinking Omar's proof will go through in the following context:

Under these assumptions, we can say that C(X,A)mon(X,A)\mathbf C(X,A)-\mathrm{mon}(X,A) is the union of the sets hQh_Q of morphisms XAX\to A factoring through the EE-map XQX\to Q, that this union is finite since the underlying set X|X| has only finitely many quotients, and that PIE gets us C(X,A)mon(X,A)|\mathbf C(X,A)-\mathrm{mon}(X,A)| once we know all the hQ|h_Q| since hQhQ=hQQ|h_Q\cap h_{Q'}|=|h_{Q\vee Q'}| (and similarly for further iterated intersections. )So I think that recovers the argument.

view this post on Zulip Kevin Arlin (Sep 10 2023 at 18:58):

These conditions hold if C\mathbf C is the category of finite spaces in some topological category over Set\mathbf{Set} (which might be basically the same as being a category topological over FinSet\mathbf{FinSet}?), where we have a factorization system with EE given by strong=extremal=regular epis just like in Top\mathbf{Top}, by equipping the middle object of the epi-mono factorization of some map in Set\mathbf{Set} with the terminal C\mathbf{C}-structure making the image inclusion continuous. These conditions look like they also hold if C\mathbf C is the finite algebras for any monad over Set\mathbf{Set}, again with EE the strong=extremal=regular epis.

So I continue to guess that if you have a solid functor into finite sets, which subsumes these two cases and not too much more, you can probably get the same place by using a semi-final lift instead of a final lift to construct the factorization system. But I'm not totally sure about this.

view this post on Zulip John Baez (Sep 11 2023 at 07:49):

Thanks! I don't know solid functors well, but reading the nLab article a few times I'm starting to get the idea, and it may be good. One funny thing is that in my own guess as to the required property I didn't use a general sink, but just a sink with a single morphism:

view this post on Zulip John Baez (Sep 11 2023 at 07:50):

The functor U ⁣:CFinSetU \colon \mathsf{C} \to \mathsf{FinSet} is faithful and given any XCX \in \mathsf{C} and any surjection p ⁣:U(X)Sp \colon U(X) \to S, there is a morphism j ⁣:XQj \colon X \to Q such that the morphisms f ⁣:XYf \colon X \to Y that factor through jj are precisely those for which U(f)U(f) factors through pp.

view this post on Zulip Claudio Pisani (Sep 15 2023 at 12:07):

John Baez said:

Super-Yoneda Lemma. Let C\mathsf{C} be the category of algebras of some Lawvere theory, and let A,BCA, B \in \mathsf{C} be two algebras whose underlying sets are finite. If the functors hom(,A)\mathrm{hom}(-,A) and hom(,A)\mathrm{hom}(-,A) are unnaturally isomorphic, then ABA \cong B.

some time ago I posed a related question on mo.
I will explain my motivations.

view this post on Zulip John Baez (Sep 15 2023 at 13:08):

Interesting. Above I gave a conjectured answer to your question - sufficient conditions on a category for the super-Yoneda Lemma to hold, perhaps not necessary. So did Kevin Arlin. I see your question got some other useful answers on Math Overflow. Thanks for letting me know about those.

Some people call categories for which the super-Yoneda Lemma holds right combinatorial.

view this post on Zulip Claudio Pisani (Sep 16 2023 at 13:15):

In fact my original interest was in left (rather than right) combinatorial (cartesian closed) categories, as I explain here.