Documentation

CslibFrontier.Computability.Complexity.Parameterized.Compression

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:

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 #

References #

structure Cslib.Complexity.IsCompression {α β : Type} (enc : α ↪ List Bool) (κ : α → ℕ) (A : Set α) (encB : β ↪ List Bool) (B : Set β) (K : α → β) (h : ℕ → ℕ) :

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.

def Cslib.Complexity.HasPolyCompression {α : Type} (enc : α ↪ List Bool) (κ : α → ℕ) (A : Set α) :

The parameterized problem (A, κ) has a polynomial compression [BodlaenderJansenKratsch2014, Definition 2]: a compression into some problem on bit strings, with a polynomially bounded size bound.

theorem Cslib.Complexity.IsCompression.encode {α β : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} {encB : β ↪ List Bool} {B : Set β} {K : α → β} {h : ℕ → ℕ} (hK : IsCompression enc κ A encB B K h) :
IsCompression enc κ A Turing.MultiTapeTM.encBits (⇑encB '' B) (fun (a : α) => encB (K a)) h

A compression into a problem B with any encoding is a compression into the encoded problem encB '' B on bit strings.

theorem Cslib.Complexity.IsCompression.hasPolyCompression {α β : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} {encB : β ↪ List Bool} {B : Set β} {K : α → β} {h : ℕ → ℕ} (hK : IsCompression enc κ A encB B K h) (hh : PolynomiallyBounded h) :

A compression with a polynomially bounded size bound gives a polynomial compression.

theorem Cslib.Complexity.IsCompression.computableInPolyTime_comp {α β γ : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {encC : γ ↪ List Bool} {κ : β → ℕ} {B : Set β} {Z : Set γ} {K : β → γ} {h : ℕ → ℕ} {g : α → β} (hK : IsCompression encB κ B encC Z K h) (hg : Turing.MultiTapeTM.ComputableInPolyTime g enc encB) (hκ : Turing.MultiTapeTM.PolyBounded (fun (a : α) => (enc a).length) fun (a : α) => κ (g a)) :
Turing.MultiTapeTM.ComputableInPolyTime (fun (a : α) => K (g a)) enc encC

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.

theorem Cslib.Complexity.IsKernelization.isCompression {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} {K : α → α} {g : ℕ → ℕ} (hK : IsKernelization enc κ A K g) :
IsCompression enc κ A enc A K g

A polynomial kernel is a polynomial compression: a kernelization is computable in time polynomial in |enc a|, hence in |enc a| + κ a.

theorem Cslib.Complexity.HasPolyKernel.hasPolyCompression {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} (h : HasPolyKernel enc κ A) :

A polynomial kernel is a polynomial compression [BodlaenderJansenKratsch2014, p. 5].