lumpyspace part 7: standing still
Turning the physics back up Link to heading
At the end of my last post, I’d found that the spatial weighting from part 3 had been quietly turning the physics down. Each point where we check the field equations costs $\tfrac{1}{2} e^{-2W} L + W$, and the best weight there is $W = \tfrac{1}{2}\ln L$. The energy condition’s penalty sat inside that weighting, and any multiple of $L$ leaves $\partial \ln L$ unchanged. No amount of weight or Lagrange multiplier on the energy condition ever reached the metric.
The plan had two parts: First, move the energy condition’s penalty outside the weighting, next to the Cosmic Microwave Background (CMB) constraints. Then, add a constraint on the expansion rate at the observer.
This was supposed to be a short post.
The first step worked. It also showed that two things I’d built into the project from the very beginning were wrong: nothing fixed the overall size of space, and the supernova distances assumed the universe was smooth. Fixing those gave a model that fits the supernovae well, under honest distances, in a universe that barely expands. That fit exposed a third mistake, in the energy condition I wrote in part 2. And fixing that showed which term in the loss had been giving way all along: the field equations themselves.
We didn’t yet get to the expansion rate constraint.
The energy condition, outside the weighting Link to heading
With the energy condition out of the weighting, $L$ at each point is the field-equation residual alone, so $W$ should fall below zero straight away and weight the field equations up. If it didn’t, I’d got the mechanism wrong.
It did. $W$ was negative everywhere by step 30. At the best checkpoint, step 9719, it was between $-7.0$ and $-5.5$ across space and time, and $e^{2W}$ matched the logged field-equation residual. Part 6’s run took thirty thousand steps to get there by accident.

The energy condition finally responds to its own pressure. Its violation fell from 0.6 to 0.026 by step 5240 at its starting weight of 10. After the scheduler’s first bump, to 50 at step 8000, it fell to $2 \times 10^{-4}$ within 750 steps. The field-equation residual fell steadily up to the best step, with no spikes, and the supernova fit held at a $\chi^2/N$ between 0.47 and 0.51 from step 3500 onwards.
So far, so good.

The expansion rate didn’t follow. $H$ at the observer today crept up to 0.0325 in code units at the best step: 14% of 70 km s⁻¹ Mpc⁻¹, against 39% at the part-6 best.
After step 10,000 the shear and homogeneity constraints hit the scheduler’s cap without their violations falling. Their penalties took over the loss, the supernova fit went from 0.49 to between 2 and 4, and there was no new best.
Something else had been moving all along, though.
Space was shrinking Link to heading
The scale factor at the observer, $a = (\det h)^{1/6}$ with $h$ the spatial metric, should be about 1 today. It was 0.73 at the part-5 best and 0.41 at the part-6 best. In this run it fell from 0.47 at step 5129 to 0.26 at the best step.
The curvature at the observer grew as $a$ shrank: the Ricci scalar there went from about 70 to about 240. But $R,a^2$ stayed between 15 and 17 the whole time. Same curved region, drawn smaller.
Nothing in the model fixed the overall size of space. Multiply every proper length by a constant $c$, using $g \to SgS$ with $S = \mathrm{diag}(1, c, c, c)$, and the expansion rate, the shear fraction and the contraction fraction don’t change. So I took the checkpoint at step 9390, rescaled it, and evaluated every term of the loss at that checkpoint’s multipliers and weights. The two EFE columns are the Einstein Field Equation (EFE) residual as trained, and without the training’s weighting. SN is the supernova $\chi^2/N$:
| $c$ | logged EFE | unweighted EFE | SN | total |
|---|---|---|---|---|
| 0.8 | $4.5 \times 10^{-7}$ | 75.6 | 0.81 | $-2.89$ |
| 1.0 | $2.6 \times 10^{-6}$ | 30.0 | 0.71 | $-2.55$ |
| 1.25 | $1.6 \times 10^{-5}$ | 12.5 | 1.93 | $-0.30$ |
The field-equation residual is trained multiplied by $\det g_{ij}$, a weighting from part 3 meant to balance early and late times. That factor scales as $c^6$, so the trained number scales as $c^8$, while the residual itself scales as $c^{-4}$. Shrinking space improved the number we trained on and made the field equations worse. The homogeneity term also falls as space shrinks. The supernovae push back, but the total is still lower at $c = 0.8$, so down it went.
Shrinking also broke two things that assumed $a = 1$ at the observer:
- The matter density. $\kappa\rho_0$ is the density where $\det h = 1$. The local density is $\kappa\rho_0 / a^3$, which at the observer was 52 times the observed total matter density.
- The supernova distances, which brings me to the second mistake.
Distances that assumed the answer Link to heading
The ray tracer traces light back from the observer to each supernova through the network’s metric. It got the path right, and then computed the luminosity distance as $(1 + z)$ times the coordinate radius. That’s the formula for a flat, smooth universe with $a_0 = 1$: exactly the assumptions this project was meant to be dropping.
In a lumpy universe, the luminosity distance comes from how a bundle of light rays is focused and sheared on its way to us: the Sachs optical equations. The coordinate radius contains none of that. It also can’t see the overall scale of space, which is exactly what the model had been changing.
So we rescored the best checkpoint with the area distance $d_A$ computed from the ray bundle, and $d_L = (1 + z)^2 d_A$. The fit went from a $\chi^2/N$ of 0.49 to 204. The predicted distance moduli were off by a median of $-3.0$ magnitudes, close to constant at every redshift, and $5 \log_{10} a_0 = 5 \log_{10} 0.262 = -2.9$.
The model had shrunk space at the observer by a factor of four, and the distance formula couldn’t see it. Measured properly, every supernova in that universe would look about 16 times brighter than it does!
Two fixes Link to heading
The scale of space is now a convention, built into the metric. The network’s output is rescaled on every call so that $\det h = 1$ at the observer today. One coordinate unit is then exactly 1 Gpc of proper length at the observer, and $\kappa\rho_0$ is the observer’s density. It’s built into the parameterisation, the same way the Lorentzian signature is, so nothing in the loss can negotiate with it.
Distances come from the ray bundle. Two deviation vectors travel with each ray and track how the bundle spreads, which gives $d_A$, and $d_L = (1 + z)^2 d_A$. The redshift is measured by observers moving with the matter, with every component of the metric included.
The second fix is expensive. The deviation vectors evolve under the geodesic equation linearised about the ray, which needs second derivatives of the network at every step of the integrator, and training differentiates back through all of it. The integrator also takes smaller steps where the curvature is strong. Training now runs at a fraction of its old speed. That’s the price of distances I can trust.
A universe that stands still Link to heading
The run with both fixes went for about 8,000 steps. Everything below comes from its best checkpoint, at step 5631.

