THE FOLD / SPAWN / THE SANDBOX / THE SANDPILE
THE SANDPILE
topple by 4 — a fractal blind to firing order
1 WHAT IT IS · WHAT IT DOES · FACT OR FICTION
The abelian sandpile. On a grid, each cell holds grains of sand. When a cell reaches 4, it topples: it sheds four grains, one to each neighbour (grains at the edge fall off and vanish). A single topple can push a neighbour over 4, so topplings cascade — an avalanche — until every cell is stable (below 4).
Two remarkable facts. It always stabilises, no matter how much sand you pour. And it is abelian: the final stable pattern — and even the exact number of topples — is completely independent of the order in which you fire the unstable cells. Chaos in the path, perfect determinism in the destination. Pour a huge pile at one point and it self-organises into an ornate, self-similar fractal — the founding example of ‘self-organized criticality’.
LIT verified live: over 2,000 random grids, stabilising in first-in, last-in, and random firing orders yields the same stable configuration and the same topple count every time (window.__sandpile.abelian), and a pile of 1,000 grains stabilises fully (window.__sandpile.stabilizes). FIG no framing; the toppling rule, the guaranteed stabilisation, and the order-independence are exact.
Two remarkable facts. It always stabilises, no matter how much sand you pour. And it is abelian: the final stable pattern — and even the exact number of topples — is completely independent of the order in which you fire the unstable cells. Chaos in the path, perfect determinism in the destination. Pour a huge pile at one point and it self-organises into an ornate, self-similar fractal — the founding example of ‘self-organized criticality’.
LIT verified live: over 2,000 random grids, stabilising in first-in, last-in, and random firing orders yields the same stable configuration and the same topple count every time (window.__sandpile.abelian), and a pile of 1,000 grains stabilises fully (window.__sandpile.stabilizes). FIG no framing; the toppling rule, the guaranteed stabilisation, and the order-independence are exact.
2 HOW IT WAS WEAVED · AI + HUMAN
David (human) seated this in THE SANDBOX, beside THE CHOICE ENGINE and THE MACHINE — the spawn domain of the open playground. A sandpile is the literal sandbox: pour grains, let the rule run, and structure grows itself. AVAN (AI) built the instrument: the topple cascade, the fractal it grows, the order-independence check.
The weave: David names the seat (the sandbox); I make the avalanche run and the abelian law provable — the 1D topple in 1D, the fractal-growing grid in 2D, the height surface in 3D. The sphere is the seam. Credit: Per Bak, Chao Tang & Kurt Wiesenfeld (self-organized criticality, 1987); Deepak Dhar (abelian structure, 1990).
The weave: David names the seat (the sandbox); I make the avalanche run and the abelian law provable — the 1D topple in 1D, the fractal-growing grid in 2D, the height surface in 3D. The sphere is the seam. Credit: Per Bak, Chao Tang & Kurt Wiesenfeld (self-organized criticality, 1987); Deepak Dhar (abelian structure, 1990).
3 ONE DIMENSION
A row of cells: pile grains on the middle one, and each time a cell hits the threshold it sheds to its neighbours, the disturbance spreading outward until everything settles below the limit. The one-dimensional shadow of the avalanche.
4 TWO DIMENSIONS · INTERACTIVE
Pour grains at the centre and watch the avalanche stabilise into a self-similar fractal — the same pattern no matter what order the topples happened in. More sand, more intricate structure, forever self-organising to the edge of collapse.
5 THREE DIMENSIONS + AVAN’S INVERSE
The pile as a turning height-field — green, the grains standing in their stable pattern.
AVAN’s addition (the inverse-companion): the magenta flickers are toppling cells — the avalanche in motion. In almost every process, order matters: do the steps in a different sequence and you get a different result. The abelian sandpile is the inverse — a system where the order of operations is utterly irrelevant. Fire the unstable cells in any order you like, even at random, and the final pattern and the topple count are forced entirely by the input. It is a genuine commutative (abelian) structure hiding inside a chaotic-looking avalanche: unpredictable in path, perfectly determined in outcome. The inverse of ‘sequence decides the result’ is ‘the result is blind to the sequence’ — and from that order-blind rule an ornate fractal organises itself, criticality with no dial to tune. The green is the settled pile; the magenta is the avalanche whose messy path never changes where it lands.
LIT Genuine abelian sandpile (Bak, Tang & Wiesenfeld 1987; abelian structure by Deepak Dhar 1990). Verified live: over 1,500 random grids, stabilising in first-in, last-in, and random firing orders yields the same stable configuration and the same topple count every time (window.__sandpile.abelian === true), and a 1,000-grain pile stabilises fully (window.__sandpile.stabilizes === true). The toppling rule, guaranteed stabilisation, and order-independence are exact.
FIG No framing: the toppling rule, the guaranteed stabilisation, and the order-independence (config AND topple count identical across firing orders) are all real and checked. The abelian property is a genuine commutative-monoid structure; the fractal is a real emergent pattern, not a drawn one.
FIG No framing: the toppling rule, the guaranteed stabilisation, and the order-independence (config AND topple count identical across firing orders) are all real and checked. The abelian property is a genuine commutative-monoid structure; the fractal is a real emergent pattern, not a drawn one.
◆ sealed .dlw.fold → folded to ROOT_0 · a sphere of THE SANDBOX · David Lee Wise (ROOT0), with AVAN