Entropic Gravity Part 3: Diffusion in non-uniform time and space (unfinished)

November 16, 2025

This post belongs to a three part series containing:

Diffusion in non-uniform time and space

In this blog post I want to tie together the previous two and apply the coordinate transformations discussed there to Einsteinian gravity, General relativity (GR). At its core, GR replaces Newtonian gravitational potentials with coordinate remappings, making it a suitable playground for exploring if gravity can be equivalently thought of as an entropic phenomenon for diffusion.

There are three contributions:

  • Space stretching
  • Time dilation
  • Temperature gradients

Classical Diffusion in inhomogeneous Space

One of the effects of GR is that the geometry itself changes the "density" of space, even before introducing any explicit forces. In particular, when measuring the volume of space around massive object, it is stretched, i.e. summing up all spatial volume elements gives a larger volume than would be expected with a naive V=43πr3V = \frac{4}{3} \pi r^3 calculation.

In 1D, if the proper distance is

ds=σ(x)dx,ds = \sigma(x)\,dx,

then the coordinate xx does not measure physical distance uniformly. A coordinate interval dxdx in a region with larger σ(x)\sigma(x) corresponds to a larger amount of proper space.

If diffusion is unbiased in proper space, then the stationary density is uniform with respect to dsds, not with respect to dxdx. Writing

dP=ρproper(s)ds=pstat(x)dx,dP = \rho_{\text{proper}}(s)\,ds = p_{\text{stat}}(x)\,dx,

and taking ρproper(s)=const\rho_{\text{proper}}(s)=\text{const}, we get

pstat(x)σ(x).p_{\text{stat}}(x) \propto \sigma(x).

So a region where space is stretched (σ>1\sigma > 1) collects proportionally more probability mass, while a compressed region (σ<1\sigma < 1) gets proportionally less. The reason is purely geometric: there is simply more proper space packed into the same coordinate interval.

Equivalently,

pstat(x)σ(x)=const.\frac{p_{\text{stat}}(x)}{\sigma(x)} = \text{const}.

In higher dimensions, the same idea is expressed by the spatial part of the metric hij(x)h_{ij}(x). The proper volume element is

dV=deth(x)d3x,dV = \sqrt{\det h(x)}\,d^3x,

so diffusion that is uniform in proper space has stationary coordinate-space density

pstat(x)deth(x).p_{\text{stat}}(\mathbf{x}) \propto \sqrt{\det h(\mathbf{x})}.

This is the multidimensional version of the 1D stretch factor. If space is stretched isotropically by a factor σ\sigma in each direction, then

dVσ3d3x,dV \propto \sigma^3\,d^3x,

so the equilibrium density in coordinates is enhanced by the same cubic factor. In this sense, curvature can bias diffusion purely through the local density of available spatial states.

Classical Diffusion in inhomogeneous Time