For the first time in this project, the supernova fit is genuine: $\chi^2/N = 0.46$ under the bundle distances, with almost every ray reaching its supernova. The CMB constraints held at the boundary: contraction at zero, and shear and homogeneity falling.
And the universe isn’t expanding.

$H$ at the observer today is 0.0008 in code units: 0.3% of the observed rate. Over the whole history from $t = -4$ to today, the mean scale factor grows by 1.4%. Today, $H$ is below 4% of $H_0$ everywhere in the box.

So where does the redshift come from? Look at the bottom row of that figure: the lapse, $N = \sqrt{-g_{00}}$, which is the rate at which a clock at rest ticks per unit of coordinate time. In a static universe, light from a source arrives with
$$1 + z = \frac{N_{obs}}{N_{src}}$$The lapse peaks at the observer and falls away in every direction.

The right-hand panel shows the lapse along 64 directions from the observer. The dashed line is the lapse profile that would produce $z = H_0 r$ on its own. The model’s profile follows it closely: a little shallower inside 0.2 Gpc, a little steeper beyond.
Put together: the network’s universe barely expands. Clocks tick fastest at the observer and progressively slower with distance in every direction, so light from every supernova arrives redshifted by the ratio of the two clock rates. That gravitational redshift accounts for the supernova data, and expansion contributes almost nothing.
Part 5 found the same kind of solution, a lapse centred on the observer, back when the distances were still coordinate distances. Fix the scale, measure distances properly, and the network went right back to it.
What holds the peak up Link to heading
A peak in the lapse needs a source. In a static metric, the lapse obeys
$$D^2 N = N\, R_{\mu\nu} u^\mu u^\nu$$where $D^2$ is the Laplacian in the spatial metric and $u$ is the 4-velocity of the matter at rest. At a maximum of $N$, $D^2 N$ is negative, so $R_{\mu\nu} u^\mu u^\nu$ has to be negative there.
That’s the same term that appeared in Raychaudhuri’s equation in part 6, where it controls whether matter’s expansion decelerates. For dust that satisfies the field equations, $R_{\mu\nu} u^\mu u^\nu = \tfrac{1}{2}\kappa\rho$, which is never negative. Ordinary matter can’t hold a lapse peak up.
So what is the geometry actually carrying? Wherever the field equations don’t hold exactly, the curvature defines an effective stress-energy, $G_{\mu\nu}/\kappa$. For observers at rest, with $\rho$ its density and $p$ its mean pressure:
- $G_{\mu\nu} u^\mu u^\nu = \kappa\rho$
- $R_{\mu\nu} u^\mu u^\nu = \tfrac{\kappa}{2}(\rho + 3p)$, the strong energy condition
- $R = \kappa(\rho - 3p)$
At the observer, at the best checkpoint:
| quantity | value |
|---|---|
| $R$ | 14.9 |
| $R_{\mu\nu} u^\mu u^\nu$ | $-7.4$ |
| $\kappa\rho$ | 0.045 |
| $\kappa p$ | $-4.9$ |
The density is positive and close to the model’s own matter density. The pressure is negative, and about a hundred times larger than the density. For comparison, a cosmological constant has a pressure equal to minus its density.
To hold the clock rates in that pattern, the matter at the observer needs a tension a hundred times its energy density. No known matter has that. The network built its own exotic stress, centred on the observer, and used it to fit the supernovae without expanding.
Which raises an awkward question: how did that get past the energy condition?
Why the energy condition couldn’t see it Link to heading
The energy condition this project has used since part 2 is $R \ge 0$. I derived it from the trace of the field equations for dust: $T = -\rho$, so $R = \kappa\rho$, and $\rho \ge 0$ becomes $R \ge 0$.
That step assumes the field equations hold. Where they don’t, $R$ is $\kappa(\rho - 3p)$, and a negative pressure makes $R$ larger. The tension holding up the lapse peak raises $R$ to 14.9 and sails through the check.
Over random points across the whole box at the best checkpoint:
- $R < 0$ at 11.5% of points;
- the strong condition fails at 87.6%;
- the two fail on almost entirely different points: the strong condition fails with $R \ge 0$ at 87.0%, and $R < 0$ with the strong condition satisfied at 10.5%.
So $R \ge 0$ was checking for one kind of violation while the solution was built on another. That was my oversight in part 21, and every run since has carried it.
The matter density follows the geometry Link to heading
The bottom panel of the loss chart shows something that looked, at first, like good news. The matter density sat at its ceiling, the observed total matter, until about step 3700. Then it fell to 0.020, less than half the ceiling, by the best step. It rose back to the ceiling later and fell to 0.020 again.
The supernovae have no direct say in it. $\kappa\rho_0$ appears in the loss in one place: as the dust density that the field equations compare with the curvature. The supernovae only see the metric. So $\kappa\rho_0$ drifts towards whatever density the geometry is carrying, and in this solution that’s the effective density measured above: 0.045 at the observer, and negative at a quarter of the points in the box. A falling matter density would mean something in a universe that expands at the observed rate and satisfies the energy conditions. Here it’s just a property of the static solution.
Raising the price Link to heading
At step 6000 the scheduler raised the energy condition’s weight from 10 to 50, and the shear and homogeneity weights from 100 to 500. The loss jumped from about 6 to a peak of 131, and the supernova fit went from 0.46 to 2.2. By step 8000 it had recovered to 0.87, with no new best.
The geometry didn’t change character. At step 6914 the curvature at the observer had grown to $R = 34.2$, with $R_{\mu\nu} u^\mu u^\nu = -16.9$ and $\kappa p = -11.3$. Pushing harder on $R \ge 0$ made the run worse and made the exotic stress larger, because $R \ge 0$ doesn’t measure it.
Time to measure the right thing.
The energy conditions of the matter Link to heading
The energy condition now tests what dust actually satisfies, for the matter at rest. At each point where we check the field equations, the violation is
$$c = \max(0, -R_{\mu\nu} u^\mu u^\nu) + \max(0, -R)$$The first term is the strong energy condition. It forbids the lapse peak, and it forbids any stress that accelerates the expansion of the matter. The second keeps the points that $R \ge 0$ was already catching and the first term misses. Both are zero for dust that satisfies the field equations. The constraint keeps its Lagrange multiplier and its place outside the spatial weighting. Its starting weight goes up from 10 to 100, the weight the CMB constraints start at. Early in training the violation is about 1, and the lapse peak forms in the first hundred steps, while the supernova term is falling from about 30. At a weight of 10, the violation cost about 5 over that stretch: far too cheap to stop anything.
I tested it on three spacetimes with known answers:
- Einstein–de Sitter dust, $a = t^{2/3}$: no violation.
- De Sitter, $a = e^{Ht}$: $R = 12H^2$ passes the old check, and $R_{\mu\nu} u^\mu u^\nu = -3H^2$ gives a violation of $3H^2$.
- A static lapse peak, $N = e^{-kr^2}$: $R = 12k$ at the centre passes the old check, and $R_{\mu\nu} u^\mu u^\nu = -6k$ gives a violation of $6k$.
The second test matters. A cosmological constant violates the strong energy condition, so this constraint forbids the model from building one out of geometry. That’s the point: the question this project asks is whether matter and inhomogeneity alone can produce what we observe, and the energy condition now holds the model to matter.
One gap remains. A stress with a different pressure in each direction can violate the null energy condition along some directions while passing both terms. That was 1.2% of points at step 5631. The field-equation residual is what measures that kind of stress.
Keep that gap in mind.
Why this comes before the expansion constraint Link to heading
Part 6 ended with a plan for a constraint on $H$ at the observer. The energy condition goes first. If forbidding the exotic stress is enough to make the network expand, the expansion comes from the physics, and the constraint only has to confirm it. If the network still won’t expand, the constraint goes in, and the energy condition stops it meeting the constraint with another stress.
Where the physics gets checked Link to heading
The first run with the new energy condition built the lapse peak again, within the first hundred steps. By step 2026, its best checkpoint, the strong condition failed at the observer by as much as before: $R_{\mu\nu} u^\mu u^\nu = -8.4$. The matter there now had a negative energy density, $\kappa\rho = -5.1$, as well as a tension.
Raychaudhuri’s equation splits that number into its sources: the acceleration of the matter at rest, which is the lapse gradient, and the expansion, shear and rotation of the matter. At the observer, the lapse peak supplies $-8.42$, and none of the other terms is larger than 0.02. Nothing else is holding it up.
Across the rest of the box the new condition was working. The strong condition failed at 57% of points, against 88% in the previous run, and the mean violation, 0.24, matched the logged loss.
Everywhere, that is, except the one place that mattered.
The problem is where the physics gets checked. Each step evaluates the field equations and the energy condition at 1000 random points, spread uniformly over the box and over time. Within 0.2 Gpc of the observer at late times, that comes to one or two points per step. Every supernova ray starts there, so the supernova fit uses that region on every step, and the physics almost never sees it. Part 6 found the same thing for the curvature lump at the observer.
So the next run adds 200 points per step around the observer, for the last stretch of time ($z \le 0.25$), out to 0.5 Gpc. Their distance from the observer is drawn uniformly, which packs them most densely at the centre: about 80 of the 200 land within 0.2 Gpc. The 1000 points across the box stay. The better version samples along the past light cone itself, so the supernovae and the field equations are judged on the same points of spacetime. That comes later.
The energy conditions, enforced Link to heading
The run with the observer sampling went 3,441 steps. Everything below comes from its best checkpoint, at step 3437.

