Polynomial-time Turing reductions and the Turing bridge #
A polynomial-time Turing reduction (Cook reduction) A ≤ᵖ_T B allows adaptive queries to an
oracle for B within polynomial time Ladner, Lynch and Selman,
Arora and Barak, Section 3.4.
Main definitions #
Cslib.Complexity.PolyTimeTuringReducible: polynomial-time Turing reducibility.Cslib.Complexity.PolyTimeTuringHard,Cslib.Complexity.PolyTimeTuringComplete: hardness and completeness under polynomial-time Turing reductions.Cslib.Complexity.NPTuringHard,Cslib.Complexity.NPTuringComplete: Turing hardness and completeness forNP.Cslib.Complexity.coNPTuringHard,Cslib.Complexity.coNPTuringComplete: Turing hardness and completeness forcoNP.Cslib.Complexity.PPTuringHard,Cslib.Complexity.PPTuringComplete: Turing hardness and completeness forPP.Cslib.Complexity.PSPACETuringHard,Cslib.Complexity.PSPACETuringComplete: Turing hardness and completeness forPSPACE.
Main results #
Cslib.Complexity.polyTimeTuringReducible_iff_mem_PWithOracle: the Turing bridge,A ≤ᵖ_T B ↔ A ∈ P^(encB '' B).Cslib.Complexity.polyTimeTuringReducible_bits_iff_mem_PWithOracle: for word languages,A ≤ᵖ_T B ↔ A ∈ P^B.Cslib.Complexity.PolyTimeReducible.polyTimeTuringReducible: many-one reductions are Turing reductions (≤ₘ ⇒ ≤_T).Cslib.Complexity.PolyTimeOneOneReducible.polyTimeTuringReducible: one-one reductions are Turing reductions (≤₁ ⇒ ≤_T).Cslib.Complexity.computableInPolyTimeWithOracle_map_mem,Cslib.Complexity.computableInPolyTimeWithOracle_truthTableAnswers: answering a polynomial-time batch of oracle queries in polynomial time relative to the oracle.Cslib.Complexity.PolyTimeTruthTableReducible.polyTimeTuringReducible,Cslib.Complexity.PolyTimeKTruthTableReducible.polyTimeTuringReducible,Cslib.Complexity.PolyTimeBTTReducible.polyTimeTuringReducible,Cslib.Complexity.PolyTimePTTReducible.polyTimeTuringReducible,Cslib.Complexity.PolyTimeDTTReducible.polyTimeTuringReducible,Cslib.Complexity.PolyTimeCTTReducible.polyTimeTuringReducible: truth-table,k-truth-table, bounded, positive, disjunctive, and conjunctive truth-table reductions are Turing reductions (≤_tt, ≤_{k-tt}, ≤_btt, ≤_ptt, ≤_dtt, ≤_ctt ⇒ ≤_T).Cslib.Complexity.PolyTimeTuringReducible.refl: reflexivity.Cslib.Complexity.PolyTimeTuringReducible.mem_PWithOracle:P^Ois closed under Turing reductions to word languages, by oracle substitution (Cslib.Complexity.PWithOracle_subset_of_mem_PWithOracle).Cslib.Complexity.PolyTimeTuringReducible.trans: transitivity of polynomial-time Turing reductions through word languages (≤_T ∘ ≤_T ⇒ ≤_T).Cslib.Complexity.PolyTimeReducible.trans_turing: pre-composition with a many-one reduction (≤ₘ ∘ ≤_T ⇒ ≤_T).Cslib.Complexity.PolyTimeTuringReducible.compl_left: complementation of the source language.Cslib.Complexity.PolyTimeTuringReducible.compl_self: a language's complement Turing-reduces to the language itself (Aᶜ ≤_T A).Cslib.Complexity.PolyTimeTuringReducible.mem_P:Pis closed under Turing reductions to word languages.Cslib.Complexity.PolyTimeHard.polyTimeTuringHard: many-one hardness implies Turing hardness.Cslib.Complexity.coNPHard.npTuringHard,Cslib.Complexity.NPHard.coNPTuringHard: Turing hardness across complementation betweenNPandcoNP.Cslib.Complexity.PolyTimeHard.polyTimeTuringHard_of_turing: transferring many-one hardness across a Turing reduction.Cslib.Complexity.PolyTimeTuringHard.trans: transferring Turing hardness across a Turing reduction from a word language; with membership inNPthis is the Cook-reduction form of Goldreich, Proposition 2.20.- Hardness transfer to
P:Cslib.Complexity.NPHard.P_eq_NP_of_turing_mem_P: if an NP-hard problem Turing-reduces to a problem inP, thenP = NP.Cslib.Complexity.PolyTimeHard.P_eq_PP_of_turing_mem_P: if a PP-hard problem Turing-reduces to a problem inP, thenP = PP.Cslib.Complexity.PSPACEHard.P_eq_PSPACE_of_turing_mem_P: if a PSPACE-hard problem Turing-reduces to a problem inP, thenP = PSPACE.
Cslib.Complexity.NPHard.NP_eq_coNP_of_turing_mem_NP_inter_coNP: if an NP-hard problem Turing-reduces to a problem inNP ∩ coNP, thenNP = coNP.
References #
A is polynomial-time Turing reducible to B (A ≤ᵖ_T B): some algorithm deciding A runs
in polynomial time relative to an oracle for the encoded language of B
Ladner, Lynch and Selman.
Query and resource conventions: an algorithm is represented by a single deterministic, adaptive
WordQueryComp program certified by IsOraclePPTOn. The clock is polynomial in |encA a|,
with each query symbol costing one step, bounding both query length and the number of queries
via IsOraclePPTOn.query_bounds. Oracle evaluation itself takes one step.
Every polynomial-time many-one reduction is a polynomial-time Turing reduction making a single query to the oracle.
A one-one reduction is a polynomial-time Turing reduction.
Truth-table reductions are Turing reductions #
Ask the oracle every word of the list, in order, and collect the one-bit answers.
Asking every word of a list and collecting the one-bit answers is strict oracle PPT: each step pops one word from the framed list and appends one bit to the answer word, so the encoded state never grows.
Interpreting queryWords words against languageOracle O returns the list of membership
decisions words.map (fun word => decide (word ∈ O)).
Evaluating membership in O across a list of words is computable in polynomial time relative
to O.
Computing the semantic answer word truthTableAnswers (q ⁻¹' B) r of a polynomial-time batch
of queries (r, q) is polynomial time relative to the encoded oracle language encB '' B.
Every polynomial-time truth-table reduction is a polynomial-time Turing reduction
(≤_tt ⇒ ≤_T) Ladner, Lynch and Selman.
Every k-truth-table reduction is a polynomial-time Turing reduction (≤_{k-tt} ⇒ ≤_T).
Every bounded truth-table reduction is a polynomial-time Turing reduction (≤_btt ⇒ ≤_T).
Every positive truth-table reduction is a polynomial-time Turing reduction (≤_ptt ⇒ ≤_T).
Every disjunctive truth-table reduction is a polynomial-time Turing reduction
(≤_dtt ⇒ ≤_T).
Every conjunctive truth-table reduction is a polynomial-time Turing reduction
(≤_ctt ⇒ ≤_T).
Transitivity of Turing reductions #
P relative to an oracle is closed under polynomial-time Turing reductions to word
languages.
Polynomial-time Turing reductions through word languages compose (≤_T ∘ ≤_T ⇒ ≤_T).
Every problem reduces to itself under polynomial-time Turing reductions.
Pre-composing a polynomial-time Turing reduction with a polynomial-time many-one reduction yields a polynomial-time Turing reduction.
Negating the boolean output of the decider reduces the complement Aᶜ to B.
A language's complement is polynomial-time Turing reducible to the language itself.
P is closed under polynomial-time Turing reductions to word languages.
Every coNP-hard problem is NP-hard under polynomial-time Turing reductions: to decide
A ∈ NP, query the coNP-hard oracle on the many-one reduction of Aᶜ ∈ coNP and negate the
answer.
Every NP-hard problem is coNP-hard under polynomial-time Turing reductions: to decide
A ∈ coNP, query the NP-hard oracle on the many-one reduction of Aᶜ ∈ NP and negate the
answer.
Every problem hard for C under polynomial-time many-one reductions is also hard for C
under polynomial-time Turing reductions.
A problem that is Turing-reducible from a many-one hard problem is Turing-hard.
Turing hardness transfers along Turing reductions from a word language: if every problem
of C Turing-reduces to B ⊆ {0,1}* and B Turing-reduces to L, then every problem of C
Turing-reduces to L. With C = NP and L ∈ NP, this is the Cook-reduction form of
Goldreich, Proposition 2.20 (draft r1.pdf of 30 December 2006, PDF p. 103,
printed p. 78), where NP-hardness allows arbitrary Cook reductions and problems are sets of bit
strings. The intermediate problem is a word language because a Turing reduction to B under an
encoding encB may ask about words outside the range of encB.
Hardness transfer to P: if a problem hard for C under many-one reductions Turing-reduces
to a problem B ∈ P, then C ⊆ P.
NP-hardness transfer: if an NP-hard problem Turing-reduces to a language in P, then
P = NP.
PP-hardness transfer: if a PP-hard problem Turing-reduces to a language in P, then
P = PP.
PSPACE-hardness transfer: if a PSPACE-hard problem Turing-reduces to a language in P,
then P = PSPACE.
A problem that is Turing-hard for C and belongs to P forces C ⊆ P.
If an NP-Turing-hard problem is in P, then P = NP.
If a PP-Turing-hard problem is in P, then P = PP.
If a PSPACE-Turing-hard problem is in P, then P = PSPACE.
If an NP-hard problem Turing-reduces to a problem in NP ∩ coNP, then NP = coNP.