Oracle lowness of NP ∩ coNP and UP ∩ coUP #
An oracle language A ∈ NP ∩ coNP adds nothing to nondeterministic polynomial time:
NP^A = NP and P^A ⊆ NP ∩ coNP, and conversely any language A with NP^A = NP lies in
NP ∩ coNP Schöning Arora and Barak, Chapter 3. When A is in
UP ∩ coUP, every P^A predicate has at most one accepting replay certificate, giving
P^A ⊆ UP ∩ coUP.
The proof combines deterministic instruction-indexed oracle replay
(Turing.MultiTapePTM.replayPrefix, Turing.MultiTapePTM.replayOutput,
Turing.MultiTapePTM.oracleReplies) with uniform #P products and Boolean sums
(Cslib.Complexity.SharpP.prod_range_mem, Cslib.Complexity.SharpP.sum_bits_mem):
- Given
#PfunctionsfYesandfNowhose supports areAandAᶜ, each replayed stepicontributesfYes q_iwhen stepisubmits queryq_iand the guessed reply bit istrue,fNo q_iwhen stepisubmitsq_iand the guessed reply bit isfalse, and1(for bitfalse) or0(for bittrue) at local and halted instructions. - Multiplying these step factors over
i < |answers|produces a#Ppath count (Cslib.Complexity.replayPathCount) that is positive if and only ifanswersequals the canonical transcriptmachine.oracleReplies. WhenfYesandfNoare bounded by1(A ∈ UP ∩ coUP), the path count is1on the canonical transcript and0on every other transcript. - Summing over all transcript words of the polynomial clock length
(
Cslib.Complexity.replayWeightedSum) therefore certifies any polynomial-time predicate of(a, output (f a))inNP(orUP). Applying this to the output bits of aP^Adecider yieldsP^A ⊆ NP ∩ coNP(andP^A ⊆ UP ∩ coUP), and applying it to anNP^Averifier onencPair enc encBitsyieldsNP^A = NP.
Main results #
Cslib.Complexity.compl_mem_PWithOracle,Cslib.Complexity.inter_mem_PWithOracle,Cslib.Complexity.union_mem_PWithOracle,Cslib.Complexity.mem_PWithOracle_compl_self: Boolean closure ofP^A.Cslib.Complexity.ComputableInPolyTimeWithOracle.encoded_mem_NP,Cslib.Complexity.ComputableInPolyTimeWithOracle.mem_NP,Cslib.Complexity.ComputableInPolyTimeWithOracle.encoded_mem_UP,Cslib.Complexity.ComputableInPolyTimeWithOracle.mem_UP: polynomial-time predicates ofFP^Afunctions lie inNP(forA ∈ NP ∩ coNP) andUP(forA ∈ UP ∩ coUP).Cslib.Complexity.PWithOracle_subset_NP,Cslib.Complexity.PWithOracle_subset_coNP,Cslib.Complexity.PWithOracle_subset_NP_inter_coNP,Cslib.Complexity.PWithOracle_subset_NP_inter_coNP_iff,Cslib.Complexity.iUnion_PWithOracle_NP_inter_coNP,Cslib.Complexity.P_eq_NP_inter_coNP_iff_forall_PWithOracle_eq_P:P^(NP ∩ coNP) = NP ∩ coNP.Cslib.Complexity.PWithOracle_subset_UP,Cslib.Complexity.PWithOracle_subset_coUP,Cslib.Complexity.PWithOracle_subset_UP_inter_coUP,Cslib.Complexity.PWithOracle_subset_UP_inter_coUP_iff,Cslib.Complexity.iUnion_PWithOracle_UP_inter_coUP:P^(UP ∩ coUP) = UP ∩ coUP.Cslib.Complexity.NPWithOracle_subset_NP_of_PWithOracle_subset_NP,Cslib.Complexity.NPWithOracle_eq_NP_of_mem_NP_of_mem_coNP,Cslib.Complexity.NPWithOracle_eq_NP_iff,Cslib.Complexity.forall_NPWithOracle_eq_NP_iff,Cslib.Complexity.iUnion_NPWithOracle_NP_inter_coNP,Cslib.Complexity.P_eq_NP_iff_forall_PWithOracle_eq_P,Cslib.Complexity.NP_eq_coNP_iff_forall_NPWithOracle_eq_NP:NP^A = NPif and only ifA ∈ NP ∩ coNP, andNP = coNPif and only ifNP^NP = NP.
References #
Boolean closure of PWithOracle #
P relative to an oracle is closed under intersection.
P relative to an oracle is closed under union.
P relative to A contains Aᶜ.
Oracle lowness of NP ∩ coNP #
Polynomial-time predicates of encoded FP^(NP ∩ coNP) outputs lie in NP. If
A ∈ NP ∩ coNP, f : α → β is computable in polynomial time relative to A, and
P : α × List Bool → Bool is computable in polynomial time, then
{a | P (a, output (f a)) = true} ∈ NP enc.
Polynomial-time predicates of word-valued FP^(NP ∩ coNP) functions lie in NP.
P^(NP ∩ coNP) ⊆ NP Schöning, Arora and Barak, Chapter 3.
P^(NP ∩ coNP) ⊆ coNP: P^A is closed under complement.
P^(NP ∩ coNP) ⊆ NP ∩ coNP.
P^A ⊆ NP ∩ coNP on bit strings if and only if A ∈ NP ∩ coNP.
The union of P^A over A ∈ NP ∩ coNP is NP ∩ coNP.
P = NP ∩ coNP if and only if every NP ∩ coNP oracle is low for P.
General reduction from NPWithOracle collapse to PWithOracle on paired encodings.
If P^A ⊆ NP on encPair enc encBits, then NP^A ⊆ NP on enc: an NP^A verifier is a P^A
language on (instance, certificate) pairs, and summing its #P witness count over certificates
of polynomial length gives an ordinary #P support for the original language.
NP^(NP ∩ coNP) = NP Schöning, Arora and Barak, Chapter 3:
an oracle language in NP ∩ coNP adds nothing to NP, for every instance encoding enc.
Characterization of the first low level Low₁ = NP ∩ coNP Schöning:
NP^A = NP on bit strings if and only if A ∈ NP ∩ coNP.
NP^A = NP for all instance encodings if and only if A ∈ NP ∩ coNP.
The union of NP^A over A ∈ NP ∩ coNP is NP.
P = NP if and only if every NP oracle is low for P.
NP = coNP if and only if every NP oracle is low for NP (NP^NP = NP)
Arora and Barak, Chapter 3.
Oracle lowness of UP ∩ coUP for P #
Polynomial-time predicates of encoded FP^(UP ∩ coUP) outputs lie in UP. When A and
Aᶜ have unambiguous verifiers, the canonical oracle transcript is the unique transcript with a
valid step-by-step witness tuple, and its witness tuple is unique.
Polynomial-time predicates of word-valued FP^(UP ∩ coUP) functions lie in UP.
P^(UP ∩ coUP) ⊆ UP.
P^(UP ∩ coUP) ⊆ coUP: P^A is closed under complement.
P^(UP ∩ coUP) ⊆ UP ∩ coUP.
P^A ⊆ UP ∩ coUP on bit strings if and only if A ∈ UP ∩ coUP.
The union of P^A over A ∈ UP ∩ coUP is UP ∩ coUP.