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: deprecated: combinatorics

Topic: Lambert W species interpretation


view this post on Zulip Tim Campion (Oct 23 2021 at 16:25):

The Lambert W function is defined by the functional equation W(z)eW(z)=zW(z)e^{W(z)} = z. It has multiple branches, yadda yadda yadda.

One of those branches has a very interesting Taylor series expansion, W(z)=n1(1)n1n!nn1znW(z) = \sum_{n \geq 1} \frac{(-1)^{n-1}}{n!} n^{n-1} z^n. I'd like an interpretation in terms of combinatorial species.

First let's get rid of the minus signs. Let w(z):=W(z)w(z):= -W(-z) be defined by the functional equation w(z)ew(z)=zw(z)e^{-w(z)} = z (this quantity seems to be what actually comes up whenever I've wanted to use the Lambert WW function in my life, so I'm encouraged by the need to do this transformation.) We get w(z)=n1nn1n!znw(z) = \sum_{n \geq 1} \frac{n^{n-1}}{n!} z^n.

This looks pretty promising -- we appear to be looking at some kind of species W\mathcal W where a W\mathcal W-structure on a set XX with nn elements is a function from a set with (n1)(n-1) elements to XX, or something like that? I'm a bit confused, though:

  1. How exactly should a Σn\Sigma_n action on functions (n1)n(n-1) \to n be defined?
  2. How does this connect to the functional equation w(z)ew(z)=zw(z)e^{-w(z)} =z, particulary with an eye toward the species interpretation of eze^z?

view this post on Zulip Reid Barton (Oct 23 2021 at 16:27):

It's been a long time but I seem to recall generatingfunctionology has a discussion of the Lambert W function, have you looked in there?

view this post on Zulip Tim Campion (Oct 23 2021 at 16:28):

I haven't tried anywhere, I decided to lazily try the internet first :)

view this post on Zulip Tim Campion (Oct 23 2021 at 16:28):

Yeah, I haven't looked at generatingfunctionology in awhile

view this post on Zulip Tim Campion (Oct 23 2021 at 16:28):

it's a fun book though

view this post on Zulip Tim Campion (Oct 23 2021 at 16:33):

Wilf talks about something called a Lambert series more generally (in exercise 31 to Ch. 2 on p. 70 of gfology)

view this post on Zulip Tim Campion (Oct 23 2021 at 16:36):

He says that that a "Lambert series" is one of the form anxn1xn\sum a_n \frac{x^n}{1-x^n} and says that they're hard in general. But isn't this basically what you want Stirling numbers for?

view this post on Zulip Tim Campion (Oct 23 2021 at 16:40):

