Research proposal
The Conway system: compression as game theory
The idea
The encoder and decoder exchange roles under an involution: swapping twice restores the starting role. The game-theoretic model uses the additive identity *+*=0. Its Lean interface assumes this identity in an additive group. Multiplication needs extra structure. In ℤ/2, 1+1=0 while 1·1=1.
The Lean development organizes game primitives, codec interfaces, cost models and guarded search. The table groups modules by purpose.
Layer architecture
| Layer | Files | What it formalizes |
|---|---|---|
| 1. Game core | ConwayStar, ConwayCoderDuality, ConwayInformationGame | Star game * + * = 0, encoder/decoder role duality via ZMod 2, separation of predictive state from emitted residual |
| 2. Codec interface | ConwayStatefulCodec, ConwayPredictiveByteCodec, ConwayRecurrentCodec | Asymmetric codec interface, forward/backward decomposition, recurrent decoder/update rules |
| 3. Cost structures | ConwayStatefulCost, ConwayPredictiveByteCost, ConwayRecurrentCost | Cost formalization for stateful, predictive, and recurrent codecs |
| 4. Open systems | ConwayOpenSystemMDL, ConwayOpenSystemScan, ConwayOpenGeometry, ConwayOpenConnection | Open-system interaction step, trace, geometric structure of state space, connection formalism |
| 5. Scattering | ConwayScatteringAction, ConwayPathMeasure, ConwayBulkBoundaryScattering | Scattering action functional, path integral measure over admissible histories, bulk-boundary duality |
| 6. Byte mechanics | ConwayByteMachine, ConwayByteMachineScan, ConwayByteResidualHamiltonian, ConwayByteMatterField, ConwayByteMatterFieldScan, ConwayByteFieldReversal, ConwayByteObstruction, ConwayByteBitstream | Universal byte observations, bit-level state geometry, XOR/AND/OR transport, popcount energy, exact/harmonic/residual sector split, field reversal symmetries, obstruction theory |
| 7. Geometry | ConwayExteriorDerivative, ConwayHyperbolicBulk | de Rham exterior derivative on state space, Poincaré-ball hyperbolic geometry layer |
| 8. Dynamics | ConwayHamiltonian, ConwayHamiltonianTraining, ConwayHamiltonianCoarse, ConwayHamiltonianScan | Global exact-reconstruction energy functional, differentiable training variant, coarse-grained approximation |
| 9. World model | ConwayWorldModelGame, ConwayWorldModelGameCost, ConwayWorldModelGameMeasure, ConwayWorldModelGameScan | Multi-role extension (environment, model, encoder, decoder, state, router), cost measures |
| 10. Search | ConwayHoarePath, ConwayGuardedMCTS, ConwaySwarmMeasure, ConwaySwarmSearch, ConwaySwarmGuardedBridge | Weighted Hoare edges, AlphaGo-style guarded tree search, ensemble swarm measurements, bridge between swarm and MCTS |
| 11. Integration | RepresentationalAtlas, ConwayCoordinateProblem | Finite atlas layer for coordinate-relative MDL, MDL coordinate problem in Conway framework |
Key structures
What the game framing actually gives you
The role bit and the additive star model the same involution. This clarifies how to express a reversible role change without implying that the underlying coding transformation squares to zero.
The ConwayHamiltonian is a cost function with a reconstruction constraint. Calling it a "Hamiltonian" is justified if the Hamiltonian structure gives you something a plain cost function doesn't — conservation laws, symplectic structure, Noether currents. Currently, the formalization defines the energy landscape and proves that representational advantage equals the energy gap between two model families (advantage_eq_energy_gap). Whether this yields anything beyond "the cheaper representation wins" remains to be demonstrated.
What's honest and what's aspirational
ConwayByteMachine spec is implemented as a Zig runtime that actually compresses: PPM-C D=8 + Hodge gate + skip-gram expert + range coder.
GuardedMCTS: the interesting part
The most concrete algorithm in the system. Tree search where nodes are (state, assertion) pairs and children are guarded moves: each move carries a logical assertion (via weighted Hoare edges) ensuring the compression remains decodable. Selection uses PUCT over admissible edges.
A Python implementation runs MCTS over model-choice sequences: at each segment of a corpus, which compression model to use? The search recovers model sequences whose total bpb is strictly better than any single-model baseline on synthetic mixed corpora (XML + prose + dense text). If that result extends to enwik8, it's a standalone paper regardless of the Conway framing.
BGC0: the native runtime
The Conway byte machine spec is implemented in Zig as the BGC0 runtime. On enwik8 slices:
| Size | bpb |
|---|---|
| 20 KB | 3.03 |
| 200 KB | 2.30 |
| 2 MB | 2.18 |
Tracks the Python PPM-C compressor within ~0.25 bpb across two decades of stream length. The gap is algorithmic (PPM-C exclusion blend, not architecture). Zero parameters, online learning only.
Sorry count
The source tree contains 41 Lean files under Proof/Conway/ at the time of review. The formal statements describe their specified interfaces and cost identities. A file count cannot establish a compression advantage.
Cite this page
Richard Hoekstra. The Conway system: compression as game theory. https://richardhoekstra.nl/papers/conway-system.html