PulseCore

Edition for PulseCore 8.6: the text of 29 November 2026, kept as it was. Play this version. The live text describes PulseCore 8.7.

Chapter 4

Matter and Gravity

This chapter follows the physical universe of Binary Pulse Theory from its birth at the Physical Nova until its matter has gathered into a web of clumps, disks and wells, and shows, law by law, how the game makes each step happen and how it shows it.

It brings into the game chiefly BPT Chapter 3. Part 3.11 (The Expansion of the Physical Universe) gives the Matter-Era Expansion, Matter Dilution, Hubble Drag, the Linear Growth of Structure, the First Ripples with the Zel'dovich Displacement, the Pin Head Scale and the Gravity of a Universe. Part 3.12 (Ripples, Spin, and the Whirling Disks) gives the Primordial Ripple Spectrum, Where Spin Comes From, Gas That Cools Keeps Its Spin and The Heat of the Universe. Part 3.13 (The Dark Sector) gives Data Matter, the Data Matter Count with Failed Proto Wells, the Data Matter Return and the Level Λ Law of the Null Vacuum. Part 3.14 (Galaxies) gives Proto Wells: Where Wells Will Form. From BPT Chapter 1 it takes Part 1.11 (Pulse Diameter, Data Gravity and The Speed of Light) and the Rupture Rule (Part D), which gives each universe its life of 2^L Tempos. From Chapter 2 it takes Part 2.4 (Event Horizons and Null Wells) and Part 2.9 (the Gas of the Physical Nova and the Data–Matter Equivalence); from Chapter 3 also Part 3.9 (the Data Funnel Return Law); and from Chapter 6, Part 6.3 (the Formation Condition) and Part 6.10 (the Free-Fall Time and The Game's Reading, Formally).

The arc, in plain words. What the theory says happens: at the Physical Nova the data that has filled the scaffold condenses where it lies into a smooth gas, densest along the lattice's lines and densest of all at its nodes. Space erupts from the pin head, the Pulsecore's own size, and grows as a matter universe grows, fast and then slower, and at last faster again as the Null Vacuum's share rises. The gas's tiny ripples grow under its own gravity and under the gravity of the Data Matter, five and two-fifths times heavier, into sheets, filaments and clusters. Gas that cools falls inward keeping its spin and settles into whirling disks; wells eat what their orbits carry into the horizon, and funnel the data round them back toward the Source. How the game makes it happen: it lays one body for every few cells of matter on an even grid, nudged and set moving by the ripples; it sets the universe's gravity from its density and its life; it solves that gravity on a mesh over the torus, with direct pulls near the wells; it grows the torus by the sinh^(2/3) law of matter and vacuum; and it lets cooling, falls and mergers do the rest, in four quarter-flip steps every flip. What the player watches: the torus draws in to the pin head, then bursts back out with the stars riding it, under a white-hot first light that cools through yellow and red to dark; the skin darkens as the vacuum grows; the smooth sky gathers along the lattice's lines into clumps and filaments; clumps swirl, flash as they merge and grow accretion disks, and the wells among them draw the data into spiral arms. The HUD reads "Universe · expanding, N% of its final size", and toasts mark each stage of the web.

