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: Categorifying energetic sets


view this post on Zulip John Baez (Jul 23 2024 at 13:34):

There's a concept of 'energetic set' which generalizes the concept of finite set, and any energetic set has a 'partition function' which generalizes the cardinality of finite sets. I'm looking for useful categorified, or homotopified, or derived versions of these simple concepts. Can you help? First let me explain the basics.

An energetic set is a set XX equipped with a function E:XRE : X \to \mathbb{R}. Thanks to the physics applications let's call EE the energy.

There's a category of energetic sets: it's just the slice category Set/R\mathsf{Set}/\mathbb{R}. Let's focus on the full subcategory of finite energetic sets to avoid worrying about convergence of sum. So, henceforth my energetic sets will be finite by default.

To an energetic set E ⁣:XRE \colon X \to \mathbb{R} we can assign a real-valued function on the real line called its partition function, defined by

Z(β)=iXeβE(i) Z(\beta) = \sum_{i \in X} e^{-\beta E(i)}

The minus sign is a convention taken from physics.

Here's how the partition function of an energetic set generalizes the cardinality of a finite set:

Theorem. Two (finite) energetic sets are isomorphic if and only if their partition functions are equal.

Theorem. When β=0\beta = 0, the partition function of an energetic set Z:ZRZ: Z \to \mathbb{R} equals the cardinality X|X| of its underlying set.

Theorem. There is a functor from finite sets to energetic sets sending each finite set XX to that finite set equipped with the energy function E=0E = 0. The partition function of the resulting energetic set equals the cardinality X|X|.

Theorem. There is a way to make the category of (finite) energetic sets into a rig category where the addition \oplus is coproduct and the tensor product \otimes of energetic sets E:XR,E: X \to \mathbb{R}, E:XRE': X' \to \mathbb{R} is given by taking the cartesian product X×XX \times X' and equipping it with the energy function

