Documentation

CslibFrontier.Computability.Complexity.Parameterized.Kernelization

Kernelization #

A kernelization of a parameterized problem (A, κ) [CyganEtAl2015, Definition 2.1] [FlumGrohe2006, Definition 9.1] is a polynomial-time map K from instances to instances with K a ∈ A ↔ a ∈ A, whose output has encoded length and parameter at most g (κ a) for a function g (Cslib.Complexity.IsKernelization). The problem has a kernel when it has a kernelization (Cslib.Complexity.HasKernel), and a polynomial kernel when g can be chosen polynomially bounded (Cslib.Complexity.HasPolyKernel). As for Cslib.Complexity.FPT, g is arbitrary, where the cited definitions require it to be computable.

Kernels characterize fixed-parameter tractability [CCDF97]:

Problems in P have kernels of constant size (Cslib.Complexity.hasPolyKernel_of_mem_P).

Main definitions #

Main results #

References #

Kernels #

structure Cslib.Complexity.IsKernelization {α : Type u_1} (enc : α ↪ List Bool) (κ : α → ℕ) (A : Set α) (K : α → α) (g : ℕ → ℕ) :

K is a kernelization of the parameterized problem (A, κ) with size bound g: it is computable in polynomial time, preserves membership in A, and its output has encoded length and parameter at most g (κ a).

  • The kernelization is computable in polynomial time.

  • mem_iff (a : α) : K a ∈ A ↔ a ∈ A

    The kernelization preserves membership.

  • length_le (a : α) : (enc (K a)).length ≤ g (κ a)

    The output has encoded length bounded by a function of the parameter.

  • parameter_le (a : α) : κ (K a) ≤ g (κ a)

    The output has parameter bounded by a function of the parameter.

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

The parameterized problem (A, κ) has a kernel: some kernelization, with some size bound.

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

The parameterized problem (A, κ) has a polynomial kernel: a kernelization with a polynomially bounded size bound.

theorem Cslib.Complexity.HasPolyKernel.hasKernel {α : Type u_1} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} (h : HasPolyKernel enc κ A) :
HasKernel enc κ A
theorem Cslib.Complexity.IsKernelization.fptReducible {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} {K : α → α} {g : ℕ → ℕ} (hK : IsKernelization enc κ A K g) :
FPTReducible enc enc κ κ A A

Every kernelization of (A, κ) is an fpt-reduction from (A, κ) to itself.

Kernels give fixed-parameter tractability #

theorem Cslib.Complexity.IsKernelization.mem_FPT {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} {K : α → α} {g : ℕ → ℕ} (hK : IsKernelization enc κ A K g) {t : ℕ → ℕ} (hA : A ∈ DTIME enc t) :
A ∈ FPT enc κ

A decidable problem with a kernel is fixed-parameter tractable: run the kernelization, then a decider on its output.

theorem Cslib.Complexity.HasKernel.mem_FPT {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} (h : HasKernel enc κ A) {t : ℕ → ℕ} (hA : A ∈ DTIME enc t) :
A ∈ FPT enc κ

A decidable problem with a kernel is fixed-parameter tractable.

Fixed-parameter tractability gives kernels #

theorem Cslib.Complexity.hasKernel_of_mem_FPT {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} [Nonempty α] (hA : A ∈ FPT enc κ) :
HasKernel enc κ A

Fixed-parameter tractable problems have kernels [CCDF97]: run the decider with a clock (c + 1) (L + 1) ^ (e + 1); on timeout the instance is short.

theorem Cslib.Complexity.mem_FPT_iff_hasKernel {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} [Nonempty α] {t : ℕ → ℕ} (hA : A ∈ DTIME enc t) :
A ∈ FPT enc κ ↔ HasKernel enc κ A

Kernels characterize fixed-parameter tractability [CCDF97]: a decidable problem over a nonempty type of instances is fixed-parameter tractable exactly when it has a kernel.

Problems in P #

theorem Cslib.Complexity.hasPolyKernel_of_mem_P {α : Type} {enc : α ↪ List Bool} {κ : α → ℕ} {A : Set α} [Nonempty α] (hA : A ∈ P enc) :
HasPolyKernel enc κ A

Problems in P have kernels of constant size, over a nonempty type of instances: decide the instance, and output a fixed instance with the same answer.