Documentation

CslibFrontier.Computability.Complexity.Classes.Selective.Selman

Self-reducible and NP-hard P-selective sets: Selman's theorem #

If a problem A has a binary witness tree T : Cslib.Complexity.WitnessTree enc A whose prefix set T.prefixSet is P-selective, then A ∈ P (Cslib.Complexity.WitnessTree.mem_P_of_prefixSet_mem_PSel). In particular, if T.prefixSet reduces in polynomial time to A (disjunctive prefix self-reducibility) and A is P-selective, then A ∈ P (Cslib.Complexity.WitnessTree.mem_P_of_mem_PSel). Starting from the empty prefix, the procedure asks a Boolean selector for T.prefixSet to choose between u ++ [true] and u ++ [false] at each of the T.len x depths; whenever u extends to a witness, at least one child does, so the chosen child still extends to a witness, and T.verify checks the leaf.

Since SAT.witnessTree.prefixSet reduces to SAT (Cslib.Complexity.SAT.witnessTree_prefixSet_polyTimeReducible_SAT), a P-selective SAT lies in P (Cslib.Complexity.SAT.mem_P_of_mem_PSel), giving Selman's theorem: if some NP-hard set is P-selective, then P = NP (Cslib.Complexity.NPHard.P_eq_NP_of_mem_PSel) [Sel79]; see also Hemaspaandra and Torenvliet.

Main results #

References #

A witness tree with a P-selective prefix set defines a problem in P: walk down the binary witness tree using a Boolean selector to choose between the true and false children at each depth, and check the resulting leaf with T.verify.

A prefix self-reducible P-selective problem is in P: when T.prefixSet reduces in polynomial time to A and A ∈ PSel, T.prefixSet is P-selective and T decides A.

A P-selective SAT is in P: SAT.witnessTree.prefixSet reduces to SAT, so the prefix-selector search decides SAT.

SAT is P-selective exactly when it is in P.

theorem Cslib.Complexity.NPHard.P_eq_NP_of_mem_PSel {β : Type} {encB : β ↪ List Bool} {B : Set β} (hB : NPHard encB B) (h : B ∈ PSel encB) {α : Type} (enc : α ↪ List Bool) :
P enc = NP enc

Selman's theorem. If an NP-hard set is P-selective, then P = NP, for every encoding of instances: SAT reduces to it, so SAT is P-selective and hence in P [Sel79].

theorem Cslib.Complexity.NPComplete.mem_PSel_iff {β : Type} {encB : β ↪ List Bool} {B : Set β} (hB : NPComplete encB B) :
B ∈ PSel encB ↔ ∀ {α : Type} (enc : α ↪ List Bool), P enc = NP enc

An NP-complete set is P-selective exactly when P = NP, for every encoding of instances.