Documentation

CslibFrontier.Computability.Complexity.Classes.Oracle.CountingEquivalence

PP and counting oracles have the same polynomial-time power #

Every PP oracle query is replaced by one bit query to a shifted #P count. For a query word w, the new request is the code of (w, q(|w|)), where q is fixed by the PP verifier. This only reads the word and its length; it does not decode an instance or recognize valid codes.

The transformed program is fixed before the counting oracle is chosen. Its polynomial-time certificate follows from open oracle substitution and holds for every external oracle, even one returning arbitrarily long words: only the first reply bit is read. Against an oracle answering the specified counting function's bits, the transformed replies induce a language agreeing with the PP problem on its codes. Arbitrary answers elsewhere are allowed by the original program's correctness hypothesis.

Together with binary search in the reverse direction, this proves P^PP = P^#P for the existing encoded classes. The result is a uniform polynomial-time simulation, not merely a query bound.

Main results #

References #

Every PP problem is decided by a polynomial-time program making one #P bit query.

P^PP ⊆ P^#P. Replace each PP query by one query for a polynomially positioned bit of a shifted accepting-path count. The program is uniform over every admissible bit oracle, including arbitrary answers outside the instance codes.

P^PP = P^#P under the encoded, bit-by-bit counting oracle convention.