Documentation

CslibFrontier.Computability.Complexity.Classes.PP.Oracle

Majority relative to a language oracle #

PPWithOracle A enc uses the existing fixed-length strict-majority condition with a deterministic oracle verifier certified by ComputableInPolyTimeWithOracle. Its resource bound applies to arbitrary stateful replies; the accepted witnesses are counted against languageOracle A. Exact ties reject, including the selector construction in the positive-GapP characterization.

To compare two relativized counts, pad both verifiers with false tails to the sum of their certificate lengths. One additional bit selects the first verifier or the complement of the second; more than half accept exactly when the first count is larger. This proof uses the existing counting identities, and assumes no relativized counting-closure theorem.

These are verifier classes. Equivalence with probabilistic oracle machines is separate. AWPP lowness for this oracle-verifier model is proved in CslibFrontier/Computability/Complexity/Classes/AWPP/Lowness.lean.

Main definitions #

Main results #

References #

def Cslib.Complexity.PPWithOracle {α : Type} (A : Set (List Bool)) (enc : α ↪ List Bool) :
Set (Set α)

Strict majority on exactly polynomially many witness bits, with a deterministic verifier relative to the fixed language oracle. Its program has a strict certificate for arbitrary replies.

theorem Cslib.Complexity.PP_subset_PPWithOracle {α : Type} (A : Set (List Bool)) (enc : α ↪ List Bool) :
PP enc ⊆ PPWithOracle A enc

An ordinary PP verifier can ignore every oracle.

A polynomial-time oracle adds no PP languages.

theorem Cslib.Complexity.mem_PPWithOracle_iff_exists_GapPWithOracle {α : Type} {enc : α ↪ List Bool} {A : Set (List Bool)} {L : Set α} :
L ∈ PPWithOracle A enc ↔ ∃ g ∈ GapPWithOracle A enc, ∀ (a : α), a ∈ L ↔ 0 < g a

Relativized PP is exactly positivity of a relativized gap function. For the reverse direction, two counts are padded to a common certificate length and selected with one extra bit.