Counting functions relative to a language oracle #
SharpPWithOracle A enc counts accepted Boolean witnesses of a fixed polynomial length using
ComputableInPolyTimeWithOracle A. Its deterministic word-query program is fixed before the
witness and oracle replies. The certificate realizes that program under one polynomial clock
against every stateful word oracle, charging query construction and reply access. Correctness
of the Boolean verifier is required against the fixed, stateless languageOracle A.
GapPWithOracle consists of differences of two such counts. These definitions reuse the ordinary
verifier counting semantics; equivalence with nondeterministic oracle-machine counting is not
claimed. Ignoring an oracle embeds the ordinary classes, and the existing certified simulation
eliminates every polynomial-time decidable oracle. Oracle lowness for other classes is separate.
Main definitions #
Cslib.Complexity.SharpPWithOracle: fixed-length counting with an oracle verifier.Cslib.Complexity.GapPWithOracle: differences of relativized counting functions.
Main results #
Cslib.Complexity.SharpP_subset_SharpPWithOracle,Cslib.Complexity.GapP_subset_GapPWithOracle: ignore the oracle.Cslib.Complexity.SharpPWithOracle_eq_SharpP,Cslib.Complexity.GapPWithOracle_eq_GapP: eliminate an oracle in P.Cslib.Complexity.computableInPolyTimeWithOracle_andVerifier,Cslib.Complexity.computableInPolyTimeWithOracle_selectVerifier,Cslib.Complexity.computableInPolyTimeWithOracle_padVerifier,Cslib.Complexity.computableInPolyTimeWithOracle_sumVerifier: reuse verifier combinators.Cslib.Complexity.SharpPWithOracle.add_mem,Cslib.Complexity.SharpPWithOracle.mul_mem,Cslib.Complexity.SharpPWithOracle.natCast_mem_GapPWithOracle: additive and multiplicative closure ofSharpPWithOracleand embedding intoGapPWithOracle.
References #
Oracle verifiers can run on disjoint parts of a witness and conjoin their results.
The first witness bit selects between two oracle verifier results. Both certified programs may be run sequentially, so the resource bound remains valid for arbitrary stateful replies.
Padding an oracle verifier keeps it polynomial-time relative to the oracle.
The sum of two oracle verifiers is polynomial-time relative to the oracle.
The zero function is in SharpPWithOracle A enc.
SharpPWithOracle is closed under addition: the first bit of a certificate chooses the
verifier, and the bits that the chosen verifier does not read must be false.
SharpPWithOracle is closed under multiplication: the two verifiers read disjoint parts of
the certificate.
A function in SharpPWithOracle, cast to the integers, is in GapPWithOracle.