Random Permutations (Part 11)
Posted by John Baez
I think I’m closing in on a good understanding of random permutations using species and groupoid cardinality. Today I want to use this approach to state and prove a categorified version of the Cycle Length Lemma, which is Lemma 2.1 here:
This is a grand generalization of the result in Part 10.
Let me state the Cycle Length Lemma before I categorify it and prove it. I’ll say it a bit differently than Ford does.
In my understanding of random permutations, a key concept is the function
which counts, for any permutation of things, how many cycles of length it has.
Another key concept is the th falling power of some number :
If is a natural number, and you have things, then is the number of ordered -tuples of distinct things.
Putting these together we get
This counts, for any permutation of things, how many ordered -tuples of distinct cycles of length it has. And note that we can replace the word ‘distinct’ here by ‘disjoint’, without changing the meaning, since distinct cycles can’t overlap.
There’s a really simple formula for the average of this lovable quantity . I proved it in Part 9, and again using groupoid cardinality last time.
The Cycle Length Lemma goes further: it tells us not only the average value of , but also the average of a product of quantities like this. To act like probability theorists let’s write the average using an , which stands for ‘expected value’.
Cycle Length Lemma. Suppose . Then
Typing this in, I remember how obscure this looks at first! After having thought about it for several weeks, it seems beautiful to me now.
I guess to love it you need to prove it, or at least think about it. For any permutation of an -element set,
counts the number of ways to choose an ordered -tuple of disjoint cycles of length , an ordered -tuple of disjoint cycles of length , and so on. All these cycles are disjoint, so there’s not enough room to fit them all into your -element set if
Thus, when this inequality holds we get
The interesting case is the other case, where
Now all our cycles fit inside our set, so we don’t get zero. What we get is very simple: a product of factors of , one for each cycle of length that we’re choosing:
Ultimately these factors arise for a simple reason: the probability that a random permutation of elements has a single cycle is .
This formula implies a certain lack of ‘correlation’ between the functions . Namely:
This might be surprising at first. You might think that having a bunch of large cycles in a permutation would reduce the probability of there being other large cycles. But this doesn’t happen… until your large cycles actually prohibit the existence of other large cycles, which happens when
Okay, so let’s prove the Cycle Length Lemma. We’ll assume
because the other case is easy. To compute
we just need to:
- go through all permutations ,
- for each one count all ways to choose an ordered -tuple of disjoint cycles of length , an ordered -tuple of disjoint cycles of length , and so on,
- add up all these counts and divide by .
But the resulting number is a groupoid cardinality! There’s a groupoid where an object consists of
- a set with elements equipped with
- a permutation and
- a choice, for , of an ordered -tuple of disjoint cycles of length , an ordered -tuple of disjoint cycles of length , and so on.
The morphisms in are structure-preserving bijections. The argument in Part 10 easily generalizes to show
There’s really no calculation here, just a bit of thought.
Next, note that is equivalent to another groupoid , where an object consists of:
- an ordered -tuple of cyclically ordered sets of cardinality 1, an ordered -tuple of cyclically ordered sets of cardinality 2, and so on… up to a -tuple of cyclically ordered sets of cardinality , and
- a set of cardinality equipped with a permutation .
A morphism in is a bunch of structure-preserving bijections.
So, we have
But , in turn, is equivalent to a product of groupoids:
Here is the one-object groupoid corresponding to the group . This is equivalent to the groupoid of cyclically ordered sets of cardinality ; that’s why it shows up. is the groupoid of -element sets equipped with a permutation. shows up here because of the set I called above.
Last time I computed the cardinalities of these groupoids:
while
So, we get
Voilà! We’ve proved the Cycle Length Lemma.
But even better, we’ve categorified it. The lemma is an equation between numbers, but we’ve exhibited these numbers as cardinalities of groupoids, and shown these groupoids are equivalent. So, the Cycle Length Lemma is really just a corollary of a stronger yet more obvious fact!
Categorified Cycle Length Lemma. Suppose . Let be the groupoid of -element sets equipped with a permutation that is equipped with a choice of an ordered -tuple of disjoint cycles of length , an ordered -tuple of disjoint cycles of length , and so on. Then
By the way, let’s define to be the empty groupoid when . Then the lemma holds even in that case.
The case where is especially pretty, since then our chosen cycles completely fill up our -element set and we have
Taking the groupoid cardinality of both sides, we get a special case of the Cycle Length Lemma that was discovered by Cauchy in his research on permutations — maybe in one of his January 1815 papers. It’s sometimes called Cauchy’s Formula, though this guy had a lot of formulae.