Richard Hoekstra

Research proposal

The history space

Research note
Richard Hoekstra · April 2026

The one-line claim

ModelGroup admissible execution histories by their input and output boundaries. Assigning costs then lets a codec, a path search and a weighted sum be compared in a common notation.

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]

For a finite set of admissible paths with real costs, Z is a finite sum of exponentials and is entire in λ. For real λ with Z>0, −∂log Z/∂λ is the expected path cost under weights proportional to exp(−λA). A singularity requires a specified infinite sum or limiting procedure.

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 |Σ eiΦ|²Born rule version of Z
solomonoff_swarm.py2−L prior over generators of historiesUniversal-prior sum

Questions about the path sum

An Euler product requires independent factors or an appropriate unique decomposition. Local admissibility at each step still couples consecutive choices through their shared state. For a path model with this dependence, transfer matrices may be the relevant finite construction.

Swapping the names of input and output ports defines a relabeling. Equality of the two boundary partition functions needs a cost-preserving bijection on admissible paths. For a Dirichlet series one must also specify how zero-cost paths are handled and where the series converges.

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

Interpretation

The framework suggests comparing costs among paths with the same boundaries. Its usefulness depends on identifying the appropriate histories and on whether a concrete computation or prediction improves.

Full paper (HTML) PDF
Cite this page

Richard Hoekstra. The history space. https://richardhoekstra.nl/papers/history-space.html