Documentation

CslibFrontier.Computability.Complexity.Classes.Sparse.BoundedTruthTable

Sparse sets hard for NP under bounded truth-table reductions #

Every problem A ∈ NP with a binary witness tree T : Cslib.Complexity.WitnessTree enc A whose left set reduces by a polynomial-time bounded truth-table reduction to a problem that reduces conjunctively to a sparse problem lies in P (Cslib.Complexity.BTT.mem_P_of_leftSet_polyTimeCTTReducible) Arvind, Köbler and Mundhenk, Theorem 3.4. Since the left set of SAT reduces to SAT (Cslib.Complexity.SAT.witnessTree_leftSet_polyTimeReducible_SAT), if SAT (or UNSAT, by closure of bounded truth-table reductions under complement) reduces by a bounded truth-table reduction to a sparse problem (or to a problem conjunctively reducible to a sparse problem), then SAT ∈ P and P = NP (Cslib.Complexity.BTT.P_eq_NP_of_polyTimeCTTReducible, Cslib.Complexity.BTT.P_eq_NP_of_mem_SPARSE, Cslib.Complexity.BTT.P_eq_NP_of_UNSAT_mem_SPARSE), a theorem of Ogiwara and Watanabe [OW91], Arvind, Köbler and Mundhenk, Section 1.

The procedure searches the binary witness tree of an instance x level by level (Cslib.Complexity.WitnessTree.acceptsWith). A node u of length k ≤ T.len x padded with false to length T.len x belongs to T.leftSet exactly when u is lexicographically at most the largest valid prefix of level k (Cslib.Complexity.WitnessTree.pad_mem_leftSet_iff_le). The bounded truth-table reduction gives T.leftSet a Hausdorff decomposition ⋃ d < D, C (2 d) \ C (2 d + 1) with decreasing sets C j (Cslib.Complexity.BTT.eq_true_iff_exists_hausdorff), each with a conjunctive reduction to a tally problem (Cslib.Complexity.BTT.exists_polyTimeCTTReducible_hausdorff). Each node asks the queries of (x, WitnessTree.pad (T.len x) u) for each C j, and PRUNE (Cslib.Complexity.BTT.prune) keeps the largest valid prefix (Cslib.Complexity.BTT.getElem_mem_prune) and polynomially many nodes: the queries are unary numbers bounded by a polynomial M in the encoded length of x, so at most M + 1 of them lie in a target.

Main definitions #

Main results #

References #

def Cslib.Complexity.BTT.accepts {α : Type} (len : α → ℕ) (verify : α × List Bool → Bool) (key : ℕ → α × List Bool → List ℕ) (D s : ℕ) (x : α) :

The decision procedure for a witness tree of depth len and verifier verify, with queries key, bound s and D depths: search the binary prefix tree of x in decreasing lexicographic order, pruning each level with PRUNE on the level in increasing order, where node u asks key j (x, WitnessTree.pad (len x) u) for the j-th set; accept when a surviving leaf is accepted by verify.

Correctness #

theorem Cslib.Complexity.BTT.accepts_iff {α : Type} {enc : α ↪ List Bool} {A : Set α} (T : WitnessTree enc A) {x : α} {C : ℕ → α × List Bool → Prop} {key : ℕ → α × List Bool → List ℕ} {K : ℕ → Set ℕ} {D M s : ℕ} (hnest : ∀ (j : ℕ) (p : α × List Bool), C (j + 1) p → C j p) (hleft : ∀ (p : α × List Bool), p ∈ T.leftSet ↔ ∃ d < D, C (2 * d) p ∧ ¬C (2 * d + 1) p) (hkey : ∀ j < 2 * D, ∀ (p : α × List Bool), C j p ↔ ∀ w ∈ key j p, w ∈ K j) (hM : ∀ j < 2 * D, ∀ (u : List Bool), u.length ≤ T.len x → ∀ w ∈ key j (x, WitnessTree.pad (T.len x) u), w ≤ M) (hs : M + 1 ≤ s) :
accepts T.len T.verify key D s x = true ↔ x ∈ A

Correctness of the procedure. Let the sets C j decrease and give T.leftSet the Hausdorff decomposition ⋃ d < D, C (2 d) \ C (2 d + 1). If, for each j < 2 D, the queries key j reduce C j conjunctively to a set K j of natural numbers, the queries of the padded nodes of the tree of x are at most M, and s ≥ M + 1, then the procedure accepts x iff x ∈ A.

Polynomial time #

The procedure is polynomial-time, for polynomial-time queries key j, a fixed number D of depths and a bound s computed in unary. Each level keeps at most 2 D (s + 2) ^ (2 D) nodes.

