Documentation

CslibFrontier.Computability.Complexity.Classes.Sparse.Mahaney

Mahaney's theorem #

If a sparse problem is NP-hard under polynomial-time many-one reductions, then P = NP (Cslib.Complexity.NPHard.P_eq_NP_of_mem_SPARSE) [Mah82]. This is derived as a corollary of the bounded truth-table theorem (Cslib.Complexity.BTT.SAT_mem_P) [OW91], Arvind, Köbler and Mundhenk, Theorem 3.4 by transferring the reduction and sparseness along the target encoding encB to encB '' S : Set (List Bool).

Main results #

References #

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

If SAT reduces to a sparse problem, then SAT is in P, a corollary of Cslib.Complexity.BTT.SAT_mem_P [Mah82], [OW91].

theorem Cslib.Complexity.NPHard.P_eq_NP_of_mem_SPARSE {β : Type u_1} {encB : β ↪ List Bool} {S : Set β} (hard : NPHard encB S) (hS : S ∈ SPARSE encB) {α : Type} (enc : α ↪ List Bool) :
P enc = NP enc

Mahaney's theorem: if a sparse problem is NP-hard under polynomial-time many-one reductions, then P = NP, for every encoding of instances [Mah82].