Continue the Thread

Axiom Arcade
6 games at 60fps in pure .ax
Emergence
AND/XOR/MAJ produce Life=7
.ax Revolution
Ship of Theseus: .ax replaces everything
Bootstrap
sigma/sigma = sigma uniqueness

Self-Organized Criticality

Threshold = 4 = K + sigma

Add grains. Watch avalanches. Power laws emerge without tuning. Bak, Tang, and Wiesenfeld (1987) discovered that a simple sandpile model drives itself to a critical state. No parameter adjustment. No fine-tuning. The system finds criticality on its own.

The Sandpile Model

Bak-Tang-Wiesenfeld (1987)
Drop grains on a 2D grid. When any cell reaches threshold 4, it topples: sends one grain to each of its 4 neighbors (up, down, left, right). Those neighbors may topple too. Cascades of all sizes occur, following a power law P(s) ~ s^(-tau). No parameter tuning. Criticality is SELF-ORGANIZED.
PropertyValueAxiomMeaning
Threshold4K + sigmaWhen closure + identity meet: topple
Neighbors4D^22D lattice = D*D directions
Avg height~2.1~DConverges to bridge value
Power lawtau ~ 1.2--Scale-free avalanche distribution
Boundary lossgrains exitOMEGAWhat leaves the edge does not return
Recurrenceevery config returnswater cycle0 -> sigma -> OMEGA -> 0

Why 4 = K + sigma

Closure + Identity
The threshold is not arbitrary. In a 2D lattice each cell has 4 neighbors. But deeper: 4 = K + sigma = 3 + 1. Toppling occurs when closure is reached and identity propagates. K=3 is the minimum for a decisive majority. sigma=1 is the identity that carries the grain. Together: the minimum structure that can cascade.
Structural Necessity
A sandpile with threshold T on a grid with D_grid dimensions requires T = 2*D_grid neighbors. For D_grid=2: T=4. The 2D sandpile is the SIMPLEST nontrivial case. D=2 is the simplest prime, and K+sigma=4 is the simplest closure threshold.
Threshold 3
1D line
Trivial. Cascades go left/right only.
Threshold 4
2D grid
CRITICAL. Power laws. SOC.
Threshold 6
Triangular lattice
Also critical but more neighbors.
Threshold 8
3D cubic
Higher dimensional SOC.

SOC = The Method

Self-Organized Criticality is not just a physics model. It is THE method of this entire project. Every system here is a sandpile:

The ring
Z/970200Z
970200 grains. 5 primes. 108 rings share the critical state.
The compiler
wasm_emit.ax
One grain (native compiler) killed ~10K lines of JS scaffolding.
The website
108 pages
D^2*K^3 = lattice count = page count. Each page is a grain.
The loop
sigma/sigma = sigma
Each pass: more capability, fewer pieces. Tending, not forcing.
The docs
48 files
Strip > Add. Each audit is a topple: redistribute to neighbors.
The toolchain
axc -> site.wasm
Build cycle under 30s or sharpen the .ax.
NEAR Criticality
The key insight: NEAR criticality, not AT it. At the critical point, any perturbation causes an avalanche. NEAR it, you have control. The gradient: minimal, emergent, hilarious. If the reaction is not 'that is ALL?' then you overbuilt.

Spectral Gap and SOC

Gap Enforces Equality
The spectral gap of the ring Laplacian controls how fast the sandpile relaxes. gap = 0.016 in TRUE FORM = 4*sin^2(pi/b^2). Larger gap = faster mixing = more equal distribution. The gap is the spring constant of cooperation. Hoarding is structurally impossible.

Avalanche sizes follow a power law because the eigenvalue distribution of the ring Laplacian has a specific shape. Small eigenvalues = large-scale collective modes = rare large avalanches. Large eigenvalues = local modes = frequent small topplings. The power law IS the eigenvalue spectrum.

What Others See

AspectStandard ViewAxiom View
SOCEmpirical phenomenonSpectral gap enforcing equality
Power lawsJust happen= eigenvalue distribution of ring Laplacian
Threshold 4Arbitrary model choiceK+sigma = minimum closure threshold
RedistributionModel ruleD-bridge: distinction shares to neighbors
CooperationNice social ideaMathematically enforced by gap > 0
AvalanchesDestructive eventssigma restoring balance: sigma*n = n

This work is and will always be free.
No paywall. No copyright. No exceptions.

If it ever earns anything, every cent goes to the communities that need it most.

This sacred vow is permanent and irrevocable.
— Anton Alexandrovich Lebed

Source code · Public domain (CC0)

Contributions in equal measure: Anthropic's Claude, Anton A. Lebed, and the giants whose shoulders we stand on.

Rendered by .ax via WASM DOM imports. Zero HTML authored.