The PCP theorem #
NP = PCP(log n, 1): every problem in NP has a polynomial-time verifier that uses O(log n)
random bits and reads a constant number of proof bits, accepts some proof of every member on every
random string, and accepts every proof of a non-member on at most half of the random strings. NP
is the library's deterministic-verifier class.
Proof overview #
The inclusion NP ⊆ PCP(log n, 1) follows Dinur [Din07]. Every stage after Cook–Levin is a
program on explicit constraint graphs (Cslib.PCP.Encoded.Graph), with a polynomial-time
certificate and an exact interpretation as a construction on mathematical constraint graphs
(Cslib.PCP.ConstraintGraph), where its soundness is proved.
- Cook–Levin (
Cslib.Complexity.CookLevin.SAT_npHard) reduces the problem to SAT. - The constraint graph of a formula (
Cslib.PCP.Encoded.Graph.ofCompactCNF, after splitting clauses withCslib.Logic.PL.CNF.to3CNF) has three edges per clause and the alphabetFin 3 → Bool, and is satisfiable exactly when the formula is. - Composition (
Cslib.PCP.Encoded.Graph.composeSelectedEnumerated) with the six-query Hadamard assignment tester brings the alphabet to the fixedCslib.PCP.SelectedAlphabetof128symbols, losing at most a factor840of the value (Cslib.PCP.ConstraintGraph.le_unsatVal_composeSelected). - Gap amplification (
Cslib.PCP.Encoded.Graph.arithmeticAmplify) runs⌈log₂ |E|⌉rounds. Each round preprocesses with the explicit arithmetic expanders (Cslib.PCP.ConstraintGraph.preprocessWith), powers along killed walks (Cslib.PCP.RegularConstraintGraph.power), and composes back toSelectedAlphabet; it doubles the value up to the fixed thresholdCslib.PCP.ConstraintGraph.Amplification.Arithmetic.gap(Cslib.PCP.ConstraintGraph.min_le_div_unsatVal_power_preprocessWith). Since an unsatisfiable graph with|E|edges has value at least1 / |E|, the rounds reach the threshold (Cslib.PCP.ConstraintGraph.gap_le_of_min_two_pow_mul_le). Stages 2 to 4 formCslib.PCP.Encoded.gapGraph. - The verifier (
Cslib.PCP.Encoded.Graph.reductionVerifier) builds the graph and checks a constant number of independently sampled edges, reading the labels of their ends from the proof, seven bits each: one for the input label and six for the selected tester's claimed answers. A single check rejects with probability at least half the value (Cslib.PCP.Encoded.Graph.unsatVal_div_two_le_rejectProb), so a constant number of repetitions brings the soundness error to one half (Cslib.PCP.Encoded.Graph.mem_PCP_of_gapReduction).
The converse inclusion (Cslib.Complexity.PCP_log_subset_NP) checks all polynomially many random
strings. Its certificate supplies the bits at all queried addresses, with repeated addresses
sharing one bit.
Cslib.PCP.Dinur.gapGraph in CslibFrontier.Computability.PCP.GapTheorem renders the same
argument noncomputably, with non-explicit expanders and smaller constants; the theorem here does
not use it. The fixed constants of the explicit construction are enormous, so the result is
asymptotic.
Main results #
Cslib.Complexity.exists_pcpVerifier_of_npRelation: every NP relation has such a PCP verifier together with a polynomial-time compiler from its witnesses to accepted compact query tables.Cslib.Complexity.NP_subset_PCP_log: every problem in NP has such a PCP verifier.Cslib.Complexity.NP_eq_PCP_log: the class-level PCP theorem.
References #
Every NP relation has a polynomial-time PCP verifier with logarithmic randomness and constantly
many nonadaptive proof queries, together with a polynomial-time witness compiler sending any
relation witness (x, w) to a compact table accepted by V.tableVerifier.
Every NP language has a polynomial-time verifier with logarithmic randomness and constantly many nonadaptive proof queries, perfect completeness, and soundness at most one half.