One of the consequences of GR is gravitational time dilation (for a refresher watch Interstellar, it's a good movie), i.e. time runs slower near massive objects. Outside of a spherical mass, the local rate of the flow of time goes like dtdτ=12GMrc2\frac{dt}{d\tau} = \sqrt{1 - \frac{2 \cdot G \cdot M}{r c^2}}, leading to a rate of flow of time dependent on the radial distance. This is what I'm going to build towards, but first we should build some intuition on some simple examples.

First, let's explore what effect different rates of flow of time have on a particle diffusing on a 1D ring. As a baseline, here's simple Monte-Carlo simulation using an unbiased random walk with homogeneous time flow in MATLAB (20000 time steps per trial, 1000 trials) and plotting the histogram of where the particle is located at each step shows the expected uniform distribution.

So what effect do variations in the flow of time have on diffusing particles? To make the flow of time inhomogeneous, I picked the first 10 bins on the ring and made the random walk in that region only update once for every two updates on the rest of the ring. Running the same Monte-Carlo simulation now yields a different result: The particle on average spends twice as much time in the region with slowed time.

This simulation can be run with many different amounts of time dilation (or time-dilation factors), but it always yields the same result:
The probability of finding a particle in a bin with slowed time relative to a bin outside that region is directly proportional to the amout of time dilation, so let's try to generalize this point. We can add the effect of time dilation to the Fokker-Planck equation for diffusion by using the chain rule on coordinate time (local flow of time) and use proper time instead, or by incorporating the slower rate of passage of time into the diffusion constant. I will use the latter approach.

We start from the usual one-dimensional Fokker–Planck equation written in proper time (the particle’s own clock, wherever it is):

pτ(x,τ)=D02px2(x,τ)\frac{\partial p}{\partial \tau}(x,\tau) = D_0\,\frac{\partial^2 p}{\partial x^2}(x,\tau)

The outside world measures coordinate time tt. The two clocks are linked by the time-dilation factor:

α(x)=dtdτ(x)>1\alpha(x) = \frac{dt}{d\tau}(x) > 1

Or alternatively:

dτ=dtα(x)d\tau = \frac{dt}{\alpha(x)}

Because τ\tau advances more slowly where α(x)\alpha(x) is large, the effective diffusion coefficient seen in coordinate time is:

D(x)=D0dτdt=D0α(x)D(x) = D_0\,\frac{d\tau}{dt} = \frac{D_0}{\alpha(x)}

Replacing D0D_0 with D(x)D(x) gives the Fokker–Planck equation in coordinate time:

pt(x,t)=2x2[D(x)p(x,t)]\frac{\partial p}{\partial t}(x,t) = \frac{\partial^2}{\partial x^2} \left[ D(x)\,p(x,t) \right]

In equilibrium, pt=0\frac{\partial p}{\partial t} = 0, so the equation becomes:

2x2[D(x)pstat(x)]=0\frac{\partial^2}{\partial x^2} \left[ D(x)\,p_{\text{stat}}(x) \right] = 0

Integrating twice (and assuming reflecting boundaries so the net probability flux is zero) gives:

D(x)pstat(x)=constD(x)\,p_{\text{stat}}(x) = \text{const}

Substituting D(x)=D0α(x) D(x) = \frac{D_0}{\alpha(x)} gives the final result:

pstat(x)α(x)=constp_{\text{stat}}(x)\,\alpha(x) = \text{const}

Or in other words:

pstat(x)time-slow-down factor=const\frac{p_{\text{stat}}(x)}{\text{time-slow-down factor}} = \text{const}

This is a general statement of what the earlier Matlab simulations showed, namely that regions with slowed time lead to a higher probability of finding a particle inside.

From a classical thermodynamical perspective, we could interpret this result as stemming from a potential that attracts the particle to this region. Adding this potential to a Fokker-Planck equation (commonly called the Smoluchowski equation in this form) with homogeneous flow of time gives us:

dpdt=D(d2pdx2+ddx(pkBTdUdx))\frac{dp}{dt} = D\left( \frac{d^2p}{dx^2} + \frac{d}{dx} \left( \frac{p}{k_B T} \frac{dU}{dx} \right) \right)

dpdx=1kBTpdUdx\frac{dp}{dx} = - \frac{1}{k_B T}\,p\,\frac{dU}{dx} for the stationary distribution.

The potential that fulfills this condition can be found by integrating both sides:

1pdp=1kBTdUdxdx\int \frac{1}{p}\,dp = -\,\frac{1}{k_B T} \int \frac{dU}{dx}\,dx

lnp=1kBTU(x)+const\ln p = -\,\frac{1}{k_B T}\,U(x) + \text{const}

Exponentiating and plugging in the partition function for the constant of integration leads to the standard form of the Boltzmann distribution in this choice of coordinates: p(x)  =  1ZeU(x)kBTp(x)\;=\;\frac{1}{Z}\,e^{-\,\frac{U(x)}{k_B T}}

And we get an expression for the apparent entropic potential energy as a function of α(x)\alpha(x):

U(x)=kBTln ⁣(dt(x)dτ)+C=kBTln ⁣(α(x))+C. U(x)=k_B T\,\ln\!\bigl(\tfrac{dt(x)}{d\tau}\bigr)+C = k_B T\,\ln\!\bigl(\alpha(x)\bigr)+C .

So what looks like diffusion or a random walk in one set of coordinates (using local proper time everywhere) is consistent with an entropic force and associated potential in another set of coordinates (using the same coordinate time everywhere).

Classical Diffusion under inhomogeneous temperature

Due to the gravitational redshift induced by a massive object, there the equilibrium temperature is not constant in GR. Instead, the Tolman–Ehrenfest effect makes it so the temperature is higher near the massive object than farther away. For a more in-detail description, see Notes on Temperature in GR below.

The Tolman–Ehrenfest relation states that

T(x)N(x)=T,T(x)\,N(x)=T_\infty,

where N(x)=g00(x)N(x)=\sqrt{-g_{00}(x)} is the lapse and TT_\infty is the temperature measured at infinity. Since N(x)N(x) is smaller closer to a massive body, the local equilibrium temperature T(x)T(x) is higher there.

There are two separate ways temperature could affect the dynamics:

  1. Through the diffusion constant D(x)=μkBTD(x) = \mu k_B T using the Einstein equation for diffusion
  2. Through the local thermally accessible state density Zp(x)Z_p(x)

The diffusion constant controls how fast probability redistributes, but not what equilibrium it approaches.

By contrast, Zp(x)Z_p(x) determines the stationary distribution itself. Since the evolution is written in the form

tρ=x ⁣[D(x)Zp(x)x ⁣(ρZp)],\partial_t \rho = \partial_x\!\left[ D(x)\,Z_p(x)\,\partial_x\!\left(\frac{\rho}{Z_p}\right) \right],

any positive D(x)D(x) gives the same zero-flux equilibrium condition

ρeq(x)Zp(x).\rho_{\mathrm{eq}}(x)\propto Z_p(x).

Therefore, D(x)D(x) controls rate of approach to equilibrium, while Zp(x)Z_p(x) controls where equilibrium density accumulates.

In the simulation below, I set up diffusion with a constant D(x)=D0D(x) = D_0 and a temperature gradient. Temperautre here only acts through the local thermally accessible density of momentum states. At each position xx, the local momentum partition factor is

Zp(x)=dp  eEloc(p)/T(x),Eloc(p)=m2+p2.Z_p(x) = \int dp\; e^{-E_{\mathrm{loc}}(p)/T(x)}, \qquad E_{\mathrm{loc}}(p)=\sqrt{m^2+p^2}.

For the exact 1D relativistic case used in the code,

Zp(x)=2mK1 ⁣(mT(x)),Z_p(x)=2m\,K_1\!\left(\frac{m}{T(x)}\right),

where K1K_1 is a modified Bessel function of the second kind. This quantity measures the Boltzmann-weighted density of thermally accessible momentum states. Where T(x)T(x) is larger, more momentum states are appreciably occupied, so Zp(x)Z_p(x) is larger.

The diffusion equation solved in the Matlab script is

tρ=x ⁣[D(x)Zp(x)x ⁣(ρZp)].\partial_t \rho = \partial_x\!\left[ D(x)\,Z_p(x)\,\partial_x\!\left(\frac{\rho}{Z_p}\right) \right].

Equivalently, in flux form,

tρ=xJ,J=D(x)Zp(x)x ⁣(ρZp),\partial_t \rho = -\partial_x J, \qquad J=-D(x)\,Z_p(x)\,\partial_x\!\left(\frac{\rho}{Z_p}\right),

with reflecting boundaries.

This construction is chosen so that the stationary no-flux solution is

ρeq(x)Zp(x)=const,ρeq(x)Zp(x).\frac{\rho_{\mathrm{eq}}(x)}{Z_p(x)}=\text{const}, \qquad \rho_{\mathrm{eq}}(x)\propto Z_p(x).

So the temperature gradient enters the equilibrium density through Zp(x)Z_p(x): hotter regions have a larger thermally accessible momentum-state volume, and therefore a larger equilibrium probability density.

Geometric interpretation: increased available state density at higher temperature

The clean geometric reading is that temperature changes the number of momentum states that are thermally accessible at each spatial point. In 1D, the equilibrium measure can be written as

dPeq(x)Zp[T(x)]dx.dP_{\mathrm{eq}}(x)\propto Z_p[T(x)]\,dx.

So the effective local density of available states per coordinate interval is

geff(x)Zp[T(x)].g_{\mathrm{eff}}(x)\propto Z_p[T(x)].

In the exact relativistic model,

geff(x)2mK1 ⁣(mT(x)).g_{\mathrm{eff}}(x)\propto 2m\,K_1\!\left(\frac{m}{T(x)}\right).

Thus, as T(x)T(x) increases, the local thermally accessible momentum-space volume increases, and the equilibrium density accumulates accordingly.

In the nonrelativistic limit, this becomes

Zp(x)T(x)em/T(x),Z_p(x)\propto \sqrt{T(x)}\,e^{-m/T(x)},

or, if only the kinetic accessibility is retained,

Zp(x)T(x).Z_p(x)\propto \sqrt{T(x)}.

So the geometrically interpreted increase in available state density with temperature is:

  • higher T(x)T(x) means a broader thermally occupied momentum space
  • broader occupied momentum space means a larger local partition volume Zp(x)Z_p(x)
  • larger Zp(x)Z_p(x) means more equilibrium weight assigned to that position

In GR language, using the Tolman relation,

dPeq(x)Zp ⁣(TN(x))dx.dP_{\mathrm{eq}}(x)\propto Z_p\!\left(\frac{T_\infty}{N(x)}\right)dx.

So regions deeper in the gravitational field, where N(x)N(x) is smaller and T(x)T(x) is higher, can be interpreted as regions with a larger local thermally accessible density of states.

Exact equilibrium density for diffusion around a massive body in GR

For a static spacetime, write the metric as

ds2=N(x)2dt2+hij(x)dxidxj,N(x)=g00(x).ds^2 = -N(\mathbf{x})^2\,dt^2 + h_{ij}(\mathbf{x})\,dx^i dx^j, \qquad N(\mathbf{x}) = \sqrt{-g_{00}(\mathbf{x})}.

The invariant one-particle phase-space measure on the mass shell is

dΓ=gd4xd4p(2π)3δ ⁣(pμpμ+m2)Θ(p0),d\Gamma = \frac{\sqrt{-g}\,d^4x\,d^4p}{(2\pi\hbar)^3} \, \delta\!\left(p^\mu p_\mu + m^2\right) \Theta(p^0),

or, after restricting to a constant-tt slice,

dΓ=h(x)d3xd3p(2π)3p0.d\Gamma = \frac{\sqrt{h(\mathbf{x})}\,d^3x\,d^3p}{(2\pi\hbar)^3\,p^0}.

In a static spacetime there is a timelike Killing vector ξμ=(t)μ\xi^\mu = (\partial_t)^\mu, so the conserved energy is

E=pμξμ.E_\infty = -p_\mu \xi^\mu.

Thermal equilibrium is controlled by the temperature measured at infinity, TT_\infty, and the local temperature satisfies the Tolman relation

T(x)N(x)=T.T(\mathbf{x})\,N(\mathbf{x}) = T_\infty.

The exact classical equilibrium distribution is then

feq(x,p)exp ⁣[ET]=exp ⁣[pμξμT].f_{\mathrm{eq}}(\mathbf{x},p) \propto \exp\!\left[-\frac{E_\infty}{T_\infty}\right] = \exp\!\left[-\frac{-p_\mu \xi^\mu}{T_\infty}\right].

Equivalently, using the local energy measured by static observers,

Eloc(p)=m2+p2,E=N(x)Eloc(p),E_{\mathrm{loc}}(p)=\sqrt{m^2+p^2}, \qquad E_\infty = N(\mathbf{x})\,E_{\mathrm{loc}}(p),

so

feq(x,p)exp ⁣[N(x)m2+p2T]=exp ⁣[m2+p2T(x)].f_{\mathrm{eq}}(\mathbf{x},p) \propto \exp\!\left[ -\frac{N(\mathbf{x})\sqrt{m^2+p^2}}{T_\infty} \right] = \exp\!\left[ -\frac{\sqrt{m^2+p^2}}{T(\mathbf{x})} \right].

This is the Maxwell–Jüttner distribution in a static gravitational field.

To obtain the equilibrium density in position space, integrate over local momenta:

dPeq(x)h(x)d3xd3pexp ⁣[N(x)m2+p2T].dP_{\mathrm{eq}}(\mathbf{x}) \propto \sqrt{h(\mathbf{x})}\,d^3x \int d^3p\, \exp\!\left[ -\frac{N(\mathbf{x})\sqrt{m^2+p^2}}{T_\infty} \right].

The momentum integral can be evaluated exactly:

d3pexp ⁣[N(x)m2+p2T]4πm2TN(x)K2 ⁣(mN(x)T),\int d^3p\, \exp\!\left[ -\frac{N(\mathbf{x})\sqrt{m^2+p^2}}{T_\infty} \right] \propto 4\pi m^2 \frac{T_\infty}{N(\mathbf{x})} K_2\!\left(\frac{mN(\mathbf{x})}{T_\infty}\right),

so the exact equilibrium measure is

dPeq(x)h(x)TN(x)K2 ⁣(mN(x)T)d3x,dP_{\mathrm{eq}}(\mathbf{x}) \propto \sqrt{h(\mathbf{x})}\, \frac{T_\infty}{N(\mathbf{x})} K_2\!\left(\frac{mN(\mathbf{x})}{T_\infty}\right) \,d^3x,

up to an overall constant factor depending only on mm.

The main takeaway here is that we need to include the momentum part of the state density when thinking about flattening our measure later (which was not the case previously, as everything took place at the same temperature, thus same momentum states available). Furthermore, the increased temperature near our massive object leads to an increased probability of finding a particle there.

Geometric interpretation of diffusion in GR

As we just derived:

dPeq(x)h(x)TN(x)K2 ⁣(mN(x)T)d3x,dP_{\mathrm{eq}}(\mathbf{x}) \propto \sqrt{h(\mathbf{x})}\, \frac{T_\infty}{N(\mathbf{x})} K_2\!\left(\frac{mN(\mathbf{x})}{T_\infty}\right) \,d^3x,

This formula actually expresses the full equilibrium bias geometrically:

  • h(x)d3x\sqrt{h(\mathbf{x})}\,d^3x is the proper spatial density of states
  • N(x)N(\mathbf{x}) sets the gravitational redshift
  • the Tolman law turns that redshift into a local equilibrium temperature
  • the Bessel-function factor is the exact local thermally accessible momentum-state volume

For a Schwarzschild exterior metric,

ds2=(12GMr)dt2+(12GMr)1dr2+r2dΩ2,ds^2 = -\left(1-\frac{2GM}{r}\right)dt^2 + \left(1-\frac{2GM}{r}\right)^{-1}dr^2 + r^2 d\Omega^2,

we have

N(r)=12GMr,h=r2sinθN(r).N(r)=\sqrt{1-\frac{2GM}{r}}, \qquad \sqrt{h}=\frac{r^2\sin\theta}{N(r)}.

Therefore

dPeqr2sinθN(r)TN(r)K2 ⁣(mN(r)T)drdθdϕ.dP_{\mathrm{eq}} \propto \frac{r^2\sin\theta}{N(r)} \frac{T_\infty}{N(r)} K_2\!\left(\frac{mN(r)}{T_\infty}\right) \,dr\,d\theta\,d\phi.

After integrating over angles, the radial equilibrium density per coordinate interval drdr is

peq(r)drr2N(r)2K2 ⁣(mN(r)T)dr.p_{\mathrm{eq}}(r)\,dr \propto \frac{r^2}{N(r)^2} K_2\!\left(\frac{mN(r)}{T_\infty}\right)\,dr.

In the weak-field, nonrelativistic limit,

N(r)1+Φ(r),Φ1,N(r)\approx 1+\Phi(r), \qquad |\Phi|\ll 1,

and this reduces to the familiar barometric form

peq(r)h(r)N(r)3/2exp ⁣[mΦ(r)T].p_{\mathrm{eq}}(r) \propto \sqrt{h(r)}\, N(r)^{-3/2} \exp\!\left[-\frac{m\Phi(r)}{T_\infty}\right].

So the exact GR equilibrium density can be understood as a product of proper spatial volume and the local thermally weighted momentum-space density of states, with the Tolman relation encoding how gravity reshapes thermal accessibility.

Diffusion under a Schwarzschild Metric (unfinished)

Additional Comments:

Notes on Temperature in GR

While writing this post I learned something very interesting about temperature in GR: temperature actually becomes observer-dependent due to differences in the local flow of time. Let's look at two observers, AA and BB. AA sits far away from a massive object, where proper time aligns with coordinate time (α=dtdτ=1\alpha = \frac{dt}{d\tau} = 1). BB is located much closer to the object with α>1\alpha > 1. At thermal equilibrium the flux of blackbody radiation from BB traveling to AA will exactly balance out with the flux from AA to BB.

However, photons energies going from BB to AA are redshifted by a factor 1α\frac{1}{\alpha} and their emission rates (per AA's coordinate time) appear decreased by 1α\frac{1}{\alpha}. In total the observed power at AA is reduced 1α2\frac{1}{\alpha^2} and redshifted. The reverse is true for photons going from AA to BB: from BB's perspective energies are blueshifted by α\alpha and emission rates are increased by α\alpha.

Now suppose B's local temperature is fixed at TBT_B. The power emitted locally from his frame is:

If AA and BB are at the same temperature TT, the ratio of energy flux ΦAB\Phi_{AB} over ΦBA\Phi_{BA} would be

ΦABΦBA=α4\frac{\Phi_{AB}}{\Phi_{BA}} = \alpha^4

This means they're not in thermal equilibrium as there is a net energy flux.
To achieve equilibrium, each region must have a temperature such that the flux is equal. As radiated blackbody power follows the Stefan-Boltzmann law ΦAB=σTA4\Phi_{AB} = \sigma T_{A}^4 and ΦBA=σTB4\Phi_{BA} = \sigma T_{B}^4, there must be a temperature gradient:

ΦAB=σα4TA4=!σTB4=ΦBA\Phi_{AB} = \sigma \, \alpha^4 \, T_A^4 \stackrel{!}{=} \sigma \, T_B^4 = \Phi_{BA}

This means BB's absolute temperature must be higher than AA's: TB=TAα\, \, T_B = T_A\, \alpha. What we've derived here is the Ehrenfest–Tolman law, which in general can be written in terms of the space-time metric gg:

T(x)g00(x)=constT(x) \cdot \sqrt{-g_{00}(x)} = \text{const}

or

T(x)=Tα(x)T(x) = T_\infty \cdot \alpha(x)

Tα(x)T_\infty \cdot \alpha(x) is called also the redshifted temperature. So in simple words, AA and BB are at different temperatures to compensate for photon energy shifts and differences in emission rates due to time dilation.

In the Fokker–Planck equation from earlier we've ignored this effect. What we wrote was:

pt(x,t)=2x2[D(x)p(x,t)]\frac{\partial p}{\partial t}(x,t) = \frac{\partial^2}{\partial x^2} \left[ D(x)\,p(x,t) \right] and D(x)=D0α(x)D(x) = \frac{D_0}{\alpha(x)}

However, our formulation of including time dilation in the diffusion constant turns out to be equivalent, which we can see by relating the diffusion constant to the local temperature using the Stokes-Einstein relation:

D(x)=kBT(x)6πηR=kBT6πηRα(x)=D0α(x)D(x) = \frac{k_B T(x)}{6\pi \eta R} = \frac{k_B T_\infty}{6\pi \eta R} \cdot \alpha(x) = D_0 \cdot \alpha(x)

Why would Entropy be Affected by Time Dilation?

While I think the fact that regions of stretched space have higher entropy per unit coordinate length as seen from afar (more states per unit length or volume than expected) is fairly intuitive, since we're used to thinking of entropy being proportional to volume as an extensive property. But why would entropy care about time? I think there are a couple of interesting perspectives on this.

One definition that is more general than the usual Gibbs entropy is Gibbs-Shannon entropy, which counts states through an integral over phase space density with respect to position and momentum coordinates (with or without the quantum normalization factor/ state volume):

S  =  kBρ(x,p)ln[ρ(x,p)]  d3xd3p(2π)3.S \;=\; -k_B \int \rho(\mathbf{x},\mathbf{p}) \,\ln\bigl[\rho(\mathbf{x},\mathbf{p})\bigr]\;\frac{d^3x\,d^3p}{(2\pi\hbar)^3}\,.

Now for the interesting part: time dilation in curved space-time stretches proper time. A slower rate of time corresponds to a stretching in the momentum space direction. Since phase space volume is measured as dxdpdx \, dp, and proper time affects pmdxdτp \sim m \frac{dx}{d\tau}, then a slower dτd\tau expands the volume element in momentum.

In other words: Time dilation increases the density of available microstates in momentum space.

More microstates = more entropy = more probability weight accumulates there. From a flat-space viewpoint, this looks like a gravitational potential, but thermodynamically it’s just where entropy is highest.

The geometry of the phase space is related to the space-time metric, and the invariant phase space volume element in curved space-time can be calculated as:

dΓ=d3xd3p(2π)3g(3)1p0δ(pμpμ+m2)Θ(p0)d\Gamma = \frac{d^3x \, d^3p}{(2\pi\hbar)^3} \cdot \sqrt{g^{(3)}} \cdot \frac{1}{p^0} \cdot \delta(p^\mu p_\mu + m^2) \cdot \Theta(p^0)

Here, the g(3)\sqrt{g^{(3)}} term incorporates the spatial geometry, and the delta function enforces the mass-shell constraint. This formulation makes it clear that the space-time metric directly shapes the density of states.

(Note to self: Make sure I understand this in more detail. Volume element over cotangent bundle of spacetime. Spme sources are: https://physics.stackexchange.com/questions/83260/lorentz-invariant-integration-measure https://arxiv.org/abs/2106.09235 https://www.icranet.org/veresh/RKT.pdf https://physics.stackexchange.com/questions/167813/proving-the-lorentz-invariance-of-the-lorentz-invariant-phase-space-element )

So the particle isn’t pulled down by gravity—it’s drawn into regions with more available phase space, i.e., where the density of states is higher. That’s what an entropic force is.

This is why I think of gravity not as a classical force from curved geodesics, but as a statistical bias toward regions of higher microscopic degeneracy. And it's why the Fokker–Planck diffusion equation with time-dilation–modulated D(x)D(x) naturally leads to the Tolman–Ehrenfest equilibrium. All the entropy accounting is built into the coordinates, and the free energy remains the same.