Documentation

CslibFrontier.Computability.Complexity.Parameterized.Distillation

OR-distillation and coNP ⊆ NP/poly #

A weak OR-distillation of a problem A into a problem B [BodlaenderJansenKratsch2014, Definition 4] (Cslib.Complexity.IsORDistillation) maps a nonempty list of instances of A, in polynomial time, to one instance of B that is a yes-instance exactly when some entry of the list is, and whose length is bounded by a polynomially bounded function of the largest length of an entry, whatever the length of the list. Fortnow and Santhanam proved that no NP-hard problem has one unless coNP ⊆ NP/poly: this is the NP ⊆ coNP/poly conclusion of [BodlaenderJansenKratsch2014, Theorem 2] (Cslib.Complexity.coNP_subset_NPPoly_of_orDistillation, with Cslib.Complexity.NPPoly), and Yap's theorem Yap (Cslib.Complexity.PH_eq_SigmaP_three_of_coNP_subset_NPPoly) gives its second conclusion, the collapse of the polynomial hierarchy to Σ₃ (Cslib.Complexity.PH_eq_SigmaP_three_of_orDistillation).

The proof is a counting argument. Fix a length n, and compress lists of t(n) no-instances of length n to words shorter than t(n). Fewer than 2 ^ t(n) such words exist, so ⌊log₂ 2 ^ n⌋ + 1 = n + 1 of them cover all no-instances of length n: each no-instance is an entry of a list compressed to one of them (Finset.exists_tupleCover). These words are the advice. To certify that a is a no-instance, a verifier guesses a list containing a and checks that it is compressed to an advice word; then every entry is a no-instance, as the advice word is the image of a list of no-instances, and the OR property applies to both lists.

The theorem is proved here in the class-wise form underlying the cross-composition framework of Bodlaender, Jansen and Kratsch [BodlaenderJansenKratsch2014, Section 3]. The lists are restricted to pairwise equivalent instances, for an equivalence relation that is decidable in polynomial time and splits the instances up to any length n into polynomially many classes in n (Cslib.Complexity.IsPolyEquivalence, [BodlaenderJansenKratsch2014, Definition 8]). The OR property is required only for nonempty lists of equivalent instances, and compression to fewer than t(n) bits only for lists of exactly t(n) equivalent instances of length exactly n (Cslib.Complexity.compl_mem_NPPoly_of_orCompression). The advice covers each of the polynomially many classes separately, as in the proof of [BodlaenderJansenKratsch2014, Theorem 6]. Taking the relation relating all instances recovers the OR-distillation theorem (Cslib.Complexity.IsORDistillation.compl_mem_NPPoly).

The core theorem needs a decoder for the encoding of instances (Turing.MultiTapeTM.Decoder), to parse the list of instances in a certificate. The corollaries for NP-hard problems need none: they transfer the hypotheses along a reduction from SAT (Cslib.Complexity.CookLevin.SAT_npComplete), whose formulas have a decoder, and the relation along the reduction (Cslib.Complexity.IsPolyEquivalence.comap). Equality of a key computed in polynomial time with unary output, such as a number of vertices, is a polynomial equivalence relation (Cslib.Complexity.IsPolyEquivalence.of_key).

The distillation is computed in time polynomial in the length t + 2 (|x₁| + ⋯ + |xₜ|) of the encoded list [x₁, …, xₜ] (Turing.MultiTapeTM.encList, Turing.MultiTapeTM.length_encList); [BodlaenderJansenKratsch2014, Definition 4] bounds the time by a polynomial in ∑ |xᵢ|. A bound polynomial in ∑ |xᵢ| is also polynomial in the encoded length, so the time hypothesis here is weaker, and the theorem correspondingly stronger; the two agree up to the polynomial when no instance has the empty encoding, as then t ≤ ∑ |xᵢ|. The OR property and the length bound are required only for nonempty lists, as Definition 4 concerns t ≥ 1 instances.

Main definitions #

Main results #

References #

Polynomial equivalence relations #

structure Cslib.Complexity.IsPolyEquivalence {α : Type} (enc : α ↪ List Bool) (r : α × α → Bool) :

r is a polynomial equivalence relation on the instances encoded by enc [BodlaenderJansenKratsch2014, Definition 8]: an equivalence relation, decidable in polynomial time, such that for some polynomially bounded c, the instances whose encodings have length at most n meet at most c n classes, given by representatives T.

