Modular counting classes #
For fixed k ≥ 2, ModP k accepts when a #P count is nonzero modulo k. This is the convention
of Fortnow, Classification 4.7; in particular ModP 2 = ParityP. The definition is
total in k: at 0 it gives NP, and at 1 it contains only the empty language. The modulus is a
class parameter, not part of the input.
We use verifier counts, not a claimed equivalence with nondeterministic counting machines.
Reduction closure follows from exact-count precomposition. For a prime modulus, intersection
uses the absence of zero divisors and complement uses Fermat's little theorem: if f is the
original count, 1 + (p - 1) * f ^ (p - 1) is nonzero modulo p exactly when f is zero modulo
p. These are elementary algebraic derivations; the prime-modulus closure framework is classical
Papadimitriou and Zachos. No such closure is claimed here for arbitrary
composite moduli.
Main definitions #
Cslib.Complexity.ModP: nonzero-modulus accepting counts.
Main results #
Cslib.Complexity.mem_ModP,Cslib.Complexity.mem_coModP: unfolding the definitions.Cslib.Complexity.ModP_two,Cslib.Complexity.P_subset_ModP.Cslib.Complexity.PolyTimeReducible.mem_ModP.Cslib.Complexity.inter_mem_ModP,Cslib.Complexity.compl_mem_ModP,Cslib.Complexity.union_mem_ModP: prime-modulus closure.
The complement class coModP is defined by zero residues. For prime moduli it equals
ModP, by the complement theorem above; no such equality is asserted for composite moduli.
References #
For a fixed modulus k, languages recognized by a nonzero residue of a #P count
Fortnow, Classification 4.7. The standard modular counting classes use k ≥ 2.
Modulo two, nonzero residue is oddness Fortnow, after Classification 4.7.