Sparse problems #
A problem is sparse when it has only polynomially many members of each size. With instances
encoded as binary words, S ∈ SPARSE enc when, for a polynomially bounded p, at most p n
members of S have encodings of length at most n. This is the census form of the definition
Fluet, Hemaspaandra and Homan, Assignment page 5. Counting
encodings of length exactly n gives the same class, the form taken by
Cslib.Circuits.Boolean.PPoly.of_sparse, which Cslib.Circuits.Boolean.PPoly.of_mem_SPARSE
connects to this definition. The count is an extended natural number (Set.encard), so that an
infinite set of members is not counted as 0; since an encoding is injective, every such set is
finite.
Sparse problems cannot be hard for coNP (Fortune) or for NP (Mahaney), even under one-query
truth-table reductions, unless P = NP; see
CslibFrontier/Computability/Complexity/Classes/Sparse/Fortune.lean,
CslibFrontier/Computability/Complexity/Classes/Sparse/Mahaney.lean and
CslibFrontier/Computability/Complexity/Classes/Sparse/OneQuery.lean.
Main definitions #
Cslib.Complexity.SPARSE: the sparse problems.
Main results #
Cslib.Complexity.exists_card_le_of_mem_SPARSE: a polynomial bound on every finite set of members of bounded encoded length.Cslib.Complexity.mem_SPARSE_of_subset: subsets of sparse problems are sparse.Cslib.Complexity.image_mem_SPARSE_encBits_iff: a problem is sparse exactly when the language of encodings of its members is.Set.Finite.mem_SPARSE: finite problems are sparse.Cslib.Complexity.mem_SPARSE_of_unary: languages of words consisting only oftrues are sparse.Cslib.Complexity.univ_notMem_SPARSE: the language of all words is not sparse.
References #
The sparse problems with respect to the encoding enc: S ∈ SPARSE enc when, for some
polynomially bounded p, at most p n members of S have encodings of length at most n
Fluet, Hemaspaandra and Homan, Assignment page 5.
Finite problems are sparse.
The language of all words is not sparse: it has 2 ^ n words of each length n, more
than any polynomial bound allows.