Documentation

CslibFrontier.Computability.Complexity.Classes.CountingHierarchy.Aggregation

Counting and summation over short indices #

A uniform F_a evaluator on an instance and a bitstring can be counted or summed in F_(a+1). The index width is computed in unary in polynomial time; its domain can therefore have exponentially many elements. Natural and signed summands have polynomial encoded length by their function-level certificate. No enumeration of the domain is performed by the deterministic program, and its oracle is fixed for every instance and index.

Inputs have a certified total decoder, as do words and the usual structured encodings. Restrictions can be included in the evaluator using zero outside the domain. Quantification uses the same count oracle, including the empty bitstring when the width is zero.

Main results #

References #

Recover a signed relativized count by recovering its two nonnegative counts and subtracting. The two threshold oracles are combined at the same level.

Count all accepted bitstrings of a polynomial-time unary width using one uniform evaluator.

Sum polynomial-bit nonnegative values over exponentially many short indices. The summand certificate supplies a uniform output bound on all instance/index pairs.

Signed polynomial-bit summands have the same one-level summation cost.

Existential quantification over bitstrings of a polynomial-time unary width costs one level.

Universal quantification counts rejecting indices and tests whether that count is zero.

Reduction of a short-index sum modulo a uniformly accessible short modulus has the same level. Natural remainder is total, with n % 0 = n; positive moduli have the usual residue bound.