The energy condition did what it was asked. Its violation fell steadily, from about 1 over the first 200 steps to 0.14 over the last 200. Across the box, the strong condition now fails at 35% of points, against 57% in the run before, and the effective density is negative at 11% of points, against 26%. The matter density went from the baryon floor to its ceiling, the observed total matter, between steps 1250 and 1450, and stayed there.
The supernova fit got worse: $\chi^2/N = 1.21$ at the best step, against 0.60 in the first run with the new condition and 0.46 in the run before that.
Expansion, late and lopsided Link to heading

$H$ at the observer today is 0.0275 in code units: 12% of the observed rate. That’s more than thirty times the run that stood still, and still nowhere near enough. Most of it arrives late. $H$ stays between 0.008 and 0.011 for most of the history, then triples over the last third of the time range. The mean scale factor grows by 6% from $t = -4$ to today, against 1.4%.
It isn’t the same in every direction, either. Today $H_z = 0.034$ and $H_x = 0.017$, so space is stretching twice as fast along one axis as along another. With $H$ this low, the matter density is about 21 times the critical density, $\Omega_m = \kappa\rho_0 / 3H^2$, where the observed value is 0.3.
The lapse peak is still there Link to heading


The lapse still peaks at the observer and still follows the profile that would produce $z = H_0 r$ on its own. The expansion rate within 0.4 Gpc is 9–12% of $H_0$. The redshift still comes from clock rates.
So how does the lapse peak get past the strong condition now?
In part 6 I noted that the shift terms in our metric allow the matter to rotate, and admitted I hadn’t measured how much. Now I have. Here’s Raychaudhuri’s equation at the observer again, next to the first run with the new condition:
| term | step 2026 | step 3437 |
|---|---|---|
| lapse gradient, $\nabla \cdot a$ | $-8.42$ | $-7.57$ |
| rotation, $\omega_{mn}\omega^{mn}$ | 0.02 | 5.92 |
| expansion and shear | $-0.01$ | $-0.04$ |
| $R_{\mu\nu} u^\mu u^\nu$ | $-8.41$ | $-1.69$ |
The lapse peak is as strong as it was. The network has paid for most of it with rotation. In Raychaudhuri’s equation, rotation enters with the opposite sign to everything else: it’s the centrifugal term, the one that lets a spinning body resist collapse. So the matter around the observer now turns. Neighbouring bits of it circle each other, relative to gyroscopes carried along with them. That rotation lives in the components of the metric that mix time and space.
It’s fast. $\omega_{mn}\omega^{mn} = 2\Omega^2$ gives an angular velocity $\Omega$ of about seven times $H_0$, and sixty times the model’s own expansion rate at the observer. It’s local: the median falls from 5.5 at 0.05 Gpc to 2.5 at 0.2 Gpc and 1.0 at 0.3 Gpc. And it grew over the run, from 0.36 at step 1442 to 5.9 at the best step.
The density at the observer is positive now, $\kappa\rho = 2.8$, but that’s 60 times the model’s own matter density there, with a tension $\kappa p = -2.1$ to go with it.
The gap Link to heading
Remember the gap? The energy condition tests the matter at rest, and a stress with a different pressure in each direction can violate the null energy condition while passing both terms. In the run that stood still, that was 1.2% of points.
In this run it’s 99.6%. In the first run with the new condition it was already 97%, and here it’s two and a half times deeper. Physically: at almost every point in the box, there’s a direction in which an observer moving fast enough would measure a negative energy density. The network moved its exotic stress to where the constraint doesn’t look.
The field equations gave way Link to heading
One term rose the whole way through the run: the field-equation residual. It averaged 0.235 over steps 1000–1200 and 0.94 over the last 200.
Why that one? When we moved the energy condition onto a Lagrange multiplier in part 3, the field equations stayed on a fixed weight, and they’ve stayed there ever since. Every other condition in the loss now has a multiplier, and a weight that the scheduler raises when progress stalls. The energy condition’s multiplier went from 60 at the first run’s best to 139 at this one’s. The field equations sit inside the spatial weighting, where at the best $W$ a point costs $\tfrac{1}{2} + \tfrac{1}{2}\ln L$. Doubling the residual at a point costs about 0.35.
Every other price in the loss went up, and the field equations stayed cheap. So that’s where the network spent.
Measured against the local matter density, the residual is 24 times that density, as a root-mean-square over the points where the field equations are checked. In the first run with the new condition it was 7 times. The selection score asks for 1%.
What this universe is Link to heading
Clocks still tick fastest at the observer and slower with distance, and that still fits the supernova redshifts. Space expands at about an eighth of the observed rate, twice as fast along one axis as another, and mostly late. The matter around the observer rotates quickly, and the curvature behind all of it matches no matter that exists: the field equations miss by 24 times the local density.
The energy condition removed the exotic stress it can see. The network kept the same solution and paid for it with rotation, with stress the condition doesn’t test, and with the field equations.
What’s next Link to heading
So the field equations become a constraint, with a Lagrange multiplier like everything else. The violation is the residual measured against the local matter density, with the selection score’s 1% as the tolerance. It sits outside the spatial weighting, so its price reaches the metric. It starts with a weight small enough to leave the early exploration free, and the multiplier and the scheduler make it firm by the end of the run. The weighted residual stays in the loss to shape the geometry along the way. And the $\det g_{ij}$ factor from part 3 comes off the trained residual: with the scale of space fixed, all it does is discount early times, where $a < 1$, by $a^6$.
This makes a prediction. Dust that satisfies the field equations falls freely: its acceleration is zero, and for matter at rest the acceleration is mostly the gradient of the lapse. Dust with a positive density also satisfies the null condition in every direction. So with the field equations holding, the lapse peak, the rotation propping it up and the null-condition failures all have to go, and the redshift has to come from expansion or from real lumps of matter. If the lapse peak survives, I’ve got something wrong.
If $H$ still hasn’t reached the observed band after that, the expansion constraint from part 6 finally goes in, with a check that the expansion is the same in every direction. If it has, the question becomes what supplies the 71% of $3H^2$ that matter can’t.
Stay tuned!
-
In my defence, it’s the textbook derivation. The textbook just gets to assume the field equations hold. ↩︎