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 #
Cslib.Complexity.PP_subset_PWithSharpPOracle: one counting-function bit decides a PP problem.Cslib.Complexity.PWithPPOracle_subset_PWithSharpPOracle: simulate a PP oracle by a bit oracle.Cslib.Complexity.PWithPPOracle_eq_PWithSharpPOracle: equality of the oracle classes.
References #
- L. Fortnow, Counting Complexity, Theorem 4.14 (
P^PP = P^GapP) and Corollary 3.7 (GapP ⊆ FP^#P). Here the direct shifted-count construction uses bit queries. - S. Arora, B. Barak, Computational Complexity: A Modern Approach.
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.