Sparse and unary languages have circuits of polynomial size #
A slice with at most k words of length n is the disjunction of the minterms of its words, so it
has a circuit of k (2 n + 2) + 1 gates (complexity_slice_le_of_card_le). A language with
polynomially many words of each length, a sparse language, is therefore in P/poly
(PPoly.of_sparse). A unary language, whose words consist only of trues, has at most one word
of each length, and its slice at n is a constant or the conjunction of the n inputs, so it has
circuits of n + 1 gates (mem_SIZE_of_unary). Since the circuits at different lengths need not be
related, unary languages that no machine decides are in P/poly Arora and Barak, Section
6.1. The class Cslib.Complexity.SPARSE counts the words of length at most n
rather than exactly n; its members are in P/poly as well (PPoly.of_mem_SPARSE), and so is
every sparse problem, under any encoding of its instances (SPARSE_subset_PPolyOn).
Main results #
Cslib.Circuits.Boolean.complexity_slice_le_of_card_le: a slice with few words has a small circuit.Cslib.Circuits.Boolean.PPoly.of_sparse: sparse languages are inP/poly.Cslib.Circuits.Boolean.PPoly.of_mem_SPARSE: languages inCslib.Complexity.SPARSEare inP/poly.Cslib.Circuits.Boolean.SPARSE_subset_PPolyOn:SPARSE ⊆ P/poly, for problems with any encoding of their instances.Cslib.Circuits.Boolean.mem_SIZE_of_unary,Cslib.Circuits.Boolean.PPoly.of_unary: unary languages have circuits ofn + 1gates, so they are inP/poly.
References #
Sparse languages are in P/poly. A language with at most s n words of each length n,
for a polynomially bounded s, has circuits of polynomial size.
Sparse languages are in P/poly, for sparseness in the census form of
Cslib.Complexity.SPARSE: the words of length exactly n are among those of length at most n.
SPARSE ⊆ P/poly, for problems with any encoding enc of their instances: the encodings of
the members of a sparse problem form a sparse language
(Cslib.Complexity.image_mem_SPARSE_encBits_iff), which has circuits of polynomial size.
Unary languages have linear-size circuits. A language whose words consist only of trues
has, at every length n, a circuit of n + 1 gates: a constant when the word of length n is not
in the language, and the conjunction of the inputs otherwise.