Canonical replay of oracle occurrence traces #
Replay follows the existing native instructions and makes their actual buffered oracle calls. A fixed-length certificate contains one occurrence index per live instruction, followed only by zeros after the first halt. Those padding zeros are not recorded as transitions. Exhausting a certificate at a live configuration retains that configuration; terminal filtering is separate.
Main definitions #
Turing.MultiTapeMachine.indexWords: chronological fixed-length index enumeration.Turing.MultiTapeMachine.replayIndices: actual word-query replay with canonical padding.Turing.MultiTapeMachine.replayResult: retain successful replay and its final private state.Turing.MultiTapeMachine.replayTerminal: terminal observation, excluding live cutoffs.
Main results #
Turing.MultiTapeMachine.filterMap_replayResult: exact ordered enumeration of native runs.Turing.MultiTapeMachine.countP_replayResult_terminal: equality of terminal verdict counts.Turing.MultiTapeMachine.runOccurrenceTrace_empty: raw closed-run compatibility.Turing.MultiTapeMachine.replayTerminal_empty: the existing closed certificate decoder.
All replayed certificates start with the same external state. Different certificates may reach
equal configurations, but distinct consumed indices and their List multiplicities are retained.
The explicit positive arity bound concerns list lengths, not the number of distinct actions.
No nonblocking, halting or encoded polynomial-time conclusion is implicit. This is a semantic
replay program, not yet a certified efficient binary checker. The query and reply cost boundary
are stated in MultiTape.Counting.Oracle.Program.
References #
Reuses the existing occurrence certificates in MultiTape.Counting.Certificate and the native
program and List interpretation in MultiTape.Counting.Oracle.Program; their formalization and
mathematical source credits apply here. The stateful word interface is explicitly more general
than the language-oracle interface in [For97], Section 2 and Definition 3.1.
Each fixed-length index word occurs once.
Replay after an already recorded trace; newly consumed indices are appended to it. The trace is an observer and does not alter the native machine configuration.
Instances For
Replay real instructions, rejecting invalid indices and nonzero padding after halting. At exhaustion a live endpoint is retained. Only live instructions enter the consumed trace.
Instances For
Successful replay together with its final external state. Failed certificates are excluded, including any private-state effects before a late failure; sibling replays never share them.
Instances For
Canonical fixed-clock certificates enumerate the exact ordered native run, retaining every consumed index, complete configuration and branch-local private state. Live cutoff endpoints are retained. This equality requires neither nonblocking nor a halting premise.
A halted replay accepts exactly the all-zero suffix and makes no external call.
Terminal observation is separate from raw replay. Live cutoff endpoints fail this check.
Instances For
Filtering canonical replay and filtering the native run give the same terminal occurrences.
Both verdict counts require successful terminal replay; invalid and live certificates count
for neither verdict, including when verdict is negated.
With no oracle channels, erasing the trace gives exactly the existing closed runList.
Both sides retain live cutoff endpoints and preserve repeated final configurations.
The terminal closed specialization is exactly the existing canonical decoder. Raw replay itself also retains live cutoffs, so the terminal observation in this statement is essential.