structure Cslib.Complexity.IsORDistillation {α β : Type} (encA : α ↪ List Bool) (encB : β ↪ List Bool) (A : Set α) (B : Set β) (f : List α → β) (s : ℕ → ℕ) :

f is a weak OR-distillation of A into B with size bound s [BodlaenderJansenKratsch2014, Definition 4]: it maps lists of instances of A in polynomial time to instances of B, such that for every nonempty list l, f l ∈ B exactly when some entry of l is in A, and the output has length at most s n when every entry has length at most n. The value of f on the empty list is unconstrained.

theorem Cslib.Complexity.isPolyEquivalence_const_true {α : Type} (enc : α ↪ List Bool) :
IsPolyEquivalence enc fun (x : α × α) => true

The relation relating all instances is a polynomial equivalence relation, with one class.

theorem Cslib.Complexity.IsPolyEquivalence.comap {α β : Type} {enc : α ↪ List Bool} {encC : β ↪ List Bool} {r : β × β → Bool} (hr : IsPolyEquivalence encC r) {g : α → β} (hg : Turing.MultiTapeTM.ComputableInPolyTime g enc encC) :
IsPolyEquivalence enc fun (p : α × α) => r (g p.1, g p.2)

Pulling back a polynomial equivalence relation along a polynomial-time map g gives a polynomial equivalence relation: a and b are related when g a and g b are.

Equality of unary numbers is a polynomial equivalence relation, with the n + 1 classes of the numbers m ≤ n up to length n.

theorem Cslib.Complexity.IsPolyEquivalence.of_key {α : Type} {enc : α ↪ List Bool} {key : α → ℕ} (hkey : Turing.MultiTapeTM.ComputableInPolyTime key enc Turing.MultiTapeTM.encUnary) :
IsPolyEquivalence enc fun (p : α × α) => decide (key p.1 = key p.2)

Equal keys form a polynomial equivalence relation, for a key computable in polynomial time with unary output: instances are related when they have the same key.

The advice #

The theorem of Fortnow and Santhanam #

theorem Cslib.Complexity.compl_mem_NPPoly_of_orCompression {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (D : Turing.MultiTapeTM.Decoder enc) {r : α × α → Bool} (hr : IsPolyEquivalence enc r) {f : List α → β} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encList enc) encB) (hOR : ∀ (l : List α), l ≠ [] → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (f l ∈ B ↔ ∃ a ∈ l, a ∈ A)) {t : ℕ → ℕ} (ht : PolynomiallyBounded t) (hshort : ∀ (n : ℕ) (l : List α), l.length = t n → (∀ a ∈ l, (enc a).length = n) → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (encB (f l)).length < t n) :

Compressing lists of equivalent instances puts the complement in NP/poly, in the class-wise form of [BodlaenderJansenKratsch2014, Theorem 6] of the theorem of Fortnow and Santhanam (the NP ⊆ coNP/poly conclusion of [BodlaenderJansenKratsch2014, Theorem 2]). Let r be a polynomial equivalence relation, and let f : List α → β be computable in polynomial time, with f l ∈ B exactly when some entry of l is in A for every nonempty list l of pairwise related instances. If, for a polynomially bounded t, every list of t n pairwise related instances of length n is mapped to an instance of B of length less than t n, then the complement of A is in NP/poly. The decoder D parses the lists of instances in certificates.

theorem Cslib.Complexity.coNP_subset_NPPoly_of_orCompression {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hA : NPHard enc A) {r : α × α → Bool} (hr : IsPolyEquivalence enc r) {f : List α → β} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encList enc) encB) (hOR : ∀ (l : List α), l ≠ [] → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (f l ∈ B ↔ ∃ a ∈ l, a ∈ A)) {t : ℕ → ℕ} (ht : PolynomiallyBounded t) (hshort : ∀ (n : ℕ) (l : List α), l.length = t n → (∀ a ∈ l, (enc a).length ≤ n) → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (encB (f l)).length < t n) {γ : Type} (encC : γ ↪ List Bool) :
coNP encC ⊆ NPPoly encC

