Richard Hoekstra

Rewrite experiment

Following expression length through a rewrite

Research note
Richard Hoekstra · April 2026

When does rewriting make a representation shorter?

For expressions over ℤ[η]/(η²−rη), the experiment follows a concrete length difference between an expression and its selected normal representation. The algebra gives an exact rewrite η²=rη. Its two sides represent the same element but may have different lengths and evaluation costs.

Terms containing η can expose cancellations hidden in their syntax. Equality in this quotient holds throughout the ring. The defining relation itself does not locate a singular locus. Here “arrow” refers to the direction seen in a rewrite trace. No energy dissipation or Landauer bound was measured.

Empirical foundation

Each claim maps to a measurement:

ClaimEvidence
Change in the length proxyFour nontrivial workloads descended; the control had zero change
Selected strategy attained the least enumerated action6/6 cases: SβK = Smin
Distributivity is conservative on smooth locusRound-trip ΔL = 0 on generic tests
Behavior on the special test inputη-case: expansion direction breaks locally
Observer-relative LProposed observer ordering held in 80% of sampled comparisons

The second-order law, tested and not confirmed

The initial prediction: time-sharpness should scale with ‖∇L‖. On flat-gradient workloads βK should not be globally optimal.

For stable terminating paths in the six enumerated cases, the selected strategy tied the least observed action across sharpness values of 21.9–218. Three paths in one case had cumulative action 749. Confluence concerns terminal results; it does not imply equal action or globally minimal cost.

Methodological note An earlier run with depth-truncated paths reported apparent gaps of 48–115, seeming to confirm the prediction. That was a truncation artefact: incomplete reductions have lower cumulative action than complete ones. The corrected run reports gaps of zero.

The first run would have supported the prediction; the fair run does not. Both are reported here. The thesis stands on the first-order claim (100% L-monotone rewrites) but the quantitative second-order refinement does not hold.

Open question

Can independent schedules reach the same normal result with different cumulative length costs? Recording both quantities on a larger trace set would distinguish a property of rewriting from a property of the tested workloads.

Related work describes the algebra, a byte-level compression experiment, and the proposed defect framework. ε² = 0 axiom · irreversibility depth of natural language · residual structuralism

Cite this page

Richard Hoekstra. Following expression length through a rewrite. https://richardhoekstra.nl/papers/arrow-of-time.html