Shared tape layout for closed buffered composition #
The source runs on its own work tapes and writes to a fresh output buffer. The consumer has separate initially blank work tapes and reads that buffer through the existing virtual-input compiler. A native deterministic handoff rewinds the buffer and marks its left boundary in exactly the word length plus four transitions. Source scratch and the real input head remain explicit in the configuration maps; no clearing or copying occurs outside machine instructions.
These maps and program laws are independent of the transition-choice mechanism. The complete compiler must still supply its choice-preserving deterministic lift and prove halting/count laws. The scope here is closed machines with no oracle channels.
Main definitions #
Turing.MultiTapeMachine.Composition.source: reserve consumer tapes and buffer source output.Turing.MultiTapeMachine.Composition.consumer: read the buffer on separate work tapes.Turing.MultiTapeMachine.Composition.consumerConfig: the exact joint tape layout.
Main results #
Turing.MultiTapeMachine.Composition.runConfigFrom_source: exact source program embedding.Turing.MultiTapeMachine.Composition.runConfigFrom_consumer: exact consumer program embedding.Turing.MultiTapeMachine.Composition.runFrom_prepare: the charged native buffer handoff.
References #
Extracted from MultiTape.Probabilistic.Composition, adapted from
MultiTape/Oracle/Composition.lean on the cslib crypto branch at
5ff69ca93402e7c947208dc56396d6d86203ccd8. The native deterministic tape plumbing is by
Christian Reitwiessner and Samuel Schlesinger.
Run the source on its own tapes, redirecting its output to the virtual input buffer.
Instances For
Run the continuation on separate work tapes, reading the virtual input.
Instances For
Retain the first machine's scratch tapes while the continuation runs on its output.
Instances For
The prepared virtual input, with every source work tape retained.
Instances For
Buffering the source preserves its complete configuration program from initialized tapes.
The consumer preserves its complete program and every reserved source scratch tape.
The two new tapes are the completed output buffer and a blank boundary tape.
The prepared input starts the consumer with blank work tapes while retaining source scratch.
The control-state embeddings of a completed buffered composition.