(EE)(x,y)=E(x)+E(y) (E \otimes E')(x,y) = E(x) + E'(y)

Theorem. The partition function of energetic sets AA and BB obeys

Z(AB)=Z(A)+Z(B) Z(A \oplus B) = Z(A) + Z(B)

and

Z(AB)=Z(A)Z(B) Z(A \otimes B) = Z(A) Z(B)

for any (finite) energetic sets XX and YY.

view this post on Zulip John Baez (Jul 23 2024 at 13:40):

All this is explained in more detail starting on page 71 of my book (page 78 of the pdf file).

view this post on Zulip John Baez (Jul 23 2024 at 13:41):

So, can we get some of this to work if we replace finite sets by something more general like groupoids or categories or homotopy types, and replace the energy function by... something more general?

view this post on Zulip Vincent Moreau (Jul 23 2024 at 14:19):

I am puzzled by the theorem about the cardinality. In the book I see that β\beta is meant to be 1/kT1/kT. Did you meant that Z(0)Z(0) is the cardinality X|X|?

view this post on Zulip John Baez (Jul 23 2024 at 15:30):

You're right, the partition function reduces to the cardinality at infinite temperature, which is when β=0\beta = 0. I'll correct that mistake of mine here. Thanks!

(In the book I explain the point of this math in terms of statistical mechanics.)

view this post on Zulip Chris Grossack (they/them) (Jul 23 2024 at 15:50):

In the generic case where all the E(i)E(i) are distinct, isn't ZZ a fourier transform? In this case we can identify XX with the image of EE and we get

Z(β)=RδXeβxZ(\beta) = \int_{\mathbb{R}} \delta_{X} e^{- \beta x}

So maybe by analogy we want to consider some kind of categorified fourier transform?

view this post on Zulip Eric M Downes (Jul 23 2024 at 15:54):

If one wants to proceed in small steps, the Fourier transform has a well studied generalization to abelian groups.

So for an energetic set these become ordered abelian groups (pullback from R\mathbb{R})

view this post on Zulip Eric M Downes (Jul 23 2024 at 15:56):

This would seem to work well with Persei Diaconis book, which I have if you need access, and Terry Tao has some notes on this as well.

view this post on Zulip Eric M Downes (Jul 23 2024 at 16:27):

Just guessing, based on physical intuition, the symmetry breaking that assigns different probabilities to group elements that should otherwise be equivalent comes from E:GRE:G\to\mathbb{R}. For any given EE there should be an associated Markov model equivalence class on the Cayley graph of GG having eβE(g)/Ze^{-\beta E(g)}/Z as a steady-state distribution; so the directed edges in the Cayley graph of GG are labelled with values kR+k\in\mathbb{R}_+ with for a given pair E(g)E(h)kgh1/khg1E(g)-E(h)\propto k_{gh^{-1}}/k_{hg^{-1}}.

If one wanted to check against physics at this point one could also look at two finite groups G,HG,H where the dynamics on G×HG\times H could be deterministic (where there is uncertainty over initial conditions) or random by reversible and in either case possibly coupled, but GH|G|\ll |H|, so HH serves as a kind of “thermodynamic bath” when there is uncertainty over the initial configuration or some such.

It would also be natural and possible to talk about the entropy generated along a trajectory vs its inverse because the groups provide the critical time-reversal piece from Hamiltonian dynamics that allows us to discuss non-equilibrium thermodynamic systems. (See work by Jarzynski, Crooks, England or ask me.)

view this post on Zulip John Baez (Jul 23 2024 at 16:30):

Chris Grossack (they/them) said:

In the generic case where all the E(i)E(i) are distinct, isn't ZZ a fourier transform?

It's called a Laplace transform. A Laplace transform is like a Fourier transform missing the 1\sqrt{-1} in the exponential. Regardless of whether the energies E(i)E(i) are distinct, ZZ is the Laplace transform of a sum of delta functions, one at each point E(i)RE(i) \in \mathbb{R}.

For some purposes the difference between Fourier transforms and Laplace transforms is pretty small, while for others it's pretty big. Laplace transforms are to statistical mechanics (which is what I'm thinking about now) as Fourier transforms are to quantum mechanics. The quantity β\beta in my Laplace transform is basically inverse temperature 1/T1/T, which plays a role in statistical mechanics analogous to time in quantum mechanics.

So, I had a different network of ideas in my head right now than if I'd written down

Z(t)=iXe1E(i)t Z(t) = \sum_{i \in X} e^{-\sqrt{-1} E(i) t}

But I can switch if it helps.

view this post on Zulip John Baez (Jul 23 2024 at 16:33):

There are various flavors of categorified Fourier transform, like the [[Fourier-Mukai transform]] going from the derived category of coherent sheaves on an abelian variety to the derived category of coherent sheaves on its dual. Here we are thinking of a coherent sheaf as a categorified version of a function, and an abelian variety as being like an abelian group. ([[Pontryagin duality]] already generalized Fourier duality from R\mathbb{R} to locally compact abelian groups.)

view this post on Zulip John Baez (Jul 23 2024 at 16:49):

But I don't actually see how the Fourier-Mukai transform would help me.

view this post on Zulip Eric M Downes (Jul 23 2024 at 18:04):

(somehow deleted my message while trying to edit it...)
John Baez said:

But I don't actually see how the Fourier-Mukai transform would help me.

Briefly

  1. To see if what you are already doing has been done in quantum mechanics; any partition function is a [[Wick rotation]] applied to the eigendecomposition solution of some Schrödinger equation.
  2. It gives you access to physics models in which trajectory reversibility and entropy both have precise meaning within the same system. Consider if there is a functor G:SetGrp\mathcal{G}:{\sf Set\to Grp} such that for every E:XRE:X\to\mathbb{R} there is a unqiue E:GXRE':\mathcal{G}X\to\mathbb{R} commuting with the forgetful functor taking a group to its underlying set. Many classic statmech systems are realizable as markov models on the cayley graph of some group, where the transition rates label the edges; these systems may serve as hypothesis and extension generating examples for what other things a categorization might do, because the fourier transform on groups is so well understood.

