Documentation

CslibFrontier.Computability.Complexity.Classes.Oracle.Lowness

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):

  1. Given #P functions fYes and fNo whose supports are A and Aᶜ, each replayed step i contributes fYes q_i when step i submits query q_i and the guessed reply bit is true, fNo q_i when step i submits q_i and the guessed reply bit is false, and 1 (for bit false) or 0 (for bit true) at local and halted instructions.
  2. Multiplying these step factors over i < |answers| produces a #P path count (Cslib.Complexity.replayPathCount) that is positive if and only if answers equals the canonical transcript machine.oracleReplies. When fYes and fNo are bounded by 1 (A ∈ UP ∩ coUP), the path count is 1 on the canonical transcript and 0 on every other transcript.
  3. Summing over all transcript words of the polynomial clock length (Cslib.Complexity.replayWeightedSum) therefore certifies any polynomial-time predicate of (a, output (f a)) in NP (or UP). Applying this to the output bits of a P^A decider yields P^A ⊆ NP ∩ coNP (and P^A ⊆ UP ∩ coUP), and applying it to an NP^A verifier on encPair enc encBits yields NP^A = NP.

Main results #

References #

Boolean closure of PWithOracle #

theorem Cslib.Complexity.compl_mem_PWithOracle {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} {L : Set α} (hL : L ∈ PWithOracle A enc) :

P relative to an oracle is closed under complement: negate the Boolean decider.

theorem Cslib.Complexity.inter_mem_PWithOracle {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} {L₁ L₂ : Set α} (h₁ : L₁ ∈ PWithOracle A enc) (h₂ : L₂ ∈ PWithOracle A enc) :
L₁ ∩ L₂ ∈ PWithOracle A enc

P relative to an oracle is closed under intersection.

theorem Cslib.Complexity.union_mem_PWithOracle {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} {L₁ L₂ : Set α} (h₁ : L₁ ∈ PWithOracle A enc) (h₂ : L₂ ∈ PWithOracle A enc) :
L₁ ∪ L₂ ∈ PWithOracle A enc

P relative to an oracle is closed under union.

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) ⊆ coNP: P^A is closed under complement.

P^(NP ∩ coNP) ⊆ NP ∩ coNP.

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.

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.