Explicit transition tables for streaming folds #
This module assembles the streaming-fold kernel entirely from retained effect-free transition tables. Its correctness theorems use the established tape-transformation specifications; no transition function is recovered from a relation or from the legacy noncomputable assembly.
Main definitions #
Turing.MultiTapeMachine.onWords: run an explicit tidy table between virtual input and output work tapes.Turing.MultiTapeMachine.streamRound: one explicit read/emit/update stream round.Turing.MultiTapeMachine.stream: the complete explicit streaming-fold table.
Main results #
Turing.MultiTapeMachine.transformsTapes_onWords_extendTapes: selected-tape semantics and exact resources for a lifted callback.Turing.MultiTapeMachine.transformsTapesAt_streamRound: exact semantics and resources of one stream round.Turing.MultiTapeMachine.computesTidily_stream_after: the assembled stream table computes the accumulated stream and final output with the stated clock and workspace bounds.
Run a tidy explicit table between a virtual input work tape and a fresh output work tape.
Run a tidy explicit table between two selected tapes, preserving the input and emitting nothing.
Read one token into value, then perform one input-frozen stream round.
One explicit round has the established exact cursor, tape, output, time, and workspace law.
The complete explicit streaming fold: initialize, iterate, finalize, clean, and rewind input.
The complete explicit stream table computes tidily with the established exact phase bounds.