Deterministic replay of Boolean oracle replies #
One transcript bit is assigned to every native instruction. A query installs that bit as its
one-symbol reply; a local instruction ignores it. Thus replay requires no external oracle and
is polynomial-time in the input and transcript lengths, including the construction of adaptive
requests. The canonical transcript records the actual oracle reply at query instructions and
false elsewhere. Replaying it recovers the complete coin-fixed configuration and output.
The replay* declarations here replay supplied oracle replies with the coin fixed to false.
The saved-coin controller Turing.MultiTapePTM.replay in
CslibFrontier/Computability/Machines/Turing/MultiTape/Probabilistic/Replay.lean instead replays
supplied random coins for a closed machine using an additional work tape.
Main definitions #
Turing.MultiTapePTM.replyStep: one native instruction with a supplied Boolean reply.Turing.MultiTapePTM.replayConfig: replay a transcript from the initial configuration.Turing.MultiTapePTM.replayPrefix: replay only the given prefix of a transcript.Turing.MultiTapePTM.encReplayArgs: the encoding of its input, transcript and unary index.Turing.MultiTapePTM.oracleReplies: the canonical instruction-indexed oracle transcript.
Main results #
Turing.MultiTapePTM.replayConfig_pt: replay is polynomial-time.Turing.MultiTapePTM.computableInPolyTime_replayPrefix,Turing.MultiTapePTM.computableInPolyTime_replayOutput: prefix configurations and the replayed output are polynomial-time.Turing.MultiTapePTM.length_pendingRequest_replayPrefix_le: request size is bounded by the number of elapsed instructions.Turing.MultiTapePTM.eq_oracleReplies_iff: a transcript is canonical exactly when every bit is the reply to the query pending after its prefix.Turing.MultiTapePTM.replayOutput_oracleReplies: canonical replay is the certified oracle run.
References #
Execute one native instruction, using bit only if that instruction makes a query.
Replay assigns one bit to every native instruction, including local and halted ones.
Replay the given instruction-indexed replies from the initial configuration.
The configuration immediately before instruction index, or after the whole transcript if
index exceeds its length.
The output tape after replaying the entire transcript.
A supplied bit is equivalent to a constant one-bit oracle for this instruction.
Supplying the answer to the pending request recovers an instruction against that oracle.
A local instruction ignores its transcript bit.
Replaying concatenated transcripts is sequential replay.
Appending a bit executes exactly one further instruction.
Advancing a transcript prefix executes its next bit, whenever that bit is present.
Every replayed instruction preserves the native one-bit-reply storage bound.
A transcript of length r executes r instructions with replies of length one.
Replay from the initial configuration has linear storage in the input and transcript.
A pending request contains at most one symbol per elapsed native instruction.
A prefix query has at most min index answers.length symbols.
The next replay instruction is polynomial-time, uniformly in its reply bit.
Deterministic oracle replay is polynomial-time in the encoded input and transcript.
Prefix replay is jointly polynomial-time in input, transcript and unary instruction index.
The replayed output is polynomial-time.
The next query in a guessed-reply execution is uniformly polynomial-time.
Whether the next guessed-reply instruction is a query is uniformly polynomial-time.
The instruction-indexed transcript of an oracle execution. Local and halted instructions
receive the canonical padding bit false.
The canonical transcript of a clocked execution from the initial configuration.
A canonical transcript has exactly one bit per clocked instruction.
The initial canonical transcript has exactly the clock length.
Canonical transcripts are consistent under truncation of their clock.
Canonical replay recovers the entire finite configuration, not only its output.
The canonical transcript replays the coin-fixed oracle run from its initial configuration.
A canonical prefix recovers the configuration after the corresponding elapsed instructions.
The bit of a canonical transcript at a live clock index is the pending oracle answer, with
false at local or halted instructions.
Canonical transcript bits agree with the queries seen by replay of their own prefix.
The canonical transcript is characterized by its reply equations. A transcript is the
canonical transcript of its own length exactly when each of its bits is the reply to the query
pending after replay of the preceding bits, and false when no query is pending.
Replayed canonical outputs agree exactly with interpretation of the clocked oracle program.