The code behind it is matter.js (the matter layer: the mesh, the leapfrog, the falls, the mergers, the cooling and the planets), gravity.js (the wells as drains of data), zeldovich.js (the first positions and speeds of the matter), heat.js (the temperature and cooling of a galaxy's gas), matter-worker.js (the matter's own thread), and the parts of app.js that drive them: sendOutMatter(), matterBudget(), meshB(), cloudCells(), lightCells(), universeG(), expansionA(), the dark sector, and the timing of the matter step. What the player sees is drawn by scene3d.js (the torus in 3D) and drawFieldTexture() app.js:310 (the 2D field, which is also the torus's skin).

Two pieces of matter.js are documented in Chapter 3 of this book and only cross-referenced here: the inspiral of bodies into wells in the decay (inspiral() matter.js:152, with gwFraction() matter.js:70; Chapter 3, Part 3.13) and the spin of wells (the frame dragging in Matter.step matter.js:408–421 and spinParam() matter.js:487; Chapter 3, Part 3.9). Their fixed numbers are tabled there. Chapter 3 also reads the well side of three pieces documented here from the matter side: the hoop test (Part 3.8), the data around a well (Part 3.11) and the wells in the gravity grid (Part 3.12).

Where the code departs from the theory, from the physics or from its own comments, each Part says so plainly in its own subsection, "Where the game and the theory differ".

Part 4.1: The Matter Layer and Its Order of Work

BPT Part 2.9 (The Gas of the Physical Nova) says that at the Physical Nova "the physical layer condenses from the data that has filled the lattice since the Data Nova, where that data lies", and BPT Part 3.13 says that the data which never condenses stays as Data Matter, with mass but nothing to touch light with. The game holds both readings at once. The data stays on the cells of the torus, the substrate, flowing at light speed and drawn as the field. Matter is its physical reading: a list of bodies, each { r, c, vr, vc, m } in cells and cells a flip (matter.js:82), moving through the substrate under gravity, with the Data Matter laid under it as a density on the gravity mesh. The header of matter.js (matter.js:1–34) sets this out: matter "condenses out of the data, falls together, orbits the wells and builds planets, systems and new wells".

The order of work, once the Physical Nova has come (novaCount ≥ U.PHYSICAL_LAYER, which is 3, universe.js:389; the HUD's Layer line then reads 3, "the physical layer"):

  1. The burst. burstPulsecore() app.js:1259 calls sendOutMatter() app.js:1192 once. It builds the Matter object, fixes its gravity, sets its expansion clock and lays the bodies by the Zel'dovich start (Parts 4.3–4.6).
  2. Each flip in four sub-steps. universeSliceCore() app.js:4480 runs the flow, the inner gas and the lattice every slice, and calls stepMatterTo() app.js:4357, which runs exactly MATTER_SUB = 4 matter sub-steps of a quarter flip each as the flip's time reaches them (Part 4.16).
  3. One sub-step. stepMatter() app.js:641 is three calls:
    • stepMatterPre() app.js:648: rebuilds Matter if the field changed size, sets the cloud size (setCloud), light speed (lightCells()) and scale factor (expansionA()); copies the wells into plain records; lets the data's growth condense as dust (condense()); lays the Data Matter on the mesh (darkField()).
    • Matter.step() matter.js:379: the mesh forces, the leapfrog kick–drift–kick for bodies and wells, cooling, frame dragging, falls into wells, mergers, births of new wells and planet finding.
    • stepMatterPost() app.js:658: stars (Chapter 5), feedback, flashes, the scene, the wells' new places, mergers of wells, stellar wells, swallowed mass, new wells and planets into the collection.
  4. The data drains. Separately, each flip, stepWells() app.js:818 runs WellDynamics.step() gravity.js:43, which pulls data into wells and turns it round them, the Data Funnel Return Law of BPT Part 3.9 (Part 4.13).

Everything below follows one rule of the theory that the code states many times: the bodies start cold, at rest in the substrate except for the growing mode of their ripples, and every orbit, disk and spin comes from the fall (matter.js:23–24, app.js:1203–1205, app.js:1231–1234). This is BPT Part 3.12's own account: "nothing in the first ripples turns", and spin is born of the tidal pull of neighbors and of mergers.

The player sees the same order. Before the Physical Nova the HUD's epoch line reads "Universe · the data roams the scaffold at light speed", then "Universe · the scaffold draws in toward the pin head" (app.js:2152–2153); from the burst it reads "Universe · expanding, N% of its final size", followed by the number of stars shining or "gas collapsing" (app.js:2154). The Stars line reads "none before the Physical Nova" until then (app.js:2151).

This overview Part computes nothing of its own; its only fixed number, MATTER_SUB = 4, is tabled in Part 4.16.

The method, in plain steps:

from the Physical Nova on, every flip:
    the data layer moves (flow, wells)            Chapter 2 and 3
    the matter layer runs four sub-steps of a quarter flip:
        gravity on the mesh plus the wells' direct pull, a leapfrog kick-drift-kick
        light speed caps every motion; the expansion slows motion and dilutes gravity
        gas cools along its fall; bodies that meet in a cell merge; a body inside its own horizon becomes a well
        stars form, live and die (Chapter 5)
    then the wells take what fell in, and the galaxies are read (Chapter 6)

The code:

// public/game-v8.4/app.js:641 stepMatter()
function stepMatter(dt = 1) {
    const ws = stepMatterPre(dt); if (!ws) return;
    let res;
    if (globalThis.__matterProto) globalThis.__matterProto(matter, ws, dt, (m) => new Matter({ rows, cols, B: m.B }), matterPack, matterRun);   /* the harness checks the worker's copy-in, copy-out against this same step (before it runs) */
    res = matter.step(ws, dt);
    stepMatterPost(res, ws, dt);
}

// public/game-v8.4/app.js:648 stepMatterPre()
function stepMatterPre(dt = 1) {
    if (epoch !== 'universe' || novaCount < U.PHYSICAL_LAYER) return null;
    if (!matter || matter.rows !== rows || matter.cols !== cols) matter = new Matter({ rows, cols, G: universeG(), B: meshB() }); setCloud(matter);
    matter.light = lightCells(); matter.a = expansionA();
    if (!matter.ok) return null;
    const ws = rings ? rings.sources.map(w => ({ id: w.id, r: w.r, c: w.c, vr: w.vr || 0, vc: w.vc || 0, mass: w.mass, spin: w.spin ?? (uni ? uni.a_f : 0), site: !!w.site, src: w })) : [];   /* a site pulls and has no horizon (matter.js horizon) */
    matter.condense(pulserGrid, ws);
    darkField();
    return ws;
}

Part 4.2: The Speed of Light on the Torus

The BPT law

BPT Part 1.11 (Pulse Diameter, Data Gravity and The Speed of Light) derives light speed from the Pulse itself. Its Local Universe Speed of Light is

𝒞→⌂ = 2⊕⌂ / ①⥂⧗⌂

two local Pulse Diameters, one Pulse Length, crossed in one local Pulse Tempo. The book calls it "a derived constant from the fundamental relationship between local Pulse Diameter and harmonically scaled temporal quantum", set by a universe's level and by its parent well, and "within our universe 𝒞→ is fixed". At the root of the UniSphere the same form, 𝒞→☫ = 2☫⊕ / ☫⥂, makes data and light move together; within a universe, light and everything physical move no faster than 𝒞→. Elsewhere the book gives it in short as "light speed, one Pulse Length a Tempo" (BPT Part 2.9, Data–Matter Equivalence).

The game reads the law in its own units. A Pulse is two flips (BPT Part 1.10, Pulse Phase Temporal Genesis), so a flip is half a Tempo; at scale 1 the field is one local Planck length across; so in one flip light covers half the field (comment at app.js:613–618, the author's ruling of 2026-10-24: "the full rework, including the speed of light").

The established physics

Nothing with mass moves faster than light (special relativity, Einstein 1905). The game uses only that bound. It does not use relativistic kinematics: below the bound, velocities add and scale as in Newtonian mechanics.

The game's math

lightCells() app.js:619:

c = cols / (2 · max(1, scale))      cells a flip
  • cols: the field's width in cells, U.viewSide(Lm) = 4·2^Lm (app.js:2058, universe.js:232), where Lm is the model level (6 on a desktop, 4 on a phone, Part 4.15).
  • scale: the Dilation Through the Outward Expansion, dilation() engine.js:113, 1 at birth rising to 2f at the End of the Outward Expansion (f is the universe's own dilation depth). As cells grow, fewer of them are crossed per flip.

Light speed enters the matter in four places:

  • Matter.step() matter.js:392: after every kick, a body or well faster than c is scaled back to c, direction kept.
  • WellDynamics.step() gravity.js:76: data falls at min(c, √(2GM/k)).
  • inspiral() matter.js:164 and circular() matter.js:114: orbital speeds min(c, √(GM/r)).
  • applyFeedback() app.js:775: no push faster than 0.05·c (Chapter 5, Part 5.12).

It also sets every horizon, r_s = 2GM/c² (Parts 4.8 and 4.12), and the frame-drag terms. stepMatterPre() sets matter.light = lightCells() every sub-step (app.js:651), and stepWells() sets wellDyn.c = lightCells() (app.js:821).

Worked case, desktop, any level of 6 or more: cols = 256, so at birth c = 128 cells a flip, 32 cells per quarter-flip sub-step. On a phone, cols = 64 and c = 32 cells a flip.

The method, in plain steps:

light speed c ← cols / (2 · scale) cells a flip       half the field a flip at birth
every body and well faster than c is slowed back to c, its direction kept
c sets every horizon, r_s = 2GM / c², and the frame drag

The code:

// public/game-v8.4/app.js:619 lightCells()
function lightCells() { return cols / (2 * Math.max(1, scale)); }

In the game

The player never sets the speed of light; it follows the field and its dilation. It shows in four places:

  • The Universe panel's note (index.php:192) states the reading outright: "The data circulates at light speed, half the field a flip."
  • The readout's "Light speed 𝒞→" row (app.js:2086) gives this universe's true light speed in meters a second, with the note "Constants of a Child Universe: Length / Tempo": the law's value at the universe's real level, not the drawn one.
  • The HUD's Scale line (app.js:2144) reads "×1.000 · 1 cell = … 𝒞→ℨ": the dilation and a cell's width in Zinf Pulse Lengths. As the scale rises, each cell is wider and light crosses fewer of them a flip.
  • The "Colour by → Motion" choice in the Universe panel (index.php:189–190) is meant to show "hue is the direction the matter moves, brightness its speed against light". As written it does not work (below).

Before the universe, the Pulsecore's own first toast says the same thing at the Pulsecore's scale: "The data within moves at light speed and bounces off the Bifold about twice a flip" (app.js:532).

The scale model

Light crosses half of the drawn field a flip whatever the field's size, so on the 64-cell phone model a cell is four times wider and light covers a quarter of the cells it covers on desktop. Speeds measured as a fraction of c are the same on every device; speeds in cells a flip are not (Part 4.15, and Part 4.14 for how heat corrects for this).

Where the game and the theory differ

  • Comments that still say one cell a flip. Before the rework of 2026-10-24 light was one cell a flip. These comments still say so: matter.js:15 ("nothing physical outruns light: one cell a flip"), matter.js:477 (the hoop test, "light one cell a flip"), gravity.js:5 ("never faster than light, one cell a flip"), app.js:359 (the Motion coloring, "its speed against light (one cell a flip)"), app.js:625 (the torus's frame drag, "𝒞→ = 1") and app.js:1316 (the wells' horizons, "𝒞→ one cell a flip"). The code beside each of them uses lightCells(). The constructor defaults this.light = 1 (matter.js:88) and c = 1 (gravity.js:33) are overwritten before every step.
  • The Motion coloring divides by a value nothing sets. drawFieldTexture() app.js:360 computes a cell's brightness as min(1, |v| / matter.lightCap). No code in the game sets lightCap (it appears only on that line; the light speed is matter.light). Once matter exists the division gives NaN for every cell, the color built from it is not a valid one, and the cells come out nearly black instead of shaded by speed.

Fixed numbers

Number Where What it is Kind
2 lightCells() app.js:619 Light crosses half the field a flip (a flip is half a Planck time, the field one Planck length at scale 1) BPT (Part 1.11, Part 1.10)
1 lightCells() app.js:619 Floor on scale METHOD (guards a scale below birth size)
1 Matter constructor matter.js:88 Default light speed, cells a flip, overwritten each step METHOD (placeholder)
1 WellDynamics constructor gravity.js:33 Default light speed c, overwritten each flip METHOD (placeholder)

The cap itself, |v| ≤ c, is PHYSICS (special relativity); it is not a number of its own.

Part 4.3: The Universe's Gravity

The BPT law

BPT Part 3.11 states the Gravity of a Universe:

G = 1 / (6 · π · ρ̄ · T²)

"A matter universe's gravity is fixed by its density and its age": ρ̄ is its mean matter density at the End of the Outward Expansion and T its age there, the time from the Physical Nova. The law comes from setting H = 2/(3T) in the Friedmann equation and solving for G. In the book the age is not free: the Rupture Rule (BPT Chapter 1, Part D; this book's Chapter 1, Part 1.7) gives each universe its life, 2^L of its own Tempos, "so a universe's gravity, its density and its level are bound together. Of two universes with the same density, the deeper one, living longer, has the weaker gravity." Part 3.11's Game's Reading adds that the game's G is this law "from the mean density of both together and T": matter and Data Matter. BPT Part 6.10 (Free-Fall Time) gives the same G a second reading: it is "the clock the game's G is set by, the collapse time of the universe's own matter (Part 3.10, the Rupture Rule)". The code holds both readings, in two places, and uses them for different things.

The established physics

  • Friedmann equation for a flat matter universe, H² = 8πGρ/3, and its Einstein–de Sitter solution H = 2/(3t) (Friedmann 1922; Einstein & de Sitter 1932).
  • Linear growth of a pressureless overdensity in a static medium, δ ∝ cosh(t/τ), 1/τ = √(4πGρ̄) (Jeans 1902).
  • Spherical collapse: a region has collapsed when its linear contrast reaches 1.686 (Gunn & Gott 1972, cited at app.js:600).
  • Poisson noise: M discrete quanta give a contrast of 1/√M on the scale holding them all.

The game's math

G of the Rupture Rule, universeG() app.js:604, computed once a universe and kept in uniG:

M   = number of pulsing cells on the field
ρ̄   = M / (rows · cols)                                 cells per cell
T   = max(8, 2·(lifeEndTempo − max(universePulses, harmonicTempo(3))))   flips
τ   = T / arccosh(max(1.0001, 1.686 · √max(2, M)))
G_R = 1 / (4π · ρ̄ · τ²)

The idea: the whole field starts least uneven, δ₀ = 1/√M, and grows as cosh(t/τ); choose G so that it reaches 1.686 exactly at the rupture. The factor 2 turns Tempos into flips. Since 2026-10-28 harmonicTempo(3) app.js:4321 is the Physical Nova, the start of the universe's clock, so T is the whole life, 2·2^Lm flips.

G of the Friedmann law, set in sendOutMatter() app.js:1244, once at the burst:

ρ̄   = Q · (1 + darkRatio()) / (rows · cols)     Q = all matter sent out, cells
G_F = 1 / (6π · ρ̄ · physLife²)                 physLife = flips from the Physical Nova to the End of the Outward Expansion

matter.fixedG = G_F and Matter.setG() matter.js:109 makes matter.G = G_F for every matter step. ρ̄ includes the Data Matter (Part 4.10), as Part 3.11's Game's Reading asks.

Which is used where. G_F drives all matter physics: the mesh, the direct pulls, friction, cooling, falls, mergers, births, stars. G_R drives the data drains (wellDyn.G = universeG() app.js:821), the horizons drawn in wellList() app.js:1317, the torus's frame drag frameDrag() app.js:627 (Chapter 2), and it seeds the Matter constructor (G: universeG() app.js:650 and app.js:1194) before the burst replaces it.

Worked case, desktop, level 6 or deeper (Lm = 6, field 256 × 256, 2^Lm = 64 Tempos, physLife = 128 flips): the Pulsecore holds about (2r)² = 280² = 78,400 cells at the burst (Part 4.5); darkRatio() = 5.4; ρ̄ = 78,400 × 6.4 / 65,536 ≈ 7.66; G_F = 1/(6π × 7.66 × 128²) ≈ 4.2 × 10⁻⁷ in cells³ per cell of mass per flip².

The expansion dilutes G for the matter: Matter.step() multiplies every pull by gk = (a₀/a)³ (Part 4.4).

The method, in plain steps:

the data's G (the Rupture Rule), once a universe:
    the field's unevenness 1/√M must grow to 1.686 exactly at the End of the Outward Expansion:
    τ ← life / arccosh(1.686 · √M);   G_R ← 1 / (4π · ρ̄ · τ²)
the matter's G (the Friedmann law), once at the big bang:
    G_F ← 1 / (6π · ρ̄ · T²),  ρ̄ all matter and Data Matter per cell, T the flips to the End of the Outward Expansion
G_F moves the matter; G_R drains the data and draws the horizons

The code:

// public/game-v8.4/app.js:604 universeG()
function universeG() {
    if (uniG !== null) return uniG;
    if (epoch !== 'universe' || !uni) return 0;
    let M = 0; for (let r = 0; r < rows; r++) for (let c = 0; c < cols; c++) M += pulserGrid[r][c] ? 1 : 0;
    const rho = M / (rows * cols), T = Math.max(8, 2 * (lifeEndTempo() - Math.max(universePulses(), harmonicTempo(U.PHYSICAL_LAYER))));   // from the physical layer, known in advance, to the rupture
    const tau = T / Math.acosh(Math.max(1.0001, 1.686 * Math.sqrt(Math.max(2, M))));
    uniG = rho > 0 ? 1 / (4 * Math.PI * rho * tau * tau) : 0;
    return uniG;
}

// public/game-v8.4/app.js:1243
matter.a0 = 1; matter.a = expansionA();
{ let mass = 0; for (const b of matter.bodies) mass += b.m || 0; const rhoBar = mass * (1 + darkRatio()) / Math.max(1, rows * cols); matter.fixedG = rhoBar > 0 ? 1 / (6 * Math.PI * rhoBar * physLife * physLife) : 0; matter.setG(); matter.darkMass = mass * darkRatio(); matter.dark = null; }   /* ρ̄ is matter and Data Matter together (8.3) */

In the game

Gravity is what the player watches work from the Physical Nova to the End of the Outward Expansion: the smooth sky gathering along the lattice's lines, clumps falling together and merging, wells sinking to their hearts. Its constant is not a control. The Universe panel's note (index.php:192) says so: "No couplings to set: the rest follows the book" and "G is fixed by the Rupture: by the universe's end everything has clumped."

  • The readout's "G here" row (app.js:2088) shows the universe's true gravitational constant at its level, with the note "Length³ / (m × Tempo²)": the law's value in SI units, not the cell-and-flip G above.
  • The wells' horizons in 3D are drawn from G_R: each well is a dark point sized by its mass, and drawn at its true horizon, r_s = 2G_R·M/c² cells times a cell's width, once that is larger than the mark (setWells() scene3d.js:1484–1489). Where the true horizon is smaller than the mark, as Part 4.8's worked case finds for the matter's own G, the mark is what shows.
  • The stars of a clump orbit it in 3D at ω = √(G·gk·m/r³) radians a flip, with the matter's own G diluted by the expansion (setMatter() scene3d.js:795–797): a heavier clump swirls faster, and every clump slows as the universe grows.

The scale model

G is set on the drawn field, from the drawn field's own density and the scale model's life of 2^Lm Tempos, not the true level's 2^L. It is a scale-model constant: it makes the drawn matter collapse on the drawn clock. At the model level itself it is exact to the law. The true G of the level is the readout's, computed separately (universe.js) and never used by the matter.

Where the game and the theory differ

  • One universe, two G's. BPT gives a universe one gravitational constant. The game computes two: G_F by the Gravity of a Universe for the matter, and G_R by the collapse-at-rupture reading for the data drains, the drawn horizons and the frame drag. So the horizon a well is drawn with and the horizon its matter falls into (Matter.horizon() matter.js:318, from G_F) are not the same number. The panel's note, "G is fixed by the Rupture", describes G_R; the matter runs on G_F.
  • A rebuilt Matter keeps the wrong one. If stepMatterPre() ever rebuilds Matter because the field changed size, the new object keeps G_R, since fixedG is set only by sendOutMatter().
  • A stale comment. The comment at app.js:601 still says Harmonic 3 is "two thirds through the life"; since 2026-10-28 it is the start of the universe's clock.
  • A control with nothing behind it. app.js:5573 still wires a "Jeans" slider (uJeans) to matter.gravity. The game page has no such slider, and nothing in matter.js reads matter.gravity.

Fixed numbers

Number Where What it is Kind
1.686 universeG() app.js:609 Linear contrast at collapse PHYSICS (Gunn & Gott 1972)
4π universeG() app.js:610 Jeans growth rate 1/τ² = 4πGρ̄ PHYSICS (Jeans 1902)
8 universeG() app.js:608 Floor on T, flips METHOD (keeps τ finite in a tiny life)
2 (×) universeG() app.js:608 Flips per Tempo BPT (Part 1.10: a Pulse is two flips)
1.0001 universeG() app.js:609 Floor on the arccosh argument METHOD (arccosh needs > 1)
2 (max) universeG() app.js:609 Floor on M METHOD (avoids √1)
6π sendOutMatter() app.js:1244 Friedmann gravity G = 1/(6πρ̄T²) BPT (Part 3.11, Gravity of a Universe) and PHYSICS (Friedmann 1922)
4 sendOutMatter() app.js:1225 Floor on physLife, flips METHOD
2 (×) sendOutMatter() app.js:1225 Flips per Tempo in physLife BPT (Part 1.10)

Part 4.4: The Expansion of the Physical Universe

The BPT law

BPT Part 3.11 (The Expansion of the Physical Universe) gives the physical universe its growth from the Physical Nova on. The Matter-Era Expansion, a = (t / t⊚)^(2/3): "a universe of matter grows as time to the two-thirds: fast at first, then slowing", with Hubble rate H = 2/(3t). Matter Dilution, ρ = ρ⊚ · a^(−3): matter "is neither made nor lost by the expansion; it is spread". Hubble Drag, v⇝ = v⇝⊚ · a⊚ / a: "motion through space dies away as space grows", while bound systems keep their fast internal motions. Linear Growth of Structure, δ = δ⊚ · a / a⊚: small excesses grow in step with the universe until they collapse. The start is the Point Scale, a↯ = R⊛ / R⊚, the Pulsecore's radius against the universe's at the End of its Outward Expansion: "at the Physical Nova the universe is the size of its Pulsecore", about 10⁻⁶¹ for ours.

BPT Part 3.13 adds the Null Vacuum and its Level Λ Law, Λℓ_P² = 3π / (16 ln 2 · 4^L), so that in each universe's own life of 2^L Tempos Λc²T² = 3π/(16 ln 2), the same at every level. Part 3.11's Game's Reading puts the two together as the law the game runs: "a ∝ sinh^(2/3)(x), x = K · (t + t₀) / T_life, the flat law of matter and vacuum together", K = (3/2)·√(π/(16 ln 2)) ≈ 0.80 at every level, t₀ putting a at the Pulsecore's size at t = 0, the vacuum's share tanh²(x) reaching about 0.44 at the End of the Outward Expansion; and "the expansion does not stop at the End of the Outward Expansion". The same Part's Radiation Cooling, T_γ = T_γr · a_r / a, and Primordial Wave Stretch, λ_w = λ_w0 · a / a₀, say how the first light and the first gravitational waves stretch with the space, and the book describes the game drawing both.

Neither the book's law nor the code has a radiation era, a ∝ t^(1/2): the first light is drawn cooling as the space grows, but it does not drive the expansion. expansionA() is the flat matter-plus-Λ law from the first instant.

The established physics

  • The flat universe of matter and a cosmological constant: a ∝ sinh^(2/3)((3/2)·√(Λc²/3)·t), t^(2/3) early, exponential late; the vacuum's share Ω_Λ = tanh² of the same argument (standard ΛCDM, e.g. Peebles 1993).
  • Hubble drag: peculiar momentum falls as 1/a (Peebles 1980).

The game's math

expansionA() app.js:710:

pin      = max(10⁻³, HOLE / (HOLE + 2·TUBE))          the torus's hole against its full width: the pin head
t₀       = physLife · pin^1.5                          the time at which a matter-era law would be at the pin head
t        = flips since the Physical Nova (pulseCounter + subDone − physStart)
lifeFlips= max(1, 2 · rupturePulses)
a(t)     = [ sinh(K·(t + t₀)/lifeFlips) / sinh(K·(physLife + t₀)/lifeFlips) ]^(2/3)
K        = VACUUM_K = 1.5 · √(π / (16 ln 2)) ≈ 0.798       (app.js:722)

a = 1 at the End of the Outward Expansion (t = physLife) and keeps growing through the decay (2026-10-28 ruling, BPT Part 3.10). The vacuum's share, vacuumShare() app.js:725, is tanh²(K(t + t₀)/lifeFlips): 0 at the big bang, tanh²(0.80) ≈ 0.44 at the End of the Outward Expansion.

In Matter.step() matter.js:389–391, with a₀ = 1 set by sendOutMatter() (app.js:1243):

if a grew since the last step:  v ← v · (a_prev / a)²        for every body and well
gk = (a₀ / a)³                                               multiplies every gravitational pull

The cells are comoving: the grid keeps its count as the torus grows. A peculiar velocity in cells a flip falls as 1/a², which is BPT's Hubble Drag in comoving units: momentum falls as 1/a, and each cell is a times longer. Gravity across the grid falls as a⁻³, BPT's Matter Dilution: the same mass, a times farther in every direction. Bound orbits keep their turn; motion across space dies down (comment matter.js:383–388, ruling 2026-10-26: "they are moving across the torus too fast still").

Worked case, desktop at level 6 or deeper: physLife = 128 flips, lifeFlips = 128. At t = 64 flips (half the life), ignoring the small t₀, a = [sinh(0.399)/sinh(0.798)]^(2/3) = [0.410/0.885]^(2/3) ≈ 0.60; gk ≈ 1/0.60³ ≈ 4.6. Pure matter-era t^(2/3) would give 0.63: the vacuum makes the late growth faster, so a is smaller at half-life.

The method, in plain steps:

a(t) ← [sinh(K · (t + t₀) / life) / sinh(K · (T + t₀) / life)]^(2/3),  K ≈ 0.798
    1 at the End of the Outward Expansion, and still growing through the decay
the vacuum's share ← tanh²(K · (t + t₀) / life)
each sub-step, if a grew:  every velocity × (a_prev / a)²   (Hubble drag in comoving cells)
every gravitational pull × (a₀ / a)³                          (matter diluted)

The code:

// public/game-v8.4/app.js:710 expansionA()
function expansionA() {
    if (physStart === null || !physLife) return 1;
    const pin = Math.max(1e-3, TORUS.HOLE / (TORUS.HOLE + 2 * TORUS.TUBE)), t0 = physLife * Math.pow(pin, 1.5);
    const t = Math.max(0, pulseCounter + subDone - physStart);   /* on past the final well: the expansion does not stop there (2026-10-28, book Part 3.10) */
    /* ⚠️ VACUUM PRESSURE (8.3, 2026-10-27; book Part 3.13): matter and the Null Vacuum together, a ∝ sinh^(2/3)(x),
       x = (3/2)·√(Λc²/3)·t, the flat matter-plus-Λ law, t^(2/3) early and speeding up late. By the Level Λ Law
       (Λ ℓ_P² = 3π / (16 ln 2 · 4^L)) every universe's Λ, in its own life of 2^L Tempos, is Λc²·T² = 3π / (16 ln 2), so
       x = VACUUM_K · t / T with VACUUM_K = (3/2)·√(π / (16 ln 2)) ≈ 0.798 and T the life in flips, at every level. */
    const lifeFlips = Math.max(1, 2 * (uni ? uni.rupturePulses : physLife));
    const sh = (x) => Math.sinh(VACUUM_K * x / lifeFlips);
    return Math.pow(sh(t + t0) / sh(physLife + t0), 2 / 3);
}

// public/game-v8.4/app.js:725 vacuumShare()
function vacuumShare() {
    if (physStart === null || !physLife) return 0;
    const pin = Math.max(1e-3, TORUS.HOLE / (TORUS.HOLE + 2 * TORUS.TUBE)), t0 = physLife * Math.pow(pin, 1.5);
    const t = Math.max(0, pulseCounter + subDone - physStart), lifeFlips = Math.max(1, 2 * (uni ? uni.rupturePulses : physLife));
    return Math.pow(Math.tanh(VACUUM_K * (t + t0) / lifeFlips), 2);
}

// public/game-v8.4/matter.js:389
const ax = this.a > 0 ? this.a : 1; if (!this.a0) this.a0 = ax;   /* the scale factor from the Physical Nova (app.js expansionA): from the pin head to 1 at the final well; a0 = 1, so gk = a⁻³ */
if (this.aPrev && ax > this.aPrev) { const f = (this.aPrev / ax) ** 2; for (const b of this.bodies) { b.vr *= f; b.vc *= f; } for (const w of wells) { w.vr = (w.vr || 0) * f; w.vc = (w.vc || 0) * f; } }
this.aPrev = ax; const gk = Math.pow(this.a0 / ax, 3); this.gk = gk;

In the game

The expansion is the most visible law in a run. It is drawn in 3D, from the end of the Data Nova to the End of the Outward Expansion:

  • Drawing in. From the Data Nova to the Physical Nova the torus shrinks toward the Pulsecore's size, faster as the nova nears (setPinhead() scene3d.js:345, driven at app.js:1301–1302). When it is most of the way down a toast reads "drawing in: The scaffold and all its data draw in toward the pin head, the Pulsecore's own size · the Physical Nova is near" (app.js:1304), and the HUD's epoch line reads "Universe · the scaffold draws in toward the pin head".
  • The burst. At the Physical Nova the torus grows back out from the pin head over about three seconds of drawn time (scene3d.js:2007), the stars riding it out, and from then on its drawn size is the scale factor itself, s = max(pin head, a) (scene3d.js:2006). The empty shell of the space layer stays in view round the smaller physical torus while it is under 97 % of full size (scene3d.js:2012).
  • The first light and the first waves. From the Physical Nova the whole skin glows at once, white-hot, cooling through yellow, orange and red to dark as a grows, by a color ramp in log a that stands in for T ∝ 1/a, dark by about a third of full size; over it run the crests of three plane gravitational waves with a whole number of crests round the torus (24), so they stretch exactly with the space (scene3d.js:2153–2166, shader at scene3d.js:871–873).
  • The darkening vacuum. Once there are stars the skin sits at 62 % brightness and dims as the Null Vacuum's share grows, 0.62 · max(0.3, 1 − 1.2·Ω⦵) (scene3d.js:2024), "so I can more clearly see the stars in the foreground" (the author, 2026-10-27, quoted at scene3d.js:2020–2021).
  • The HUD. The epoch line reads "Universe · expanding, N% of its final size · …" with N = 100·a (app.js:2154).
  • Three toasts mark the growth (app.js:670–673): at a = 0.25, "a quarter grown: The universe is a quarter of its final size · the ripples are growing: the first clumps gather along the lattice's lines"; at 0.5, "half grown: Half its final size · filaments are forming along the scaffold, stars igniting in them"; at 0.9, "the web stands: Nearly full size · the cosmic web stands on the scaffold: clusters where filaments cross, voids between".
  • Hubble drag shows in the motion: the first fast drift of matter across the torus dies down as it grows, while the stars round each clump keep swirling.

The run's saved record keeps the scale factor reached as a (app.js:2212). No control changes the expansion.

The scale model

Exact in its shape: the same law in every universe's own life, so the curve a(t/T) is the same at every level. The life itself is the scale model's 2^Lm Tempos. The pin head is the drawn torus's own hole, TORUS.HOLE / (HOLE + 2·TUBE), not the true a↯ ≈ 10⁻⁶¹ of BPT Part 3.11; the floor of 10⁻³ keeps the start finite.

Where the game and the theory differ

  • The drawn torus stops at full size. BPT says the expansion "does not stop at the End of the Outward Expansion", and expansionA() goes on past 1 through the decay, with the matter's Hubble drag and dilution following it. The scene clamps the value it is given to at most 1 (setExpansion() scene3d.js:349), so after the End of the Outward Expansion the drawn torus stays at its full size.
  • The start is a little smaller than the pin head. BPT's Game's Reading has t₀ put a at the Pulsecore's size at t = 0. The code takes t₀ = physLife·pin^1.5, the inverse of the matter-era law a ∝ t^(2/3), not of the sinh law it runs. Since sinh x ≈ x early on this is close: with physLife = lifeFlips, as in the worked case, a(0) = [K·pin^1.5 / sinh K]^(2/3) = pin·(0.798/0.885)^(2/3) ≈ 0.93·pin, so the universe starts at about 93 % of the drawn pin head.

Fixed numbers

Number Where What it is Kind
1.5, π/(16 ln 2) VACUUM_K app.js:722 K = (3/2)√(Λc²T²/3) with Λc²T² = 3π/(16 ln 2) BPT (Part 3.13, Level Λ Law)
2/3 expansionA() app.js:720 Exponent of the sinh law PHYSICS (flat matter + Λ Friedmann solution)
10⁻³ expansionA() app.js:712, vacuumShare() app.js:727, sendOutMatter() app.js:1226 Floor on the pin head METHOD (keeps t₀ > 0)
1.5 expansionA() app.js:712 t₀ = physLife·pin^1.5, inverse of a ∝ t^(2/3) PHYSICS (Einstein–de Sitter), used as an approximation
2 (×) expansionA() app.js:718 Flips per Tempo in lifeFlips BPT (Part 1.10)
1 expansionA() app.js:711 a = 1 before the Physical Nova METHOD
2 (power) Matter.step() matter.js:390 Peculiar velocity falls as (a_prev/a)² in comoving cells PHYSICS (Hubble drag, Peebles 1980)
3 (power) Matter.step() matter.js:391 Gravity across comoving cells falls as a⁻³ PHYSICS (matter dilution)
1 sendOutMatter() app.js:1243 a₀ = 1 METHOD (reference)
0.25, 0.5, 0.9 stepMatterPost() app.js:671–673 Scale factors at which a message is shown DISPLAY

Part 4.5: Sending Out Matter at the Physical Nova

The BPT law

BPT Part 2.9 (The Gas of the Physical Nova) and Part 3.6 (Data Novas and Dimensional Evolution): "at the Physical Nova (the Causal Nova of Part 3.6) the physical layer condenses from the data that has filled the lattice since the Data Nova, where that data lies"; in our universe that matter is the Primordial Gas of big-bang nucleosynthesis. BPT Part 3.11 (The First Ripples) says the matter starts "almost perfectly even", its ripples "the unevenness of that data on the lattice, densest along its lines and densest of all at its nodes", and describes the simulation's start: "One body for each quantum of matter, as many as the device that draws it can hold (every quantum, about 19,000, at level 5), is laid on an even grid".

BPT Part 3.13 counts what is sent out. The Data Nova fires when the Pulsecore's data, f(r) = (2r)², fills the Bifold's χ∂ = 16 · 4^L places, when its reach is 4 · 2^L cells across, at the end of Tempo 2^L; that whole skin turns out onto the scaffold and stays data, the Data Matter. The Physical Nova comes 2^L/3 cells of reach later in the data's own count (2^L/6 Rhythms), at a reach of (13/3) · 2^L, and "what the core gathered between the two novas, f − χ∂ = (169/9 − 16) · 4^L = (25/9) · 4^L, is the first data born at the physical layer, the data the Physical Nova sends out as the big bang: the ordinary matter." This is the Data Matter Count, N◍ / N_b = 16 · 4^L / ((13/3)² · 4^L − 16 · 4^L).

The established physics

None beyond Part 4.6: how many bodies a simulation uses, and how many quanta each holds, is a numerical choice (every N-body code samples a continuous density with finite particles; Hockney & Eastwood 1988).

The game's math

sendOutMatter(frame, total) app.js:1192, called by burstPulsecore() (8.5 app.js:1335) with total = dataWithin(r) = (2r)² (8.5 pinpoint.js:43), r = pulseCounter − 1, the Rhythms since the Pulsecore began. (8.4 passed n = ⌊(pulseCounter − 1)/2⌋ Tempos to (n + 1)², the same reach to within a cell.)

BUD = matterBudget()                        bodies this device is given (below)
N   = max(1, min(BUD, round(total)))        bodies
q   = total / N                             cells of matter each body holds

Each body is placed by zeldovichStart() (Part 4.6) from a weight per cell, so that matter condenses where the data lies and most where the lattice runs:

wt[i] = 0                                   where the cell holds no data
wt[i] = SCAFFOLD_FLOOR + scaffoldWeight[i]  where it does (lines ≈ 1, nodes ≈ 2, scene3d), SCAFFOLD_FLOOR = 0.1 (app.js:1098)

Then sendOutMatter() sets the clocks: physStart (now), physLife = max(4, 2·(lifeEndTempo − universePulses)) flips (app.js:1225), a₀ = 1 and a = expansionA(); the Friedmann G (Part 4.3); matter.darkMass = Q·darkRatio() (Part 4.10); the stars' clock tauSun and the level's Sun (Chapter 5). The scene's point count for drawing is set to max(BUD, 15000) (app.js:1198).

matterBudget() app.js:1176:

phone:   8000
other:   mem   = min(8, navigator.deviceMemory or 4)
         cores = min(16, navigator.hardwareConcurrency or 4)
         BUD   = round( clamp( 2000·mem·min(1, cores/8) + 2000, 8000, 16000 ) )

A desktop with 8 GB and 8 cores or more gets 16,000; one with 4 GB and 4 cores computes 6,000 and is raised to 8,000. Browsers report deviceMemory at most 8, so the min(8, ·) rarely binds.

Worked case. At the Physical Nova the reach is 2r ≈ 4·2^Lm + 2^Lm/3 = (13/3)·2^Lm cells, as BPT Part 3.13 places it (the Data Nova at a reach of 4·2^Lm, Rhythm 2^(Lm+1), novaRhythm() 8.5 pinpoint.js:47, then ⌈2^Lm/12⌉ Tempos, four cells of reach each). Desktop, Lm = 6: r = 128 + 12 = 140, reach 280, total 78,400 cells, N = 16,000 bodies, q ≈ 4.9 cells a body. Level 5: r = 64 + 6 = 70, reach 140, total 19,600 cells; N = 16,000, q ≈ 1.2. Phone, Lm = 4: r = 32 + 4 = 36, reach 72, total 5,184 cells; N = 5,184 bodies of one cell each.

The method, in plain steps:

at the big bang the matter is all the data held: total ← (2r)² cells, r the data's Rhythms
bodies N ← min(this device's budget, total);  each body holds total / N cells
    the budget: 8,000 on a phone, 8,000 to 16,000 by the computer's memory and cores
place them by the Zel'dovich start (Part 4.6), weighted to where the data lies, most where the lattice runs
set the clocks: the big bang now, the life to the End of the Outward Expansion, a₀ = 1; the matter's G; the Data Matter

The code:

// public/game-v8.4/app.js:1176 matterBudget()
function matterBudget() {
    const mobile = isPhone();
    /* 8.3 (2026-10-27): the author's desktop ran 1.3 s of physics a flip at 8 frames a second with 30,000 bodies; the bodies are the
       physics' cost, and the galaxies are drawn by their type, so the budget is 16,000 at most, 8,000 on a phone */
    if (mobile) return 8000;
    const mem = Math.min(8, navigator.deviceMemory || 4), cores = Math.min(16, navigator.hardwareConcurrency || 4);
    return Math.round(Math.max(8000, Math.min(16000, 2000 * mem * Math.min(1, cores / 8) + 2000)));
}

// public/game-v8.4/app.js:1192 sendOutMatter()
function sendOutMatter(frame, total) {
    if (!uni || !(total > 0)) return 0;
    if (!matter || matter.rows !== rows || matter.cols !== cols) matter = new Matter({ rows, cols, G: universeG(), B: meshB() }); setCloud(matter);
    if (!matter.ok) return 0;
    matter.light = lightCells();
    const BUD = matterBudget(), N = Math.max(1, Math.min(BUD, Math.round(total))), q = total / N;
    if (scene) scene.pointBudget = Math.max(BUD, 15000);
    const mid = rows / 2, life = Math.max(8, 2 * (lifeEndTempo() - universePulses()));
    const vmax = Math.min(0.9 * matter.light, (rows / 2) / Math.max(4, life * 0.45));
    let seed = (Math.imul(frame + 1, 2654435761) ^ (uni.L * 40503)) >>> 0;
    const rnd = () => { seed = (seed + 0x6D2B79F5) >>> 0; let t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
    /* 2026-10-26: matter starts cold (matter.js: "orbits, discs and spin are not given but come of the fall"), laid over the whole
       torus where the data is, a block's share of the bodies by its data; the density differences seed the clusters and
       gravity does the rest. The big bang (scene) carries each star out of the core to its place. */
    void vmax; void mid;
    /* ⚠️ THE MATTER KEEPS THE DATA'S SPIN (2026-10-26, the author: "the torus should grow back to its full size as it moves all of
       the data around it from the center radiating with some spin, this is where gas should clump together and maintain
       their spin"): each body starts with the data's own motion at its place. The outward part is the expansion, which the
       comoving cells already hold; the turn as a whole is the torus's own (scene omegaT); what is left is the differential
       turn, each row's ring speed (flow.rowSpeed, frame dragging faster inside) less the mean: the shear that gives the
       clumps their spin. */
    const rs0 = flow && flow.rowSpeed ? flow.rowSpeed : null; let rsMean = 0; if (rs0) { for (const s of rs0) rsMean += s; rsMean /= rs0.length || 1; }
    const spinAt = (r) => (rs0 ? (rs0[((Math.floor(r) % rows) + rows) % rows] || 0) - rsMean : 0);
    /* ⚠️ MATTER CONDENSES FROM THE DATA ON THE SCAFFOLD (2026-10-26, book Part 3.6): each body is laid at a cell of data, the
       chance weighted by how strongly the lattice runs through it (scene3d scaffoldWeight: lines ≈ 1, nodes ≈ 2), so the
       matter starts along the lattice's lines and gathers most at its nodes; SCAFFOLD_FLOOR keeps a share in between, as
…

In the game

The Physical Nova is the third nova of a run (the HUD's Layer line reads 3, "the physical layer"), and it is the game's big bang. In 3D the torus has drawn in to the pin head (Part 4.4); burstPulsecore() then calls scene.burstInner() (scene3d.js:1067), "a white-gold flash from the centre past the torus, a shockwave ring, and the whole cloud of the data within blasting outward", and the torus grows back out with the new stars on it. Over the next 3.5 seconds of drawn time the lattice fades from 95 % to 12 % opacity behind them (scene3d.js:2137): the physical overtakes the scaffold. A toast names the moment (app.js:1286): "the big bang: Space erupts from the pin head and the data on the scaffold condenses into N bodies of matter, smooth but for tiny ripples · gravity will grow them into a web as the universe expands", with N the bodies laid.

Each body is drawn as a small swarm of points, as many as its share of all the matter (up to 4,000 for one body), the whole sky drawn with the scene's point count (setMatter() scene3d.js:705–709). Its points take part of the color of the data they condensed from, "the data becomes the universe" (scene3d.js:746–748). Gas is drawn as a faint haze in the data's color, stars as sharp points (Chapter 5). If frames run slow the scene draws fewer points (scene3d.js:2001–2003); the bodies themselves do not change.

In the 2D field (Universe panel, View: "2D · the field") each body is a dot (app.js:408–417): small gray dust, a pale blue-white dot of radius one cell once it holds a cloud's mass, two cells at twice that, and orange from three clouds' mass.

At shallow levels the burst carries a warning instead of stars: "no stable matter: … every quantum of matter collapses into its own micro-well and evaporates, a universe of light and wells" below about level 12, and "matter, but no stars: … stars begin at about level 23" below the Star Existence Condition (app.js:1254–1255; Chapter 5). The run's saved record keeps the number of bodies (bodies, app.js:2218) and the device's body count (bodies_budget, app.js:4475).

The scale model

A body stands for q cells of matter. The total matter is the scale model's own count; a body is a sampling unit, not a star, a cluster or a clump. Chapter 5 sizes the game's Sun from this total so that the stars drawn stand for the law's count (Part 5.3).

Where the game and the theory differ

  • What counts as ordinary matter. BPT Part 3.13's ordinary matter is f(r) − χ_∂ = (25/9)·4^L at the Physical Nova, the data the core gathered between the Data Nova and the Physical Nova. The game sends out the whole f(r) = (2r)² at the Physical Nova, about (169/9)·4^L, 6.76 times as much, by an earlier ruling (2026-10-25, quoted at app.js:1262–1264: "all of the Pulsecore's data becomes the physical world"), and then adds Data Matter of 5.4 times that on top (Part 4.10). The code and the book disagree on the ordinary matter by that factor. This is recorded, not resolved, here.
  • Not every quantum a body. BPT Part 3.11 says the simulation lays "every quantum, about 19,000, at level 5" as its own body, following the comment at app.js:1151–1155. Since 8.3 the most bodies on any device is 16,000, so at level 5 on a desktop the 19,300 cells go out as 16,000 bodies of about 1.2 cells each. (A phone draws level 5 on its level-4 model, Part 4.15, whose 4,900 cells are still one body each.)
  • A stale comment. The same comment, app.js:1151–1155, still says "Phones 12,000; other devices by their memory and cores, up to 60,000". The code since 8.3 (comment at app.js:1178–1179, 2026-10-27) gives phones 8,000 and every other device at most 16,000. A consequence lands in Chapter 5 (Part 5.12): applyFeedback() tests matterBudget() >= 30000 (app.js:764) for a "strong" device, which can no longer be true.
  • Dead code. MATTER_MAX = 6000 (app.js:1149) is never used. vmax, mid, rnd, spinAt and rowArea inside sendOutMatter() (app.js:1199–1236) are computed and then discarded with void; they record approaches that were tried and dropped (an outward burst speed, an added spin, a per-row area weight).

Fixed numbers

Number Where What it is Kind
8000 matterBudget() app.js:1180 Bodies on a phone CAP (device class)
16000 matterBudget() app.js:1182 Most bodies on any device CAP
8000 matterBudget() app.js:1182 Fewest bodies on a non-phone CAP (floor)
2000, 2000 matterBudget() app.js:1182 Bodies per GB of memory, plus a base CAP (dressed as a formula)
8, 16 matterBudget() app.js:1181 Ceilings on memory (GB) and cores read CAP
8 matterBudget() app.js:1182 Cores for full share, min(1, cores/8) CAP
4, 4 matterBudget() app.js:1181 Memory and cores assumed when unreported METHOD (defaults)
15000 sendOutMatter() app.js:1198 Floor on the scene's point budget CAP (drawing)
0.1 SCAFFOLD_FLOOR app.js:1098 Weight of a data cell off the lattice METHOD (named choice: voids thin, not empty)
6000 MATTER_MAX app.js:1149 Old body ceiling, unused CAP (dead code)
8, 0.9, 0.45, 4 sendOutMatter() app.js:1199–1200 Floors and shares of the unused burst speed vmax METHOD (dead code)
2654435761, 40503 sendOutMatter() app.js:1201 Hash constants of the unused draw METHOD (dead code)
2166136261, 16777619, 3, 7 sendOutMatter() app.js:1229 FNV hash of the data that seeds the ripples' phases; every third cell METHOD (reproducible seed)

Part 4.6: The Zel'dovich Start

The BPT law

BPT Part 3.11 (The First Ripples) lays down the matter's start as cosmology does. The Zel'dovich Displacement, x = q + D · ψ: "each piece of matter starts at its own place and is moved along the ripples, more as the universe grows", q its place on the even grid it began on, D = a the growth of the ripples, ψ the displacement field, "the gradient of the ripples, pointing toward where the density is higher"; the contrast it makes is δ = −D·∇·ψ. The Growing-Mode Velocity, u = D · H · ψ: "each piece moves with the ripples' growth from the start", so that every ripple is in its growing mode from the first instant ("started at rest instead, half of every ripple would be lost"). In BPT "the ripples are not put in by hand: they are the data", the unevenness of the data on the scaffold, so the web that grows from them "is laid out by the scaffold".

BPT Part 3.12 (The Character of the First Ripples) adds that they are a random field with the Primordial Ripple Spectrum, Δ²(k) = A⊚ · (k / k⊚)^(n⊚ − 1), n⊚ = 0.965, A⊚ = 2.1 × 10⁻⁹ in ours, and that the matter carrying them must begin "not on a grid, whose rows would survive into the web, but as a glass". Part 3.11 then describes this very code: the ripples are "a third the data on the scaffold and two thirds the random field of Part 3.12, smoothed over two cells, on a grid jittered within each cell", scaled "so that, grown linearly, their spread would reach about three by the End of the Outward Expansion", and "ripples longer than a quarter of the universe are left out"; "those three sizes are the simulation's choices here".

The established physics

  • Zel'dovich approximation (Zel'dovich 1970): x = q + D(t)·ψ(q), ψ = ∇g with ∇²g = −δ, so δ = −D·∇·ψ; velocities in the growing mode, u = D·H·ψ for D = a.
  • Einstein–de Sitter growth, D = a and H = 2/(3t).
  • Nearly scale-invariant primordial spectrum, n_s = 0.965 (Planck Collaboration 2020). In two dimensions the amplitude per mode goes as k^((n − 3)/2) (code comment zeldovich.js:24–28).
  • Glass initial conditions (White 1996, cited in BPT Part 3.12); the jittered grid is the code's approximation to one.

The game's math

zeldovichStart({ rows, cols, weight, N, aInit, tInit, seed }) zeldovich.js:56, called at app.js:1230 with aInit = expansionA() and tInit = t₀ (Part 4.4).

  1. The scaffold's contrast. δ_s(x) = weight/mean − 1 (zeldovich.js:65). Each row's own mean is subtracted (zeldovich.js:71), so no band of the torus is preferred (ruling 2026-10-28: "the wells are still gathering around the equator").
  2. The random field. Gaussian white noise (Box–Muller, zeldovich.js:59) in Fourier space, each mode scaled by k^((N_S − 3)/2) (zeldovich.js:81).
  3. The mix. Both normalized to unit power, then δ_k = SCAFFOLD_SHARE·δ_s,k/√P_s + (1 − SCAFFOLD_SHARE)·δ_n,k/√P_n (zeldovich.js:84–85), SCAFFOLD_SHARE = 0.35.
  4. The displacement. For each mode with k² above k_min² (k_min = 2π/(RIPPLE_LONGEST·max(rows, cols)), zeldovich.js:90): smoothing sm = exp(−k²·RIPPLE_SMOOTH²/2); g_k = δ_k·sm/k²; ψ = ∇g = i·k·g_k; back to real space (zeldovich.js:86–97).
  5. The scale S. The rms of the grid's linear contrast −∇·ψ is measured, and S = RIPPLE_TODAY / rms (zeldovich.js:99–105), so that at a = 1 the contrast would spread to RIPPLE_TODAY = 3.
  6. The bodies. nc = round(√(N·cols/rows)) columns, nr = round(N/nc) rows; each body at q = ((i + u₁)·rows/nr, (j + u₂)·cols/nc), u random in [0, 1) (the jitter, zeldovich.js:118), then
x = q + D·S·ψ(q),   u = D·H·S·ψ(q),   D = aInit,   H = 2 / (3·max(10⁻⁶, tInit))

ψ is read between cells bilinearly. Each body gets mass q from Part 4.5. The ripples' phases are seeded from the universe's own data (an FNV hash of every third cell, app.js:1229), so the same universe gives the same start.

The rowArea option (zeldovich.js:109–116) puts bodies per row in proportion to each ring's real area; sendOutMatter() does not pass it, since the field is drawn equal-area (app.js:1228).

The method, in plain steps:

contrast ← the scaffold's weight against its mean, each row's own mean removed
mix it with Gaussian random ripples, 35% scaffold and 65% chance, by their power
displacement ψ ← the gradient of (contrast ÷ k²), smoothed, long waves cut
scale it so the contrast would reach 3 at a = 1
each body, on a jittered grid at q:  x ← q + a · S · ψ(q),   v ← a · H · S · ψ(q)

The code:

// public/game-v8.4/zeldovich.js:56 zeldovichStart()
export function zeldovichStart({ rows, cols, weight, N, aInit, tInit, rowArea = null, seed = 1 }) {
    let h0 = (seed >>> 0) || 1;
    const rnd = () => { h0 = (h0 + 0x6D2B79F5) >>> 0; let x = h0; x = Math.imul(x ^ (x >>> 15), x | 1); x ^= x + Math.imul(x ^ (x >>> 7), x | 61); return ((x ^ (x >>> 14)) >>> 0) / 4294967296; };
    const gauss = () => Math.sqrt(-2 * Math.log(Math.max(1e-12, rnd()))) * Math.cos(2 * Math.PI * rnd());
    const n = rows * cols;
    let mean = 0; for (let i = 0; i < n; i++) mean += weight[i]; mean /= n;
    const gr = new Float64Array(n), gc = new Float64Array(n);
    if (mean > 0 && pow2(rows) && pow2(cols)) {
        const re = new Float64Array(n), im = new Float64Array(n);
        for (let i = 0; i < n; i++) re[i] = weight[i] / mean - 1;          /* the scaffold's contrast */
        /* ⚠️ NO BAND OF THE TORUS IS PREFERRED (2026-10-28, the author: "the wells are still gathering around the equator"; book Part 3.12,
           the first ripples are a random field, and the cosmological principle): the data's layout differs from band to band round
           the tube, and that row-wide contrast entered the ripples as one huge mode, so at the big bang the matter already streamed
           between bands (measured: 3–6 cells a flip, 5 % of light, away from the outer equator) and by half its life 53 % of it lay
           in the band of 60–90° that holds 21 % of the surface. Each row's own mean is taken out: every local ripple stays. */
        for (let r = 0; r < rows; r++) { let rm = 0; for (let c = 0; c < cols; c++) rm += re[r * cols + c]; rm /= cols; for (let c = 0; c < cols; c++) re[r * cols + c] -= rm; }
        fft2(re, im, rows, cols, false);
        /* the random field, in Fourier space: white noise shaped by the spectrum */
        const nr2 = new Float64Array(n), ni2 = new Float64Array(n);
        for (let i = 0; i < n; i++) nr2[i] = gauss();
        fft2(nr2, ni2, rows, cols, false);
        let ps = 0, pn = 0;
        for (let a = 0; a < rows; a++) for (let b = 0; b < cols; b++) {
            const i = a * cols + b, kr = (2 * Math.PI * (a <= rows / 2 ? a : a - rows)) / rows, kc = (2 * Math.PI * (b <= cols / 2 ? b : b - cols)) / cols, k = Math.hypot(kr, kc);
            if (k === 0) { nr2[i] = ni2[i] = 0; continue; }
            const amp = Math.pow(k, (N_S - 3) / 2); nr2[i] *= amp; ni2[i] *= amp;
            ps += re[i] * re[i] + im[i] * im[i]; pn += nr2[i] * nr2[i] + ni2[i] * ni2[i];
        }
        const ws = ps > 0 ? SCAFFOLD_SHARE / Math.sqrt(ps) : 0, wn = pn > 0 ? (1 - SCAFFOLD_SHARE) / Math.sqrt(pn) : 0;
        for (let i = 0; i < n; i++) { re[i] = re[i] * ws + nr2[i] * wn; im[i] = im[i] * ws + ni2[i] * wn; }
        const Rr = new Float64Array(n), Ri = new Float64Array(n), Cr = new Float64Array(n), Ci = new Float64Array(n);
        for (let a = 0; a < rows; a++) for (let b = 0; b < cols; b++) {
            const i = a * cols + b, kr = (2 * Math.PI * (a <= rows / 2 ? a : a - rows)) / rows, kc = (2 * Math.PI * (b <= cols / 2 ? b : b - cols)) / cols, k2 = kr * kr + kc * kc;
            if (k2 === 0) continue;
            const kmin = 2 * Math.PI / (RIPPLE_LONGEST * Math.max(rows, cols)); if (k2 < kmin * kmin) continue;   /* no ripple longer than RIPPLE_LONGEST of the field */
            const sm = Math.exp(-k2 * RIPPLE_SMOOTH * RIPPLE_SMOOTH / 2);     /* smoothed over RIPPLE_SMOOTH cells */
            const g_r = re[i] * sm / k2, g_i = im[i] * sm / k2;                /* g_k = δ_k / k² (∇²g = −δ) */
            Rr[i] = -kr * g_i; Ri[i] = kr * g_r;                               /* ψ = ∇g: i·k·g_k */
            Cr[i] = -kc * g_i; Ci[i] = kc * g_r;
        }
…

In the game

At the burst the sky looks smooth: the bodies sit almost evenly over the torus where the data was, slightly thicker along the lattice's lines. Nothing turns yet. Over the first part of the life the player watches the ripples grow: matter drains from the voids and gathers along the lattice's lines into filaments, with knots where lines cross. The first toast of the growth names it at a = 0.25: "a quarter grown: The universe is a quarter of its final size · the ripples are growing: the first clumps gather along the lattice's lines" (app.js:671). In 3D the lattice still shows faintly under the stars (Part 4.5), so the player can see the web following it.

The contrast can be read directly in the 2D field with "Colour by → Density" (index.php:189–190): each cell is colored by the matter's density on the gravity mesh, from dark blue where there is none to bright orange at a cloud's mass or more, hsl(0.66 − 0.55·ρ, 0.9, 0.1 + 0.55·ρ) with ρ the block's matter over one cloud's mass, at most 1 (app.js:364–367, sample() matter.js:520). No control changes the start: its sizes are the simulation's choices, and its phases come from the universe's own data.

The scale model

The ripples are laid on the drawn field at the drawn resolution; ripples shorter than about two cells are smoothed away and longer than a quarter of the field dropped. The spread RIPPLE_TODAY is set against the end of the life, so the web is formed by the End of the Outward Expansion on every field. The start is a scale model of the shape of the web, not of its amplitude in our universe (A⊚ ≈ 2.1 × 10⁻⁹ in BPT Part 3.12 is not used).

Where the game and the theory differ

  • A third, or 0.35. BPT Part 3.11 says the ripples are a third the scaffold's and two thirds the random field's; the code's SCAFFOLD_SHARE is 0.35 of the amplitude, each part normalized to unit power first.
  • A jittered grid, not a glass. BPT Part 3.12 says the matter must begin as a glass, with no preferred direction; the code, as Part 3.11's reading of it says, lays the bodies on a regular grid jittered within each cell, an approximation to one.

Fixed numbers

Number Where What it is Kind
3 RIPPLE_TODAY zeldovich.js:16 Linear contrast the ripples would reach at a = 1 METHOD (named choice: web formed by the end)
2 RIPPLE_SMOOTH zeldovich.js:18 Smoothing width, cells METHOD (named choice: width of the lattice's lines)
0.25 RIPPLE_LONGEST zeldovich.js:23 Longest ripple kept, share of the field METHOD (named choice; universe smooth on its largest scales)
0.965 N_S zeldovich.js:28 Spectral index PHYSICS (Planck Collaboration 2020)
0.35 SCAFFOLD_SHARE zeldovich.js:28 Share of the ripples' strength from the scaffold METHOD (named choice; BPT 3.11 says "a third")
3, 2 zeldovich.js:81 Amplitude exponent (n − 3)/2 in two dimensions PHYSICS (2D power spectrum)
2, 3 zeldovich.js:106 H = 2/(3t) PHYSICS (Einstein–de Sitter)
10⁻⁶ zeldovich.js:106 Floor on tInit METHOD
10⁻¹² zeldovich.js:59 Floor in the Box–Muller log METHOD
0x6D2B79F5, 15, 7, 14, 61, 4294967296 zeldovich.js:58 Seeded random generator (mulberry-style) METHOD (reproducible draws)
1 zeldovich.js:56 Default seed METHOD

Part 4.7: Gravity on the Mesh

The BPT law

BPT does not state a method for computing gravity; it states the pull and its constant, and the mesh is a game method that serves them. BPT Part 1.11 (Pulse Diameter, Data Gravity and The Speed of Light) makes gravity the weight of data, and Part 3.9 puts it in a sentence: "just as gravitational mass warps spacetime, informational weight warps computational flow". BPT Part 3.11 fixes its strength by the Gravity of a Universe, G = 1/(6πρ̄T²) (Part 4.3), and its Game's Reading says how the game must apply it: the matter "and the Data Matter that outweighs it 27 to 5, move in comoving cells, so the expansion appears as Hubble Drag on the bodies' motions (as 1/a²) and as gravity across the grid falling as a⁻³". The same Part explains why a flat grid is enough: on the horn torus "the field is drawn on it by an equal-area map", so that "gravity on the flat grid of cells is then exact on the surface it is drawn on". The code's header says why matter moves "as a particle-mesh code moves matter through the cosmos" (matter.js:9).

The established physics

  • Particle-mesh gravity: mass deposited on a grid by cloud-in-cell weights, Poisson's equation ∇²Φ = 4πG(ρ − ρ̄) solved on a periodic grid by fast Fourier transform, the force read back with the same weights (Hockney & Eastwood 1988).
  • The torus is periodic, so the mean density is subtracted (the "Jeans swindle" of every periodic cosmological code).
  • The discrete Laplacian's own eigenvalues, 2cos(2πk_r/GR) + 2cos(2πk_c/GC) − 4, make the solution exact for the grid.

The game's math

Mesh size. meshB() app.js:1169 picks the block side B (cells per mesh cell):

meshN = 64 on a phone; 256 if cores ≥ 12 and memory ≥ 8 GB; else 128
B = 1; while rows/B > meshN and B < 64: B = 2B

Desktop, 256-cell field: B = 2 (128 × 128 mesh) on most machines, B = 1 (256 × 256) on strong ones. Phone, 64 cells: B = 1. Level 5 on desktop, 128 cells: B = 1. The Matter constructor (matter.js:77) sets GR = ⌊rows/B⌋, GC = ⌊cols/B⌋ and refuses to run (ok = false) unless both are powers of two and at least 4.

Deposit. meshForces(wells) matter.js:212: each body's mass goes to the four nearest block centers with bilinear (cloud-in-cell) weights; its momentum likewise (vgR, vgC, for the mean flow). The Data Matter per block (this.dark, Part 4.10) is added to the density both bodies and wells feel; rho stays matter alone (star formation and the drawing read it). Each well's mass, max(1, mass), is deposited too: "a well is the data that collapsed out of its basin, so the basin and its well balance" (matter.js:207–211).

Two solves. Bodies feel the field of matter + Data Matter + every well (ar, ac). Wells feel the field of matter + Data Matter + sites only (arW, acW), "a well does not pull on itself through the grid" (matter.js:241). The mean of whatever was deposited is subtracted before each solve.

Poisson. poisson() matter.js:254:

Φ_k = 4πG · δρ_k / λ_k,     λ_k = 2cos(2πk_r/GR) + 2cos(2πk_c/GC) − 4,     Φ_0 = 0
a = −∇Φ by central differences:  a_r = −(Φ[r+1] − Φ[r−1]) / (2B)

The B² of density per cell and of the grid Laplacian cancel (matter.js:261). The FFT is an in-place radix-2 transform (fft1, fft2, matter.js:36–58).

Reading back. accel() matter.js:331 interpolates the field at the body with the same four weights.

Dust. condense() matter.js:182: before the burst seeded bodies, each block with data became one body of its pulsing cells (the old start, now unused because seedBodies() sets seeded). After it, each sub-step, if the total of pulsing cells has grown by B² or more since last counted, one body of mass B² is laid at a block chosen in proportion to its data, for each B² of growth (matter.js:193–204). A drop in the total resets the count.

Worked case. Desktop, B = 2: 128 × 128 = 16,384 mesh cells, two FFT solves of that size per force evaluation, two force evaluations per sub-step (kick and kick), four sub-steps a flip: sixteen 2D FFTs of 16,384 points each per flip.

The method, in plain steps:

mesh side: 64 on a phone, 256 on a strong desktop, else 128;  B cells to a mesh cell
deposit every body (and well) on its four nearest mesh points by cloud-in-cell weights
solve Poisson by FFT:  Φ_k ← 4πG · δρ_k / λ_k;  pull ← −∇Φ by central differences
two solves: one felt by bodies (everything), one felt by wells (no wells)

The code:

// public/game-v8.4/app.js:1169 meshB()
function meshB() {
    const mobile = isPhone();
    const mem = navigator.deviceMemory || 4, cores = navigator.hardwareConcurrency || 4;
    const meshN = mobile ? 64 : (cores >= 12 && mem >= 8 ? 256 : 128);
    let b = 1; while (rows / b > meshN && b < 64) b *= 2;
    return b;
}

// public/game-v8.4/matter.js:254 poisson()
poisson(outR, outC) {
    const { B, GR, GC } = this;
    fft2(this.re, this.im, GR, GC, false);
    for (let kr = 0; kr < GR; kr++) for (let kc = 0; kc < GC; kc++) {
        const i = kr * GC + kc;
        if (!kr && !kc) { this.re[i] = 0; this.im[i] = 0; continue; }
        const lap = 2 * Math.cos((2 * Math.PI * kr) / GR) + 2 * Math.cos((2 * Math.PI * kc) / GC) - 4;
        const f = (4 * Math.PI * this.G) / lap;                  // Φ_k = 4πG·δρ_k / λ_k (the B² of density per cell and of the grid Laplacian cancel)
        this.re[i] *= f; this.im[i] *= f;
    }
    fft2(this.re, this.im, GR, GC, true);
    const at = (r, c) => ((r + GR) % GR) * GC + ((c + GC) % GC);
    for (let r = 0; r < GR; r++) for (let c = 0; c < GC; c++) {
        outR[r * GC + c] = -(this.re[at(r + 1, c)] - this.re[at(r - 1, c)]) / (2 * B);
        outC[r * GC + c] = -(this.re[at(r, c + 1)] - this.re[at(r, c - 1)]) / (2 * B);
    }
}

In the game

The mesh itself is never drawn; what it does is. Its pull is what gathers the smooth sky of the burst into filaments and knots along the lattice (Part 4.6), and what carries the clumps toward each other until they merge (Part 4.12).

  • The starlight skin. In 3D, once there are stars, each patch of the torus's skin glows by the real stars it holds, brighter with the log of their number (paintStarlight() scene3d.js:890), so the densest places the mesh has gathered blaze and the voids stay dark. A shader scatters tiny stars over it in proportion to that light (starSkinMaterial() scene3d.js:847).
  • Density in 2D. "Colour by → Density" in the Universe panel paints each cell by the matter density of its mesh block (Part 4.6), so the mesh's own resolution shows as blocks of B × B cells.
  • The dust. As the data goes on growing after the burst, condense() lays new bodies of dust where the data is (below); in the 2D field they appear as faint gray dots.
  • The cost. The HUD's Speed line, "physics … ms/Pulse · drawing … ms · … fps · busy …%" (app.js:4463), is mostly the mesh and the leapfrog (Part 4.16). The run's saved record keeps the device's block side as mesh_b (app.js:4475).

The scale model

The mesh resolves pulls down to about one block; inside that, Part 4.8's direct pull takes over for wells. Bodies do not pull each other directly at all: a body's own neighbors are felt only through the mesh. At B = 1 the mesh is the field itself. The block side follows the device, so a strong desktop resolves gravity twice as finely as an ordinary one on the same universe: a device-class choice.

Where the game and the theory differ

  • The resolution follows the device. BPT Part 3.11 has gravity "exact on the surface it is drawn on". The game solves it on a mesh whose side depends on the device (64 on a phone, 128 on most desktops, 256 on strong ones), so the same universe at the same model level is resolved twice as finely on a strong desktop as on an ordinary one, and bodies within a block do not feel each other's pull at all.
  • An unused start. The first branch of condense() (each block with data becoming one body) is the old start; it no longer runs, since seedBodies() sets seeded at the burst.

Fixed numbers

Number Where What it is Kind
64 meshB() app.js:1172 Mesh side on a phone CAP (device class)
128, 256 meshB() app.js:1172 Mesh side on ordinary and strong desktops CAP (device class)
12, 8 meshB() app.js:1172 Cores and GB that make a device strong CAP (device class)
4, 4 meshB() app.js:1171 Memory and cores assumed when unreported METHOD (defaults)
64 meshB() app.js:1173 Coarsest block side CAP
8 Matter constructor matter.js:77 Default B METHOD (overridden by meshB)
4 Matter constructor matter.js:80 Fewest blocks a side to run METHOD (FFT and differences need room)
power of 2 pow2 matter.js:60 Mesh sides must be powers of two METHOD (radix-2 FFT)
4π poisson() matter.js:261 Poisson's 4πG PHYSICS (Newtonian gravity)
2, 2, 4 poisson() matter.js:260 Eigenvalues of the 5-point Laplacian METHOD (exact for the grid)
2 poisson() matter.js:267–268 Central difference over 2B METHOD
0.5 matter.js:217, 232, 247, 341 Block centers at half a block METHOD (cloud-in-cell)
1 meshForces() matter.js:232 Floor on a well's mass on the grid METHOD
B² (64 at B = 8) condense() matter.js:199, 202 Mass of one body of dust METHOD (one block's worth)
2654435761 nextSeed() matter.js:95 Hash multiplier for body seeds METHOD

Part 4.8: The Direct Pull and the Particle–Particle Split

The BPT law

BPT does not state this; it is a game method that serves two things the book does state. The first is the pull and the horizon. BPT Part 2.4 (Event Horizons and Null Wells) takes Newtonian gravity as given and reads the horizon at the "event horizon scale r_s = 2GM/c²" as the boundary where a well's Pulse activity falls to null; Part 3.11 sets the G it uses. The second is the sites. BPT Part 3.14 (Proto Wells: Where Wells Will Form) says "a Proto Well is not a well. Formed in the data before the physical layer, it is the deepest place of the Data Matter, the seed of a halo (Part 3.13), and at the Physical Nova it becomes a site: where the gas will gather, where the first stars will light, and where a well will be born." A site therefore has no horizon and no point mass of its own: in the code it is the heart of the matter round it, and it pulls only through the grid, as that matter does (ruling 2026-10-29, matter.js:242–245). The direct pull below is how the game resolves Newton's law near a real well, where the mesh is too coarse.

The established physics

  • Newton's law with Plummer softening, a = GM·r̂/(r² + ε²), the softening "every N-body code uses" (matter.js:322); the P³M split of a short-range direct force and a long-range mesh force (Hockney & Eastwood 1988, cited at matter.js:335).
  • The Schwarzschild radius r_s = 2GM/c² (BPT Part 2.4).

The game's math

accel(b, wells, isWell) matter.js:331:

  • A site (b.site) feels the bodies' field alone, interpolated (matter.js:336–338). Sites pull nothing directly (if (w.site) continue).
  • A body feels the bodies' mesh field, plus each non-site well within three blocks directly, faded by near = max(0, 1 − d/(2B)) to nothing at two blocks (matter.js:352).
  • A well feels the wells' mesh field (matter, Data Matter, sites) plus every other non-site well directly at full strength, unless more than 256 wells pull (nPull > 256): then it is treated as a body (whole grid with wells included, plus direct pulls within two blocks, faded). Ruling 2026-10-29, after 15,000 sites at level 202 made 2 × 10⁸ pairs a sub-step and a step took 53 s.

The direct term (matter.js:351–354):

d² = dr² + dc² + ε²,   a = near · G · max(1, M) / d²,   along (dr, dc)/d
ε  = reach(w) = max(1, r_s, (10·G·max(1, M))^(1/3))        matter.js:324
r_s = horizon(w) = 2·G·max(1, M) / c²   (0 for a site)    matter.js:318

The (10GM)^(1/3) term: inside it one flip's pull would bend a path by more than a tenth of the distance, which a one-flip step cannot follow (matter.js:319–323). The softening is computed once per binning (w._soft).

Binning (also read from the wells' side in Chapter 3, Part 3.12). binWells() matter.js:272 sorts non-site wells into mesh blocks. If more than 8 pull and the mesh has more than 7 blocks a side, every well writes itself into the 7 × 7 blocks round it once, so a body's near list is one lookup (profiled 2026-10-28: 14 % of a physical step was rebuilding those lists). wellsNear() matter.js:291 returns every puller when there are 8 or fewer, or when the reach wraps the torus. binBodies() and bodiesNear() matter.js:304–316 do the same for bodies.

Worked case, desktop at level 6 or deeper with G_F ≈ 4.3 × 10⁻⁷ and c = 128: a well of 10⁴ cells has r_s = 2 × 4.3 × 10⁻⁷ × 10⁴ / 16,384 ≈ 5 × 10⁻⁷ cells, (10GM)^(1/3) = (0.043)^(1/3) ≈ 0.35, so ε = 1 cell: the softening is the one-cell floor, not the horizon.

The method, in plain steps:

a body: its mesh pull + each well within 3 blocks directly, fading to nothing by two blocks
a well: the wells' mesh + every other well directly (past 256 wells: treated as a body)
the direct pull ← near · G · M / (d² + ε²),   ε ← max(1, r_s, (10·G·M)^(1/3))

The code:

// public/game-v8.4/matter.js:318 horizon()
horizon(w) { if (w.site) return 0; return (2 * this.G * Math.max(1, w.mass || 1)) / (this.light * this.light); }   /* a site (app.js; book Part 3.14, Proto Wells: Where Wells Will Form) pulls but has no horizon: it swallows nothing */

// public/game-v8.4/matter.js:324 reach()
reach(w) { return Math.max(1, this.horizon(w), Math.cbrt(10 * this.G * Math.max(1, w.mass || 1))); }

// public/game-v8.4/matter.js:331 accel()
accel(b, wells, isWell = false) {
    /* ⚠️ MANY WELLS FEEL EACH OTHER AS THE BODIES DO (2026-10-29, the author: "the 202 universes ... just float"; profiled at level 202: with
       15,000 sites every well pulled every other directly, 2 × 10⁸ pairs a sub-step, a step took 53 s and the matter barely moved). Past
       256 wells a well feels the whole grid, wells included, and the wells within two blocks directly, fading as a body's do: the
       particle-particle/particle-mesh split every N-body code uses (Hockney & Eastwood 1988). Fewer, every pair directly, as before. */
    if (b.site) { const { B: B0, GR: R0, GC: C0 } = this, x = b.c / B0 - 0.5, y = b.r / B0 - 0.5, i0 = Math.floor(y), j0 = Math.floor(x), fy = y - i0, fx = x - j0; let ar = 0, ac = 0;   /* a site moves with the grid's pull alone */
        for (const [di, dj, q] of [[0, 0, (1 - fy) * (1 - fx)], [0, 1, (1 - fy) * fx], [1, 0, fy * (1 - fx)], [1, 1, fy * fx]]) { const k = (((i0 + di) % R0) + R0) % R0 * C0 + ((((j0 + dj) % C0) + C0) % C0); ar += this.ar[k] * q; ac += this.ac[k] * q; }
        return [ar, ac]; }
    const many = isWell && (this.nPull ?? wells.length) > 256; if (many) isWell = false;
    const { B, GR, GC } = this, FR = isWell ? this.arW : this.ar, FC = isWell ? this.acW : this.ac;
    const x = b.c / B - 0.5, y = b.r / B - 0.5, i0 = Math.floor(y), j0 = Math.floor(x), fy = y - i0, fx = x - j0;
    let ar = 0, ac = 0;
    for (const [di, dj, w] of [[0, 0, (1 - fy) * (1 - fx)], [0, 1, (1 - fy) * fx], [1, 0, fy * (1 - fx)], [1, 1, fy * fx]]) {
        const k = (((i0 + di) % GR) + GR) % GR * GC + ((((j0 + dj) % GC) + GC) % GC);
        ar += FR[k] * w; ac += FC[k] * w;
    }
    /* a body: only the wells within three blocks (the bins, while they hold this list of wells; a well moves less than a
       block between rebuilds); a well: every other well */
    for (const w of isWell ? wells : this.wellsNear(b.r, b.c, 3, wells)) {
        if (w === b || w.site) continue;
        const dr = this.dR(w.r, b.r), dc = this.dC(w.c, b.c), soft = w._soft ?? this.reach(w), d2 = dr * dr + dc * dc + soft * soft, d = Math.sqrt(d2);
        const near = isWell ? 1 : Math.max(0, 1 - Math.sqrt(dr * dr + dc * dc) / (2 * B)); if (!near) continue;
        const a = near * this.G * Math.max(1, w.mass || 1) / d2;
        ar += a * dr / d; ac += a * dc / d;
    }
    return [ar, ac];
}

In the game

The direct pull is what the player sees near the wells: clumps swinging round a well and on past it, or falling in (Part 4.12), and wells drifting through the matter toward each other until they merge (the merger of wells and its finds are in Chapter 3). In 3D every well is drawn where its pull has carried it, moved each slice by moveWells() (app.js:1312); a well inside a drawn galaxy is drawn small, a third of its mark, "a horizon is tiny next to its galaxy" (setWells() scene3d.js:1471–1475). The HUD's Wells line counts the sites still waiting for their wells: "… · N sites waiting" (app.js:2147–2148). No control changes the pull.

The scale model

The direct pull covers what the mesh cannot resolve, within two blocks. Beyond the 256-well switch, well–well pulls past two blocks come from the mesh, at its resolution. Both are numerical resolution, not physics, and change nothing at the level of the law: the same G and the same masses.

Fixed numbers

Number Where What it is Kind
3 accel() matter.js:349; binWells() matter.js:283 Blocks searched for a body's direct wells (7 × 7) METHOD (covers the 2-block fade)
2 accel() matter.js:352 Direct pull fades to zero at 2B METHOD (P³M split)
256 accel() matter.js:339 Wells pulling directly before wells go on the grid METHOD (P³M switch for cost)
8 binWells() matter.js:281; wellsNear() matter.js:293 Few enough wells to skip bins METHOD
7 binWells() matter.js:281 Mesh must exceed 7 blocks for the cache METHOD
10 reach() matter.js:324 Softening (10GM)^(1/3): a tenth of the distance bent a flip METHOD (resolution)
1 reach() matter.js:324 Softening floor, cells METHOD
1 accel() matter.js:353; horizon() matter.js:318 Floor on a well's mass METHOD
2 horizon() matter.js:318 r_s = 2GM/c² PHYSICS (Schwarzschild 1916; BPT Part 2.4)

Part 4.9: Dynamical Friction

The BPT law

BPT does not state this; it is established physics the game adds so that wells sink to the hearts of the clumps they move through (matter.js:359–363). It serves a picture the book does draw. BPT Part 3.14 (Wells per Galaxy) says most of a universe's wells "are the small ones its dying stars leave (Part 2.9), scattered through its galaxies, with one great well at each heart", and its Proto Wells become the sites "where a well will be born" at the heart of each halo. A heavy well moving through a cloud of lighter matter loses its speed to the wake it raises; without that loss a well knocked off center would orbit through its galaxy for ever instead of settling at its heart.

The established physics

Chandrasekhar (1943): a mass moving through a field of lighter bodies is slowed by the wake it raises, a = −4πG²Mρ lnΛ [erf(X) − (2X/√π)e^(−X²)] v/v³, X = v/(√2σ). The error function by Abramowitz & Stegun (1964) formula 7.1.26 (cited at matter.js:370).

The game's math

friction(w, sigma) matter.js:364, added to each well's acceleration at both half-kicks (wellAcc, matter.js:398):

ρ    = rho[block of w] / B²                         matter per cell, matter alone (no Data Matter)
v    = |v_w − v̄_local|                             v̄ from the deposited momentum (sample())
X    = v / (√2·σ)
lnΛ  = max(1, ln(max(1, 2B·v² / (G·M))))           b_max = two blocks
k    = 4π·G²·M·ρ·lnΛ
f    = k·(4/(3√π)) / (√2σ)³                         if X < 10⁻³ (slow: linear drag)
f    = k·[erf(X) − (2X/√π)e^(−X²)] / v³            otherwise
Δv   = −min(1, f) · v_rel

σ is the matter's spread of speeds about its local mean, σ = √(Σ|v − v̄|² / (2n)) over all bodies (matter.js:395–396), also kept as matter.sigma.

The method, in plain steps:

a well moving through matter is braked (Chandrasekhar):
    X ← v / (√2 · σ);   lnΛ ← ln(2B · v² / (G·M))
    f ← 4π · G² · M · ρ · lnΛ · [erf(X) − (2X/√π) · e^(−X²)] / v³
    v ← v − min(1, f) · v_rel

The code:

// public/game-v8.4/matter.js:364 friction()
friction(w, sigma) {
    const s = this.sample(w.r, w.c); if (!s) return [0, 0];
    const rho = this.rho[Math.floor(this.wrapR(w.r) / this.B) * this.GC + Math.floor(this.wrapC(w.c) / this.B)] / (this.B * this.B);
    const vr = (w.vr || 0) - s.vr, vc = (w.vc || 0) - s.vc, v = Math.hypot(vr, vc), M = Math.max(1, w.mass || 1);
    if (!(rho > 0) || !(sigma > 0)) return [0, 0];
    const X = v / (Math.SQRT2 * sigma), lnL = Math.max(1, Math.log(Math.max(1, (2 * this.B * v * v) / (this.G * M))));
    // erf by Abramowitz & Stegun 7.1.26; for a slow well the bracket is (4/(3√π)) X³, so the drag is linear in v
    const erf = (z) => { const t = 1 / (1 + 0.3275911 * z); return 1 - (((((1.061405429 * t - 1.453152027) * t) + 1.421413741) * t - 0.284496736) * t + 0.254829592) * t * Math.exp(-z * z); };
    const k = 4 * Math.PI * this.G * this.G * M * rho * lnL;
    const f = X < 1e-3 ? k * (4 / (3 * Math.sqrt(Math.PI))) / Math.pow(Math.SQRT2 * sigma, 3) : k * (erf(X) - (2 * X / Math.sqrt(Math.PI)) * Math.exp(-X * X)) / (v * v * v);
    const drop = Math.min(1, f);   // never more than stopping it against the matter in one flip
    return [-drop * vr, -drop * vc];
}

In the game

Friction has no readout of its own. The player sees its result: wells settle into the densest places of the matter and stay there, so that by the late life a deep universe "reads as galaxies round their central wells, not a field of dots" (comment at scene3d.js:1469–1470), each galaxy drawn round its well (Chapter 6). The matter's spread of speeds σ, computed for the friction, is also kept as matter.sigma, "the gas's temperature, for star formation" (matter.js:397), which Chapter 5 reads.

The scale model

Exact in form on the drawn field. The drag never exceeds stopping the well against the matter in one call (min(1, f)), a numerical bound.

Where the game and the theory differ

  • Friction is not diluted by the expansion. In Matter.step() the gravitational pull on a well is multiplied by gk = (a₀/a)³, as Matter Dilution asks (Part 4.4), but the friction added to it is not (wellAcc, matter.js:398): its G is the undiluted this.G. So through the life, while a < 1 and gk > 1, the friction is weaker against the pull than the physics would make it, and after the End of the Outward Expansion, when a > 1, stronger.

Fixed numbers

Number Where What it is Kind
4π matter.js:372 Chandrasekhar's prefactor PHYSICS (Chandrasekhar 1943)
√2, 2/√π, 4/(3√π) matter.js:369, 373 X = v/(√2σ); bracket and its slow limit PHYSICS (Chandrasekhar 1943)
2 matter.js:369 b_max = two blocks in lnΛ METHOD (mesh resolution)
1, 1 matter.js:369 Floors on lnΛ and on its argument METHOD
10⁻³ matter.js:373 X below which the slow limit is used METHOD
1 matter.js:374 Drag never more than stopping in one flip METHOD (stability)
0.3275911, 1.061405429, 1.453152027, 1.421413741, 0.284496736, 0.254829592 matter.js:371 erf approximation coefficients METHOD (Abramowitz & Stegun 7.1.26)
2 matter.js:396 σ² from ⟨ Δv ²⟩/2 in two dimensions PHYSICS (equipartition over two axes)

Part 4.10: The Dark Sector on the Mesh

The BPT law

BPT Part 3.13 (The Dark Sector: Data Matter, the Null Vacuum, and Vacuum Pressure) names the dark matter Data Matter: "the data that never becomes physical". At the Data Nova the Pulsecore pours its data onto the scaffold; at the Physical Nova part of it condenses into matter and "the rest stays data. From that moment it has mass, by the Data–Matter Equivalence of Part 2.9, but it was never resolved into charged particles, so it has nothing to emit, absorb or scatter light with." It gravitates, passes through itself, and is cold, "it moves slowly next to light and so clumps on every scale"; and "it comes first": the data is laid on the scaffold at the Data Nova, and only at the Physical Nova does matter "condense and fall into a web already there".

Its amount is the Data Matter Count with Failed Proto Wells:

N◍ / N_b = (1 − P⦰) · 16 · 4^L / ((13/3)² · 4^L − 16 · 4^L)

the skin laid before the physical layer, less what its failed Proto Wells return, against the data the core gathered until the Physical Nova. With the Dimensional Failure Law of BPT Part 3.9, P⦰ = 2^(−D) = 1/16 for D = 4 actual dimensions, Part 3.13 finds that "the count is N◍ / N_b = (15/16) × 144/25 = 27/5 = 5.40, against the measured 5.36 ± 0.06". The level cancels; only the number of actual dimensions remains. It thins with the expansion and slowly returns home, the Data Matter Return, ρ◍ = ρ◍⊚ · a^(−3) · exp(−Γ◍ · t); the sky bounds its lifetime above about 246 billion years (Alvi et al. 2022), so "at most about 5 % of the Data Matter can have returned in our 13.8 billion years".

The established physics

  • The measured cold dark matter ratio, Ω_c h²/Ω_b h² = 0.120/0.0224 ≈ 5.36 (Planck Collaboration 2020; BPT Part 3.13).
  • Dark matter lifetime at least about 246 Gyr (Alvi et al. 2022, cited at app.js:1338).
  • The cosmological principle: no band of the torus preferred.

In the 8.4 trial builds: the Data Matter falls

This was built and measured in the 8.4 trial builds (8.4.1 to 8.4.9). The live 8.4 was rebuilt from 8.3 on 31 October 2026 without it, so the live game's Data Matter is still the data's lay described above (darkField()); see Chapter 9, Part 9.6.

(30 October 2026.) In 8.3 the Data Matter's mass was the data's lay on the mesh, flattened row by row and smoothed, and the data itself kept circulating at light speed after the Physical Nova. It never fell, so it never built anything. BPT Part 3.13 says it is cold, passes through itself without colliding, clumps on every scale and comes first. From 8.4:

  • Its own bodies. At the Physical Nova the Data Matter gets one body for every datum on the field, laid by the same Zel'dovich start from the same ripples as the matter (sendOutMatter()). Each carries darkEach = M_data / N of the Data Matter's mass (darkField()), which falls as the Data Matter returns home.
  • The same gravity. They lay their mass on the mesh cloud-in-cell (depositDark() matter.js), move by the mesh's pull alone (gridAccel()) with the matter's expansion and Hubble drag, and never merge, form stars or meet the gas.
  • What is seen is 8.3's. The data you see keeps its light-speed circulation and 8.3's dim, even skin under the stars. A first version stopped the circulation and lit the skin by the Data Matter's density; at the third and fourth harmonics that turned the data's own pink and turquoise into a hard, pixelated mess (the author, 30 October 2026), and it was taken back the same day. The Data Matter's own bodies carry its mass and its motion; showing its web is still to be designed.

Measured (level 28, model level 5, node, 30 October 2026):

Start End
Data Matter clumping 0.04 1.77
Matter clumping 0.06 1.55 (8.3 reached 0.93)
Living stars none about 51,000 (8.3: 28,000)
Sites (merging as their halos fall together) 787 212
Physical step about 250 ms

The game's math

actualDimensions(L) app.js:1329: 2 at L ≤ 0, 3 at L = 1, 4 from L = 2. darkRatio() app.js:1331:

R◍ = (1 − 2^(−D)) · 144 / 25 = 5.4 for D = 4

At the burst (app.js:1244), matter.darkMass = Q·R◍ and ρ̄ for G includes it (Part 4.3).

(Superseded 18 November 2026: the Data Matter has its own collisionless particles, laid on the grid in meshForces; darkField() now only returns the Data Matter home and sets each particle's share, darkM. What follows is the prescribed field it was, kept as the record and as the fallback for a universe without particles. Chapter 9.)

darkField() app.js:1342, every sub-step:

  1. Return. Over dt flips since last call, back = darkMass·(1 − exp(−DM_RETURN_PER_LIFE·dt/(2·rupturePulses))), DM_RETURN_PER_LIFE = 11.0/246 ≈ 0.0447 per life (app.js:1341); the mass returned goes on the ledger as dataHome.
  2. Layout. Pulsing cells are counted per mesh block (cnt). Each row of blocks has its own mean replaced by the global mean, floor 0 (app.js:1352), so Data Matter "is even from band to band" (2026-10-28). Mass check (Codex, 17 November 2026; fixed in 8.7 on 29 November): the share k = darkMass/total was taken before the row correction, so wherever the floor bound the mesh held more than the ledger (counts [[0,4],[0,0]] deposit 1.25 M). In 8.7 the total is taken after the correction and the floor, so the mesh sums to darkMass exactly. Since 18 November this layout is a fallback only: the Data Matter is carried by particles and the path does not run in a normal universe.
  3. Mass. Each block gets cnt·darkMass/total. The first time it is set outright; after that it is smoothed, dark = 0.75·dark + 0.25·new (app.js:1355), since Data Matter is cold and slow while the data that lays it out circulates at light speed. This is a layout filter with no physical timescale: each call keeps 75 % of the old difference, so its smoothing depends on how many sub-steps a flip is cut into (Codex, 17 November 2026). It is not to be read as dynamics; the particles that replaced it on 18 November move under gravity and have no such filter.

meshForces() adds this.dark to the density bodies and wells feel (Part 4.7). The Data Matter does not cool, form stars or fall into horizons through Matter; its capture by wells is in stepWells() (Shapiro & Teukolsky 1983, app.js:848–866, documented with the wells in Chapter 3, Part 3.11).

Worked case: Q ≈ 77,300 cells (desktop, Part 4.5), darkMass = 417,400 cells at the burst. Over the life of 128 flips the return takes 1 − e^(−0.0447) ≈ 4.4 % of it.

The method, in plain steps:

Data Matter ← the matter × (1 − 2^(−D)) · 144 / 25 = 5.4 times it, at D = 4
each sub-step:
    a small share returns home: 1 − e^(−0.0447 · dt / life)
    lay it on the mesh where the data is, even from band to band
    smooth it: dark ← 0.75 · dark + 0.25 · new        (cold and slow)
it pulls, but never cools, makes stars or falls in through the matter

The code:

// public/game-v8.4/app.js:1331 darkRatio()
function darkRatio() { return uni ? (1 - Math.pow(2, -actualDimensions(uni.L))) * 144 / 25 : 0; }

// public/game-v8.4/app.js:1342 darkField()
function darkField() {
    if (!matter || !matter.ok || !(matter.darkMass > 0)) return;
    if (physStart !== null && uni) { const now = pulseCounter + subDone, dt = Math.max(0, now - (matter.darkAt ?? now)); matter.darkAt = now;
        if (dt > 0) { const back = matter.darkMass * (1 - Math.exp(-DM_RETURN_PER_LIFE * dt / Math.max(1, 2 * uni.rupturePulses))); matter.darkMass -= back; ledger.dataHome = (ledger.dataHome || 0) + back; } }
    const { B, GR, GC } = matter, n = GR * GC, cnt = new Float64Array(n); let tot = 0;
    for (let r = 0; r < GR * B; r++) { const row = pulserGrid[r]; if (!row) continue; for (let c = 0; c < GC * B; c++) if (row[c]) { cnt[Math.floor(r / B) * GC + Math.floor(c / B)]++; tot++; } }
    if (!tot) { matter.dark = null; return; }
    /* ⚠️ THE DATA MATTER IS EVEN FROM BAND TO BAND (2026-10-28; book Part 3.13 and the cosmological principle): it is laid as the
       data lies, but the data circulates round the tube and its share differs by band, and Data Matter, 5.4 times the matter,
       pulled the matter after it into one band. Each row of blocks keeps its own lumps, the filaments, about the mean of all. */
    { const gm = tot / n; for (let r = 0; r < GR; r++) { let rm = 0; for (let c = 0; c < GC; c++) rm += cnt[r * GC + c]; rm /= GC; for (let c = 0; c < GC; c++) cnt[r * GC + c] = Math.max(0, cnt[r * GC + c] - rm + gm); } }
    const k = matter.darkMass / tot;
    if (!matter.dark || matter.dark.length !== n) { matter.dark = new Float64Array(n); for (let i = 0; i < n; i++) matter.dark[i] = cnt[i] * k; return; }
    for (let i = 0; i < n; i++) matter.dark[i] = 0.75 * matter.dark[i] + 0.25 * cnt[i] * k;
}

In the game

(18 November 2026: its particles are still never drawn, but the web's density, theirs with the gas, glows on the torus; Methodology 9.15.) Data Matter is never drawn; true to the book, nothing about it touches light. The player meets it only through gravity: it is laid under the matter on the gravity mesh, outweighing it 27 to 5 wherever the data lies, and it is counted in the density that sets the universe's G (Part 4.3).

What is shown is its count. At the Physical Nova a toast reports the Proto Wells whose collapse failed (app.js:1375): "failed Proto Wells: N of M Proto Wells failed (one in 16: every dimension of theirs returned null) · K cells of their data went home to the Source and will be neither dark matter nor matter", the 16 being 2^D at four actual dimensions. The run's saved record keeps the universe's actual dimensions, its Data Matter ratio and its failed Proto Wells (dims, dark_ratio, failed_proto_wells, app.js:2215). The Data Matter's slow return is counted on the ledger as dataHome (app.js:1345), and what physical wells capture of it as dataCaptured (app.js:864; Chapter 3, Part 3.11). No control changes it.

The scale model

The Data Matter has no bodies: it is a density on the mesh that follows the data's layout. Its mass is the law's ratio to the matter actually sent out. Since the matter sent out is itself 6.76 times the book's ordinary matter count (Part 4.5), the absolute amount of Data Matter is the book's ratio applied to that larger base.

Where the game and the theory differ

  • Laid out, not moved. BPT's Data Matter is cold matter that gravitates, clumps on every scale and builds the web before the matter falls into it. The game's has no bodies and no motion of its own: each sub-step darkField() lays it out in proportion to the data's pulsing cells per mesh block, smoothed over sub-steps, with each row of blocks evened to the global mean. So it follows the layout of the data, which circulates at light speed, and not its own gravity or the matter's; it does not gather into halos ahead of the matter.
  • A larger base. The ratio is the book's, but it is applied to the matter the game sends out, which is 6.76 times the book's ordinary matter (Part 4.5), so the absolute amount of Data Matter is 6.76 times the book's too.

Fixed numbers

Number Where What it is Kind
144/25 darkRatio() app.js:1331 Data Matter Count, 16 / (25/9) BPT (Part 3.13, Data Matter Count)
2 (base) darkRatio() app.js:1331 Failure 2^(−D) BPT (Part 3.9, Dimensional Failure Law)
2, 3, 4 actualDimensions() app.js:1329 Actual dimensions by level BPT (Part 4.8, Prime Harmonics and the Dimensions)
11.0, 246 DM_RETURN_PER_LIFE app.js:1341 Most of the Data Matter that may return in a life PHYSICS (Alvi et al. 2022) and BPT (11.0 Gyr life at level 202, Chapter 1 Part D)
2 (×) darkField() app.js:1345 Flips per Tempo BPT (Part 1.10)
0.75, 0.25 darkField() app.js:1355 Smoothing of the Data Matter's layout over sub-steps METHOD (cold matter does not race with the data)
0 darkField() app.js:1352 Floor after the row-mean shift METHOD

Part 4.11: Gas That Cools Keeps Its Spin

The BPT law

BPT Part 3.12 (Ripples, Spin, and the Whirling Disks), in its section Gas That Cools Keeps Its Spin: "Gas can shed its energy, by radiating it away. As it radiates it loses the random and inward motion that held it up, but it cannot radiate its angular momentum, so it falls inward while keeping its spin, turns faster as it shrinks, and settles where its spin holds it up: a rotating disk." The book gives the laws of each step. The Cooling Time, t⊹ = 3 · k_B · T / (2 · n · Λ), with Λ the cooling function; "where the cooling time is shorter than the free-fall time (Part 6.10), t⊹ < t⇓, gas collapses as fast as gravity can pull it". The Spin-Up by Contraction, Ω₂ · R₂² = Ω₁ · R₁²: "gas falling to a tenth of its radius turns a hundred times faster". The Disk Size, R⊘ = λ⟲ · R⊡ / √2, about a fortieth of the clump for λ⟲ ≈ 0.035; and the Disk Rotation, v⊚ = √(G · M / R). The free-fall time is BPT Part 6.10's, t⇓ = √(3π / (32 · G · ρ)). Ruling 2026-10-27: "we should definitely be seeing the whirling disks" (matter.js:119).

The established physics

Rees & Ostriker (1977), Silk (1977), White & Rees (1978): dense gas cools far faster than it falls. Free-fall time t⇓ = √(3π/(32Gρ)) (BPT Part 6.10).

The game's math

Matter.cool(dt, gk, wells) matter.js:128, called once a sub-step between the second kick of bodies and of wells (matter.js:404):

clouds:   CL × CL cells, CL = matter.cloud (8 on desktop, Part 4.15)
mean      = total matter / number of clouds
skip a body unless its cloud holds ≥ COOL_DENSITY · mean,  COOL_DENSITY = 2
f_g       = gas / m                                     its gas share (stars do not cool)
g         = its acceleration (accel(), undiluted)
ρ         = cloud mass / CL²
t⇓        = √(3π / (32·G·gk·ρ))
t⊹        = COOL_FRACTION · t⇓,  COOL_FRACTION = 0.03
u         = v − v̄_cloud                                 its motion against its cloud
u∥        = (u · g) / |g|                               along the pull
lose      = f_g · (1 − e^(−dt/t⊹))
v        ← v − lose · u∥ · ĝ

Only the motion along the pull is removed; the motion across it is kept. So matter falling toward anything ends up circling it. The first version (radial to each block's center over 0.3 t⇓) was measured not to make disks, since block centers are not where matter falls (matter.js:124–126).

Worked case: a cloud at three times the mean with t⇓ of 20 flips cools in t⊹ = 0.6 flips; over one quarter-flip sub-step lose = f_g·(1 − e^(−0.42)) ≈ 0.34 f_g: a pure-gas body loses a third of its fall speed each sub-step.

The method, in plain steps:

for each body in a dense cloud (at least twice the mean):
    t_fall ← √(3π / (32 · G · ρ));   t_cool ← 0.03 · t_fall
    u∥ ← its motion along the pull, against the cloud's mean
    v ← v − (gas share) · (1 − e^(−dt / t_cool)) · u∥
only the fall is removed, so cooling matter ends up circling what it falls toward

The code:

// public/game-v8.4/matter.js:128 cool()
cool(dt, gk = 1, wells = []) {
    const CL = this.cloud || 8, GRc = Math.max(1, Math.floor(this.rows / CL)), GCc = Math.max(1, Math.floor(this.cols / CL)), n = GRc * GCc;
    const m = new Float64Array(n), vr = new Float64Array(n), vc = new Float64Array(n);
    const idx = (b) => Math.min(GRc - 1, Math.floor(this.wrapR(b.r) / CL)) * GCc + Math.min(GCc - 1, Math.floor(this.wrapC(b.c) / CL));
    let tot = 0;
    for (const b of this.bodies) { const k = idx(b), w = b.m || 0; vr[k] += w * b.vr; vc[k] += w * b.vc; m[k] += w; tot += w; }
    const mean = tot / n, G = this.G * gk;
    if (!(G > 0)) return;
    for (const b of this.bodies) {
        const k = idx(b); if (m[k] < COOL_DENSITY * mean) continue;
        const gas = b.gas === undefined ? b.m : b.gas, fg = b.m > 0 ? gas / b.m : 0; if (fg <= 0) continue;
        const [ar, ac] = this.accel(b, wells), g = Math.hypot(ar, ac); if (g < 1e-12) continue;
        const rho = m[k] / (CL * CL), tff = Math.sqrt(3 * Math.PI / (32 * G * rho)), tc = COOL_FRACTION * tff;
        const ur = b.vr - vr[k] / m[k], uc = b.vc - vc[k] / m[k], along = (ur * ar + uc * ac) / g, lose = fg * (1 - Math.exp(-dt / tc));
        b.vr -= lose * along * ar / g; b.vc -= lose * along * ac / g;
    }
}

In the game

This law is why the player sees things turn. Matter falling into a clump loses its fall but not its sideways motion, so through the middle of the life the clumps along the filaments begin to swirl, and the heaviest settle into disks.

  • Clumps swirl. In 3D each body's points circle its center at the Kepler rate ω = √(G·gk·m/r³) for their place in it, inner points faster, in the sense of the body's own spin from its mergers (setMatter() scene3d.js:790–798). This turn is drawn: it shows the clump's spin, it is not the cooled matter's own orbit.
  • Disks. The 160 heaviest bodies of at least one cloud's mass each carry a spiral accretion-disk sprite, "warm arms winding in to a bright inner edge" (scene3d.js:943), lying on the skin, turning in the body's sense, sized by its mass, orange, and blue for a body bound as a planet (setBodyDisks() scene3d.js:989, placeBodyDisks() scene3d.js:1004).
  • Galaxies read their turn. When the player taps a well after the universe has returned to the Source, its banner describes the galaxy round it, including its share of ordered rotation, "… galaxy · … · κ_rot … · …" (galaxyOf() app.js:3000, text at app.js:3065; Chapter 6).

No control changes the cooling.

The scale model

The cloud is the same share of the universe on every device (Part 4.15). COOL_FRACTION is far longer than real cooling in dense cores, which a cell cannot resolve; it is the named choice.

Where the game and the theory differ

  • A fixed cooling time. BPT's Cooling Time follows the gas's temperature, density and metals through the cooling function Λ. Matter.cool() uses one fixed share of the free-fall time, t⊹ = 0.03 t⇓, for every cloud above twice the mean. The cooling function itself is in heat.js (Part 4.14), which decides how much of a galaxy's gas can form stars; the two are not tied together.
  • Only the motion along the pull is shed. BPT has cooling gas lose "the random and inward motion that held it up". The code removes only the part of a body's motion against its cloud that lies along the pull, so random motion across the pull is kept along with the spin.

Fixed numbers

Number Where What it is Kind
2 COOL_DENSITY matter.js:59 Clouds above twice the mean cool METHOD (named choice)
0.03 COOL_FRACTION matter.js:59 t⊹ = 0.03 t⇓ METHOD (named choice; Rees & Ostriker 1977 for t⊹ ≪ t⇓)
3π/32 matter.js:140 Free-fall time PHYSICS (BPT Part 6.10, Free-Fall Time)
8 matter.js:129 Default cloud side, cells METHOD (overridden by setCloud)
1 matter.js:129 Floor on clouds a side METHOD
10⁻¹² matter.js:139 Least pull for cooling METHOD

Part 4.12: Falls, Mergers, New Wells and Planets

The BPT law

Three laws of the book meet in this code.

  • The horizon. BPT Part 2.4 (Event Horizons and Null Wells) reads the horizon at "event horizon scale r_s = 2GM/c²" as a computational boundary, where a well's Pulse activity falls to null; what crosses it is in.
  • The birth of a well. BPT Part 6.3 (Null Wells and the Birth of New Universes) states the Formation Condition, ℜ⌂(x, τ) ≥ ℜρ⨶ = k × ρ_P × 𝒞→²: where the local recursive tension density reaches its critical threshold, a region makes the transition to the null state and a Null Well forms. The code reads it as the hoop test, 2Gm/c² ≥ size (matter.js:30–33). BPT Part 3.14 (Proto Wells: Where Wells Will Form) adds which collapses actually happen: "No Null Well has ever been seen to form except by collapse: a star's core falling in, with a supernova or without one, … or, in the first few hundred million years, a whole cloud of gas falling in at once", so that "a well is born at a site in one of two ways", by direct collapse early or from a dying star.
  • Spin from orbit. BPT Part 3.12 (Where Spin Comes From) gives "the book's own rule that spin is born of orbit": "a single pulse cannot carry spin, a merger of two wells gives a universe its spin, and the uneven pull of neighbours gives every clump of matter its own". So a merger's orbital angular momentum becomes the merged body's spin.

The planet test is the game's own: BPT does not define when a body counts as a planet. The book counts planets among what a universe runs, "stars, gas and planets" (BPT Part 3.15).

The established physics

  • Orbital pericenter from energy and angular momentum, r_p = L²/(GM(1 + e)), e = √(1 + 2EL²/(GM)²) (Kepler problem).
  • Capture when the relative speed is below the pair's escape speed.
  • Hill radius r_H = a(m/3M)^(1/3).
  • The largest spin an accreting hole reaches, a ≤ 0.998 (Thorne 1974).

The game's math

All in Matter.step(), after the kicks and frame dragging.

Falls (matter.js:428–443). For each well, the bodies near enough to reach its horizon this step (R blocks from the fastest closing speed) are tested. A body falls in if d < r_s, or if its pericenter is inside r_s, it is moving inward, and it reaches r_s within this step (d − r_s ≤ |v|·dt). The horizon is smaller than a cell, so a body would jump past it between steps; the orbit decides (ruling 2026-10-26: "wells should eat the stars, just not all of them"). Absorbed mass is added to the well in stepMatterPost() app.js:688.

Mergers (matter.js:454–474). Bodies are hashed by whole cell (⌊r⌋·65536 + ⌊c⌋). A second body in an occupied cell merges with the first if their relative speed squared is at most 2G(m₁ + m₂)/0.5, the escape speed at half a cell; otherwise it passes through. A merger keeps mass, momentum and center of mass; adds the pair's orbital angular momentum μ(dc·vr − dr·vc) to spin s; joins gas, metals, stars and pending star mass (Chapter 5). The first 64 mergers of a step are passed to the scene for its flashes. Merging within one cell only, because merging on touch at size √(m/π) chained the whole universe into one body in one flip (matter.js:449–452).

New wells (matter.js:478–482). A body becomes a well if 2Gm/c² ≥ √(m/π), its size packed one quantum to a cell. At the code's light speed no body passes it (below).

Planets (findPlanets() matter.js:488). A body of at least full cells (one cloud's mass, CL², Part 4.15) whose nearest well within three blocks is at least two cells away and binds it (E = v²/2 − GM/d < 0) counts a step toward being a planet; on its sixth bound step it is reported once with its orbit, mass, spin, Hill radius and speed. A well with two or more such planets is a system, reported once. These go into the collection (app.js:697–705).

Spin and frame dragging are documented in Chapter 3, Part 3.9, and the hoop test from the wells' side in Part 3.8. Their fixed numbers (0.998, 10⁻⁷, ±0.5) are tabled there.

The method, in plain steps:

falls: a body near a well falls in if it is inside r_s, or its orbit dips inside r_s and it gets there this step
mergers: two bodies in one cell merge if they are slower than escape at half a cell
    mass, momentum and centre kept; the pair's orbit added to the spin; gas, metals and stars joined
new wells: a body with 2Gm / c² ≥ √(m / π) collapses into a well
planets: a cloud-sized body bound to a well for six steps is a planet; two around one well, a system

The code:

// public/game-v8.4/matter.js:453
// bodies within a cell merge, keeping mass and momentum (a hash of cells finds neighbours)
const cell = new Map(), merged = [];
for (const b of keep) {
    const key = Math.floor(b.r) * 65536 + Math.floor(b.c);
    const o = cell.get(key);
    // they merge only if captured: their relative speed below the pair's escape speed at half a cell; a fast
    // fly-by passes through (and keeps its own place in the hash's next cell over)
    if (o && ((b.vr - o.vr) ** 2 + (b.vc - o.vc) ** 2) > 2 * this.G * (o.m + b.m) / 0.5) { merged.push(b); continue; }
    if (o) {
        // spin is born of orbit: the pair's orbital angular momentum about their centre of mass becomes the merged body's spin
        const m = o.m + b.m, mu = (o.m * b.m) / m, dr = this.dR(b.r, o.r), dc = this.dC(b.c, o.c), vr = b.vr - o.vr, vc = b.vc - o.vc;
        o.s = (o.s || 0) + (b.s || 0) + mu * (dc * vr - dr * vc);
        if (b.m > o.m) o.seed = b.seed;
        /* the gas and the stars of both go on in the merged body (stars.js) */
        o.gas = (o.gas === undefined ? o.m : o.gas) + (b.gas === undefined ? b.m : b.gas); o.zm = (o.zm || 0) + (b.zm || 0);
        if (b.pop) { o.pop = (o.pop || []).concat(b.pop); o.starsV = (o.starsV || 0) + (b.starsV || 0) + 1; }
        o.pend = (o.pend || 0) + (b.pend || 0);
        o.r = this.wrapR(o.r + dr * b.m / m); o.c = this.wrapC(o.c + dc * b.m / m); o.vr = (o.vr * o.m + b.vr * b.m) / m; o.vc = (o.vc * o.m + b.vc * b.m) / m; o.m = m;
        if (out.merges.length < 64) out.merges.push({ r: o.r, c: o.c, m });   // a star merger, for the flash
    }
    else { cell.set(key, b); merged.push(b); }
}

// public/game-v8.4/matter.js:488 findPlanets()
findPlanets(wells, out) {
    if (!wells.length) return;
    const perWell = new Map();
    for (const b of this.bodies) {
        if (b.m < this.full) continue;
        let best = null, bd = Infinity;
        for (const w of this.wellsNear(b.r, b.c, 3, wells)) { const d = Math.hypot(this.dR(b.r, w.r), this.dC(b.c, w.c)); if (d < bd) { bd = d; best = w; } }
        if (!best || bd < 2) continue;
        const E = 0.5 * (b.vr * b.vr + b.vc * b.vc) - this.G * Math.max(1, best.mass || 1) / bd;
        if (E >= 0) continue;                               // not bound
        if (!b.id) b.id = `p${this.nextId++}`;
        const k = (this.planets.get(b.id) || 0) + 1; this.planets.set(b.id, k);
        perWell.set(best.id, (perWell.get(best.id) || 0) + 1);
        if (k === 6 && !this.planetSeen.has(b.id)) {
            this.planetSeen.add(b.id);
            out.planets.push({ r: b.r, c: b.c, well: best.id, orbit: Math.round(bd), mass: Math.round(b.m), spin: +this.spinParam(b).toFixed(3), hill: +(bd * Math.cbrt(b.m / (3 * Math.max(1, best.mass || 1)))).toFixed(1), speed: +Math.hypot(b.vr, b.vc).toFixed(3) });
        }
    }
    for (const [wid, n] of perWell) if (n >= 2 && !this.systemsSeen.has(wid)) { this.systemsSeen.add(wid); out.systems.push({ well: wid, planets: n }); }
}

In the game

  • Falls. A body that falls into a well vanishes from the sky, and its mass joins the well's; swallowed matter can make the well shine as it feeds (measureFeeding(), Chapter 5). The HUD's Void line adds "· N into wells" once anything has fallen in (app.js:2155, counted at app.js:689).
  • Mergers. Each merger flashes where it happened, a warm white point growing as it fades, larger for heavier pairs, for a short while (stepFlashes() scene3d.js:1049, FLASH_LIFE scene3d.js:18). A merged body's points re-scatter for its new mass, and its stars turn in the sense of the spin the merger gave it (Part 4.11).
  • Planets and systems. A planet is announced by a find card, "A planet" (●): "Matter bound to well W · orbit N cells, M cells of matter, spin s, Hill radius h cells" (finds.js:52–53, app.js:246–247). A system is "A system" (☉): "Well W holds N planets: a system" (finds.js:54–55). The first of each in a universe is announced, later ones go into the collection quietly, and a system of five planets or more is announced again (app.js:697–705). The collection panel counts "planets", "systems" and "wells born of matter" (app.js:273). In 3D a body bound as a planet carries a blue accretion disk instead of an orange one (Part 4.11).
  • New wells. A well born of a clump would be announced as "A well is born" (◉): "A clump fell inside its own Schwarzschild radius and became a well · M cells, spin s from its mergers" (finds.js:56–57). As the section below says, in 8.4 this card does not come.

No control changes any of these.

The scale model

A body is a sample of q cells, not a star; a "planet" is a bound body of one cloud's mass, so on the scale model it stands for a bound clump, not a planet of our sky. The hash assumes fewer than 65,536 columns, true for every field (at most 1,024).

Where the game and the theory differ

  • The hoop test cannot pass at the code's light speed. Solving 2Gm/c² ≥ √(m/π) for m: m ≥ (c²/(2G))²/π. Desktop at level 6 or deeper, G_F ≈ 4.3 × 10⁻⁷, c = 128: m ≥ (16,384/(8.6 × 10⁻⁷))²/π ≈ 1.2 × 10²⁰ cells, against about 77,300 cells of matter in the whole universe. Phone (G_F ≈ 6.8 × 10⁻⁶, c = 32): m ≥ about 1.8 × 10¹⁵ cells against about 4,900. The test was written when light was one cell a flip (matter.js:477), when it could pass. In 8.4 every well born of matter comes from a dying star or a direct collapse at a site (Chapter 5 and the sites in Chapter 3, Part 3.7), never from this test, and the births code in stepMatterPost() (app.js:690–696) is unreachable in practice. The outcome agrees with BPT Part 3.14, which allows only those two ways; the code that would make a third does not run.
  • Mergers only within a cell. Two bodies merge only when they share a cell and are bound, not when they touch at their size √(m/π): merging on touch chained the whole universe into one body in one flip (matter.js:449–452). It is a resolution choice, not the physics of colliding clumps.

Fixed numbers

Number Where What it is Kind
1 matter.js:433 Extra block in the fall search METHOD
65536 matter.js:456 Cell hash stride METHOD (fields are under 65,536 wide)
2, 0.5 matter.js:460 Capture below escape speed at half a cell PHYSICS (escape speed) with METHOD distance
64 matter.js:471 Mergers reported per step for flashes CAP (drawing)
2 matter.js:479 Schwarzschild radius in the hoop test PHYSICS (BPT Part 2.4)
π matter.js:479 Size √(m/π), one quantum a cell METHOD (packing choice)
64 full matter.js:89 Planet's least mass, overwritten by CL² CAP (definition floor on a count)
2 findPlanets() matter.js:495 Nearest well at least two cells away METHOD (inside the softening)
3 findPlanets() matter.js:494 Blocks searched for a planet's well METHOD
6 findPlanets() matter.js:501 Bound steps before a planet is reported METHOD (persistence test)
2 findPlanets() matter.js:506 Planets that make a system METHOD (definition, matter.js:29)
3 findPlanets() matter.js:503 Hill radius a(m/3M)^(1/3) PHYSICS (Hill sphere)
1 circular() matter.js:113 Unused helper (no caller in 8.4) METHOD (dead code)
5 stepMatterPost() app.js:703 A system of five or more planets is announced DISPLAY

Part 4.13: Wells as Drains of Data

The BPT law

BPT Part 3.9 (Fractal Progeny) makes Null Wells "not dead ends but funnels. They gather the accumulated records of recursion—matter, energy, and informational states—and channel them back toward the foundational substrate." Its Data Funnel Return Law is

Φ⟸ = ∫∫ ρℹ(r, θ) × v⟸(r) dA

the "data flux funneled through Null Well horizons back to the substrate": the Data Density Field ρℹ near the horizon, carried in at the Infall Velocity v⟸ of information-carrying matter, summed over the horizon's area. "Information density collapses inward, encoded onto the horizon, and flows through return channels"; nothing is lost. BPT Part 2.9 adds the Data–Matter Equivalence, N⚛ = m_H · 𝒞→² / (k_B · T · ln 2), "the bits one atom of matter is worth": every particle is a swarm of data, so heavy clumps of matter turn the data round them too, without swallowing it (ruling 2026-10-26, app.js:825–827).

The established physics

  • Free fall from rest: v = √(2GM/r).
  • Kepler's rate Ω = √(GM/r³); Lense–Thirring frame dragging Ω = 2GJ/(c²r³), J = aGM²/c (Lense & Thirring 1918).

The game's math

WellDynamics.step(grids, rows, cols, wells) gravity.js:43 (its driver is also read in Chapter 3, Part 3.11), once a flip from stepWells() app.js:818, on the data grids (lit, color, pulser, exposure, fold):

reachAll = min(reach, ⌊min(rows, cols)/4⌋),   reach = 24 by default (gravity.js:33; app.js:2047 sets only G)
per well:  R = max(1, min(reachAll, w.reach))
swirl (physical wells only), ring k from R down to 1:
   ω_k  = sense·√(G·M/k³) + 2·G²·a·M² / (c³·k³)        radians a flip
   acc += ω_k · k;  shift the ring's cells by ⌊acc⌋ whole cells
infall (every well except swirl-only), ring k from 1 up to R:
   v_k  = min(c, √(2GM/k))
   acc += v_k; if acc ≥ 1, one is taken off it and every data cell on ring k moves one step inward if that cell is empty;
   at k = 1 it is absorbed: the well's count rises by one

Data is never made or doubled: a cell moves only into an empty place, so data piles up near the well (gravity.js:4–7). The frame-drag term is Ω = 2GJ/(c²k³) with J = aGM²/c, written out.

ringPoints(k) gravity.js:19 lists the ring's cells in order, at least 8 sample angles, about 2πk, with each one's inward neighbor.

The driver stepWells() (app.js:818–870):

  • G = universeG() (Part 4.3, the Rupture Rule G, not the matter's), c = lightCells().
  • Wells and sites; sites are swirl-only (they turn data and swallow none). Proto Wells (data wells) only fall data in, they do not swirl.
  • The heaviest 24 bodies of at least 16 cells are added as swirl-only (app.js:829–830).
  • With more than 24 non-site wells, each well's reach is half the distance to its nearest neighbor (at least 2), found through a grid of bins about two wells' spacing wide (app.js:838–845).
  • The accumulator map is cleared if it passes 40,000 entries (app.js:831).
  • What falls in: before the Physical Nova it adds to the well's mass; after it, for physical wells, it streams through, counted on the ledger as dataThrough, not added (ruling 2026-10-28; the capture of Data Matter that is added is in Chapter 3).

The method, in plain steps:

each flip, each well acts on the data cells round it, out to its reach:
    swirl (physical wells): turn ring k by ω_k = √(G·M / k³) + the frame drag 2·G²·a·M² / (c³·k³)
    infall: move ring k's data one cell inward at v_k = min(c, √(2GM / k)), into empty places only
    at ring 1 the data is absorbed
data is never made or doubled: it only moves into empty places

The code:

// public/game-v8.4/gravity.js:19 ringPoints()
function ringPoints(k) {
    const n = Math.max(8, Math.round(2 * Math.PI * k));
    const seen = new Set(), pts = [];
    for (let i = 0; i < n; i++) {
        const a = (i / n) * Math.PI * 2;
        const dr = Math.round(k * Math.sin(a)), dc = Math.round(k * Math.cos(a));
        const key = dr * 4096 + dc; if (seen.has(key)) continue; seen.add(key);
        const kin = Math.max(0, k - 1);
        pts.push({ dr, dc, ir: Math.round(kin * Math.sin(a)), ic: Math.round(kin * Math.cos(a)) });
    }
    return pts;
}

// public/game-v8.4/gravity.js:43 step()
    step(grids, rows, cols, wells) {
        const pulser = grids[2];
        const absorbed = new Map(), moved = [];
        const reachAll = Math.min(this.reach, Math.floor(Math.min(rows, cols) / 4));
        const at = (r, c) => [((r % rows) + rows) % rows, ((c % cols) + cols) % cols];
        for (const w of wells) {
            const M = Math.max(1, w.mass || 1), G = this.G, sense = (w.spin || 0) < 0 ? -1 : 1, reach = Math.max(1, Math.min(reachAll, w.reach || reachAll));   /* 8.2: out to its share of the field */
            const r0 = Math.round(w.r), c0 = Math.round(w.c);
            // swirl first, outside in, so each ring turns as a whole
            if (w.physical && G > 0) {
                for (let k = reach; k >= 1; k--) {
                    const pts = this.ring(k);
                    const c = this.c || 1, omega = sense * Math.sqrt((G * M) / (k * k * k)) + (2 * G * G * (w.spin || 0) * M * M) / (c * c * c * k * k * k);
                    const key = `${w.key}|${k}|turn`;
                    const acc = (this.acc.get(key) || 0) + omega * k;           // cells along the ring
                    const steps = Math.trunc(acc);
                    this.acc.set(key, acc - steps);
                    if (!steps) continue;
                    const cells = pts.map(p => at(r0 + p.dr, c0 + p.dc));
                    const n = cells.length, shift = ((steps % n) + n) % n;
                    if (!shift) continue;
                    for (const g of grids) {
                        const vals = cells.map(([r, c]) => g[r][c]);
                        for (let i = 0; i < n; i++) { const [r, c] = cells[(i + shift) % n]; g[r][c] = vals[i]; }
                    }
                    for (const rc of cells) moved.push(rc);
                }
            }
            // infall, inside out, so the room a fall makes is filled from outside the same flip
            /* a cluster of stars turns its data but does not swallow it (swirlOnly, 2026-10-26: the Data–Matter Equivalence, book Part 2.9) */
            if (G > 0 && !w.swirlOnly) {
                for (let k = 1; k <= reach; k++) {
                    const pts = this.ring(k);
                    const v = Math.min(this.c || 1, Math.sqrt((2 * G * M) / k));
                    const key = `${w.key}|${k}|in`;
                    const acc = (this.acc.get(key) || 0) + v;
                    if (acc < 1) { this.acc.set(key, acc); continue; }
                    this.acc.set(key, acc - 1);
                    for (const p of pts) {
                        const [r, c] = at(r0 + p.dr, c0 + p.dc);
…

In the game

This is the most direct picture the game gives of a well. In the 2D field, and on the torus's skin in 3D, which is the same field, the data cells round each physical well are carried round it in rings, the inner rings faster than the outer, so the data winds into spiral arms; and the cells nearest it step inward into every empty place, piling up round the well "as an accretion disc does" (gravity.js:4–10), until they reach it and are gone. A Proto Well, before the Physical Nova, only draws the data in; a site only turns it. The heaviest clumps of matter turn the data round them as well. In 3D, once there are stars, the data under each of those clumps glows, brightest at the clump and falling as 1/√k to nothing at the edge of the swirl, while the rest of the data lies dim under the stars (drawFieldTexture() app.js:330–348, CLUSTER_GLOW app.js:308).

What falls in is counted. Before the Physical Nova it adds to the Proto Well's mass; the HUD's Void line counts what has gone "into wells" (app.js:2155, with the matter that falls, Part 4.12, and the Data Matter captured, Chapter 3). After it, a physical well's data streams on through, counted on the ledger as dataThrough but not added. No control changes the drains: gravity.js:13–14 says "Nothing here is a free coupling (the panel's 'Well pull' and 'Well swirl' are gone, 2026-10-24)".

The scale model

The data drains run on the cells of the drawn field with the Rupture Rule G (Part 4.3), in whole-cell moves, so they keep the data exactly: nothing is made or doubled. A ring of the drawn field stands for the same share of the universe's area as on the full field; how far out the drains reach, and which clumps turn the data, is set out below.

Where the game and the theory differ

  • A fixed reach. The law sums over everything falling toward the horizon. The drains run at most 24 rings out from a well (16 on a phone's 64-cell field, by the quarter-field rule), about a tenth of a desktop field, whatever the well's mass; with more than 24 wells, out to half the way to the nearest neighbor.
  • Only the heaviest clumps turn the data. By the Data–Matter Equivalence every clump of matter turns the data round it; the code lets only the heaviest 24 bodies of at least 16 cells do so.
  • The fall runs at most one cell a flip. The stated infall speed is v_k = min(c, √(2GM/k)). The code adds v_k to a ring's accumulator each flip but moves the ring's data at most one step inward a flip, taking one unit off (gravity.js:78–80). Where √(2GM/k) is more than one cell a flip, the data falls at one cell a flip, and the rest of the accumulator only grows, until the map is cleared at 40,000 entries.
  • The Rupture Rule G. The drains use G_R, not the matter's G_F (Part 4.3).

Fixed numbers

Number Where What it is Kind
24 WellDynamics gravity.js:33 Rings a well reaches CAP
4 gravity.js:46 Reach at most a quarter of the field CAP
1 gravity.js:49 Least reach METHOD
8 ringPoints() gravity.js:20 Fewest samples on a ring METHOD
2π ringPoints() gravity.js:20 Samples ≈ circumference METHOD
4096 ringPoints() gravity.js:25 Key stride for de-duplicating cells METHOD
2 gravity.js:55 Frame drag 2GJ/(c²k³) PHYSICS (Lense & Thirring 1918)
2 gravity.js:76 Free-fall speed √(2GM/k) PHYSICS
1 gravity.js:79 One step inward per whole cell of accumulated travel METHOD
24 stepWells() app.js:829 Clumps of matter that swirl data CAP
16 stepWells() app.js:829 Least mass of a swirling clump, cells CAP (floor)
40000 stepWells() app.js:831 Accumulator entries before clearing METHOD (memory bound)
24 stepWells() app.js:838 Wells beyond which reach follows the nearest neighbor METHOD (cost switch)
2, 2 stepWells() app.js:840, 845 Bin side two spacings; least reach two cells METHOD

Part 4.14: The Heat of the Universe

The BPT law

BPT Part 3.12, The Heat of the Universe: Cooling Makes the Structures: "Gravity gathers the gas; cooling decides what it becomes. Gas falling into a clump is heated by the fall, and it can go on collapsing only if it radiates that heat away faster than it falls." That one comparison, the book says, made at every scale, "is why the first stars were giants, why the smallest galaxies were starved, why ordinary galaxies are fed by cold streams, and why the largest go red and dead". Its laws: the Radiation Temperature, T_γ = T_γ0 · (1 + z), T_γ0 = 2.725 K, below which no gas cools; the Virial Temperature, T_vir = μ · m_p · v_c² / (2 · k_B), μ ≈ 0.59 when ionized, "about 10⁴ K for an orbit of 17 km/s, 10⁶ K for 165 km/s"; the Cooling Time against the free-fall time (Part 4.11). Its Structure by Structure section walks the scales: metal-free gas in clumps above about 10³ K cools only through molecular hydrogen, and above a critical metallicity of about 10^(−3.5) of the Sun's it cools to ordinary stars; clumps above about 10⁴ K cool through atomic hydrogen; reionization starves the smallest by the Baryon Retention, f_b = f_b0 / (1 + (2^(2/3) − 1) · (v_f / v_c)^6)^(3/2); and the halos of the largest are kept hot by their wells. The universe's times are read as shares of its life, the life being ours at level 202, 11.0 Gyr (BPT Chapter 1, Part D).

The established physics

All named in the code (heat.js:1–14, 31–38):

  • Cooling function Λ_N in collisional ionization equilibrium (Sutherland & Dopita 1993), tabled at log T = 4.0–8.5 and [Fe/H] = −∞, −3, −2, −1.5, −1, −0.5, 0, +0.5; solar metal fraction 0.019 (Anders & Grevesse 1989).
  • Cooling time t⊹ = (3/2)(n_e + n_t)k_BT/(n_e n_t n_H Λ_N); free-fall t⇓ = √(3π/(32Gρ)); virial temperature T = μm_pv²/(2k_B), μ = 0.59.
  • Planck 2018 ΛCDM (H₀ = 67.7, Ω_m = 0.31): our scale factor at 11.0 Gyr, 0.814; mean hydrogen today 1.9 × 10⁻⁷ cm⁻³; mean matter density 0.31 × 8.62 × 10⁻³⁰ g cm⁻³; virial overdensity 200.
  • Critical metallicity 10^(−3.5) Z☉ (Bromm et al. 2001); filtering speed 25 km/s (Okamoto, Gao & Theuns 2008), in the form of Gnedin (2000); reionization done by about 0.75 Gyr; hot halos kept hot by their wells (Croton et al. 2006); CMB today 2.725 K.

The game's math

galaxyHeat({ beta, aGame, lifeFrac, Z, feeding }) heat.js:66:

a     = max(10⁻⁶, 0.814 · aGame)                 our scale factor at the same share of the life
T_cmb = 2.725 / a;  T_vir = 0.59·m_p·(β·c)²/(2k_B);  T = max(T_vir, T_cmb)
n_H   = 200 · 1.9×10⁻⁷ / a³;   t⇓ = freeFall(200 · ρ_m0 / a³)
reionized = lifeFrac ≥ 0.75/11.0
if T < 10⁴ K:   can cool if Z ≥ Z_crit, or T ≥ 10³ K and not reionized (H₂)
                f = 1 if it can, else 0
else:           t⊹ = coolTime(T, n_H, Z);  f = min(1, t⇓/t⊹)
                hot halo (t⊹ ≥ t⇓) with its well feeding at ≥ 0.01 Eddington: f = 0
if reionized:   f ← f · [1 + (2^(2/3) − 1)(25 km/s / v_c)⁶]^(−3/2)

logLambda(T, Z) heat.js:41 interpolates the table bilinearly in log T and [Fe/H], with log T clamped to 4–8.5; between [Fe/H] = −4 and −3 it blends from primordial. coolTime() heat.js:50 takes n_e and n_t from the table at the nearest log T step.

Where it is used. galaxyOf() (app.js:3000, the heat at app.js:3024–3030; galaxies are documented in Chapter 6) computes each galaxy's circular speed from its bodies' motions, v_c = a·√(K/M) with K the kinetic sum and M the mass, as a fraction of light, and passes

β = (v_c / c) · 2^(Lm − 6)

the scale-model correction (ruling 2026-10-28, after 59 of 60 phone galaxies read as hot halos): a model of level Lm lives 2^Lm Tempos while light crosses its field in two flips, so its motions run 2^(6 − Lm) times faster against light than in the level-6 model; reading speeds at the level-6 scale gives one universe one heat on every device.

updateGalaxies() app.js:3130 then sets each galaxy body's b.sfHeat = f (star formation reads it, Chapter 5) and, outside every galaxy after reionization (life share ≥ 0.75/11.0, app.js:3136), b.sfHeat = 0. It also gives each galaxy its escape speed, β_esc = √(2(1 + ln 10))·v_c/c (BPT Part 3.12, Halo Escape Speed at a tenth of the halo's reach) and a wind heating time min(t⊹, 1 Gyr) as a share of the life (the fountain time, Oppenheimer et al. 2010, app.js:3138–3147), used by the winds of Chapter 5.

Worked case: a galaxy at v_c = 165 km/s (β = 5.5 × 10⁻⁴) has T_vir = 0.59 × 1.67 × 10⁻²⁴ × (1.65 × 10⁷)² / (2 × 1.38 × 10⁻¹⁶) ≈ 9.7 × 10⁵ K, the 10⁶ K BPT Part 3.12 gives for that speed.

The method, in plain steps:

for each galaxy:
    T ← the larger of its virial temperature and the background's 2.725 / a
    below 10⁴ K: it can cool if it has metals, or by H₂ before reionization
    above:       cooling share ← t_fall / t_cool, from the cooling tables
    a hot halo over a feeding well does not cool
    after reionization, small galaxies are starved: × [1 + 0.587 · (25 km/s / v_c)⁶]^(−3/2)

The code:

// public/game-v8.4/heat.js:66 galaxyHeat()
export function galaxyHeat({ beta, aGame, lifeFrac, Z, feeding = 0 }) {
    const a = Math.max(1e-6, A_FINAL * aGame), Tcmb = T_CMB0 / a, Tvir = virialT(beta), T = Math.max(Tvir, Tcmb);
    const nH = DELTA_VIR * N_H0 / (a * a * a), tff = freeFall(DELTA_VIR * RHO_M0 / (a * a * a)), vc = beta * C_CMS / 1e5;
    const reionized = lifeFrac >= REION_FRACTION;
    let tcool, f, mode;
    if (T < 1e4) {
        /* below the atomic line: metal-free gas cools only through H₂ in clumps above about 10³ K, before reionization; metals cool it */
        const can = Z >= Z_CRIT || (T >= 1e3 && !reionized);
        tcool = can ? tff : Infinity; f = can ? 1 : 0; mode = can ? (Z >= Z_CRIT ? 'cold' : 'H₂') : 'too warm to cool';
    } else {
        tcool = coolTime(T, nH, Z); f = Math.min(1, tff / tcool); mode = tcool < tff ? 'cold streams' : 'hot halo';
        if (mode === 'hot halo' && feeding >= 0.01) { f = 0; mode = 'hot halo, kept hot by its well'; }   /* Croton et al. 2006 */
    }
    if (reionized) f *= retention(vc);
    return { T, Tvir, Tcmb, tcool, tff, f, mode, vc, reionized };
}

In the game

The heat is what decides which clumps light up. The player sees it in where stars form and where they do not: gas that cools faster than it falls lights into stars along the filaments, the smallest clumps form fewer stars after reionization, the gas between the galaxies forms no new stars once the universe is reionized, and the biggest galaxies, whose wells feed and keep their halos hot, stop forming stars, so their share of young blue stars falls (Chapter 5 for the stars, Chapter 6 for the galaxies).

The heat is named in words when the player taps a well after the universe has returned to the Source: the banner describes the galaxy round it with its heat (galaxyOf() app.js:3031–3032), for example "a cloud of gas gathering round its well, no stars lit yet · hot halo · T_vir … K · metals none yet", or for a lit galaxy "… galaxy · cold streams · T_vir … K · metals … of the Sun's · κ_rot … · … stars, …% young and blue". The heat's mode is one of "cold", "H₂", "too warm to cool", "cold streams", "hot halo" and "hot halo, kept hot by its well" (galaxyHeat() heat.js:74–77). No control changes it.

The scale model

The temperatures, densities and times are our universe's at the same share of the life; only the circular speed comes from the game, corrected to the level-6 scale. The heat is read every 4 Pulses (updateGalaxies() from measureFeeding(), app.js:816), not every step.

Where the game and the theory differ

  • Speeds are read at the desktop's scale. The correction β = (v_c/c)·2^(Lm − 6) reads every model at the scale of the level-6 model, the desktop's model level, not at the universe's true level. It makes a phone and a desktop agree on one universe's heat; the reference is the desktop's model, not a law.
  • Two coolings. The cooling function here decides how much gas can form stars; the matter's own cooling in Matter.cool() uses a fixed share of the free-fall time and is not tied to it (Part 4.11).

Fixed numbers

Number Where What it is Kind
46 × 8 table, logT0 4.0, dlogT 0.1 SD93 heat.js:15–30 Λ_N, n_e, n_t by log T and [Fe/H] PHYSICS (Sutherland & Dopita 1993)
−∞, −3, −2, −1.5, −1, −0.5, 0, 0.5 SD93.feh heat.js:17 Table metallicities PHYSICS (Sutherland & Dopita 1993)
1.380649e-16, 1.67262e-24, 2.99792458e10, 6.674e-8 heat.js:31 k_B, m_p, c, G in cgs PHYSICS (CODATA)
0.59 MU heat.js:31 Mean particle mass, ionized PHYSICS (BPT Part 3.12, Virial Temperature)
2.725 T_CMB0 heat.js:32 CMB today, K PHYSICS (Fixsen 2009)
0.019 Z_SUN heat.js:32 Solar metal fraction of the tables PHYSICS (Anders & Grevesse 1989)
11.0e9, 3.15576e7 LIFE_S heat.js:33 The life as ours, seconds BPT (Chapter 1, Part D: level 202)
0.814 A_FINAL heat.js:34 Our scale factor at 11.0 Gyr PHYSICS (Planck 2018 ΛCDM)
1.9e-7 N_H0 heat.js:35 Mean hydrogen today, cm⁻³ PHYSICS (Planck 2018)
0.31, 8.62e-30 RHO_M0 heat.js:35 Ω_m × critical density, g cm⁻³ PHYSICS (Planck 2018)
200 DELTA_VIR heat.js:35 Virial overdensity PHYSICS (standard convention)
10^(−3.5) Z_CRIT heat.js:36 Critical metallicity over Z☉ PHYSICS (Bromm et al. 2001)
25 V_FILTER heat.js:37 Filtering speed, km/s PHYSICS (Okamoto, Gao & Theuns 2008)
0.75, 11.0 REION_FRACTION heat.js:38; app.js:3136 Reionization at 0.75 Gyr of the 11.0 Gyr life PHYSICS (reionization by z ≈ 7)
2^(2/3) − 1, 6, 3/2 retention() heat.js:60 Baryon Retention form PHYSICS (Gnedin 2000; BPT Part 3.12)
0.1 retention() heat.js:60 Floor on v_c, km/s METHOD
4, 8.5 heat.js:42, 51 Clamp of log T to the table METHOD (table range)
−4 (F[1] − 1) heat.js:45 Blend from primordial to [Fe/H] = −3 over one dex METHOD
10⁻³, 10⁻³⁰ heat.js:52, 53 Floors on n_e and n_H METHOD
1.5 heat.js:53 (3/2) in the cooling time PHYSICS (ideal gas)
3π/32 freeFall() heat.js:56 Free-fall time PHYSICS
2 virialT() heat.js:58 T = μm_pv²/(2k_B) PHYSICS
10⁻⁶ heat.js:67 Floor on a METHOD
10⁴, 10³ heat.js:71, 73 Atomic cooling line; H₂ cooling floor, K PHYSICS (BPT Part 3.12, Structure by Structure)
0.01 heat.js:77 Feeding that keeps a hot halo hot PHYSICS (Croton et al. 2006; BPT Part 3.14 Seyfert line)
6 app.js:3030 Level of the heat's reference scale, 2^(Lm − 6) CAP (the desktop model level, see Part 4.15)
1, ln 10 app.js:3141 Escape speed √(2(1 + ln 10))·v_c PHYSICS (BPT Part 3.12, Halo Escape Speed)
1e9 app.js:3147 Longest wind heating, years PHYSICS (Oppenheimer et al. 2010)
299792.458 app.js:3147 Light speed, km/s PHYSICS

Part 4.15: The Scale Model of Matter

The BPT law

BPT does not state the scale model; it is a game method. BPT Part 6.10 (The Game's Reading, Formally) states the principle the code follows: "The simulation cannot reach the scale at which m_P and m_H are separate numbers: its cells are Pulse Lengths and its matter is counted in bits, so its universes are ratios of ours. It keeps every law above in its proportions." The same reading fixes the cloud the game measures by: gas "in 8 × 8-cell clouds denser than twice the mean (per real area of the torus) turns into stars". A ratio of a universe must keep its shares, not its cell counts, when it is drawn smaller, and this Part is how the game does that for matter.

The established physics

None: a game method.

The game's math

The drawn field is viewSide(Lm) = 4·2^Lm cells a side, Lm = min(L, MODEL_LEVEL), and MODEL_LEVEL() app.js:4281 is 6 on a desktop and 4 on a phone (isPhone() app.js:4280: the screen's short side at most 480 px, or a mobile user agent). The model level is documented in Chapter 1, Part 1.10; this Part is what matter does with it.

cloudCells() app.js:1167:

full = viewSide(min(L, 6))                    the level's full field (256 at L ≥ 6)
CL   = max(1, round(8 · cols / max(cols, full)))

setCloud(m) app.js:1168 sets m.cloud = CL and m.full = CL². Desktop: CL = 8, full = 64. Phone: CL = round(8·64/256) = 2, full = 4. At a level below 6 on desktop, cols = full, so CL = 8.

The rule. A cloud is a share of the universe, not a count of cells (ruling 2026-10-29, after a level-182 phone run formed 302 stars where the weighting drew 40,000). Everything measured in cells or flips that should be the same share of the universe scales by sk = CL/8:

  • Star-forming clouds (stars.js, Chapter 5) and cooling clouds (Matter.cool()) are CL × CL cells.
  • A planet's least mass is one cloud, CL² cells.
  • applyFeedback() app.js:766 multiplies its reach (cells) and heating time (flips) by sk = (matter.cloud or 8)/8: "a scale model's cells are wider and its flips longer by the same share: reach and heat follow it, speeds stay" (Chapter 5, Part 5.12).

The heat's velocity correction 2^(Lm − 6) (Part 4.14) is the same rule for speeds against light.

The method, in plain steps:

a cloud is a share of the universe, not a count of cells:
    CL ← round(8 · cols / (the level's full field))       8 on a desktop, 2 on a phone
every length and time in cells or flips that should be the same share scales by CL / 8
speeds against light scale by 2^(Lm − 6)

The code:

// public/game-v8.4/app.js:1167 cloudCells()
function cloudCells() { const full = U.viewSide(Math.min(uni ? uni.L : 6, 6)); return Math.max(1, Math.round(8 * cols / Math.max(cols, full))); }

// public/game-v8.4/app.js:1168 setCloud()
function setCloud(m) { if (!m) return; const CL = cloudCells(); m.cloud = CL; m.full = CL * CL; }

In the game

The scale model is stated on screen wherever it applies. The HUD's Level line adds "· drawn at C cells across" when the model level is below the true one (app.js:2150), and its tooltip reads "The universe's level; deeper than level 6 (4 on a phone) the field and clock are a scale model" (index.php:81). The readout adds a "Drawn at" row, "No screen can draw a field this deep, so it is drawn on a smaller grid; its physics, stars, wells and harmonics all follow its own level" (app.js:2092), and the Wells line reads "N counted · M drawn · law P … at level L" (app.js:2148). The run's saved record keeps the device and the model level (device, model_level, app.js:2211). On a phone the same universe is drawn on a 64-cell field instead of 256, so its cells look four times coarser, its clouds are 2 × 2 cells instead of 8 × 8, and a planet's least mass, and the least mass that carries an accretion disk, is 4 cells instead of 64.

The scale model

This Part is the scale model. On a phone a cell is four times wider and a flip, against light, four times longer than on desktop. A desktop and a phone running the same universe should agree on shares (of matter in clouds, of gas in stars), not on cell counts.

Where the game and the theory differ

  • Numbers the share rule does not reach. BPT Part 6.10 keeps every law in its proportions. These matter numbers do not follow the cloud's share: the mesh's block side B (Part 4.7) follows the device; the data drains' 24-ring reach (Part 4.13) is cells on any field; COOL_DENSITY, the 256-well switch, the merge radius of one cell and the six-step planet test are the same on every field.
  • The device decides the model. The model level is 6 on a desktop and 4 on a phone, and a phone is any screen whose short side is at most 480 px, or a mobile browser (isPhone() app.js:4280). The same universe is therefore a different scale model on a phone, and the heat's speed correction (Part 4.14) and the cloud's share are what bring the two back into agreement.

Fixed numbers

Number Where What it is Kind
8 cloudCells() app.js:1167 Cloud side on the full field, cells METHOD (the star-forming patch of BPT Part 6.10, Game's Reading)
6 cloudCells() app.js:1167 Reference level of the full field CAP (the desktop model level)
1 cloudCells() app.js:1167 Least cloud side METHOD
8 applyFeedback() app.js:766 sk = CL/8 METHOD (same rule)
6, 4 MODEL_LEVEL() app.js:4281 Model level on desktop and phone CAP (device class; Chapter 1, Part 1.10)
480 isPhone() app.js:4280 Screen side that makes a phone, px CAP (device class)

Part 4.16: The Matter Step: Timing and Its Own Thread

The BPT law

BPT does not state this; it is a game method. What it serves is the theory's clock. In BPT a Pulse is two flips, one Tempo, the universe's own unit of time (Part 1.10, Pulse Phase Temporal Genesis), and a universe lives exactly 2^L of its Tempos, by the Rupture Rule (Chapter 1, Part D). Every law of this chapter is written on that clock: the expansion's life T, the Gravity of a Universe's age, the free-fall and cooling times read as shares of a life. So the game keeps the clock exact and fits the matter's motion inside it. The flip's own step (the cell rule, the novas, the Rupture count) still runs whole; matter only fills in the motion between, in fixed shares of a flip (comments app.js:4338–4355), so that a flip of matter is the same piece of the universe's life on every device and at every pace.

The established physics

Leapfrog (kick–drift–kick) with a fixed step is symplectic: orbits keep their energy over many steps (Hockney & Eastwood 1988; matter.js:11). A step that changed with the wall clock would make the physics depend on the device.

The game's math

MATTER_SUB = 4 (app.js:4356). stepMatterTo(share) app.js:4357:

want = min(4, ⌊share · 4 + 10⁻⁹⌋)
while matterSubDone < want:  stepMatter(1/4);  matterSubDone += 1

share is the part of the current flip done (subDone). So every device does four sub-steps of a quarter flip each per flip; between them the scene glides each body on its velocity (app.js:4487–4489). The flip's own step at app.js:4587 finishes any sub-steps not yet run (stepMatterTo(1)) and resets the count. Ruling 2026-10-27, after 610 ms of physics a flip on a phone: the old slices ran the whole step at whatever share the wall clock gave, about 16 a flip on a phone and 4 on a computer.

One sub-step's leapfrog, Matter.step(wells, dt) matter.js:379, with h = dt/2:

  1. mesh forces; for each body: v += h·gk·a, held to c, x += v·dt; for each well likewise (with friction, gk on gravity only);
  2. mesh forces again; for each body: v += h·gk·a, held to c; cooling; for each well: v += h·a, held to c.

The thread. matter-worker.js (11 lines) holds one Matter and runs one sub-step per message: matterRun() matter.js:543 copies the fields named in MATTER_IN (matter.js:535) onto it, runs step(), and sends back the fields in MATTER_OUT (matter.js:536). matterPack() matter.js:538 strips each well's link back into the game (src); matterTake() matter.js:550 copies the answer back and clears the bins. On the page, launchMatter() app.js:4392 keeps at most one sub-step in flight, matterLanded() app.js:4404 finishes it with stepMatterPost(), and the flip waits for its four. A failed worker hands its sub-step back and the page steps itself (matterThreadFailed() app.js:4384).

In 8.4 the thread is switched off (MATTER_THREAD = false, app.js:4372), so every sub-step runs on the page through stepMatterTo(), and matter-worker.js is never loaded.

The method, in plain steps:

four sub-steps a flip, each a quarter flip:
    want ← ⌊share of the flip done · 4⌋;  run sub-steps until that many are done
one sub-step (a leapfrog, h = dt / 2):
    mesh forces; each body: v += h · gk · a (held to c), x += v · dt; each well likewise
    mesh forces again; each body: v += h · gk · a; cooling; each well: v += h · a
the matter's own thread exists but is off in 8.4; every sub-step runs on the page

The code:

// public/game-v8.4/app.js:4356
const MATTER_SUB = 4; let matterSubDone = 0;
function stepMatterTo(share) {
    if (matterFlight) matterFlight = null;   /* a sub-step still out (the pace was changed under it): its answer is dropped and the sub-step runs here */
    const want = Math.min(MATTER_SUB, Math.floor(share * MATTER_SUB + 1e-9)); let n = 0;
    while (matterSubDone < want) { stepMatter(1 / MATTER_SUB); matterSubDone++; n++; }
    return n;
}

// public/game-v8.4/app.js:4372
const MATTER_THREAD = false;   /* OFF 2026-10-29 (the author: "I just ran it an no stars at all"): with it on, the stars starved; on again only once the cause is found */

In the game

The player controls the pace and never the physics. The Speed control offers "slider pace", "paced · the filling in ~20 s, the life in ~100 s" and "max · the rule flat out", and its tooltip promises "The physics is the same at every speed" (index.php:132–133); the Pace slider sets the slider pace. Whatever the pace, every flip gets its four matter sub-steps, and between them the scene glides each body along its velocity, so the stars move smoothly however slowly the physics runs (app.js:4487–4489).

How hard the device is working is on the HUD. Every two seconds perfTick() app.js:4456 averages the physics' milliseconds per flip, the drawing's milliseconds per frame, the frames a second and the percent of the time the page is busy, and the Speed line shows them as "physics … ms/Pulse · drawing … ms · … fps · busy …% · … MB" (app.js:4463), the physics doubled to a Pulse of two flips. Its tooltip says "above about 80% it starts to stutter" (index.php:82). perf.lastBusy is also what applyFeedback() reads (Chapter 5). The run's saved record keeps these numbers by phase of the run (perfRecord() app.js:4472).

The scale model

Exact: no scale model. The same four sub-steps on every device and at every pace.

Where the game and the theory differ

  • The thread is described but not used. The comment at matter.js:527–534 says one matter sub-step runs on another thread "with this same code; the page keeps drawing". In 8.4 MATTER_THREAD = false (app.js:4372): it was switched off on 2026-10-29 (the author: "I just ran it an no stars at all"), since with it on the stars starved, "on again only once the cause is found". The code does not record the cause, and this book does not guess at it.

Fixed numbers

Number Where What it is Kind
4 MATTER_SUB app.js:4356 Sub-steps a flip METHOD (fixed leapfrog step)
10⁻⁹ app.js:4359, 4356 Rounding guard METHOD
0.5 Matter.step() matter.js:399 Half-kick h = dt/2 METHOD (leapfrog)
false MATTER_THREAD app.js:4372 Matter thread switch METHOD (off pending a fix)
600 matter-worker.js:10 Characters of a worker error kept RECORD
2000 perfTick() app.js:4459 Readout window, ms RECORD

Measured

These are the measurements the code comments record, with their dates:

  • 2026-10-26 (app.js:1158–1159): on the old 8 × 8 mesh, 18,600 bodies at level 5 barely merged in a life.
  • 2026-10-26 (zeldovich.js:112–115): an even grid of cells, not weighted by real area, packed 20,000 bodies' worth of the brightest stars into the throat at level 5.
  • 2026-10-26 (app.js:1231): the data's differential spin added to every body ran 9 cells a flip at level 5 and smeared the ripples flat: no web.
  • 2026-10-27 (zeldovich.js:19–22): ripples longer than a quarter of the field carried the matter one way: 46 % → 8 % of the matter left the outside of the tube in the first third of the life.
  • 2026-10-27 (matter.js:124–126): cooling toward block centers left motion round them equal to motion toward them.
  • 2026-10-27 (app.js:1178): 1.3 s of physics a flip at 8 frames a second with 30,000 bodies on the author's desktop.
  • 2026-10-27 (app.js:4349–4351): 610 ms of physics a flip on the author's phone with wall-clock slices.
  • 2026-10-28 (zeldovich.js:69–73): the row-wide contrast streamed matter 3–6 cells a flip, 5 % of light, away from the outer equator; by half its life 53 % of it lay in the band of 60–90° that holds 21 % of the surface.
  • 2026-10-28 (matter.js:278–280): 14 % of a physical step went to rebuilding each block's 7 × 7 list of near wells.
  • 2026-10-28 (app.js:3026–3028): 59 of 60 phone galaxies read as hot halos before the 2^(Lm − 6) correction.
  • 2026-10-29 (matter.js:332–335): at level 202 with 15,000 sites, 2 × 10⁸ well pairs a sub-step; a step took 53 s.
  • 2026-10-29 (app.js:1162–1163): a level-182 phone run formed 302 stars where the weighting drew 40,000.

The Data Matter is the web first (17 November 2026). (Superseded 18 November 2026 by the Data Matter's own particles; Chapter 9.) The author: "there should be some kind of empty parts of space right? currently there seems to be a star filling every other pixel ... they should be clumping together into filaments"; and before it, "the stars arent moving at all ... lets review how we are defining dark matter". The review found the Data Matter laid flat: darkField put 5.4 times the matter's mass on the mesh by the count of pulsing data per block, and at the Data Nova the data lies everywhere, so the dark mass was a floor with no web in it, the matter had nothing deep to fall into, and the voids never emptied; the sites, scored by the same count, tied in every block and blanketed the torus. Part 3.13 says the opposite order: the Data Matter forms the cosmic web before ordinary matter falls into it. So the first ripples are now one field, made once at the Data Nova from the scaffold and the universe's seed (zeldovich.js rippleField: the displacement, the linear contrast per cell, and the scale S that brings it to RIPPLE_TODAY at a = 1), and three things read it: the Data Matter is laid by it, its contrast a·S·δ growing with the expansion, capped at 6 and floored at 5 % of the mean (app.js darkField); the Proto Wells are its peaks, a block being a site when it is a local maximum at least one standard deviation above the mean, with no filling of the blocks below to reach the count (densePlaces); and the matter starts in it as before (zeldovichStart takes the field). The starlight skin's dots come from the stars above the void floor, so a void glows faintly and holds no dots. The book's Part 3.13 carries the sentence and the ruling is data-matter-is-the-web. The author's other finding, that nothing moves, is the comoving freeze the vacuum's expansion imposes (Hubble drag and a⁻³ gravity are the right physics) seen at a physics-bound frame rate; its remedy is the frame rate and the motion inside halos, not the dark sector, and it is on the open loops. Two measurements shaped the site rule the same night. Read through four-cell blocks the field gave about thirty peaks on a 128-cell field, the matter then collapsed into some 1,400 loose wells with no site to belong to, and the galaxy reach, set by the spacing of the few wells with galaxies, grew to 40 cells; so the sites read the field cell by cell. And the field smoothed over RIPPLE_SMOOTH cells (the Gaussian exp(−k²R²/2) keeps only wavelengths above about 2πR) holds few maxima at all: 56 at R = 3, 201 at R = 1, 244 at 0.7, 285 at 0.5, counted offline on the real rippleField, because the spectrum's long waves carry the power. The matter and the Data Matter keep R = 2, the web's lines; the sites read the same field at R = 0.7 (SITE_SMOOTH), peaks at least 0.4 standard deviations up (RIPPLE_SITE_SIGMA): about 210 halos on the ridges of the same long waves, with the clump-born and stellar wells beside them. The count of wells is the field's answer, not a dial.