Counting classes within polynomial space #
Exact #P counts have polynomially many binary digits and can be evaluated in polynomial space.
Comparing the count to a majority threshold therefore gives PP ⊆ PSPACE. For modular classes,
divisibility is tested by a polynomially long binary quotient certificate, searched in polynomial
space. This works for every fixed modulus, including the degenerate moduli zero and one.
The oracle corollaries use languages over words with their identity encoding. They make no claim that the image of an arbitrary encoding is decidable.
Main results #
Cslib.Complexity.PP_subset_PSPACE.Cslib.Complexity.ModP_subset_PSPACE,Cslib.Complexity.coModP_subset_PSPACE.Cslib.Complexity.PWithOracle_subset_PSPACE_of_mem_PP,Cslib.Complexity.NPWithOracle_subset_PSPACE_of_mem_PP.
References #
theorem Cslib.Complexity.PWithOracle_subset_PSPACE_of_mem_PP {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} (hA : A ∈ PP Turing.MultiTapeTM.encBits) :
PWithOracle A enc ⊆ PSPACE enc
Polynomial time with a PP word oracle stays within polynomial space.
theorem Cslib.Complexity.NPWithOracle_subset_PSPACE_of_mem_PP {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} (hA : A ∈ PP Turing.MultiTapeTM.encBits) :
NPWithOracle A enc ⊆ PSPACE enc
Nondeterministic polynomial time with a PP word oracle stays within polynomial space.