Tally problems #
A tally language consists of words over a one-letter alphabet: here, words all of whose letters
are true (Cslib.Complexity.TALLY). The words true ^ n are the unary encodings of the natural
numbers, so a conjunctive reduction to a set A of natural numbers written in unary is one to the
tally language encUnary '' A (Cslib.Complexity.PolyTimeCTTReducible.image_encUnary).
Sparse problems reduce conjunctively to tally problems
(Cslib.Complexity.exists_polyTimeCTTReducible_encUnary_of_mem_SPARSE), a theorem of Buhrman,
Longpré and Spaan, cited by Arvind, Köbler and Mundhenk Arvind, Köbler and Mundhenk, proof of
Lemma 3.2. The reduction asks, for a word u of length n and each
m < M, whether some member of the sparse problem of length n has the same residue as u
modulo m + 1 (Cslib.Complexity.Tally.fingerprint); members of the sparse problem pass every
test. For a word u outside it, let Y be the at most s members of length n. If every
modulus m + 1 ≤ M were matched by some y ∈ Y, it would divide |u - y|, read as binary
numbers, so the least common multiple of 1, …, M would divide the nonzero product of the
|u - y|, which is at most 2 ^ (n s). Since that least common multiple is at least 2 ^ M
for M ≥ 7 (Chebyshev.two_pow_le_lcmUpto), M = n s + 7 moduli suffice
(Cslib.Complexity.Tally.exists_fingerprint_notMem). This route through Nat.lcmUpto is the
library's own; it needs no bound on the number of primes.
Conjunctive reductions to tally problems are closed under intersection, by asking both batches of
queries tagged by their reduction, and under union, by asking for every pair of queries whether one
of them is in its target; pairs of unary numbers are unary numbers again (Nat.pair). Sparse
targets do not allow the second construction, which is why the tally step is needed.
Main definitions #
Cslib.Complexity.TALLY: the tally languages.Cslib.Complexity.Tally.residue,Cslib.Complexity.Tally.fingerprint,Cslib.Complexity.Tally.fingerprints: the tests of the reduction and the tally set they ask.
Main results #
Cslib.Complexity.TALLY_subset_SPARSE,Cslib.Complexity.image_encUnary_mem_TALLY: tally languages are sparse, and sets of natural numbers written in unary are tally.Cslib.Complexity.Tally.exists_fingerprint_notMem: few moduli separate a word from the members of a sparse problem.Cslib.Complexity.exists_polyTimeCTTReducible_encUnary_of_mem_SPARSE,Cslib.Complexity.exists_mem_TALLY_polyTimeCTTReducible_of_mem_SPARSE:SPARSE ⊆ R_ctt(TALLY).Cslib.Complexity.exists_polyTimeCTTReducible_encUnary_of_mem_P,Cslib.Complexity.PolyTimeCTTReducible.exists_encUnary_inter,Cslib.Complexity.PolyTimeCTTReducible.exists_encUnary_union: problems inPreduce conjunctively to tally problems, and such reductions are closed under intersection and union Arvind, Köbler and Mundhenk, proof of Lemma 3.2. WithSPARSE ⊆ R_ctt(TALLY)this makes the problems with conjunctive reductions to sparse problems a set ring, as their Lemma 3.2 states.
References #
Tally languages #
Tally languages are sparse.
The unary encodings of a set of natural numbers form a tally language.
A conjunctive reduction to a set of natural numbers written in unary is a conjunctive reduction to the tally language of their unary encodings.
Fingerprints modulo small numbers #
The residue is that of the binary value.
Few moduli separate a word from the members of a sparse problem. If at most s members
of S have the length of u, u is not in S and M ≥ |u| s + 7, then some fingerprint
fingerprint u m with m < M is not a fingerprint of a member of S.
Sparse problems reduce conjunctively to tally problems #
Sparse problems reduce conjunctively to tally problems (Buhrman, Longpré and Spaan; cited
in Arvind, Köbler and Mundhenk, proof of Lemma 3.2): a sparse problem
has a polynomial-time conjunctive reduction to a set of natural numbers written in unary. The
queries are the fingerprints of the encoding of an instance with M = n s + 7 moduli, where n is
its length and s bounds the members of length at most n; the target is the set of fingerprints
of the encodings of members.
Closure of conjunctive reductions to tally problems #
Conjunctive reductions to tally problems are closed under intersection: ask the queries of both reductions, tagged by the reduction they come from.
Conjunctive reductions to tally problems are closed under union: ask, for every pair of a query of each reduction, whether one of the two is in its target.
Conjunctive reductions to tally problems are closed under finite unions, by induction on
the list of indices from Cslib.Complexity.PolyTimeCTTReducible.exists_encUnary_union; the empty
union asks one query of the empty target.
Asking a computed list of queries of a problem with a conjunctive reduction to a tally
problem: if B reduces conjunctively to a set A of natural numbers written in unary, so do the
instances a whose queries Qs a all lie in B, to the same set. The reduction asks the queries
of all of them.