Polynomial-time truth-table reductions #
A nonadaptive reduction uses a uniformly computed indexed batch of queries, a unary query count,
and a polynomial-time Boolean combiner. The combiner receives the original input and all answers.
The query generator is total even outside the used range; unused outputs do not affect semantics.
The answer word truthTableAnswers and the resource-free kernel TruthTableReducibleBy live in
CslibFrontier.Computability.Reduction.TruthTable, publicly re-exported here.
PolyTimeTruthTableReducible is by definition TruthTableReducibleBy with polynomial-time data,
so the kernel lemmas prove its complementation and many-one embedding below.
Main definitions #
PolyTimeTruthTableReducible: polynomial-time nonadaptive reduction of encoded languages.
Main results #
truthTable_mem_P,PolyTimeTruthTableReducible.mem_P:Pis closed under polynomial-time truth-table reductions.PolyTimeReducible.polyTimeTruthTableReducible: every polynomial-time many-one reduction is a polynomial-time truth-table reduction.PolyTimeTruthTableReducible.refl: polynomial-time truth-table reducibility is reflexive.PolyTimeTruthTableReducible.compl_left,PolyTimeTruthTableReducible.compl_right,PolyTimeTruthTableReducible.compl: polynomial-time truth-table reductions are closed under complementing either or both languages.
References #
A polynomial-time truth-table reduction generates all queries without access to their answers, then applies a polynomial-time Boolean combiner to the input and answer word. The count is computed in unary; query lengths and counts may vary at fixed input length.
Every polynomial-time many-one reduction is a polynomial-time truth-table reduction making a single query.
Every problem reduces to itself under polynomial-time truth-table reductions.
Negating the Boolean combiner reduces the complement Lᶜ to B.
Negating each answer bit before invoking the combiner reduces L to Bᶜ.
A jointly polynomial-time decidable family supports any polynomial-time Boolean combination of a computed unary batch of queries.