Logspace truth-table reductions and restricted variants #
A logspace truth-table reduction (LogSpaceTruthTableReducible, $A \le_{tt}^L B$) is a
nonadaptive oracle reduction in logarithmic space: on input a : α, a logspace count map
r : α → ℕ (with unary output encUnary) and a logspace indexed query generator
q : α × ℕ → β determine the queries q (a, 0), …, q (a, r a - 1) before any oracle answer is
seen, and a logspace evaluator d : α × List Bool → Bool combines a and the answer bit
vector truthTableAnswers (q ⁻¹' B) r a into the decision for a
(adapting the polynomial-time scheme of Ladner, Lynch and Selman to
logarithmic space).
Design choice. The literature uses two inequivalent conventions for logspace truth-table
evaluation: requiring the evaluator d to be computable in logarithmic space (L), or restricting
truth tables to Boolean formulas / NC¹ evaluators. This module adopts the L-evaluator
convention so that both query generation and truth-table evaluation lie in L, ensuring that
bounded-query truth-table reductions preserve membership in L and compose in L. No equivalence
with the formula/NC¹ convention is claimed.
This module also defines the standard restricted logspace truth-table notions mirroring
TruthTableVariants. As there, each definition is by definition an instance of a resource-free
kernel of CslibFrontier.Computability.Reduction.TruthTable, whose lemmas prove the inclusions,
embeddings, complementation and duality below:
k-query truth-table (LogSpaceKTruthTableReducible k): at mostknonadaptive queries per input (∀ a, r a ≤ k).- Bounded truth-table (
LogSpaceBTTReducible):k-query truth-table for some constantk. - Disjunctive truth-table (
LogSpaceDTTReducible): accepts iff at least one query lies inB. - Conjunctive truth-table (
LogSpaceCTTReducible): accepts iff every query lies inB. - Positive truth-table (
LogSpacePTTReducible): the evaluator is monotone in the answer bit vector with respect toList.Forall₂ (· ≤ ·).
Main definitions #
Cslib.Complexity.LogSpaceTruthTableReducible: logspace nonadaptive reduction.Cslib.Complexity.LogSpaceKTruthTableReducible: at mostklogspace nonadaptive queries.Cslib.Complexity.LogSpaceBTTReducible: bounded-query logspace truth-table reduction.Cslib.Complexity.LogSpaceDTTReducible: logspace disjunctive truth-table reduction.Cslib.Complexity.LogSpaceCTTReducible: logspace conjunctive truth-table reduction.Cslib.Complexity.LogSpacePTTReducible: logspace positive truth-table reduction.
Main results #
- Inclusions within logspace:
LogSpaceReducible.logSpaceKTruthTableReducible_one,LogSpaceKTruthTableReducible.mono,LogSpaceKTruthTableReducible.logSpaceBTTReducible,LogSpaceBTTReducible.logSpaceTruthTableReducible,LogSpaceReducible.logSpaceBTTReducible,LogSpaceReducible.logSpaceTruthTableReducible,LogSpaceReducible.logSpaceDTTReducible,LogSpaceReducible.logSpaceCTTReducible,LogSpaceDTTReducible.logSpacePTTReducible,LogSpaceCTTReducible.logSpacePTTReducible,LogSpacePTTReducible.logSpaceTruthTableReducible,LogSpaceDTTReducible.logSpaceTruthTableReducible,LogSpaceCTTReducible.logSpaceTruthTableReducible. - Embeddings into polynomial-time reductions and
P-closure:LogSpaceTruthTableReducible.polyTimeTruthTableReducible,LogSpaceKTruthTableReducible.polyTimeKTruthTableReducible,LogSpaceBTTReducible.polyTimeBTTReducible,LogSpaceDTTReducible.polyTimeDTTReducible,LogSpaceCTTReducible.polyTimeCTTReducible,LogSpacePTTReducible.polyTimePTTReducible, and.mem_Pfor each variant. - Reflexivity and complementation:
reflforLogSpaceTruthTableReducible,LogSpaceBTTReducible,LogSpaceDTTReducible,LogSpaceCTTReducible,LogSpacePTTReducible;compl_left,compl_right,complforLogSpaceTruthTableReducible,LogSpaceKTruthTableReducible,LogSpaceBTTReducible;logSpaceDTTReducible_iff_logSpaceCTTReducible_compl. - Closure of
Land transitivity for bounded-query reductions:kTruthTable_mem_L,LogSpaceKTruthTableReducible.mem_L,LogSpaceBTTReducible.mem_L,LogSpaceKTruthTableReducible.trans,LogSpaceBTTReducible.trans.
References #
Definitions #
A truth-table reduces to B in logarithmic space: a logspace query count r (with unary
output encUnary), a logspace indexed query generator q producing q (a, i) for i < r a,
and a logspace evaluator d decide a ∈ A from a and the answer word
truthTableAnswers (q ⁻¹' B) r a.
A positive-truth-table reduces to B in logarithmic space: a logspace truth-table reduction
whose evaluator is monotone in the answer word with respect to List.Forall₂ (· ≤ ·).
Inclusions within logarithmic space #
A logspace many-one reduction is a 1-truth-table reduction: one query f a, with the first
answer bit returned directly.
k-truth-table reducibility in logarithmic space is monotone in the query bound k.
A k-truth-table reduction in logarithmic space is a bounded-truth-table reduction.
A bounded-truth-table reduction in logarithmic space is a truth-table reduction.
A logspace many-one reduction is a logspace bounded-truth-table reduction.
A logspace many-one reduction is a logspace truth-table reduction.
A logspace many-one reduction is a logspace disjunctive truth-table reduction.
A logspace many-one reduction is a logspace conjunctive truth-table reduction.
A logspace disjunctive truth-table reduction is a logspace positive truth-table reduction,
evaluated by List.any id.
A logspace conjunctive truth-table reduction is a logspace positive truth-table reduction,
evaluated by List.all id.
A logspace positive truth-table reduction is a logspace truth-table reduction.
A logspace disjunctive truth-table reduction is a logspace truth-table reduction.
A logspace conjunctive truth-table reduction is a logspace truth-table reduction.
Embeddings into polynomial-time reductions and P-closure #
Every logspace truth-table reduction is a polynomial-time truth-table reduction.
Every logspace k-truth-table reduction is a polynomial-time k-truth-table reduction.
Every logspace bounded-truth-table reduction is a polynomial-time bounded-truth-table reduction.
Every logspace disjunctive truth-table reduction is a polynomial-time disjunctive truth-table reduction.
Every logspace conjunctive truth-table reduction is a polynomial-time conjunctive truth-table reduction.
Every logspace positive truth-table reduction is a polynomial-time positive truth-table reduction.
Reflexivity and complementation #
Every problem truth-table reduces to itself in logarithmic space.
Every problem bounded-truth-table reduces to itself in logarithmic space.
Every problem disjunctive-truth-table reduces to itself in logarithmic space.
Every problem conjunctive-truth-table reduces to itself in logarithmic space.
Every problem positive-truth-table reduces to itself in logarithmic space.
Negating the evaluator turns a logspace truth-table reduction from A to B into one from
Aᶜ to B.
Negating the answer bits before evaluation turns a logspace truth-table reduction from A to
B into one from A to Bᶜ.
Negating the evaluator turns a logspace k-truth-table reduction from A to B into one from
Aᶜ to B.
Negating the answer bits before evaluation turns a logspace k-truth-table reduction from A
to B into one from A to Bᶜ.
Negating the evaluator turns a logspace bounded-truth-table reduction from A to B into one
from Aᶜ to B.
Negating the answer bits before evaluation turns a logspace bounded-truth-table reduction from
A to B into one from A to Bᶜ.
De Morgan duality for logspace disjunctive and conjunctive truth-table reductions: A
disjunctively reduces to B iff Aᶜ conjunctively reduces to Bᶜ, by the same queries.
Closure of L and transitivity for bounded-query truth-table reductions #
Kernel for L-closure under k-query logspace truth-table reductions: evaluating at most k
queries of a language in L and combining the answers in logspace keeps the language in L.
Logspace k-truth-table reductions compose, multiplying the query bounds: a k₁-query
reduction followed by a k₂-query reduction yields a (k₁ * k₂)-query reduction. Each of the
r₁ a outer queries is expanded into a block of k₂ inner queries, and the outer evaluator
combines the r₁ a inner decisions computed from the corresponding slices of the oracle answer
vector.
Logspace bounded-truth-table reductions compose.