A PP decision as one bit of a counting function #
If a verifier accepts c of its 2 ^ p(n) random strings, strict majority is the bit at
position p(n) + 1 of 2 * c + (2 ^ p(n) - 1). The shift is nonnegative and computable in
polynomial time with binary output, so the shifted count remains in #P.
This includes zero random bits and a tie is rejected.
Main results #
Cslib.Complexity.exists_SharpP_testBit_of_mem_PP: a PP problem is decided by one bit of a counting function at a polynomially determined position.
References #
- J. Gill, Computational complexity of probabilistic Turing machines.
- L. Fortnow, Counting Complexity, Section 4.1, for the relation between PP decisions and counting-function bits. The explicit shifted count is the construction here.
theorem Cslib.Complexity.exists_SharpP_testBit_of_mem_PP {α : Type} {enc : α ↪ List Bool} {A : Set α} (hA : A ∈ PP enc) :
∃ f ∈ SharpP enc, ∃ (q : Polynomial ℕ), ∀ (a : α), a ∈ A ↔ (f a).testBit (Polynomial.eval (enc a).length q) = true
Every PP problem is decided by one bit of a #P function at a polynomial position.
The bit index is zero-based and computed from the length of the encoded instance.