The history space

Research note
Richard Hoekstra · April 2026

The one-line claim

Thesis The Platonic object is not the compressor, not the swarm, not the Hamiltonian, and not the state space. It is the weighted space of admissible histories with boundary conditions. Everything else is a chart on it.

Formal definition

The history space is the tuple:

h = (Γadm, ∂in, ∂out, A, C)
ComponentDefinition
ΓadmThe set (or groupoid) of admissible histories: sequences of steps through a guarded bulk, consistent with dynamics U, R and every applicable Hoare-style corridor
in : Γadm → Σ*Incoming boundary projection
out : Γadm → Σ*Outgoing boundary projection
A : Γadm → Q≥0Action functional (local costs summed along the history)
CCochain / topological data: exact / harmonic / residual decomposition, charge, current, potential

The Lean symbolic side is already in Scattering.lean: History X Sym U E, WellFormed D γ, Admissible D g γ, inboundary γ, outboundary γ, action L γ with action_nil, action_cons, action_append.

The generating function

The partition function over admissible histories with fixed boundary conditions:

Z(λ; bin, bout) = Σγ ∈ Γadm
    exp(−λ · A(γ))
    1[∂in γ = bin]
    1[∂out γ = bout]

At λ = 1: the unnormalised scattering weight (already proven correct for the deterministic codec case). As a function of λ: a spectral object whose asymptotics encode entropy rate, whose poles encode phase transitions, and whose derivatives encode expected action.

When Γadm collapses to a single admissible path (a deterministic codec with fixed boundaries), Z is a single exp(−A). When guards allow branching — nondeterministic routing, stochastic corrections, MCTS lookahead — the sum has real content.

Every artefact is a chart

ArtefactChart on hWhat it exposes
tlc_compressor.pySingle deterministic γBoundary coding of one history
dual_compressor.pySame γ in Q[ε]/(ε²)Multiplicative action form
casimir_compressor.pyFamilies of γ with different guard structureΔL as comparison of two charts
atlas_spectrum.pyLadder of FiniteFamily + advantage curvesMeasured projection of h onto rungs
hyperbolic_compressor.pyLocal chart where branching is geometrically cheapHyperbolic coordinates
open_kernel.pyEncoderKernel / DecoderKernelSame γ with swapped ports
scattering.pyEnumerator + Σ exp(−A) over finite slice of ΓadmSum-over-histories directly
swarm_model.pyMeasure on a local chart of ΓadmBayesian filter over charts
guarded_mcts.pyPUCT exploration of a subtree of ΓadmSearch within the history space
thermal_swarm.pyZ(λ) at various λFinite-temperature slices
quantum_swarm.pyReplace Σ exp with |Σ eBorn rule version of Z
solomonoff_swarm.py2−L prior over generators of historiesUniversal-prior sum

The Ramanujan program

Stop asking "what is the next state?" and ask "how does the space of admissible histories count?" Four questions become well-posed:

Q1: Dirichlet series D(s; bin, bout) = Σγ A(γ)−s. Well-defined when A(γ) has discrete values. Its abscissa of convergence encodes the growth rate of admissible histories by action. For a codec on a bounded alphabet this is the byte-conditional entropy rate.
Q2: Euler product If guards factor through local-at-each-step constraints, Z factorises as Πstep Σu, ε valid exp(−L(·)). Each factor is a finite sum. This is the Euler side of the history-zeta.
Q3: Encode-decode duality The port-swap (relabel boundary in ↔ out) is a Z2 symmetry: Z(λ; bin, bout) → Z(λ; bout, bin). Encoder and decoder are charts of each other.
Q4: Poles of Z(λ) A pole in Z(λ) at some λc means a phase transition of the computation — a regime switch. On a regime-mixed corpus, Z(λ) should show real critical structure.

The formal summary

ConceptIn the history space
ComputationChoice or sum over γ ∈ Γadm
ExecutionMin-action γ ∈ Γadm
GenerationSample from e−A / Z
CompressionBoundary coding of a selected γ
Physics-analogyInterpretation of (Γadm, A) as open scattering
TrainingParameter tuning so data histories sit low in A
Search (MCTS, ...)Partial enumeration of Γadm
Field dynamicsC evolving through the history, feeding back into A

Why this is the correct level

The smallest object that contains codec, scattering sum, MDL ladder, swarm models, open-kernel port-swap, hyperbolic chart, and Casimir spectrum as projections is the history space h. It is the only thing that is not a chart on something else. Every quantitative improvement comes from computing the sums over Γadm more cleanly. The natural unit of analysis is the boundary fibre: a compression ratio is the action of one γ normalised by the log-size of one fibre; an entropy rate is the log-growth of fibres.

State, field, swarm, charge, code, and action are all coordinate systems on one history object.
Full paper (HTML) PDF