Truth-table reductions and autoreductions by admissible data #
A truth-table reduction of A to B fixes, for each input a, a number r a of queries
q (a, 0), …, q (a, r a - 1) and decides a ∈ A by applying a combiner d to a and the answer
word truthTableAnswers (q ⁻¹' B) r a. Positive truth-table reductions restrict the combiner to be
monotone in the answer word under List.Forall₂ (· ≤ ·), and disjunctive and conjunctive reductions
replace the combiner by "some query is in B" and "every query is in B". Self-query-avoiding
autoreductions specialize B = A and adjoin ∀ a i, i < r a → q (a, i) ≠ a to the admissible
data, mirroring Cslib.Complexity.ManyOneAutoreducibleBy.
Here the admissible data (r, q, d) or (r, q) are an arbitrary predicate Good. No machine model
or encoding is built in. Polynomial-time and logspace truth-table reductions and autoreductions
instantiate these kernels directly.
Main definitions #
Cslib.Complexity.truthTableAnswers: the answer word of an indexed batch of queries.Cslib.Complexity.TruthTableReducibleBy,Cslib.Complexity.PTTReducibleBy: general and positive truth-table reducibility by admissible data.Cslib.Complexity.DTTReducibleBy,Cslib.Complexity.CTTReducibleBy: disjunctive and conjunctive truth-table reducibility by admissible data.Cslib.Complexity.truthTableCompQuery,Cslib.Complexity.truthTableCompCombiner,Cslib.Complexity.truthTableCompPairs,Cslib.Complexity.dttCompQuery: composite query maps and combiner for block-indexed and flattened nonadaptive composition.Cslib.Complexity.ManyOneAutoreducibleBy,Cslib.Complexity.TruthTableAutoreducibleBy,Cslib.Complexity.PTTAutoreducibleBy,Cslib.Complexity.DTTAutoreducibleBy,Cslib.Complexity.CTTAutoreducibleBy: query-avoiding many-one and truth-table autoreducibility by admissible data.
Main results #
Cslib.Complexity.TruthTableReducibleBy.mono,Cslib.Complexity.PTTReducibleBy.mono,Cslib.Complexity.DTTReducibleBy.mono,Cslib.Complexity.CTTReducibleBy.mono: more admissible data give more reductions.Cslib.Complexity.TruthTableReducibleBy.compl_left,Cslib.Complexity.TruthTableReducibleBy.compl_right,Cslib.Complexity.TruthTableReducibleBy.compl: negating the combiner, the answers it reads, or both reduces between complements.Cslib.Complexity.ManyOneReducibleBy.truthTableReducibleBy,Cslib.Complexity.ManyOneReducibleBy.pttReducibleBy,Cslib.Complexity.ManyOneReducibleBy.dttReducibleBy,Cslib.Complexity.ManyOneReducibleBy.cttReducibleBy: a many-one reduction asks one query.Cslib.Complexity.DTTReducibleBy.pttReducibleBy,Cslib.Complexity.CTTReducibleBy.pttReducibleBy,Cslib.Complexity.PTTReducibleBy.truthTableReducibleBy: disjunctive and conjunctive reductions are positive truth-table reductions with combinerList.any idorList.all id.Cslib.Complexity.dttReducibleBy_iff_cttReducibleBy_compl: De Morgan duality.Cslib.Complexity.truthTableAnswers_drop_take,Cslib.Complexity.mem_iff_truthTableCompCombiner,Cslib.Complexity.truthTableCompCombiner_mono: block-slice identity, correctness and monotonicity of the composite combiner.Cslib.Complexity.TruthTableReducibleBy.trans,Cslib.Complexity.TruthTableReducibleBy.trans_bounded,Cslib.Complexity.PTTReducibleBy.trans,Cslib.Complexity.PTTReducibleBy.trans_bounded,Cslib.Complexity.DTTReducibleBy.trans,Cslib.Complexity.DTTReducibleBy.trans_bounded,Cslib.Complexity.CTTReducibleBy.trans,Cslib.Complexity.CTTReducibleBy.trans_bounded: resource-parametric and(k₁ * k₂)-bounded composition.Cslib.Complexity.not_manyOneAutoreducibleBy_singleton,Cslib.Complexity.not_manyOneAutoreducibleBy_compl_singleton,Cslib.Complexity.TruthTableAutoreducibleBy.compl,Cslib.Complexity.TruthTableAutoreducibleBy.of_decide,Cslib.Complexity.ManyOneReducibleBy.truthTableAutoreducibleBy_of_compl,Cslib.Complexity.dttAutoreducibleBy_iff_cttAutoreducibleBy_compl: singleton/co-singleton obstructions for many-one autoreductions, complement closure, zero-query decider autoreductions, one-query complement-witness autoreductions, and De Morgan duality for autoreductions.
References #
For a decidable indexed family, the answer word is the decided membership of each index below the query count.
Slice i of a block-indexed answer word of total length N a, with block stride k, recovers
the inner answer word for q (a, i) whenever i * k + r' (q (a, i)) ≤ N a and block i begins
with the inner queries of q (a, i).
Reduction kernels #
A truth-table reduces to B by admissible data: some query count r, query map q and
combiner d satisfying Good decide a ∈ A from a and the answers to q (a, i), i < r a.
A positively truth-table reduces to B by admissible data: some query count r, query map
q and combiner d satisfying Good, with d monotone in the answer word under
List.Forall₂ (· ≤ ·), decide a ∈ A from a and the answers to q (a, i), i < r a.
Pointwise order of Boolean answer words is preserved by List.headD false.
More admissible data give more reductions.
Negating the combiner reduces Aᶜ to B, when negated combiners are admissible.
Negating the answers before the combiner reads them reduces A to Bᶜ, when such
combiners are admissible.
Negating both the answers and the output of the combiner reduces Aᶜ to Bᶜ, when such
combiners are admissible.
A many-one reduction is a truth-table reduction asking the single query f a and returning
its answer, when that data is admissible.
A many-one reduction is a positive truth-table reduction asking the single query f a and
returning its answer, when that data is admissible.
More admissible data give more positive truth-table reductions.
Forgetting positivity gives an ordinary truth-table reduction, transferring admissibility
along hgood.
Forgetting positivity with unchanged admissible data Good.
More admissible data give more reductions.
A disjunctive reduction is a truth-table reduction with combiner List.any id, when that
combiner is admissible.
A disjunctive reduction is a positive truth-table reduction with combiner List.any id, when
that combiner is admissible.
More admissible data give more reductions.
A conjunctive reduction is a truth-table reduction with combiner List.all id, when that
combiner is admissible.
A conjunctive reduction is a positive truth-table reduction with combiner List.all id, when
that combiner is admissible.
A many-one reduction is a disjunctive reduction asking the single query f a, when that data
is admissible.
A many-one reduction is a conjunctive reduction asking the single query f a, when that data
is admissible.
Nonadaptive composition #
The combiner of a composite truth-table reduction: block i of the answer word, of length
r' (q (a, i)) and starting at i * M a, is decided by d', and d combines the r a
decisions.
Correctness of the composite combiner. If block i of the composite queries Q, of
length M a, starts with the r' (q (a, i)) second-stage queries of q (a, i), then the
composite combiner decides L from the answers to the r a * M a composite queries.
The composite combiner is monotone in the answers when both combiners are.
Truth-table reductions compose whenever each admissible pair admits a block stride M making
the composite count, quotient/remainder query map and composite combiner admissible.
Bounded-query truth-table reductions with query bounds k₁ and k₂ compose with query bound
k₁ * k₂, using constant block stride k₂ and (i / k₂, i % k₂) query indexing.
Positive truth-table reductions compose, preserving monotonicity of the combiner.
Bounded-query positive truth-table reductions with query bounds k₁ and k₂ compose with
query bound k₁ * k₂, preserving monotonicity of the combiner.
Active (outerIndex, innerIndex) pairs of a two-stage query batch (r, q) followed by r'.
Unlike fixed-stride padding, this list contains only active second-stage indices, so disjunctive and
conjunctive quantifiers over all indices below its length remain exact even when some inner counts
are zero or smaller than the maximum.
When r a ≤ k₁ and every active inner count is at most k₂, there are at most k₁ * k₂
active composite query pairs.
Disjunctive truth-table reductions compose by flattening the active query pairs.
Bounded disjunctive truth-table reductions with query bounds k₁ and k₂ compose with query
bound k₁ * k₂.
Conjunctive truth-table reductions compose, by De Morgan duality with DTTReducibleBy.trans.
Bounded conjunctive truth-table reductions with query bounds k₁ and k₂ compose with query
bound k₁ * k₂.
Self-query-avoiding autoreductions #
Forgetting fixed-point-freeness gives an ordinary many-one self-reduction.
Enlarging the admissible maps preserves many-one autoreducibility.
A many-one autoreduction of A is also one of Aᶜ.
Every member of a many-one autoreducible set maps to a distinct member.
Every non-member of a many-one autoreducible set maps to a distinct non-member.
A singleton set is never fixed-point-free many-one autoreducible.
A co-singleton set is never fixed-point-free many-one autoreducible.
Forgetting query avoidance gives an ordinary truth-table self-reduction.
Enlarging the admissible data preserves truth-table autoreducibility.
Negating both the answers and output of the combiner reduces Aᶜ to Aᶜ without changing the
queries, so query avoidance is preserved automatically.
A decision predicate g for A gives a zero-query truth-table autoreduction whenever the
zero-query data (fun _ => 0, Prod.fst, fun x => g x.1) is admissible.
Forgetting query avoidance gives an ordinary positive truth-table self-reduction.
Enlarging the admissible data preserves positive truth-table autoreducibility.
Forgetting positivity gives a truth-table autoreduction.
A decision predicate g for A gives a zero-query positive truth-table autoreduction, since
fun x => g x.1 ignores the answer word and is therefore monotone in it.
Forgetting query avoidance gives an ordinary disjunctive self-reduction.
Enlarging the admissible data preserves disjunctive autoreducibility.
A disjunctive autoreduction is a positive truth-table autoreduction with combiner
List.any id.
A disjunctive autoreduction is a truth-table autoreduction with combiner List.any id.
Forgetting query avoidance gives an ordinary conjunctive self-reduction.
Enlarging the admissible data preserves conjunctive autoreducibility.
A conjunctive autoreduction is a positive truth-table autoreduction with combiner
List.all id.
A conjunctive autoreduction is a truth-table autoreduction with combiner List.all id.
A fixed-point-free many-one autoreduction is a one-query truth-table autoreduction.
A fixed-point-free many-one autoreduction is a one-query positive truth-table autoreduction.
A fixed-point-free many-one autoreduction is a one-query disjunctive autoreduction.
A fixed-point-free many-one autoreduction is a one-query conjunctive autoreduction.
A many-one reduction of Aᶜ to A cannot fix any input (a ∉ A ↔ a ∈ A is impossible);
asking its single query f a and negating the answer gives a one-query truth-table autoreduction of
A.