Chapter 34

Synthesis: The Full Structure

We now collect the constructions and state what has and has not been established.

34.1 The Dictionary

The status column carries the same convention as the preview table of Chapter 27: con for a construction, true by definition of the objects involved; thm for a theorem with a hypothesis that can fail; cnj for a conjecture. A dictionary without such a column invites the reader to grant every row the same authority, and the rows do not have the same authority.

The structural correspondences first:

{1.3}

GSLT conceptPhysical conceptStatus
TermState / initial conditioncon
Rewrite ruleLaw of motioncon
Rewrite sequence (path)Trajectorycon
Synchronization treeCausal graph / light conecon
\(d_{\min}(P,Q)\)Proper time / causal depthcon
\(d_{\max}(P,Q)\)Complexity of historycon
Width of \([P,Q]\)Degree of causal concurrencycon
Equations \(\eqs\)Gauge equivalencecon
\(\GSLT^\dagger\)Time-symmetric theorycon
Empty trace \(\eps\)Initial condition (no causal past)con
\(d_{\HML}\)Metric on state spacecon

The decoration, and what choosing its semiring chooses:

{1.3}

GSLT conceptPhysical conceptStatus
Decoration \(\dec\), semiring \(\Semi\)Choice of dynamical theorycon
tropical instanceAction functionalcon
\(\min\) over pathsPrinciple of least actionthm
complex instancePath amplitude \(e^{iS[\gamma]/\hbar}\)con
sum over pathsFeynman path integralcon
cancellation of pathsQuantum interferencecnj
Dynamic decorationField with its own dynamicscon

Conservation, dissipation, memory, and authority:

{1.3}

GSLT conceptPhysical conceptStatus
Conversion systemInterconvertible resource kindscon
No-arbitrageExistence of an energy functionthm
Virtual token \(\nu\)Energy, as a Noether chargethm
Hodge split of \(\ell\)Energy versus circulationthm
\(\bt(\Gamma)\)Degrees of arbitrage freedomthm
Dissipation \(\theta\)Second law; free energy (exergy)thm
Starvation as absorbing setMortalitythm
Ledger law \(\sigma + \kappa = \sigma_0\)Potential plus kineticthm
Holonomy \(\hol(\gamma)\)Failure of energy to be a state functionthm
Erasure bounded by holonomyLandauer’s principlethm
Located token stackCapability; who may spendcon
Location entangles \(K\) with the stackSpacetime, not space \(\times\) timecnj
\(\nu\) generates a reduction stepHamiltoniancnj
Symmetry of the decorationNoether currentcnj

Counting the column is instructive. The constructions are numerous and cheap; they say that the framework can express the physics, which was never seriously in doubt. The theorems are fewer and are the reason to care: each has a hypothesis that can fail, and each says that something familiar from physics is forced by something structural about computation. The conjectures are the three places where the analogy is currently doing work the mathematics has not yet done, and two of the three concern the same missing object — a generator.

34.2 The Main Construction

Construction 34.1 Decorated Reversible GSLT

Given a GSLT \(\GSLT = (\terms, \eqs, \rules)\), a semiring \(\Semi\), a refinement-complete decoration \(\dec\), and a conversion system on the resource kinds, define \(\GSLT^{\dagger\dec}\) with:

  • terms the triples \(\langle P, \trace, \vect{A}\rangle\), where \(\vect{A}\) is a family of located accounts, one per surface holding a stack;

  • rules the forward steps (drawing \(\dec_r(u)\) from the account at the drawing surface, recording the decoration in the trace) and their reversals;

  • \(\eqs\) lifted to the current-term component.

The extended HML of Definition 32.1 internalizes the decoration as logical data.

Theorem 34.1 What is conserved

In \(\GSLT^{\dagger\dec}\):

  1. Ledger. Fuel remaining plus fuel recorded spent is invariant: \(\sigma(t) + \kappa(t) = \sigma_0\) (Proposition 31.5). This holds by construction.

  2. Value. If the conversion system is arbitrage-free, the total virtual-token value \(\nu\) is invariant under every engine operation (Proposition 31.3); if it is lossy, \(\nu\) is a Lyapunov function and the honest scalar is free energy (Proposition 31.4). This has a hypothesis and can fail.

  3. Memory. Energy descends to the folded history exactly when the folded loops carry no holonomy (Theorem 31.2); conservation therefore sets a lower bound on retained history, coinciding with the Landauer bound (Remark 31.7).

  4. Time-reversal. Reversing the trace and applying the reversal \(\dec^{\dagger}\) is an automorphism of \(\GSLT^{\dagger\dec}\).

Probability conservation is not on this list. Unitarity would require the amplitudes at each state to be normalised and the paths to be poolable, and Remark 33.2 is the reason the second condition is not available.

34.3 From Construction to Code

The construction is algorithmic at every stage. For a given GSLT:

  1. Represent terms as algebraic data types in the implementation language.

  2. Compute minimal contexts via the Milner–Sewell–Leifer algorithm on the rewrite rules; store as a context lattice.

  3. Evaluate HML formulae against a term, and check refinement-completeness of the intended decoration domain — if the most refined witness is not unique, the decoration is not well defined and the implementation will silently choose.

  4. Attach the decoration to each rule as a map from formula identifiers into the chosen semiring, together with the table updates if the decoration is dynamic.

  5. Locate the accounts. Every stack lives on a channel; none floats free. This is a correctness requirement, not an optimisation.

  6. Extend terms with trace and accounts, implementing forward and backward rules as the reversible rewrite system.

  7. Simulate in the stochastic instance via Gillespie: compute exit rates, sample the next transition and waiting time, advance the term, update the table, draw on the account, record the trace. By Theorem 13.1 the object being stepped is a chain over configurations rather than over terms, and by Theorem 13.3 the same loop at a nonzero Hamiltonian is a quantum-jump unravelling, so the last step is one procedure and not two.

Each step is a well-defined computational procedure, and steps 4–7 are implemented for the specific case of MeTTaIL rewrite rules [32].