Documentation

CslibFrontier.Computability.Complexity.Classes.PP.Bit

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 #

References #

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.