Richard Hoekstra

Manuscript reading edition

The history space

History spaces for weighted computation

Closing theoretical companion to SESSION_FINDINGS_2026_04_11_12.md.

An organizing proposal

Group admissible execution histories by their input and output boundaries, then weight them by a chosen cost. This gives a common notation for finite path searches, deterministic codecs and ensemble models.

Formal definition

    𝔥 = (Γ_adm, ∂_in, ∂_out, A, C)

where

The Lean symbolic side of Γ_adm, ∂_in, ∂_out, A is already in Proof/Scattering.lean:

What the history space adds is the totality: not one γ, but the indexed family of all admissible γ with fixed boundary conditions.

The generating function

    Z(λ; b^in, b^out) = Σ_{γ ∈ Γ_adm,  ∂_in γ = b^in,  ∂_out γ = b^out}
                          exp(−λ · A(γ))

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 (b^in, b^out) by encode/decode correctness), Z is a single exp(−A). When the guards allow branching — nondeterministic routing, stochastic corrections, MCTS lookahead — the sum has real content.

Every session artefact is a chart

Each file in research/tlc/ and each theorem in Proof/ is a LOCAL description of 𝔥. None of them is 𝔥 itself.

Artefact Chart on 𝔥 What it exposes
tlc_compressor.py, ArithCoder.Model single deterministic γ boundary coding of one history
dual_compressor.py same γ in ℚ[ε]/(ε²) multiplicative action form
casimir_compressor.py families of γ with different guard structure ΔL as comparison of two charts
atlas_spectrum.py, RepresentationalAtlas.lean ladder of FiniteFamily + advantage curves the measured projection of 𝔥 onto rungs
hyperbolic_compressor.py local chart where branching is geometrically cheap hyperbolic coordinates
open_kernel.py EncoderKernel / DecoderKernel the same γ with swapped ports
scattering.py, Scattering.lean enumerator + Σ exp(−A) over a finite slice of Γ_adm the sum-over-histories directly
swarm_model.py, SwarmModel measure on a local chart of Γ_adm Bayesian filter over charts
charged_swarm.py same measure + field coupling ρ → φ → drift, adds topological charge
field_coupled_swarm.py same + field feeds into emission C is feeding back into A
guarded_mcts.py PUCT exploration of a subtree of Γ_adm search within the history space
thermal_swarm.py Z(λ) at various λ finite-temperature slices
quantum_swarm.py replace Σ exp with |Σ e^{iΦ}|² Born rule version of Z
solomonoff_swarm.py 2^(−L) prior over generators of histories universal-prior sum
adversarial_swarm.py saddle point of Z over boundary data minimax on 𝔥
Proof.ArithCoder.Model.encode_decode_id γ is uniquely determined by (∂_in, ∂_out) deterministic-codec corner
Proof.RepresentationalAtlas advantageCurve, coordinateSusceptibility ladder-relative projections of Z
Proof.CasimirBridge.casimirRatio_lt_one_iff_width_lt ordering of charts ↔︎ ordering of Z-ratios the ℚ↔︎ℕ handshake

In this reading, the whole session’s output is one book of charts. The book is finite and the reader can pick any chart for any local measurement, but the object described is not any of the charts. It is their colimit.

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.

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.

The formal summary

    Computation          = choice or sum over γ ∈ Γ_adm
    Execution            = min-action γ ∈ Γ_adm
    Generation           = sample from e^(−A) / Z
    Compression          = boundary coding of a selected γ
    Physics-analogy      = interpretation of (Γ_adm, A) as open
                           scattering
    Training             = parameter tuning so data histories sit low
                           in A
    Search (MCTS, …)     = partial enumeration of Γ_adm
    Field dynamics       = C evolving through the history, feeding
                           back into A

And a final compact formalism:

    Z(λ; b^in, b^out) = Σ_{γ ∈ Γ_adm}
                        exp(−λ A(γ))
                        1[∂_in γ = b^in]
                        1[∂_out γ = b^out]

The session’s job was to build one concrete coordinate system on this object. The next session’s job — if taken this direction — is to study 𝔥 itself: its Dirichlet series, its Euler factorisation, its dualities, its spectral data. The arithmetic of admissible histories.

Scope

This construction groups models by boundary conditions. Whether a specific comparison preserves their costs, traces or predictions is a separate claim for each model.

Cite this page

Richard Hoekstra. The history space (HTML manuscript edition). https://richardhoekstra.nl/papers/history-space-paper.html