Documentation

CslibFrontier.Computability.Complexity.Classes.Sparse.OneQuery

Sparse sets hard for NP under one-query reductions #

If SAT reduces to a sparse problem by a polynomial-time truth-table reduction making at most one query, then P = NP (Cslib.Complexity.OneQuery.P_eq_NP_of_mem_SPARSE). This is a direct corollary of the bounded truth-table theorem (Cslib.Complexity.BTT.SAT_mem_P) [OW91], Arvind, Köbler and Mundhenk, Theorem 3.4, subsuming both Mahaney's and Fortune's theorems.

Main results #

References #

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

If SAT reduces to a sparse problem by a one-query truth-table reduction, then SAT is in P, a special case of Cslib.Complexity.BTT.SAT_mem_P [OW91].

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

Sparse sets are not hard for NP under one-query reductions unless P = NP: if SAT reduces to a sparse problem by a polynomial-time truth-table reduction making at most one query, then P = NP, for every encoding of instances [OW91].