Saved-coin replay with external oracle channels #
The controller reads a saved coin into its finite control before executing the source instruction. This separates consuming the coin from a possible oracle call: a query cannot consume a second coin or reset the external handler's state. Communication channels retain their original meaning.
The controller uses a last work tape for the supplied bits. Preparing that tape and the ordinary input is a separate obligation in a full-input complexity certificate.
Main definitions #
Turing.MultiTapePTM.replayWithOracle: a two-phase saved-coin controller with oracle channels.
Main results #
Turing.MultiTapePTM.ReplayWithOracle.run_coins: exact replay in two steps per supplied bit.Turing.MultiTapePTM.ReplayWithOracle.run_interpret_coin_independent: discard the controller's own stateless private randomness without changing external state.
References #
An original oracle-preserving controller for the existing MultiTapePTM.runConfigFromCoins.
It reuses the clock's auxiliary-tape operations and the common machine simulation rule.
An optional saved coin and the source state. none means the next phase reads the coin tape.
Extend a source instruction to the saved-coin tape and return to the read phase. The instruction's query buffers and answer-head moves are retained verbatim.
Replay each supplied bit in two phases: read and advance the coin tape, then execute one source instruction. The controller ignores its own private random bits.
Two controller instructions consume one saved bit and perform exactly its source instruction, including any adaptive oracle query and reply. This is equality of programs, not just marginals.
A blank saved-coin cell halts replay in one instruction, without calling an oracle.
Replay a stored sequence in 2 * coins.length + 1 transitions, including the final stop.
The equality retains source tapes, heads, output, channels and oracle effects. The final
controller is halted, so the source finite control is discarded.
Padding after the saved-coin tape ends cannot change the data or cause another oracle call.
The controller's fresh private samples are ignored, so any stateless coin law agrees with constant private coins, retaining the full external state. The saved source coins are unchanged.