Fortnow–Santhanam for compressions of equivalent instances, the NP ⊆ coNP/poly conclusion of [BodlaenderJansenKratsch2014, Theorem 2] in the class-wise form of [BodlaenderJansenKratsch2014, Theorem 6]: if an NP-hard problem A has a polynomial-time map f with the OR property on nonempty lists of instances equivalent under a polynomial equivalence relation r, which maps every list of t n equivalent instances of length at most n to an instance of length less than t n, for a polynomially bounded t, then coNP ⊆ NP/poly.

theorem Cslib.Complexity.IsORDistillation.compl_mem_NPPoly {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (D : Turing.MultiTapeTM.Decoder enc) {f : List α → β} {s : ℕ → ℕ} (h : IsORDistillation enc encB A B f s) (hs : PolynomiallyBounded s) :

OR-distillations put the complement in NP/poly: if f is an OR-distillation of A with a polynomially bounded size bound, then the complement of A is in NP/poly. The decoder D parses the lists of instances in certificates.

theorem Cslib.Complexity.coNP_subset_NPPoly_of_orDistillation {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hA : NPHard enc A) {f : List α → β} {s : ℕ → ℕ} (h : IsORDistillation enc encB A B f s) (hs : PolynomiallyBounded s) {γ : Type} (encC : γ ↪ List Bool) :
coNP encC ⊆ NPPoly encC

Fortnow–Santhanam, the NP ⊆ coNP/poly conclusion of [BodlaenderJansenKratsch2014, Theorem 2], stated as coNP ⊆ NP/poly: if an NP-hard problem has an OR-distillation into any problem, with a polynomially bounded size bound, then coNP ⊆ NP/poly, for every encoding of instances. For the collapse PH = Σ₃ that Theorem 2 derives from it by Yap's theorem, see Cslib.Complexity.PH_eq_SigmaP_three_of_orDistillation.

theorem Cslib.Complexity.NP_subset_coNPPoly_of_orDistillation {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hA : NPHard enc A) {f : List α → β} {s : ℕ → ℕ} (h : IsORDistillation enc encB A B f s) (hs : PolynomiallyBounded s) {γ : Type} (encC : γ ↪ List Bool) :
NP encC ⊆ coNPPoly encC

Fortnow–Santhanam, the NP ⊆ coNP/poly conclusion of [BodlaenderJansenKratsch2014, Theorem 2]: if an NP-hard problem has an OR-distillation into any problem, with a polynomially bounded size bound, then NP ⊆ coNP/poly, for every encoding of instances. For the collapse PH = Σ₃ that Theorem 2 derives from it by Yap's theorem, see Cslib.Complexity.PH_eq_SigmaP_three_of_orDistillation.

theorem Cslib.Complexity.PH_eq_SigmaP_three_of_orCompression {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hA : NPHard enc A) {r : α × α → Bool} (hr : IsPolyEquivalence enc r) {f : List α → β} (hf : Turing.MultiTapeTM.ComputableInPolyTime f (Turing.MultiTapeTM.encList enc) encB) (hOR : ∀ (l : List α), l ≠ [] → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (f l ∈ B ↔ ∃ a ∈ l, a ∈ A)) {t : ℕ → ℕ} (ht : PolynomiallyBounded t) (hshort : ∀ (n : ℕ) (l : List α), l.length = t n → (∀ a ∈ l, (enc a).length ≤ n) → (∀ a ∈ l, ∀ b ∈ l, r (a, b) = true) → (encB (f l)).length < t n) {γ : Type} (encC : γ ↪ List Bool) :
PH encC = SigmaP 3 encC

Fortnow–Santhanam and Yap for compressions of equivalent instances [BodlaenderJansenKratsch2014, Theorems 2 and 6], Yap: under the hypotheses of Cslib.Complexity.coNP_subset_NPPoly_of_orCompression, the polynomial hierarchy collapses to its third level, PH = Σ₃.

theorem Cslib.Complexity.PH_eq_SigmaP_three_of_orDistillation {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hA : NPHard enc A) {f : List α → β} {s : ℕ → ℕ} (h : IsORDistillation enc encB A B f s) (hs : PolynomiallyBounded s) {γ : Type} (encC : γ ↪ List Bool) :
PH encC = SigmaP 3 encC

Fortnow–Santhanam and Yap, the PH = Σ₃ conclusion of [BodlaenderJansenKratsch2014, Theorem 2] via Yap: if an NP-hard problem has an OR-distillation into any problem, with a polynomially bounded size bound, then PH = Σ₃, for every encoding of instances.