Other stuff could be said, about how β<0\beta<0 isnt as unphysical as it seems, etc. and I'll retype if anyone would like me to.

view this post on Zulip David Egolf (Jul 23 2024 at 18:15):

The notation you've used leads me to wonder if we can nicely promote ZZ to a functor! I haven't been able to figure out a nice way to achieve this though, yet. I wonder if there is some nice notion of morphism between partition functions.

In the direction of trying to promote ZZ to a functor, the other idea that occurs to me is to think about the "most informative concise observation" of FinSet/R\mathsf{FinSet}/\mathbb{R}, as illustrated in this picture:
picture

The idea is to look for some functor Z:FinSet/RAZ:\mathsf{FinSet}/\mathbb{R} \to A that is initial among functors that preserve the rig category structure and also satisfy some more properties analogous to those that the original version of ZZ satisfies. (Such a functor may or may not exist.) For example, we might require each such functor FF to satsify this condition:

We might need to put more conditions on these functors to potentially get something interesting from this approach. Maybe we need something relating to cardinality? But I'm not sure what exactly this would look like!

view this post on Zulip David Egolf (Jul 23 2024 at 18:52):

I notice that ZZ sends two isomorphic energetic sets to two equal partition functions. And it sends two non-isomorphic energetic sets to two non-equal partition functions. For this reason, I wonder if we can form a category of partition functions by taking a skeleton of Set/R\mathsf{Set}/\mathbb{R}. Might we be able to realize ZZ as a functor, using this?

(I'm getting tired though, so I'll stop here.)

view this post on Zulip John Baez (Jul 23 2024 at 19:30):

For any category CC there's a functor from its core (the groupoid of objects of CC and isomorphisms) to the discrete category whose objects are isomorphism classes of objects of CC. This functor sends any object to its isomorphism class.

When C=SetC = \mathsf{Set} this functor is called cardinality. When CC is the category of energetic sets this functor is ZZ (up to isomorphism).

view this post on Zulip Matteo Capucci (he/him) (Jul 24 2024 at 06:52):

One naive way is to make X a category and E a functor into energetic sets again. I don't really know how to define Z in that case without going in unexplored quantitative category theory land...

view this post on Zulip Peva Blanchard (Jul 24 2024 at 07:54):

The partition function as cardinality reminds me of Tom Leinser's work on magnitude (see e.g. the introduction here)

If I go on with the analogy. Every energetic set (X,E)(X,E) comes with a similarity matrix

Aij=eβ(EjEi)Z(β) A_{ij} = \frac{e^{\beta \cdot (E_j - E_i)}}{Z(\beta)}

Then the vector u=(eβEj)jXu = (e^{-\beta E_j})_{j \in X} is a weigthing

jAijuj=1 \sum_j A_{ij} u_j = 1

and Z(β)Z(\beta) is the corresponding magnitude.

Tom Leinster generalizes this to enriched category: AijA_{ij} becomes a hom object (in some enriching category V\mathcal{V}), and uu an enriched presheaf (or op-presheaf).

view this post on Zulip John Baez (Jul 24 2024 at 08:53):

Interesting idea! Let me just check:

jAijuj=jeβ(EjEi)Z(β)eβEj=jeβEiZ(β)1 \displaystyle{ \sum_j A_{ij} u_j = \sum_j \frac{e^{\beta(E_j - E_i)}}{Z(\beta)} e^{-\beta E_j} = \sum_j \frac{e^{-\beta E_i}}{Z(\beta)} \ne 1 }

view this post on Zulip John Baez (Jul 24 2024 at 08:56):

Did I screw up or do you need to fix your formulas somehow?

view this post on Zulip Peva Blanchard (Jul 24 2024 at 09:50):

Oh you're right, my formula for AijA_{ij} is wrong!

