Native weighted counting with polynomially many weight bits #
For fixed arity and polynomial bit-budget parameters, one native machine computes the partition function of a Boolean CSP with input-dependent natural weights. The reduction constructs its existing constraint network and applies exact binary-weight tensor contraction. The weight magnitudes have no constant bound: only the total encoded length of the network's tables must be polynomial in the number of occurrences.
The counter checks the arity, excludes empty scopes, and checks this bit budget before invoking
contraction. It returns one on the empty instance and zero on other rejected inputs. Thus its
resource certificate holds on every encoded input. On the promised inputs the answer is the
partition function, in polynomial space and time
poly(L) * 2 ^ O(N / √log(N + 2)), where N counts occurrences, n counts variables, and L
is the complete encoded input length. Bounded occurrence gives the corresponding variable bound.
Main definitions #
BinaryWeightedCounting.guard: the scope and polynomial table-bit checks.BinaryWeightedCounting.count: the total counting function.BinaryWeightedCounting.certificate: its ordinary native machine certificate.
Main results #
BinaryWeightedCounting.count_eq: correctness on the promised inputs.BinaryWeightedCounting.exists_partitionFunctionCounter: the uniform occurrence bound.BinaryWeightedCounting.exists_partitionFunctionCounter_boundedDegree: the variable bound.BinaryWeightedCounting.exists_partitionFunctionCounter_of_weightBits: the same counter under a polynomial bit-length bound on each relevant local weight, with the network budget derived.
The existing scope check together with the polynomial bound on all table bits.
Exact contraction on the guarded instances, with one on the empty instance and zero on other rejected instances.
The counter computes the partition function whenever its arity and bit-budget promises hold.
The scope and bit-budget checks are polynomial-time for the fixed parameters.
Native construction of the constraint network followed by exact binary-weight contraction.
The guarded native counter. Both the guard and the rejected-input answer have polynomial time certificates in the original input encoding.
One fixed occurrence exponent and polynomial bound control the total guarded machine, including inputs rejected by either check.
Exact natural weighted counting with a fixed polynomial table-bit budget. The relation symbol, including its potentially large numeric weights, is part of the input encoding.
Bounded variable occurrence converts the occurrence numerator to a variable numerator. The machine and polynomial exponents are selected before the occurrence bound.
Polynomially many bits per local weight suffice: the total network bit budget follows with
the explicit coefficient 3 * 2 ^ (max k 4) + 1 and exponent d + 1. The natural weight
magnitudes may be exponential in (N + 1) ^ d.
The polynomial-bit counter has the variable bound on bounded-occurrence inputs. Its machine
and polynomial exponents are independent of the occurrence bound Δ.