Left sets in R_btt(R_ctt(SPARSE)) #

theorem Cslib.Complexity.BTT.mem_P_of_leftSet_polyTimeCTTReducible {α β γ : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {encC : γ ↪ List Bool} {A : Set α} {B : Set β} {S : Set γ} (T : WitnessTree enc A) (hS : S ∈ SPARSE encC) (hB : PolyTimeCTTReducible encB encC B S) (h : PolyTimeBTTReducible (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encB T.leftSet B) :
A ∈ P enc

Arvind–Köbler–Mundhenk Theorem 3.4 [Arvind, Köbler and Mundhenk, Theorem 3.4] [AKM92]: if a problem A has a binary witness tree T (in particular, any problem in NP via WitnessTree.ofIsVerifier) whose left set T.leftSet reduces by a bounded truth-table reduction to a problem with a conjunctive reduction to a sparse problem, then A ∈ P.

Sparse sets hard for NP and coNP under bounded truth-table reductions #

theorem Cslib.Complexity.BTT.SAT_mem_P_of_polyTimeCTTReducible {β γ : Type} {encB : β ↪ List Bool} {encC : γ ↪ List Bool} {B : Set β} {S : Set γ} (hS : S ∈ SPARSE encC) (hB : PolyTimeCTTReducible encB encC B S) (h : PolyTimeBTTReducible encCNF encB SAT B) :

If SAT reduces by a bounded truth-table reduction to a problem with a conjunctive reduction to a sparse problem, then SAT is in P [Arvind, Köbler and Mundhenk, Theorem 3.4] [AKM92]: SAT.witnessTree.leftSet reduces to SAT, so the general left-set theorem applies.

theorem Cslib.Complexity.BTT.SAT_mem_P {β : Type} {encB : β ↪ List Bool} {S : Set β} (hS : S ∈ SPARSE encB) (h : PolyTimeBTTReducible encCNF encB SAT S) :

If SAT reduces to a sparse problem by a bounded truth-table reduction, then SAT is in P, a theorem of Ogiwara and Watanabe [OW91], Arvind, Köbler and Mundhenk, Section 1.

theorem Cslib.Complexity.BTT.SAT_mem_P_of_UNSAT {β : Type} {encB : β ↪ List Bool} {S : Set β} (hS : S ∈ SPARSE encB) (h : PolyTimeBTTReducible encCNF encB UNSAT S) :

If UNSAT reduces to a sparse problem by a bounded truth-table reduction, then SAT is in P: bounded truth-table reductions are closed under complementing the source.

theorem Cslib.Complexity.BTT.P_eq_NP_of_polyTimeCTTReducible {β γ : Type} {encB : β ↪ List Bool} {encC : γ ↪ List Bool} {B : Set β} {S : Set γ} (h : PolyTimeBTTReducible encCNF encB SAT B) (hB : PolyTimeCTTReducible encB encC B S) (hS : S ∈ SPARSE encC) {α : Type} (enc : α ↪ List Bool) :
P enc = NP enc

NP ⊆ R_btt(R_ctt(SPARSE)) implies P = NP: if SAT reduces by a bounded truth-table reduction to a problem with a conjunctive reduction to a sparse problem, then P = NP, for every encoding of instances Arvind, Köbler and Mundhenk, Theorem 3.4.

theorem Cslib.Complexity.BTT.P_eq_NP_of_mem_SPARSE {β : Type} {encB : β ↪ List Bool} {S : Set β} (h : PolyTimeBTTReducible encCNF encB SAT S) (hS : S ∈ SPARSE encB) {α : Type} (enc : α ↪ List Bool) :
P enc = NP enc

Sparse sets are not hard for NP under bounded truth-table reductions unless P = NP (Ogiwara and Watanabe [OW91]; Arvind, Köbler and Mundhenk, Section 1): if SAT reduces to a sparse problem by a polynomial-time bounded truth-table reduction, then P = NP, for every encoding of instances.

theorem Cslib.Complexity.BTT.P_eq_NP_of_UNSAT_mem_SPARSE {β : Type} {encB : β ↪ List Bool} {S : Set β} (h : PolyTimeBTTReducible encCNF encB UNSAT S) (hS : S ∈ SPARSE encB) {α : Type} (enc : α ↪ List Bool) :
P enc = NP enc

Sparse sets are not hard for coNP under bounded truth-table reductions unless P = NP: if UNSAT reduces to a sparse problem by a polynomial-time bounded truth-table reduction, then P = NP, for every encoding of instances.