Actually, I don't see any natural formula for AijA_{ij} in terms of the energetic set. Given an arbitrary stochastic matrix P(ji)\mathbb{P}(j|i), we can build a matrix Aij=P(ji)eβEjA_{ij} = \mathbb{P}(j | i) \cdot e^{\beta E_j}. And Z(β)Z(\beta) is the magnitude of AA.

I don't know if it provides additional insights though.

view this post on Zulip Peva Blanchard (Jul 24 2024 at 14:56):

There is another analogy (I hope I'm not wrong this time).

The partition function can be rewritten

Z(β)=xXeβEx=ω(ϵ)dϵeβϵZ(\beta) = \sum_{x \in X} e^{ -\beta E_x} = \int \omega(\epsilon)d\epsilon \cdot e^{- \beta \epsilon}

where ω(ϵ)dϵ\omega(\epsilon) d\epsilon counts the number of points xXx \in X with Ex=ϵE_x = \epsilon.

In your paper Groupoidification made easy, there is a generating function ZRIso(B)Z \in \mathbb{R}^{Iso(B)} associated with every groupoid morphism E:XBE : X \to B. We can formally write

Z(β)=ϵIso(B)E1(ϵ)eβϵZ(\beta) = \sum_{\epsilon \in Iso(B)} \lvert E^{-1}(\epsilon) \rvert \cdot e^{-\beta\epsilon}

where E1(ϵ)\lvert E^{-1}(\epsilon)\rvert is the groupoid cardinality of the essential preimage E1(ϵ)E^{-1}(\epsilon) of ϵ\epsilon.

E1(ϵ)=[x]Iso(E1(ϵ))1Aut x\lvert E^{-1}(\epsilon)\rvert = \sum_{[x] \in Iso(E^{-1}(\epsilon))} \frac{1}{\lvert Aut~x \rvert}

And eβϵe^{-\beta\epsilon} is a formal symbol that represents the function in RIso(B)\mathbb{R}^{Iso(B)} that outputs 11 on ϵ\epsilon and 00 everywhere else.

view this post on Zulip John Baez (Jul 24 2024 at 15:02):

I don't think I want a formal symbol eβϵe^{-\beta \epsilon}. I want a function on the real line: an exponential function. I'm doing a Laplace transform.

That is, whatever abstract framework we've got, I hope it has the usual partition function ZZ as a special case.

view this post on Zulip David Egolf (Jul 24 2024 at 16:11):

The mention of Leinster's work above reminds me that he wrote a book called "Entropy and Diversity: The Axiomatic Approach". Chapter 12 is entitled "The categorical origins of entropy", which might be relevant. (I haven't read much of this book yet - so I don't know how relevant it is).

view this post on Zulip John Baez (Jul 24 2024 at 17:30):

Tom Leinster is one of my best friends and I know all that stuff: we wrote a paper on that.

view this post on Zulip John Baez (Jul 24 2024 at 17:31):

(He teaches at the University of Edinburgh and got me over here for a 2-year Leverhulme Fellowship; I liked it there so much that I got a job here.)

view this post on Zulip John Baez (Jul 24 2024 at 17:32):

Nonetheless your suggestion is a useful one in this way: you're making me realize I should ask Tom my question here.

view this post on Zulip John Baez (Jul 24 2024 at 17:33):

He's just not here now: he's down in Barcelona.

view this post on Zulip David Egolf (Jul 24 2024 at 18:09):

I've been thinking about this puzzle with an extended analogy to medical imaging :sweat_smile:. I don't know if this will be useful, but it's kind of fun, so I'd thought I'd share it here:

view this post on Zulip David Egolf (Jul 24 2024 at 18:11):

We think of our finite set XX as a set of "possible reconstructions of a point". Each element of XX corresponds to some particular "brightness" of that point (e.g. this "brightness" could correspond to the estimated amplitude of an ultrasound wave that bounced off this point).

view this post on Zulip David Egolf (Jul 24 2024 at 18:13):

The energy E(x)E(x) of some xXx \in X is some measure of how much we "like" the particular reconstruction xx. This could be based on some measure of consistency between observed data and some theoretically predicted data (that we would expect to be observed if xx was present).

(As E(x)E(x) goes up, how much we like xx decreases).

view this post on Zulip David Egolf (Jul 24 2024 at 18:16):

We then want to put a probability distribution on all the different reconstructions available to us. To do this, we introduce a parameter β\beta. Using β\beta, the probability we assign to the reconstruction xXx \in X is proportional to eβE(x)e^{-\beta E(x)}.

Intuitively, different values of β\beta correspond to different ways of using the information about how much we "like" each reconstruction xx, which is encoded by E(x)E(x). When β\beta is zero, we completely ignore our E(x)E(x) preference for each xx. Presumably we take EE increasingly more into account as β\beta becomes larger.

view this post on Zulip David Egolf (Jul 24 2024 at 18:24):

I am wondering if this perspective on XX can help with upgrading XX to a non-discrete category. In the case above, each element of XX is to be thought of as a particular reconstruction of a single (fixed) part of an image. So, perhaps we could consider a category where objects correspond to reconstructions of various parts of an image!

view this post on Zulip David Egolf (Jul 24 2024 at 18:25):

Using this analogy, we might consider categories XX where each object of XX corresponds to a particular state of some part of a (fixed) system.

view this post on Zulip David Egolf (Jul 24 2024 at 18:31):

Returning to the imaging analogy, if the objects of some category are reconstructions for parts of an image, then what could morphisms be? The first idea that occurs to me is this:

I have not checked that this actually forms a category, yet.

view this post on Zulip David Egolf (Jul 24 2024 at 18:34):

Hmm. This probably doesn't form a category - composition seems like it would be problematic.

view this post on Zulip David Egolf (Jul 24 2024 at 18:36):

A simpler category can maybe still be obtained though:

I think this is a category, and in particular a subcategory of Set/R\mathsf{Set}/\mathbb{R}.

view this post on Zulip David Egolf (Jul 24 2024 at 18:42):

Our original case of a set XX can be recovered (roughly) as a discrete category. We can do this by considering a category where each object is a distinct function from some fixed UU to R\mathbb{R}. These are "competing reconstructions" on the same part of an image. There will be no morphisms between distinct objects in this setting, because none of these reconstructions are "part of" a different one of these reconstructions.

view this post on Zulip David Egolf (Jul 24 2024 at 18:46):

By analogy, we might consider a category where:

When each object is associated to the same part of the system, then the resulting category is discrete.

view this post on Zulip David Egolf (Jul 24 2024 at 18:47):

I don't know if any of this is helpful at all! But it was interesting to me, so I thought I would share.

My hope is that possibly this line of thought could be helpful for upgrading XX from a set to a poset.

view this post on Zulip Nathaniel Virgo (Jul 31 2024 at 02:49):

To @John Baez's original question, I wonder if [[combinatorial species]] might point in a useful direction?

This post contains a basic arithmetic mistake, sorry. It's probably not worth reading.

I know very little about this and I know you know way more, but going from Wikipedia's exposition (which has a combinatorial species being a functor core(FinSet)core(FinSet)\rm core({\bf FinSet})\to \rm core({\bf FinSet})), from a species you can define a generating function

f(x)=nNF(n)xnn!.f(x) = \sum_{n\in\mathbb{N}}|F(n)|\frac{x^n}{n!}.

This can be made more suggestive by defining E(n)=F(n)/n!E(n) = |F(n)|/n! and β=logx\beta = -\log x so that we can define

Z(β)f(x)=nNeβE(n).\cancel{Z(\beta)\coloneqq f(x) = \sum_{n\in\mathbb{N}} e^{-\beta E(n)}.}

(This should have been nNg(n)eβn\sum_{n\in\mathbb{N}}g(n)e^{-\beta n} with g(n)=F(n)/n!g(n) = |F(n)|/n! as David Egolf pointed out. Which still looks a bit like a partition function if you squint, in which the energy is E(n)=nE(n)=n and g(n)g(n) is a degeneracy of each state, but this is much less interesting than I thought it was. The rest of the post doesn't really work now.)

This looks like a partition function, which is maybe a trivial observation. It's a bit odd that it's over N\mathbb{N} rather than an arbitrary set, and I had to sweep the factors of 1/n!1/n! under the carpet to get to it.)

But the point is that addition and multiplication of generating functions yields a coproduct and a monoidal product on species, which presumably make them into a rig category. So this is a place where "partition functions" and a rig category come up naturally.

I don't know if there's a way to "fix" this idea so that the sum would be over an arbitrary set instead of N\mathbb{N} while keeping the combinatorial flavour, but maybe there's a way?

view this post on Zulip David Egolf (Jul 31 2024 at 03:38):

I am trying to follow the algebra. E(n)=F(n)/n!E(n) = |F(n)|/n!, so our sum becomes f(x)=nNE(n)xnf(x) = \sum_{n \in \mathbb{N}}E(n)x^n. Then we have β=logx-\beta=\log x so that eβ=xe^{-\beta}=x. So I would expect our sum to become f(x)=nNE(n)eβnf(x) = \sum_{n \in \mathbb{N}}E(n) e^{-\beta n}. But this doesn't match what you wrote above, so I suspect I may be missing something!

view this post on Zulip Nathaniel Virgo (Jul 31 2024 at 05:33):

Oh, you're right. I've got something wrong. Hang on, let me see if I can fix it or if the whole post is nonsense

view this post on Zulip Peva Blanchard (Jul 31 2024 at 06:04):

FYI, I recently asked about combinatorial species on this thread. One of the things I learned there is that the factor n!n! is related to some action of the symmetric group Sn\mathfrak{S}_n.

While studying other stuff (Feynman diagrams), I learned that the partition function can be related to the exponential generating series of weighted species (or a variant of). I'd need to work the details a bit for our situation here, but I'm relatively confident that there is a reformulation.

(However, I think that John already knows those things very well.)

view this post on Zulip Peva Blanchard (Jul 31 2024 at 06:49):

I think, we can do it this way.

Let E:XRE : X \to \mathbb{R} be the original energetic set.
Then, for every n0n \ge 0, there is a energetic set Z[n]:XnRZ[n]: X^n \to \mathbb{R} defined by

Z[n](x1,,xn)={ϵnif E(x1)==E(xn)=ϵ0otherwise Z[n](x_1,\dots,x_n) = \begin{cases} \epsilon^n &\text{if } E(x_1) = \dots = E(x_n) = \epsilon \\ 0 &\text{otherwise} \end{cases}

The weighted species ZZ defined by those Z[n]Z[n] has the following exponential generating series

Zegs(β)=n0Z[n]βnn!=n0(xXnZ[n](x1,,xn))βnn!=n0ϵω(ϵ)(βϵ)nn!=ϵω(ϵ)eβϵ\begin{align*} Z_{egs}(\beta) &= \sum_{n \ge 0} |Z[n]| \cdot \frac{\beta^n}{n!} \\ &= \sum_{n \ge 0} \Big( \sum_{x \in X^n} Z[n](x_1,\dots,x_n) \Big) \frac{\beta^n}{n!} \\ &= \sum_{n \ge 0} \sum_{\epsilon} \omega(\epsilon) \cdot \frac{(\beta \epsilon)^n}{n!} \\ &= \sum_{\epsilon} \omega(\epsilon) e^{\beta\epsilon} \\ \end{align*}

where ω(ϵ)\omega(\epsilon) counts the number of xXx \in X with E(x)=ϵE(x) = \epsilon.
Hence, we recognize

Zegs(β)=keβEk Z_{egs}(\beta) = \sum_k e^{\beta E_k}

(These things are relatively new to me, so I might have made a mistake somewhere)

view this post on Zulip Nathaniel Virgo (Jul 31 2024 at 06:59):

What's the definition of a weighted species?

view this post on Zulip Peva Blanchard (Jul 31 2024 at 07:03):

A weighted species is like a species except that the target category is the category of energetic sets (aka weighted sets).

I.e., a weighted species is a functor F:BB/RF : B \to B/\mathbb{R} where BB is the groupoid of finite sets and bijection, B/RB/\mathbb{R} is the category of energetic sets with "energy-preserving bijections".

view this post on Zulip Peva Blanchard (Jul 31 2024 at 07:07):

You can check out chapter 3 of this book.

view this post on Zulip John Baez (Jul 31 2024 at 08:41):

Nathaniel Virgo said:

To John Baez's original question, I wonder if [[combinatorial species]] might point in a useful direction?

This post contains a basic arithmetic mistake, sorry. It's probably not worth reading.

It was worth reading, because it may be possible to fix the mistake by using the "Dirichlet generating function" of a species instead of the usual "exponential generating function". I've been studying the Dirichlet generating function here:

Suppose FF is a species. Then the exponential generating function of FF is the formal power series

n0F(n)n!xn. \displaystyle{ \sum_{n \ge 0} \frac{|F(n)|}{n!} x^n }\, .

On the other hand, the Dirichlet series associated to FF is

n1F(n)n!ns. \displaystyle{ \sum_{n \ge 1} \frac{|F(n)|}{n!} n^{-s} } \, .

The most famous of all Dirichlet series is the Riemann zeta function:

ζ(s)=n1ns. \displaystyle{ \zeta(s) = \sum_{n \ge 1} n^{-s}} \, .

This comes from a species we call the Riemann species, ZZ. A ZZ-structure on a finite set is a way of making it into a semisimple commutative ring - that is, a product of finite fields.

view this post on Zulip John Baez (Jul 31 2024 at 08:49):

The Riemann zeta function is the partition function of the primon gas, a made-up physical system whose states are positive natural numbers, where the energy of state nn is lnn\ln n. People influenced by physics think of this system as a gas of prime numbers where the nn th state is a state where the gas is made of the prime factors of nn - see the link for more.

view this post on Zulip John Baez (Jul 31 2024 at 08:51):

So this is sort of interesting and deserves to be generalized; in a way James Dolan and I have already done it in the linked paper - but I wasn't thinking in terms of partition functions! So thanks, @Nathaniel Virgo.

view this post on Zulip John Baez (Jul 31 2024 at 13:07):

@Nathaniel Virgo - thanks to you I now better understand how the Dirichlet series of a species is an example of a partition function, and thus a species is a kind of "energetic groupoid", generalizing an energetic set.

view this post on Zulip John Baez (Jul 31 2024 at 13:08):

I could explain this but I don't have time now to do a really good job.

The main limitation of this outlook is that it only handles energetic sets, or groupoids, where all the allowed energies are of the form lnn\ln n .

view this post on Zulip John Baez (Jul 31 2024 at 13:11):

I'll just mention this example: the Riemann zeta function is known to be the partition function of the energetic set N\mathbb{N} where the energy of nNn \in \mathbb{N} is lnn\ln n. But we can also think of it as the partition function, or Dirichlet series, of a groupoid where the objects are products of finite fields. (This groupoid is the groupoid of elements of the "Riemann species", which I described above.)

So here's the categorification going on: instead of just the set of all natural numbers, we are now working with the groupoid of commutative rings that are products of finite fields. What's the connection? Any such commutative ring has a cardinality which is a natural number.

view this post on Zulip John Baez (Jul 31 2024 at 13:16):

All of this is going in a very number-theoretic direction, which hadn't been on my mind when I posed my original question in this thread! The number theory and the statistical mechanices were in somewhat separate compartments in my brain, even though I knew about the primon gas.

view this post on Zulip David Egolf (Jul 31 2024 at 16:37):

I had a thought about the energy function E:XRE: X \to \R. Such a function associates to each element of XX some real number. So, we might view EE as specifying an R\mathbb{R}-weighted "linear combination" of the elements of XX. That is, at least for finite XX, we could think of EE as an element of the free R\mathbb{R}-vector space generated by XX.

So, if someone knows a way to categorify free vector spaces generated by a set, perhaps an "element" (whatever that means) of such a structure could provide a categorified energy function.

view this post on Zulip John Baez (Jul 31 2024 at 18:41):

Ross Street and George Janelidze have a formalism for dealing with something like monoidal categories, where instead of just being able to form new objects from old by tensoring them like this:

XXYXZ X \otimes X \otimes Y \otimes X \otimes Z

or for short

X2YXZ X^{\otimes 2} \otimes Y \otimes X \otimes Z

you can form objects like this:

X1.739YπZX X^{\otimes 1.739} \otimes Y^{\pi} \otimes Z \otimes X

view this post on Zulip John Baez (Jul 31 2024 at 18:43):

In particular you can use this idea to categorify the set [0,)[0,\infty). Objects in this category can be thought of as sticks of arbitrary nonnegative length that can be cut into pieces and glued together - but the process of chopping up a stick, rearranging its pieces and gluing it back together is a nontrivial morphism!

view this post on Zulip John Baez (Jul 31 2024 at 18:48):

I think they call the objects in this category real sets.

view this post on Zulip Nathaniel Virgo (Aug 01 2024 at 05:41):

John Baez said:

I could explain this but I don't have time now to do a really good job.

The main limitation of this outlook is that it only handles energetic sets, or groupoids, where all the allowed energies are of the form lnn\ln n .

It sounds fascinating - I'd be happy to understand it properly if you end up writing it down at some point.

I'm just speculating because I don't really understand it, but maybe the logn\log n thing makes some intuitive sense if we think of it as entropy rather than energy, in the Boltzmann logW\log W sense?

view this post on Zulip John Baez (Aug 01 2024 at 06:42):

It sounds fascinating - I'd be happy to understand it properly if you end up writing it down at some point.

The math is mostly present already in Dirichlet species and the Hasse-Weil zeta function. The new twist would be the physics interpretation of the Dirichlet series of a species as a partition function. This is already 'well known' in the special case of the Riemann species, whose Dirichlet series is the simplest of all, the Riemann zeta function. That is, a bunch of people talk about how the Riemann zeta function is the partition function of the primon gas. So it's 'just' a matter of taking the pushout of these ideas. But I'd never done it before, and I'm not claiming this paragraph counts as a decent explanation of what's going on.

I am claiming that reading the two links may provide you with hours of free entertainment. :upside_down:

view this post on Zulip John Baez (Aug 01 2024 at 06:55):

I'm just speculating because I don't really understand it, but maybe the logn\log n thing makes some intuitive sense if we think of it as entropy rather than energy, in the Boltzmann logW\log W sense?

If we're thinking in terms of a partition function we have to think of lnn\ln n as the energy EnE_n of the number nn, because the partition function is always defined as

neβEn \sum_n e^{-\beta E_n}

and En=lnnE_n = \ln n makes the partition function equal to the Riemann zeta function:

neβEn=neβlnn=n1nβ=ζ(β)\displaystyle{ \sum_n e^{-\beta E_n} = \sum_n e^{- \beta \ln n} = \sum_n \frac{1}{n^\beta} = \zeta(\beta) }

But there's a very nice interpretation of this: each prime number pp has energy lnp\ln p, and the energy of an arbitrary positive integer is the sum of the energy of the primes in its prime factorization!

So, we are to imagine a cylinder of gas where the atoms come in different kinds, one for each prime number. If we allow an arbitrary number of atoms of each different kind, the partition function of this system is the Riemann zeta function.