Polynomial compressions #
A compression of a parameterized problem (A, κ) into a problem B
[BodlaenderJansenKratsch2014, Definition 2] (Cslib.Complexity.IsCompression) maps each instance
a, in time polynomial in |enc a| + κ a, to an instance of B that is a yes-instance exactly
when a ∈ A, of length at most h (κ a). It is polynomial when h is polynomially bounded
(Cslib.Complexity.HasPolyCompression). Unlike a kernelization, a compression may change the
problem, and it need not bound any parameter of its output.
Compressions differ from kernelizations (Cslib.Complexity.IsKernelization) in two ways:
- The time bound is a polynomial in
|enc a| + κ a, as in [BodlaenderJansenKratsch2014, Definition 2], where the parameter is written in unary, so that|x| + kis the input length. Hereκis a function of the instance and may be much larger than|enc a|, for instance when it is written in binary. [BodlaenderJansenKratsch2014, Definition 1] allows kernelizations the same time bound; the difference here comes from the library's stricterCslib.Complexity.IsKernelization, which asks for time polynomial in|enc a|alone, not from the source. Every kernelization in the library's sense is therefore a compression, and a polynomial kernel is a polynomial compression (Cslib.Complexity.HasPolyKernel.hasPolyCompression). - The target of a polynomial compression is any problem on bit strings
(
Set (List Bool)), as in [BodlaenderJansenKratsch2014, Definition 2]; a compression into a problem with another encoding gives one into the encoded problem (Cslib.Complexity.IsCompression.hasPolyCompression).
As for Cslib.Complexity.HasPolyKernel, the size bound h is arbitrary, where the cited
definition requires it to be computable; the definitions here are therefore weaker, and the lower
bounds proved with them stronger.
A compression of (Q, κ) composes with a polynomial-time map into Q whose parameter is
polynomially bounded in the length of its input
(Cslib.Complexity.IsCompression.computableInPolyTime_comp); this is
how [BodlaenderJansenKratsch2014, Theorem 5] combines a compression with a cross-composition.
Main definitions #
Main results #
Cslib.Complexity.IsCompression.computableInPolyTime_comp: a compression composed with a polynomial-time map of polynomially bounded parameter is computable in polynomial time.Cslib.Complexity.HasPolyKernel.hasPolyCompression: a polynomial kernel is a polynomial compression.
References #
K is a compression of the parameterized problem (A, κ) into B with size bound h
[BodlaenderJansenKratsch2014, Definition 2]: it is computable within time and space
T (|enc a| + κ a) for a polynomially bounded T (a time bound alone gives such a space bound),
K a ∈ B exactly when a ∈ A, and K a has encoded length at most h (κ a). Unlike the cited
definition, h need not be computable.
- polyTime : ∃ (T : ℕ → ℕ), PolynomiallyBounded T ∧ Turing.MultiTapeTM.ComputableInTimeAndSpace K enc encB (fun (a : α) => T ((enc a).length + κ a)) fun (a : α) => T ((enc a).length + κ a)
The compression is computable in time and space polynomial in
|enc a| + κ a. The compression preserves membership.
The output has encoded length bounded by a function of the parameter.
A compression into a problem B with any encoding is a compression into the encoded problem
encB '' B on bit strings.
A compression with a polynomially bounded size bound gives a polynomial compression.
Composing a compression with a polynomial-time map. Let K be a compression of (B, κ),
and let g be computable in polynomial time, with κ (g a) bounded by a polynomially bounded
function of |enc a|. Then K ∘ g is computable in polynomial time.
A polynomial kernel is a polynomial compression: a kernelization is computable in time
polynomial in |enc a|, hence in |enc a| + κ a.
A polynomial kernel is a polynomial compression [BodlaenderJansenKratsch2014, p. 5].