Deterministic machines behind polynomial time relative to an oracle #
A certificate of Cslib.Complexity.ComputableInPolyTimeWithOracle is a fair-coin machine that
reproduces a deterministic program against every stateful oracle. Fixing all of its coins to
false gives a deterministic run of the same machine, itself a word-query program
(Turing.MultiTapePTM.run with the coin program pure false). Its result against every
answer function is the program's (Cslib.Probability.IsOraclePPTOn.exists_run_pure_false): the
coin-fixed run is one of the supported runs of the certificate, whose result is determined
(Turing.MultiTapePTM.mem_support_runConfigFrom_pure). The same holds against every
deterministic stateful oracle, for the result and the final state
(Cslib.Probability.IsOraclePPTOn.exists_run_pure_false_stateM, from which the stateless form is
derived), so the coin-fixed run makes the same requests as the program. The run makes at most one
request per instruction (Turing.MultiTapeMachine.length_queriesWith_runConfigFrom_le).
Relabelling the finite control states to Fin m (Turing.MultiTapePTM.relabel,
Turing.MultiTapePTM.runFrom_relabel) shows that the deterministic runs behind all certificates
come from countably many machines with control Fin m
(Cslib.Probability.IsOraclePPTOn.exists_fin_run_pure_false), as oracle diagonalizations need.
Main results #
Turing.MultiTapeMachine.length_queriesWith_runConfigFrom_le: a deterministic run makes at most one request per instruction.Cslib.Probability.IsOraclePPTOn.exists_run_pure_false_stateM,Cslib.Probability.IsOraclePPTOn.exists_run_pure_false,Cslib.Probability.IsOraclePPTOn.exists_fin_run_pure_false: certificates of deterministic programs are deterministic runs of finite machines with a polynomial clock.
References #
- S. Arora, B. Barak, Computational Complexity: A Modern Approach, Section 3.4 (oracle Turing machines).
A deterministic run makes at most one request per instruction, under every answer function.
Certificates are deterministic runs, against stateful oracles. A certificate for a
deterministic program yields a finite machine and a polynomial clock whose run with every coin
fixed to false returns, against every deterministic stateful oracle, the encoded result of the
program and the same final state.
Certificates are deterministic runs. A certificate for a deterministic program yields a
finite machine and a polynomial clock whose run with every coin fixed to false returns, against
every answer function, the encoded result of the program.
Certificates are deterministic runs of countably many machines. As
exists_run_pure_false, with control states Fin m.
A deterministic polynomial-time oracle computation has polynomially bounded encoded output length. The bound follows from its strict machine certificate, not from an extra promise.