The classes PCP(r, q) #
A probabilistically checkable proof system for a problem A Arora and Safra,
Arora and Barak, Chapter 11 is a verifier that, on an instance a, reads a random
string ρ, computes from a and ρ a list of positions in a proof π, reads the bits of π at
those positions, and accepts or rejects. Every member of A has a proof that is accepted for every
random string (completeness), and for a non-member every proof is rejected for at least half of the
random strings (soundness).
A verifier (PCPVerifier) consists of three functions: the number of random bits it uses on an
instance, the positions it queries, and its verdict on the instance, the random string and the
bits read. It is nonadaptive, as in Arora and Barak: the positions depend on the instance and the
random string, not on the bits read. A proof is a finite string, and a position past its end reads
as false. The verifier is polynomial-time (PCPVerifier.PolyTime) when all three functions are
computable in polynomial time, the numbers in binary. Time is measured in the length of the whole
input of each function, which includes the random string; when r is bounded by a polynomial, as
for all the usual classes, this is time polynomial in the length of the encoded instance.
PCP r q enc follows Arora and Barak in allowing constant factors: a problem is in it when, for
some constants c and d, a polynomial-time verifier uses at most c * r n random bits and at
most d * q n queries on instances whose encoding has length n. The verifier computes the number
of random bits it uses itself, and r only bounds it. (If the verifier were handed exactly
c * r n random bits, an uncomputable r could smuggle information into the length of the random
string and put undecidable problems into the class.)
The PCP theorem, NP = PCP(log n, 1), is proved as Cslib.Complexity.NP_eq_PCP_log in
Computability/PCP/Completeness, whose module documentation outlines the proof and names its
stages in Cslib.PCP.
Main definitions #
Cslib.Complexity.PCPVerifier, withPCPVerifier.acceptsandPCPVerifier.PolyTime.Cslib.Complexity.IsPCPVerifier: the bounds on random bits and queries, completeness and soundness.Cslib.Complexity.PCP.
Main results #
Cslib.Complexity.PCP_mono_randomness,Cslib.Complexity.PCP_mono_queries: more randomness or more queries give a larger class.
References #
A nonadaptive verifier of probabilistically checkable proofs for instances of type α.
- coins : α → ℕ
The number of random bits used on an instance.
The positions of the proof read on an instance and a random string.
The verdict on an instance, a random string, and the bits read at the queried positions.
Reading every position of a proof below its length recovers the proof.
The verdict of V on the instance a with the proof π and the random string ρ.
A verifier is polynomial-time, with respect to the encoding enc of instances, when its
number of random bits, its queries and its verdict are computable in polynomial time, the numbers
in binary.
The number of random bits is computable in polynomial time, in binary.
- queries : Turing.MultiTapeTM.ComputableInPolyTime V.queries (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat)
The queried positions are computable in polynomial time, in binary.
- verdict : Turing.MultiTapeTM.ComputableInPolyTime V.verdict (Turing.MultiTapeTM.encPair (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool
The verdict is computable in polynomial time.
V is a verifier for A using at most r n random bits and at most q n queries on instances
whose encoding has length n: every member of A has a proof that is accepted for every random
string, and for every non-member, every proof is accepted for at most half of the random strings.
The random strings on an instance a are those of length V.coins a.
At most
r nrandom bits on an instance whose encoding has lengthn.- length_queries_le (a : α) (ρ : List Bool) : ρ.length = V.coins a → (V.queries (a, ρ)).length ≤ q (enc a).length
At most
q nqueries on an instance whose encoding has lengthn. - complete (a : α) : a ∈ A → ∃ (π : List Bool), ∀ (ρ : List Bool), ρ.length = V.coins a → V.accepts a π ρ = true
Completeness: every member of
Ahas a proof accepted for every random string. - sound (a : α) : a ∉ A → ∀ (π : List Bool), 2 * acceptCount (fun (x : α × List Bool) => V.accepts x.1 π x.2) a (V.coins a) ≤ 2 ^ V.coins a
Soundness: on a non-member, every proof is accepted for at most half of the random strings.
The class PCP(r, q) with respect to the encoding enc of instances: the problems with a
polynomial-time verifier using O(r n) random bits and O(q n) queries on instances whose
encoding has length n Arora and Safra,
Arora and Barak, Chapter 11.