Partition Function as Cardinality
Posted by John Baez
In classical statistical mechanics we often think about sets where each point has a number called its ‘energy’. Then the ‘partition function’ counts the set’s points — but points with large energy count for less! And the amount each point gets counted depends on the temperature.
So, the partition function is a generalization of the cardinality that works for sets equipped with a function . I’ve been talking with Tom Leinster about this lately, so let me say a bit more about how it works.
Say is a set where each point has a number . Following the physicists, I’ll call this number the point’s energy.
The partition function is
where is called temperature and is a number called Boltzmann’s constant. If you are a mathematician, feel free to set this constant equal to .
So, the partition function counts the points of — but the idea is that it counts points with large energy for less. Points with energy count for very little. But as , all points get fully counted and
So, the partition function is a generalization of the cardinality that works for sets equipped with a function . And it reduces to the cardinality in the high-temperature limit.
Just like the cardinality, the partition function adds when you take disjoint unions, and multiplies when you take products! Let me explain this.
Let’s call a set with a function an energetic set. I may just call it , and you need to remember it has this function. I’ll call its partition function .
How does the partition function work for the disjoint union or product of energetic sets?
The disjoint union of energetic sets and is again an energetic set: for points in we use the energy function , while for points in we use the function . And we can show that
Just like cardinality!
The cartesian product of energetic sets and is again an energetic set: define the energy of a point to be . This is how it really works in physics. And we can show that
Just like cardinality!
If you like category theory, here are some fun things to do:
1) Make up a category of energetic sets.
(Hint: I’m thinking about a slice category.)
2) Show the disjoint union of energetic sets, defined as above, is the coproduct in this category.
3) Show the ‘cartesian product’ of energetic sets, defined as above, is not the product in this category.
4) Show that the ‘cartesian product’ of energetic sets, defined as above, gives a symmetric monoidal structure on the category of energetic sets. So we should really write it as a tensor product , not .
5) Show the category of energetic sets has colimits and the tensor product distributes over them.
6) Show that the category of finite energetic sets has finite colimits and the tensor product distributes over them. So, it is a nice kind of symmetric rig category.
7) Show the partition function defines a map of symmetric rig categories
where is the usual ring of smooth real functions on the real line, thought of as a symmetric rig category with only identity morphisms.
Finally, a really nice fact:
8) Show that for finite energetic sets and , if and only if .
(Hint: use the Laplace transform.)
So, the partition function for finite energetic sets acts a lot like the cardinality of finite sets. Like the cardinality of finite sets, it’s a map of symmetric rig categories and a complete invariant. And it reduces to counting as .
We can generalize 6) to certain infinite energetic sets, but then we have to worry about whether this sum converges:
We can also go ahead and consider measure spaces, replacing this sum by an integral. This is very common in physics. But again, we need some conditions if we want these integrals to converge.
Convergence
Is there a p-adic version where the sum automatically converges? Also, I feel like one should be able to tie this up with L-functions, but I don’t remember enough about those to really know what I mean.