Exact counting before decision-class comparisons #
The counting simulation computes a natural number, not merely a verdict. This module exposes
its exact padded acceptance counts and their joint deterministic time/workspace bounds.
Polynomial-time comparisons are postprocessing of that count and its clock; decision-class
containments are derived in CountingSimulation.Containments.
NetworkFamilies is the network-construction interface for all finite-state binary-choice
machines. The explicit block networks discharge it. A contraction algorithm is still a
hypothesis of the generic results here. Counts of padded choice strings are distinguished from
native terminal-path counts: halted choice replays ignore remaining bits, while a terminal path
is counted once. The latter is the convention of SharpTIME; its binary replay forces a unique zero
continuation
after each halt. The resulting exact counting theorem computes SharpTIME functions in binary
within the same time scale and polynomial workspace.
Main definitions #
Cslib.Complexity.CountingSimulation.NetworkFamilies: network families for all machines.
Main results #
exists_computableInTimeAndSpace_countWith: polynomial-time postprocessing with joint bounds.exists_computableInTimeAndSpace_acceptCount: exact padded acceptance counting, in binary.exists_computableInTimeAndSpace_of_mem_SharpTIME: joint bounds for terminal-path counting.SharpTIME_subset_iUnion_FTIME: the functional counting-class containment.
Network families for all machines: for every finite-state fair-coin machine, a network
family (Cslib.Complexity.CountingSimulation.NetworkFamily) for its accept count
Turing.MultiTapePTM.acceptCount. This is the hypothesis supplied by the block-counting step of
#1833.
Polynomial-time postprocessing of the exact accepting count, with the padded clock in unary, preserves the counting simulation's time scale and polynomial workspace.
The accepting choice strings at the padded clock are counted exactly, with binary output, by one deterministic machine carrying both the subexponential time and polynomial-space bounds.
Exact terminal-path counting inherits the counting simulation's subexponential time and polynomial workspace. The binary replay chooses transition occurrences parsimoniously and forces zero padding after a native halt, so no post-halting multiplicity is introduced.
The functional counting counterpart of the decision-class simulations: every terminal-path
counter in #TIME(T) has binary output in FTIME(2^(C T / √log T)) for some constant C.