Another way to write the functional equation is w(z)=zew(z)w(z) = z e^{w(z)} (where again I'm using w(z)=W(z)w(z) = -W(-z)).

view this post on Zulip Tim Campion (Oct 23 2021 at 16:43):

How about this: we have w(z)=n1nn1(n1)!zn1=m0(m+1)mm!zmw'(z) = \sum_{n \geq 1} \frac{n^{n-1}}{(n-1)!} z^{n-1} = \sum_{m \geq 0} \frac {(m+1)^m}{m!} z^m. That looks promising...

view this post on Zulip Tim Campion (Oct 23 2021 at 16:46):

So w(z)w'(z) corresponds to the species W\mathcal W' where a W\mathcal W'-structure on XX is just a map XX+1X \to X+1.

view this post on Zulip Tim Campion (Oct 23 2021 at 16:47):

The species W\mathcal W' actually comes with a natural species structure: the ΣX\Sigma_X action on Map(X,X+1)Map(X,X+1) conjugates by the automorphism of XX, fixing the new point of X+1X+1.

view this post on Zulip Tim Campion (Oct 23 2021 at 16:48):

But from this perspective, it still seems a bit mysterious that the integral of w(z)w'(z) should still have integral derivatives.

view this post on Zulip Tim Campion (Oct 23 2021 at 16:58):

Oh wait!

view this post on Zulip Tim Campion (Oct 23 2021 at 16:58):

The functional equation w(z)=zew(z)w(z) = z e^{w(z)} is well-known.

view this post on Zulip Tim Campion (Oct 23 2021 at 16:59):

It characterizes the species of rooted trees.

view this post on Zulip Tim Campion (Oct 23 2021 at 17:01):

It says that the structure of a rooted tree on a set XX is given by choosing a point of XX to be the root (that's the zz factor), partitioning the remainder of XX somehow (that's the exponential), and putting the structure of a rooted tree on each member of the partition (that's the w(z)w(z) in the exponential).

view this post on Zulip Tim Campion (Oct 23 2021 at 17:04):

Ok, and then the formula w(z)=n1nn1n!znw(z) = \sum_{n \geq 1} \frac{n^{n-1}}{n!} z^{n} says that in order to construct a rooted tree structure on XX, what you do is you write down a partially-defined endomorphism of XX -- defined at all but one point. The endomorphism is the "predecessor" function for the tree structure; it is undefined only at the root point. EDIT: There is something wrong here -- the predecessor function can't be an arbitrary endofunction...

view this post on Zulip Tim Campion (Oct 23 2021 at 17:05):

I feel like there may have been an nCafe discussion of this at some point, but I did not remember that the resulting generating function is basically the Lambert W function.

view this post on Zulip Tim Campion (Oct 23 2021 at 17:07):

Maybe it's only in the intervening time that I became sensitive to the appearance of Lambert WW

view this post on Zulip Tim Campion (Oct 23 2021 at 17:16):

Tim Campion said:

Ok, and then the formula w(z)=n1nn1n!znw(z) = \sum_{n \geq 1} \frac{n^{n-1}}{n!} z^{n} says that in order to construct a rooted tree structure on XX, what you do is you write down a partially-defined endomorphism of XX -- defined at all but one point. The endomorphism is the "predecessor" function for the tree structure; it is undefined only at the root point. EDIT: There is something wrong here -- the predecessor function can't be an arbitrary endofunction...

Okay, I found Tom Leinster's post describing Joyal's proof of Cayley's formula, which gets this right. Interesting that it involves the identification of the species for linear orders and the species for permutations (which is non-canonical)

view this post on Zulip John Baez (Oct 25 2021 at 01:09):

Let me know how this works out... or write an updated description of what you're stuck on. I love species, but I haven't thought about the Lambert W function as the generating function of a (super)species.

view this post on Zulip Tim Campion (Oct 25 2021 at 12:21):

John Baez said:

Let me know how this works out... or write an updated description of what you're stuck on. I love species, but I haven't thought about the Lambert W function as the generating function of a (super)species.

So I think I was satisfied with the resolution here. Let me summarize (see the last bullet below for a lingering, more general question, about "solving species equations" in general):

I think this species equation is well-known (it even appears as an example illustrating composition of species, buried in the wikipedia page for Combinatorial Species, where the species for rooted trees is called "ArAr" -- as that's a French abbreviation, I suspect this example appears already in Joyal's original paper). But here's a rundown: if XX is a finite set, then a rooted tree structure on XX (corresponding to the w(z)w(z) on the LHS of (1)(1)) is given by choosing a basepoint (that's the zz factor on the RHS of (1)(1)), partitioning the rest (that's the exponential on the RHS of (1)(1)), and then choosing a rooted tree structure on each member of the partition (that's the w(z)w(z) on the RHS of (1)(1)).

(2)w(z)=n1nn1n!zn (2) \qquad w(z) = \sum_{n \geq 1} \frac{n^{n-1}}{n!} z^n.

But apparently it's a famous theorem of Cayley that the number of unrooted trees on a labeled set of order nn is nn2n^{n-2}. You can deduce (2)(2) from Cayley's formula, of course, simply by noting that there are nn possible choices of "root" for each unrooted tree on nn elements. And in turn, Cayley's theorem has a beautiful "species-inspired" proof given by Joyal, again in his original paper on species. Everything I know about this I learned from Tom Leinster's lovely blog post on the topic.

(Here's what I learned from Tom's blog post: Joyal's proof actually proceeds by counting bipointed trees TT (where the two chosen points AA and BB are allowed to be equal). To see that there are nnn^n of these, Joyal gives a bijection to the set of endofunctions of XX as follows. Observe that there is a unique path [A,B][A,B] in TT from AA to BB, specified by a total ordering of the vertices of [A,B][A,B]. The rest of the tree structure TT on XX amounts to the choice of a partial endofunction PP of XX, which tells each vertex not in [A,B][A,B] how to move one step closer to [A,B][A,B]. Now Joyal observes that total orderings on [A,B][A,B] are in (noncanonical) bijection with permutations of [A,B][A,B]. Swapping the former for the latter, we now how the data to promote PP to an endofunction of all of XX, and this correspondence between bipointed trees and endofunctions is bijective -- though not Σn\Sigma_n-equivariant.)

view this post on Zulip Tim Campion (Oct 25 2021 at 12:39):

I don't know why my "summary" is the longest post in this thread :upside_down:

view this post on Zulip John Baez (Oct 25 2021 at 17:22):

Because you actually explained what was going on? Thanks!

view this post on Zulip John Baez (Oct 25 2021 at 17:24):

The Big Red Book of Species has a lot on solving differential equations for species, but I don't know if they talk about whether there's a unique-up-to-iso species obeying something like

F(z)P(z)F(z) F(z) \cong P(z) F(z)

where PP is a known species and you're trying to solve this for FF.

view this post on Zulip John Baez (Oct 25 2021 at 17:25):

I imagine people who know a lot about "initial algebras of endofunctors" might know, not a unique, but at least an initial solution of "fixed point equations" of this sort, in the category of species.

view this post on Zulip John Baez (Oct 25 2021 at 17:27):

Btw, the Big Red Book of Species is actually called Combinatorial Species and Tree-like Structures. That's just my personal name for it.

view this post on Zulip Tim Campion (Oct 25 2021 at 17:40):

Chapter 3 of that book appears to be all about solving functional equations in species, thanks!

view this post on Zulip Tim Campion (Oct 25 2021 at 17:42):

In particular, apparently they show that a functional equation of the form Y=X×R(Y)Y = X \times R(Y), where RR is a species, has a unique solution species YY, up to unique canonical isomorphism!

view this post on Zulip Tim Campion (Oct 25 2021 at 17:43):

And there's an Implicit Species Theorem, cool!

view this post on Zulip Tim Campion (Oct 25 2021 at 17:49):

The implicit species theorem is very nice -- it says that if H(X,Y)H(X,Y) is a "2-sort species" (I think I can guess what that means...), and if H(0,0)=2H(0,0)=0H(0,0) = \partial_2 H(0,0) = 0, then there exists a species AA, unique up to unique canonical isomorphism, such that AH(X,A)A \cong H(X,A) and A(0)=0A(0) = 0.

view this post on Zulip Tim Campion (Oct 25 2021 at 17:49):

which is weird -- why can't that species AA have automorphisms?

view this post on Zulip Tim Campion (Oct 25 2021 at 17:49):

maybe they mean unique up to canonical isomorphism?

view this post on Zulip Tim Campion (Oct 25 2021 at 17:50):

Oh yes they do.

view this post on Zulip Tim Campion (Oct 25 2021 at 17:50):

That's even what they say.

view this post on Zulip Jacques Carette (Oct 26 2021 at 13:23):

Note that that condition on HH can be loosened, see

C. Pivoteau, B. Salvy, and M. Soria, “Algorithms for Combinatorial Structures: Well-founded systems and Newton iterations,” Journal of Combinatorial Theory, Series A, vol. 119, pp. 1711–1773, 2012.

where there's also a non-paywalled version.