Documentation

CslibFrontier.Computability.Complexity.Classes.PCP.Promise

PCP(r, q) for promise problems #

A PCP system for a promise problem Q asks for completeness only on the yes-instances and for soundness only on the no-instances. Instances outside the promise are unconstrained. This is Definition 9.14 of Goldreich, Computational Complexity: A Conceptual Perspective, draft r5 (printed pp. 419–420), read in the promise-problem framework of its Section 2.4.1. Exercise 9.25 uses it for gapCSP. Randomness, query bounds and the polynomial-time requirement are those of Cslib.Complexity.IsPCPVerifier and Cslib.Complexity.PCP.

Unlike Cslib.Complexity.PromiseP, PromisePCP is defined directly, not through total completions. A particular promise verifier need not verify any completion: for example, one that accepts every proof on some instance outside the promise with probability 3/4. This is a fact about that verifier only; whether the class has a characterization by completions is not addressed here. The resource bounds apply on every instance, including those outside the promise.

Main definitions #

Main results #

structure Cslib.Complexity.IsPromisePCPVerifier {α : Type} (enc : α ↪ List Bool) (r q : ℕ → ℕ) (V : PCPVerifier α) (Q : PromiseProblem α) :

V is a verifier for the promise problem Q using at most r n random bits and at most q n queries on instances whose encoding has length n. Every yes-instance has a proof that is accepted for every random string. On every no-instance, every proof is accepted for at most half of the random strings. Nothing is required on instances outside the promise.

def Cslib.Complexity.PromisePCP {α : Type} (r q : ℕ → ℕ) (enc : α ↪ List Bool) :

The class PCP(r, q) of promise problems with respect to the encoding enc of instances: the promise problems with a polynomial-time verifier using O(r n) random bits and O(q n) queries on instances whose encoding has length n.

theorem Cslib.Complexity.isPromisePCPVerifier_ofSet_iff {α : Type} {enc : α ↪ List Bool} {r q : ℕ → ℕ} {V : PCPVerifier α} {A : Set α} :

On a decision problem, a promise verifier is a PCP verifier.

@[simp]
theorem Cslib.Complexity.ofSet_mem_PromisePCP {α : Type} {enc : α ↪ List Bool} {r q : ℕ → ℕ} {A : Set α} :

A decision problem is in the promise class PCP(r, q) exactly when it is in PCP(r, q).