PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP...

120
PCP Theorem

Transcript of PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP...

Page 1: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

PCP Theorem

Page 2: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

[PCP Theorem is] the most important result in complexity theory since Cook’s Theorem.

Ingo Wegener, 2005

Computational Complexity, by Fu Yuxi PCP Theorem 1 / 119

Page 3: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

S. Arora, C. Lund, R. Motwani, M. Sudan, and M. Szegedy. Proof Verification and theHardness of Approximation Problems. J. ACM, 1998. FOCS 1992.

Irit Dinur. The PCP Theorem by Gap Amplification. J. ACM, 2007. STOC 2006.

The 1st proof is algebraic, the 2nd one is combinatorial and non-elementary.

Computational Complexity, by Fu Yuxi PCP Theorem 2 / 119

Page 4: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Two ways to view the PCP Theorem:

I It is a result about locally testable proof systems.

I It is a result about hardness of approximation.

PCP = Probabilistically Checkable Proof

Computational Complexity, by Fu Yuxi PCP Theorem 3 / 119

Page 5: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Synopsis

1. Approximation Algorithm

2. Two Views of PCP Theorem

3. Equivalence of the Two Views

4. Inapproximability

5. The Fourier Transform Technique

6. Efficient Conversion of NP Certificate to PCP Proof

7. Proof of PCP Theorem

8. Threshold Result by Hastad’s 3-Bit PCP Theorem

9. Proof of Hastad’s 3-Bit PCP Theorem

10. Historical Remark

Computational Complexity, by Fu Yuxi PCP Theorem 4 / 119

Page 6: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Approximation Algorithm

Computational Complexity, by Fu Yuxi PCP Theorem 5 / 119

Page 7: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Since the discovery of NP-completeness in 1972, researchers had been looking forapproximate solutions to NP-hard optimization problems, with little success.

The discovery of PCP Theorem in 1992 explains the difficulty.

Computational Complexity, by Fu Yuxi PCP Theorem 6 / 119

Page 8: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Suppose ρ : N→ (0, 1). A ρ-approximation algorithm A for a maximum, respectivelyminimum optimization problem satisfies

A(x)

Max(x)≥ ρ(|x |),

respectivelyMin(x)

A(x)≥ ρ(|x |)

for all x .

Computational Complexity, by Fu Yuxi PCP Theorem 7 / 119

Page 9: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

SubSet-Sum

Given m items of sizes s1, s2, . . . , sm, and a positive integer C , find a subset of theitems that maximizes the total sum of their sizes without exceeding the capacity C .

I There is a well-known dynamic programming algorithm.

I Using the algorithm and a parameter ε a (1−ε)-approximation algorithm can bedesigned that runs in O

(( 1ε − 1) · n2

)time.

I We say that SubsetSum has an FPTAS.

Computational Complexity, by Fu Yuxi PCP Theorem 8 / 119

Page 10: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

KnapSack

Let U = {u1, u2, . . . , um} be the set of items to be packed in a knapsack of size C . For1 ≤ j ≤ m, let sj and vj be the size and value of the j-th item, respectively.

The objective is to fill the knapsack with items in U whose total size is at most C andsuch that their total value is maximum.

I There is a similar dynamic programming algorithm.

I Using the algorithm and a parameter ε one can design a (1−ε)-approximation

algorithm of O(

( 1ε − 1) · n

)time.

I We say that KnapSack has a PTAS.

Computational Complexity, by Fu Yuxi PCP Theorem 9 / 119

Page 11: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Max-3SAT

For each 3CNF ϕ, the value of ϕ, denoted by val(ϕ), is the maximum fraction ofclauses that can be satisfied by an assignment to the variables of ϕ.

I ϕ is satisfiable if and only if val(ϕ) = 1.

Max-3SAT is the problem of finding the maximum val(ϕ).

I A simple greedy algorithm for Max-3SAT is 12 -approximate.

I We say that Max-3SAT is in APX.

By definition, FPTAS ⊆ PTAS ⊆ APX ⊆ OPT. We will see that the inclusions are strict assuming P 6= NP.

Computational Complexity, by Fu Yuxi PCP Theorem 10 / 119

Page 12: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Max-IS

Min-VC + Max-IS = m.

A 12 -approximation algorithm for Min-VC.

1. Pick up a remaining edge and collect the two end nodes.

2. Remove all edges adjacent to the two nodes.

3. Goto Step 1 if there is at least one remaining edge.

I Is Min-VC in PTAS?

I Is Max-IS in APX?

Computational Complexity, by Fu Yuxi PCP Theorem 11 / 119

Page 13: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

A breakthrough in the study of approximation algorithm was achieved in early 1990’s.

[1991]. There is no 2log1−ε(n)-approximation algorithm for Max-IS unless SAT ∈ SUBEXP.[1992]. Max-IS is not in APX if P 6= NP.

1. U. Feige, S. Goldwasser, L. Lovasz, S. Safra, and M. Szegedy. Interactive Proofs and the Hardness of Approximating Cliques. FOCS 1991.JACM, 1996.

2. S. Arora and S. Safra. Probabilistic Checking of Proofs: A New Characterization of NP. FOCS 1992. JACM, 1998.

Computational Complexity, by Fu Yuxi PCP Theorem 12 / 119

Page 14: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Two Views of PCP Theorem

Computational Complexity, by Fu Yuxi PCP Theorem 13 / 119

Page 15: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Surprisingly, IP = PSPACE. More surprisingly, MIP = NEXP.

The latter can be interpreted as saying that nondeterminism can be traded off for

randomness + interaction.

Computational Complexity, by Fu Yuxi PCP Theorem 14 / 119

Page 16: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Interactive Proof Viewpoint

Suppose L is an NP problem and x is an input string.

1. Prover provides a proof π of polynomial length.

2. Verifier uses at most logarithmic many random bits, and makes a constantnumber of queries on π.

I A query i is a location of logarithmic length. The answer to query i is π(i).

I Queries are written on a special address/oracle tape.

I We assume that verifier is nonadaptive in that its selection of queries is based onlyon input and random string.

Computational Complexity, by Fu Yuxi PCP Theorem 15 / 119

Page 17: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Probabilistically Checkable Proofs

Suppose L is a language and q, r : N→ N.

L has an (r(n), q(n))-PCP verifier if a P-time verifier V exists satisfying the following.

I Efficiency. On input x and given access to any location of a proof π of length ≤q(n)2r(n), the verifier V uses at most r(n) random bits and makes at most q(n)nonadaptive queries to the proof π before it outputs ‘1’ or ‘0’.

I Completeness. If x ∈ L, then ∃π.Pr[Vπ(x) = 1] = 1.

I Soundness. If x /∈ L, then ∀π.Pr[Vπ(x) = 1] ≤ 1/2.

Vπ(x) denotes the random variable with x and π fixed.

Computational Complexity, by Fu Yuxi PCP Theorem 16 / 119

Page 18: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Probabilistically Checkable Proofs

1. Proof length ≤ q(n)2r(n).

I At most q(n)2r(n) locations can be queried by verifier.

2. L ∈ NTIME(q(n)2O(r(n))).

I An algorithm guesses a proof of length q(n)2r(n).

I It executes deterministically 2r(n) times the verifier’s algorithm.

I The total running time is bounded by q(n)2O(r(n)).

Both random bits and query time are resources. An (r(n), q(n))-PCP verifier has

I randomness complexity r(n) and

I query complexity q(n).

Sometimes one is concerned with proof complexity q(n)2r(n).

Computational Complexity, by Fu Yuxi PCP Theorem 17 / 119

Page 19: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

PCP Hierarchy

A language is in PCP(r(n), q(n)) if it has a (cr(n), dq(n))-PCP verifier for some c , d .

PCP(r(n), q(n)) ⊆ NTIME(q(n)2O(r(n))).

I PCP(0, log) = P.

I PCP(0,poly) = NP.

I PCP(log,poly) = NP.

Computational Complexity, by Fu Yuxi PCP Theorem 18 / 119

Page 20: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

PCP Hierarchy

1. PCP(poly,poly) ⊆ NEXP.

2. PCP(log, log) ⊆ NP.

3. PCP(log, 1) ⊆ NP.

In three influential papers in the history of PCP, it is proved that the above ‘⊆’ can bestrengthened to ‘=’.

Computational Complexity, by Fu Yuxi PCP Theorem 19 / 119

Page 21: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

The PCP Theorem

PCP Theorem. NP = PCP(log, 1).

Every NP-problem has specifically chosen certificates whose correctness can be verifiedprobabilistically by checking only 3 bits.

Computational Complexity, by Fu Yuxi PCP Theorem 20 / 119

Page 22: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Example

GNI ∈ PCP(poly, 1).

I Suppose both G0 and G1 have n vertices.

I Proofs of size 2n2

are indexed by adjacent matrix representations.I If the location, a string of size n2, represents a graph isomorphic to Gi , it has value i .

I The verifier picks up b ∈ {0, 1} at random, produces a random permutation ofGb, and queries the bit of the proof at the corresponding location.

Computational Complexity, by Fu Yuxi PCP Theorem 21 / 119

Page 23: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Can we scale down PCP Theorem further?

Fact. If NP ⊆ PCP(o(log), o(log)), then P = NP.

Computational Complexity, by Fu Yuxi PCP Theorem 22 / 119

Page 24: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Scale-Up PCP Theorem

Theorem. PCP(poly, 1) = NEXP.

Computational Complexity, by Fu Yuxi PCP Theorem 23 / 119

Page 25: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Hardness of Approximation Viewpoint

For many NP-hard optimization problems, computing approximate solutions is noeasier than computing the exact solutions.

Computational Complexity, by Fu Yuxi PCP Theorem 24 / 119

Page 26: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

The PCP Theorem, Hardness of Approximation

PCP Theorem. There exists ρ < 1 such that for every L ∈ NP there is a P-timecomputable function f : L→ 3SAT such that

x ∈ L ⇒ val(f (x)) = 1,

x /∈ L ⇒ val(f (x)) < ρ.

I Figure out the significance of the theorem by letting L = 3SAT.

Computational Complexity, by Fu Yuxi PCP Theorem 25 / 119

Page 27: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

The PCP Theorem, Hardness of Approximation

PCP Theorem cannot be proved using Cook-Levin reduction.

I val(f (x)) tends to 1 even if x /∈ L.

“The intuitive reason is that computation is an inherently unstable, non-robustmathematical object, in the sense that it can be turned from non-accepting toaccepting by changes that would be insignificant in any reasonable metric.”

Papadimitriou and Yannakakis, 1988

Computational Complexity, by Fu Yuxi PCP Theorem 26 / 119

Page 28: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Corollary. There exists some ρ < 1 such that if there is a P-time ρ-approximationalgorithm for Max-3SAT then P = NP.

I The ρ-approximation algorithm for Max-3SAT is NP-hard.

Computational Complexity, by Fu Yuxi PCP Theorem 27 / 119

Page 29: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Equivalence of the Two Views

Computational Complexity, by Fu Yuxi PCP Theorem 28 / 119

Page 30: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

CSP, Constraint Satisfaction Problem

If q is a natural number, then a qCSP instance ϕ with n variables is a collection ofconstraints ϕ1, . . . , ϕm : {0, 1}n → {0, 1} such that for each i ∈ [m] the function ϕi

depends on q of its input locations.

We call q the arity of ϕ, and m the size of ϕ.

An assignment u ∈ {0, 1}n satisfies a constraint ϕi if ϕi (u) = 1. Let

val(ϕ) = maxu∈{0,1}n

{∑ni=1 ϕi (u)

m

}.

We say that ϕ is satisfiable if val(ϕ) = 1.

qCSP is a generalization of 3SAT.

Computational Complexity, by Fu Yuxi PCP Theorem 29 / 119

Page 31: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

1. We assume that n ≤ qm.

2. Since every ϕi can be described by a formula of size q2q, and every variable can becoded up by log n bits, a qCSP instance can be described by O(mq2q log n) bits.

3. The greedy algorithm for MAX-3SAT can be applied to MAXqCSP to produce anassignment satisfying ≥ val(ϕ)

2q m constraints.

Computational Complexity, by Fu Yuxi PCP Theorem 30 / 119

Page 32: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Gap CSP

Suppose q ∈ N and ρ ≤ 1.

Let ρ-GAPqCSP be the promise problem of determining if a qCSP instance ϕ satisfieseither (1) val(ϕ) = 1 or (2) val(ϕ) < ρ.

We say that ρ-GAPqCSP is NP-hard if for every NP-problem L some P-time computablefunction f : L→ ρ-GAPqCSP exists such that

x ∈ L ⇒ val(f (x)) = 1,

x /∈ L ⇒ val(f (x)) < ρ.

PCP Theorem. There exists some ρ ∈ (0, 1) such that ρ-GAP3SAT is NP-hard.

Computational Complexity, by Fu Yuxi PCP Theorem 31 / 119

Page 33: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

PCP Theorem. There exist q ∈ N and ρ ∈ (0, 1) such that ρ-GAPqCSP is NP-hard.

Computational Complexity, by Fu Yuxi PCP Theorem 32 / 119

Page 34: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Equivalence Proof

PCP Theorem ⇒ PCP Theorem.

This is essentially the Cook-Levin reduction.

1. Suppose NP ⊆ PCP(log, 1). Then 3SAT has a PCP verifier V that makes qqueries using c log n random bits.

2. Given input x with |x | = n and random string r ∈ {0, 1}c log n, V(x , r) is aBoolean function of type {0, 1}q → {0, 1}.

3. ϕ = {V(x , r)}r∈{0,1}c log n is a P-size qCSP instance.

I By completeness, x ∈ 3SAT⇒ val(ϕ) = 1.

I By soundness, x /∈ 3SAT⇒ val(ϕ) ≤ 1/2.

4. The map from 3SAT to 12 -GAPqCSP is P-time computable.

I V runs in P-time.

Computational Complexity, by Fu Yuxi PCP Theorem 33 / 119

Page 35: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Equivalence Proof

PCP Theorem ⇐ PCP Theorem.

Suppose L∈NP and ρ-GAPqCSP is NP-hard for some q ∈N, ρ < 1. By assumptionthere is some P-time reduction f : L→ ρ-GAPqCSP.

1. The verifier for L works as follows:

I On input x , compute the qCSP instance f (x) = {ϕi}i∈[m].I Given a proof π, which is an assignment to the variables, it randomly chooses

i ∈ [m] and checks if ϕi is satisfied by reading the relevant q bits of the proof.

2. If x ∈ L, the verifier always accepts; otherwise it accepts with probability < ρ.

Computational Complexity, by Fu Yuxi PCP Theorem 34 / 119

Page 36: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Equivalence Proof

PCP Theorem ⇔ PCP Theorem.

This is very much like the equivalence between SAT and 3SAT.

1. Let ε > 0 and q ∈ N be such that (1−ε)-GAPqCSP is NP-hard.

2. Let ϕ = {ϕi}mi=1 be a qCSP instance with n variables.

3. Each ϕi is the conjunction of at most 2q clauses, each being the disjunction of atmost q literals.

4. If all assignments fail at least an ε fragment of the constraints of ϕ, then allassignments fail at least a ε

q2q fragment of the clauses of the 3SAT instance.

Computational Complexity, by Fu Yuxi PCP Theorem 35 / 119

Page 37: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Proof View Inapproximability View

PCP verifier V CSP instance ϕPCP proof π assignment to variables u

proof length |π| number of variables nnumber of queries q arity of constraints q

number of random bits r logarithm of number of constraints logmsoundness parameter ε maximum fraction of violated constraints of no instance

NP ⊆ PCP(log, 1) ρ-GAPqCSP is NP-hard

The equivalence of the proof view and the inapproximability view is essentially due tothe Cook-Levin Theorem for PTM.

Computational Complexity, by Fu Yuxi PCP Theorem 36 / 119

Page 38: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Inapproximability

Computational Complexity, by Fu Yuxi PCP Theorem 37 / 119

Page 39: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Min-VC and Max-IS are inherently different from the perspective of approximation.

I Min-VC + Max-IS = n.

I ρ-approximation algorithm of Max-IS⇒ n−ISn−ρIS -approximation algorithm of Min-VC.

Computational Complexity, by Fu Yuxi PCP Theorem 38 / 119

Page 40: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Lemma. There is a P-time computable function f from 3CNF formulas to graphs thatmaps a formula ϕ to an n-vertex graph f (ϕ) whose independent set is of size val(ϕ)n7 .

The standard Karp reduction from 3SAT to Max-IS is as follows:

I Each clause is translated to a clique of 7 nodes, each node represents a (partial)assignment that validates the clause.

I Two nodes from two different cliques are connected if and only if they conflict.

A 3CNF formula ϕ consisting of m clauses is translated to a graph with 7m nodes, andan assignment satisfying l clauses of ϕ if and only if the graph has an independent setof size l .

Computational Complexity, by Fu Yuxi PCP Theorem 39 / 119

Page 41: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Theorem. The following statements are valid.

1. ∃ρ′ < 1. ρ′-approximation to Min-VC is NP-hard, and

2. ∀ρ < 1. ρ-approximation to Max-IS is NP-hard.

[∃ρ. ρ-approximation to Max-IS is NP-hard.]∗ By PCP Theorem, ρ-approximation toMax-3SAT is NP-hard for some ρ. So by Lemma ρ-approximation to Max-IS is NP-hard.

1. Referring to the map of Lemma, the minimum vertex cover has size n − val(ϕ)n7 .Let ρ′ = 6

7−ρ . Suppose Min-VC had a ρ′-approximation algorithm.

I If val(ϕ) = 1, it would produce a vertex cover of size ≤ 1ρ′ (n −

n7 ) = n − ρn

7 .

I If val(ϕ) < ρ, the minimum vertex cover has size > n − ρn7 . The algorithm must

return a vertex cover of size > n − ρn7 .

The first proposition is established. The second will be proved by making use of [ ]∗.

Computational Complexity, by Fu Yuxi PCP Theorem 40 / 119

Page 42: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

2. Assume that Max-IS were ρ0-approximate. Let k satisfy ρ0

(ISk

)>(ρISk

).

1. Suppose G is the input graph. Construct G k as follows:

I The vertices are k-size subsets of VG ;I Two vertices S1,S2 are disconnected if S1 ∪ S2 is an independent set of G .

2. Apply the ρ0-approximation algorithm to G k , and derive an independent set of Gfrom the output of the algorithm.

I The largest independent set of G k is of size(ISk

), where IS is the maximum

independent set of G .

I The output is an independent set of size ≥ ρ0

(ISk

)>(ρISk

).

I An independent set of size ρIS can be derived. This is a contradiction.

Computational Complexity, by Fu Yuxi PCP Theorem 41 / 119

Page 43: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

The Fourier Transform Technique

Computational Complexity, by Fu Yuxi PCP Theorem 42 / 119

Page 44: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

A Boolean function f : {0, 1}n → {0, 1} is a linear function if

f (x + y) = f (x) + f (y),

where “+” is the exclusive-or operator.

Computational Complexity, by Fu Yuxi PCP Theorem 43 / 119

Page 45: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

Boolean functions can be studied using Fourier transform over GF (2)n.

We shall use {+1,−1} instead of {0, 1} in this section.

I 0↔ (−1)0 = 1 and 1↔ (−1)1 = −1.

I {0, 1}n is turned into {±1}n.

I ”exclusive-or” is turned into “multiplication”.

Computational Complexity, by Fu Yuxi PCP Theorem 44 / 119

Page 46: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

The 2n-dimensional Hilbert space R{±1}n is defined as follows: For f , g ∈ R{±1}n ,

1. (f + g)(x) = f (x) + g(x),

2. (cf )(x) = cf (x), and

3. expectation inner product: 〈f , g〉 = Ex∈{±1}n [f (x)g(x)].

Standard orthogonal basis: {ex}x∈{±1}n .

Computational Complexity, by Fu Yuxi PCP Theorem 45 / 119

Page 47: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

Fourier Basis: {χα}α⊆[n], where χα(x) =∏

i∈α xi .

1. χ∅ = 1.

2. We will see that Fourier basis functions are the same as the linear functions.

3. Inner product 〈χα, χβ〉 = 1 if α = β and = 0 otherwise.

Fourier basis is orthonormal.

I 〈χα, χα〉 = Ex∈{±1}n [χα(x)χα(x)] = Ex∈{±1}n [χα(x·x)] = Ex∈{±1}n [1] = 1.

I 〈χα, χβ〉 = Ex∈{±1}n [χα(x)χβ(x)] = 0 if α 6= β.

The notation y·z stands for the dot product of y and z.

Computational Complexity, by Fu Yuxi PCP Theorem 46 / 119

Page 48: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

f =∑

α⊆[n] fαχα for every f ∈ R{±1}n , where fα is the αth Fourier coefficient of f .

Lemma. (i) 〈f , g〉 =∑

α⊆[n] fαgα. (ii) (Parsevals Identity) 〈f , f 〉 =∑

α⊆[n] f2α .

Proof.〈f , g〉 = 〈

∑α⊆[n] fαχα,

∑β⊆[n] gβχβ〉 =

∑α,β⊆[n] fαgα〈χα, χβ〉 =

∑α⊆[n] fαgα.

Computational Complexity, by Fu Yuxi PCP Theorem 47 / 119

Page 49: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

Example.

1. Majority function of 3 variables = 12u1 + 1

2u2 + 12u3 − 1

2u1u2u3.

2. Projection function λx1 . . . xn.xi . Here fα is 1 if α = {i} and is 0 if α 6= {i}.

Computational Complexity, by Fu Yuxi PCP Theorem 48 / 119

Page 50: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

Theorem. Suppose f : {±1}n → {±1} satisfies Prx,y[f (x·y) = f (x)f (y)] ≥ 12 + ε.

Then there is some α ⊆ [n] such that fα ≥ 2ε.

The assumption is equivalent to Ex,y[f (x·y)f (x)f (y)] ≥ 12

+ ε− ( 12− ε) = 2ε. Now

2ε ≤ Ex,y[f (x·y)f (x)f (y)] = Ex,y[(∑α

fαχα(x·y))(∑β

fβχβ(x))(∑γ

fγχγ(y))]

= Ex,y[∑α,β γ

fα fβ fγχα(x)χα(y)χβ(x)χγ(y)]

=∑α,β,γ

fα fβ fγEx,y[χα(x)χα(y)χβ(x)χγ(y)]

=∑α,β,γ

fα fβ fγEx[χα(x)χβ(x)]Ey[χα(y)χγ(y)]

=∑α

f 3α ≤ (max

αfα)∑α

f 2α = max

αfα.

The last equality is due to the fact that f is Boolean.

Computational Complexity, by Fu Yuxi PCP Theorem 49 / 119

Page 51: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Fourier Transform over GF (2)n

For Boolean functions f , g : {±1}n → {±1}, the inner product 〈f , g〉 is

|{x | f (x) = g(x)}|2n

− |{x | f (x) 6= g(x)}|2n

.

Referring to the Theorem, let fα ≥ 2ε be the largest Fourier coefficient of f . Then

〈f , χα〉 ≥ 2ε.

In other words f coincides with the basis function χα on ≥ 12 + ε fraction of inputs.

Computational Complexity, by Fu Yuxi PCP Theorem 50 / 119

Page 52: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Efficient Conversion of NP Certificate to PCP Proof

Computational Complexity, by Fu Yuxi PCP Theorem 51 / 119

Page 53: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Proofs of PCP Theorems involve some interesting ways of encoding NP-certificatesand the associated methods of checking if a string is a valid encoding.

One idea is to amplify any error that appears in an NP-certificate.

We shall showcase how it works by looking at a problem to which the amplificationpower of Walsh-Hadamard Code can be exploited.

Theorem. NP ⊆ PCP(poly(n), 1).

Computational Complexity, by Fu Yuxi PCP Theorem 52 / 119

Page 54: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Walsh-Hadamard Code

The Walsh-Hadamard function WH : {0, 1}n → {0, 1}2n encodes a string of length n bya function in n variables over GF(2):

WH(u) : x 7→ u� x,

where u� x =∑n

i=1 uixi (mod 2).

Random Subsum Principle.

I If u 6= v then for exactly half the choices of x, u� x 6= v � x.

Computational Complexity, by Fu Yuxi PCP Theorem 53 / 119

Page 55: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Walsh-Hadamard Codeword

We say that f is a Walsh-Hadamard codeword if f = WH(u) for some u ∈ {0, 1}n.

1. Walsh-Hadamard codewords are precisely the linear functions. This is because alinear function f is the same as WH(f), where

f =

f (e1)f (e2)

...f (en)

.

2. Walsh-Hadamard codewords are essentially the Fourier basis functions.

Computational Complexity, by Fu Yuxi PCP Theorem 54 / 119

Page 56: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Let ρ ∈ [0, 1]. The functions f , g : {0, 1}n → {0, 1} are ρ-close if

Prx∈R{0,1}n [f (x) = g(x)] ≥ ρ.

Theorem. Let f : {0, 1}n → {0, 1} be such that for some ρ > 12 ,

Prx,y∈R{0,1}n [f (x + y) = f (x) + f (y)] ≥ ρ.

Then f is ρ-close to a linear function.

Proof.Let ρ = 1

2 + ε. This follows immediately from the theorem of the previous section.

Computational Complexity, by Fu Yuxi PCP Theorem 55 / 119

Page 57: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Local Testing of Walsh-Hadamard Codeword

A local test of f checks if f is a Walsh-Hadamard codeword by making a constantnumber of queries.

I It accepts every linear function, and

I it rejects every function that is far from being linear with high probability.

For δ ∈ (0, 1/2) a (1− δ)-linearity test rejects with probability ≥ 12 any function not

(1− δ)-close to a linear function by testing

f (x + y) = f (x) + f (y)

randomly for 1δ times. The error probability is ≤ (1− δ)

1δ ≈ 1

e< 1

2.

Computational Complexity, by Fu Yuxi PCP Theorem 56 / 119

Page 58: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Local Decoding

Suppose δ < 14 and f is (1− δ)-close to some linear function f .

Given x one can learn f (x) by making only two queries to f .

1. Choose x′ ∈R {0, 1}n;

2. Set x′′ = x + x′;

3. Output f (x′) + f (x′′).

By union bound f (x) = f (x′) + f (x′′) = f (x′) + f (x′′) holds with probability ≥ 1− 2δ.

Computational Complexity, by Fu Yuxi PCP Theorem 57 / 119

Page 59: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Quadratic Equation in GF(2)

Suppose A is an m× n2 matrix and b is an m-dimensional vector with values in GF(2).

Let (A,b) ∈ QUADEQ if there is an n-dimensional vector u such that

A(u⊗ u) = b,

where u⊗ u is the tensor product of u.

u ⊗ u = (u1u1, . . . , u1un, . . . , unu1, . . . , unun)†.

Computational Complexity, by Fu Yuxi PCP Theorem 58 / 119

Page 60: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Quadratic Equation in GF(2)

An instance of QUADEQ over u1, u2, u3, u4, u5:

u1u2 + u3u4 + u1u5 = 1

u1u1 + u2u3 + u1u4 = 0

A satisfying assignment is (0, 0, 1, 1, 0).

Computational Complexity, by Fu Yuxi PCP Theorem 59 / 119

Page 61: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

QUADEQ is NP-Complete

CKT-SAT ≤K QUADEQ.

I The inputs and the outputs are turned into variables.

I Boolean equality x ∨ y = z relating the inputs to the output is turned intoalgebraic equality (1− x)(1− y) = 1− z in GF(2), which is equivalent toxx + yy + xy + zz = 0.

I ¬x = z is turned into xx + zz = 1.

I x ∧ y = z is turned into xy + zz = 0.

Computational Complexity, by Fu Yuxi PCP Theorem 60 / 119

Page 62: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

From NP Certificate to PCP Proof

A certificate for (A,b) is an n-dimensional vector u witnessing (A,b) ∈ QUADEQ.

I To check if u is a solution, one reads the n bits of u and checks the m equations.

We convert an NP-certificate u to the PCP-proof WH(u)WH(u⊗ u).

I The proof is a string of length 2n + 2n2.

I Using the proof it is straightforward to verify probabilistically if (A,b) ∈ QUADEQ.

Computational Complexity, by Fu Yuxi PCP Theorem 61 / 119

Page 63: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Verifier for QUADEQ

Step 1. Verify that f , g are linear functions.

1. Perform a 0.999-linearity test on f , g .

If successful we may assume that f (r) = u� r and g(z) = w � z.

Computational Complexity, by Fu Yuxi PCP Theorem 62 / 119

Page 64: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Verifier for QUADEQ

Step 2. Verify that g encodes (u⊗ u)� .

1. Get independent random r, r′.

2. Reject if f (r)f (r′) 6= g(r ⊗ r′).

3. Repeat the test 10 times.

I In a correct proof f (r)f (r′) = (∑

i ui ri )(∑

j uj r′j ) =

∑i ,j uiuj ri r

′j = g(r ⊗ r′).

I Assume w 6= u⊗ u. Let matrices W and U be w and respectively u⊗ u. One has

I g(r ⊗ r′) = w � (r ⊗ r′) =∑

i,j wij ri r′j = rW r′, and

I f (r)f (r′) = (u⊗ r)(u⊗ r′) = (∑

i ui ri )(∑

j uj r′j ) = rUr′.

rW , rU differ for at least 12 of r’s; and rW r′, rUr′ differ for at least 1

4 of (r, r′)’s.

I The overall probability of rejection is at least 1− ( 34 )10 > 0.9.

Computational Complexity, by Fu Yuxi PCP Theorem 63 / 119

Page 65: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Verifier for QUADEQ

Step 3. Verify that g encodes a solution.

1. Take a random subset S of [m].

2. Reject if g(∑

k∈S Ak, ) 6=∑

k∈S bk .

I There is enough time to check A(u⊗ u) = b by checking, for every k ∈ [m], theequality g(Ak, ) = bk .

I However since m is part of the input, the number of queries, which must be aconstant, should not depend on m.

I If {k ∈ [m] | g(Ak, ) 6= bk} 6= ∅, then

PrS⊆R[m][|S ∩ {k ∈ [m] | g(Ak, ) 6= bk}| is odd] =1

2.

Note that g(∑

k∈S Ak, ) =∑

k∈S g(Ak, ) by linearity.

Computational Complexity, by Fu Yuxi PCP Theorem 64 / 119

Page 66: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Suppose the PCP verifier for QUADEQ makes q0 queries.

It follows from the completeness of QUADEQ that all NP problems have PCP verifiersthat toss coins for a polynomial number of time and make precisely q0 queries.

Computational Complexity, by Fu Yuxi PCP Theorem 65 / 119

Page 67: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Proof of PCP Theorem

Computational Complexity, by Fu Yuxi PCP Theorem 66 / 119

Page 68: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

CSP with Nonbinary Alphabet

qCSPW is analogous to qCSP except that the alphabet is [W ] instead of {0, 1}.The constraints are functions of type [W ]q → {0, 1}.

For ρ ∈ (0, 1), we define the promise problem ρ-GAPqCSPW analogous to ρ-GAPqCSP.

Computational Complexity, by Fu Yuxi PCP Theorem 67 / 119

Page 69: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

3COL is a case of 2CSP3.

Computational Complexity, by Fu Yuxi PCP Theorem 68 / 119

Page 70: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

PCP Theorem states that ρ-GAPqCSP is NP-hard for some q, ρ.

The proof we shall describe is based on the following:

1. If ϕ of m constraints is unsatisfied, then val(ϕ) ≤ 1− 1m .

2. There is a construction that increases the gap.

The idea is to start with an NP-problem, then apply Step 2 for logm times.

Computational Complexity, by Fu Yuxi PCP Theorem 69 / 119

Page 71: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Let f be a function mapping CSP instances to CSP instances.

It is a CL-reduction (complete linear-blowup reduction) if it is P-time computable andthe following are valid for every CSP instance ϕ.

I Completeness. If ϕ is satisfiable then f (ϕ) is satisfiable.I Linear Blowup. If ϕ has m constraints, f (ϕ) has no more than Cm constraints

over a new alphabet W .I C , W depend on neither the number of constraints nor the number of variables of ϕ.

Computational Complexity, by Fu Yuxi PCP Theorem 70 / 119

Page 72: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Main Lemma. There exist constants q0 ≥ 3, ε0 > 0 and CL-reduction f such that forevery q0CSP instance ϕ and every ε < ε0, f (ϕ) is a q0CSP instance satisfying

val(ϕ) ≤ 1− ε⇒ val(f (ϕ)) ≤ 1− 2ε.

q0CSP Instance Arity Alphabet Constraint Gap

ϕ q0 binary m 1− ε⇓ ⇓ ⇓ ⇓ ⇓

f (ϕ) q0 binary Cm 1− 2ε

In the following proof of the PCP Theorem, q0, ε0, `, W , W ′, d , t are all constants.They depend neither on the number n of variables nor on the number m of constraints.

Computational Complexity, by Fu Yuxi PCP Theorem 71 / 119

Page 73: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Proof of PCP Theorem

Let q0 ≥ 3 and ε0 > 0 be given by the Main Lemma. A CL-reduction from q0CSP to(1−2ε0)-GAPq0CSP is obtained as follows:

1. q0CSP is NP-hard.

2. For a q0CSP instance ϕ with m constraints, apply Main Lemma for logm times toamplify the gap. We get an instance ψ.

3. If ϕ is satisfiable, then ψ is satisfiable. Otherwise according to Main Lemma

val(ψ) ≤ 1− 2log m · 1

m≤ 1− 2ε0.

4. |ψ| ≤ C log mm = poly(|ϕ|). Conclude that (1−2ε0)-GAPq0CSP is NP-hard.

C depends on two constants, q0 and 2 (the size of alphabet).

Computational Complexity, by Fu Yuxi PCP Theorem 72 / 119

Page 74: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Main Lemma is proved in three steps.

1. Prove that every qCSP instance can be turned into a “nice” qCSPW instance.

2. Gap Amplification. Construct a CL-reduction f that increases both the gap andthe alphabet size of a “nice” qCSP instance. [Dinur’s proof]

3. Alphabet Reduction. Construct a CL-reduction g that decreases the alphabet sizeto 2 with a modest reduction in the gap. [Proof of Arora et al.]

Computational Complexity, by Fu Yuxi PCP Theorem 73 / 119

Page 75: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Gap Amplification. For all numbers `, q, there are number W , ε0 ∈ (0, 1) and a CL-reductiong`,q such that for every qCSP instance ϕ, ψ = g`,q(ϕ) is a 2CSPW instance that satisfies thefollowing for all ε < ε0.

val(ϕ) ≤ 1− ε⇒ val(ψ) ≤ 1− `ε.

Alphabet Reduction. There exist a constant q0 and a CL-reduction h such that for every2CSPW instance ϕ, ψ = h(ϕ) is a q0CSP instance satisfying

val(ϕ) ≤ 1− ε⇒ val(ψ) ≤ 1− ε/3.

CSP Instance Arity Alphabet Constraint Gap

ϕ q0 binary m 1− ε⇓ ⇓ ⇓ ⇓ ⇓

f (ϕ) 2 nonbinary C ′m 1− 6ε⇓ ⇓ ⇓ ⇓ ⇓

g(f (ϕ)) q0 binary C ′′C ′m 1− 2ε

Computational Complexity, by Fu Yuxi PCP Theorem 74 / 119

Page 76: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Dinur makes use of expander graphs to construct new constraints.

Let ϕ be a 2CSPW instance with n variables. The constraint graph Gϕ of ϕ is definedas follows:

1. the vertex set is [n], and

2. (i , j) is an edge if there is a constraint on the variables ui , uj . Parallel edges andself-loops are allowed.

Computational Complexity, by Fu Yuxi PCP Theorem 75 / 119

Page 77: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

A 2CSPW instance ϕ is nice if the following are valid:

1. There is a constant d such that Gϕ is a (d , 0.9)-expander.

2. At every vertex half of the adjacent edges are self loops.

A nice CSP instance looks like an expander. In a nice CSP a t + 1 step random walk isvery much like a t step random walk.

Computational Complexity, by Fu Yuxi PCP Theorem 76 / 119

Page 78: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Lemma. Let G be a d-regular n-vertex graph, S be a vertex subset and T = S . Then

|E (S ,T )| ≥ (1− λG )d |S ||T ||S |+ |T |

. (1)

The vector x defined below satisfies ‖x‖22 = |S ||T |(|S |+ |T |) and x⊥1.

xi =

{+|T |, i ∈ S ,−|S |, i ∈ T .

Let Z =∑

i,j Ai,j(xi − xj)2. By definition Z = 2d |E (S ,T )|(|S |+ |T |)2. On the other hand

Z =∑i,j

Ai,jx2i − 2

∑i,j

Ai,jxixj +∑i,j

Ai,jx2j = 2‖x‖2

2 − 2〈x,Ax〉.

Since x⊥1, 〈x,Ax〉 ≤ λG‖x‖22 (cf. Rayleigh quotient).

Computational Complexity, by Fu Yuxi PCP Theorem 77 / 119

Page 79: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Let G = (V ,E ) be an expander and S ⊆ V with |S | ≤ |V |/2. The following holds.

Pr(u,v)∈E [u ∈ S , v ∈S ] ≤ |S ||V |

(1

2+λG2

). (2)

Observe that |S |/|V | = Pr(u,v)∈E [u ∈S , v ∈S ] + Pr(u,v)∈E [u ∈ S , v ∈S ]. And by (1), one has

Pr(u,v)∈E [u ∈S , v ∈S ] = E (S ,S)/d |V | ≥ |S ||V |· 1

2· (1−λG ).

We are done by substituting |S |/|V | − Pr(u,v)∈E [u ∈S , v ∈S ] for Pr(u,v)∈E [u ∈S , v ∈S ].

Pr(u,v)∈E` [u ∈S , v ∈S ] ≤ |S ||V |

(1

2+λ`G2

). (3)

Computational Complexity, by Fu Yuxi PCP Theorem 78 / 119

Page 80: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 1: Reduction to Nice Instance

The reduction consists of three steps.

q0CSP instanceStep1.1⇒ 2CSP2q0 instanceStep1.2⇒ 2CSP2q0 instance with regular constraint graphStep1.3⇒ nice 2CSP2q0 instance.

In all the three steps the fraction of violated constraints decreases.

Computational Complexity, by Fu Yuxi PCP Theorem 79 / 119

Page 81: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 1: Reduction to Nice Instance

Step 1.1. There exists a CL-reduction that maps a q0CSP instance ϕ to a 2CSP2q0

instance ψ such that

val(ϕ) ≤ 1− ε⇒ val(ψ) ≤ 1− ε

q0.

Suppose ϕ has variables x1, . . . , xn and m constraints.

I The new instance ψ has variables x1, . . . , xn, y1, . . . , ym, where yi ∈ {0, 1}q0 codesup an assignment to x1, . . . , xn.

I For each variable xj in ϕi , construct the constraint ψi ,j stating that yi satisfies ϕi

and yi is consistent to xj .

What is the formula ψij(yi , xj)? What is the size of ψij(yi , xj)?

Computational Complexity, by Fu Yuxi PCP Theorem 80 / 119

Page 82: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 1: Reduction to Nice Instance

Step 1.2. There exist an absolute constant d and a CL-reduction that maps a 2CSPWinstance ϕ to a 2CSPW instance ψ such that

val(ϕ) ≤ 1− ε⇒ val(ψ) ≤ 1− ε

100Wd

and that Gψ is d-regular.

Let {Gk}k be an explicit (d−1, 0.9)-expander. We get ψ by replacing each k-degree

node of Gϕ by Gk and adding the identity constraint (of the form y ji = y j′

i , wherei ∈ [n]) to each edge (j , j ′) of Gk . If ϕ has m constraints, ψ has dm constraints.

Suppose val(ϕ) ≤ 1− ε and v is an unsatisfying assignment to ψ.

It suffices to prove that v violates at least εm100W constraints of ψ. Continue on the next slide.

Fact. For every c ∈ (0, 1) there is a constant d and an algorithm that, given input n, runs in poly(n) time and outputs an (n, d, c)-expander.

Computational Complexity, by Fu Yuxi PCP Theorem 81 / 119

Page 83: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 1: Reduction to Nice Instance

Let u be the assignment to ϕ that is defined by the plurality of the assignment v to ψ.

Let ti be the number of v ji ’s, where j ∈ [k], that disagree with ui . Clearly ti ≤ k(1− 1

W ).

If∑n

i=1 ti is large, each Gk already contains enough violated constraints.

1.∑n

i=1 ti ≥14εm. Let Si = {y j

i | vji = ui} and let Si = {y1

i , . . . , yki } \ Si . The number of

constraints of Gk violated by v is at least

E(Si , Si )(1)

≥ (1− λGk )(d − 1)|Si ||Si ||Si |+ |Si |

=1

10

d − 1

k|Si ||Si | ≥

1

10Wti ,

where ≥ is due to |Si | ≥ k/W . Now∑

i∈[n] E (Si ,Si ) ≥ εm40W = ε

40Wd ·dm.

2.∑n

i=1 ti <14εm. Since val(ϕ) ≤ 1− ε, there is at least εm constraints violated in ϕ by u.

These εm constraints are also in ψ with variables being v.

Since every constraint has two variables, less than 14εm + 1

4εm constraints have valuationsin ψ different from those in ϕ. So at least 1

2εm constraints are violated.

Computational Complexity, by Fu Yuxi PCP Theorem 82 / 119

Page 84: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 1: Reduction to Nice Instance

Step 1.3. There is an absolute constant d and a CL-reduction that maps a 2CSPWinstance ϕ with Gϕ being d ′-regular for some d ′ ≤ d to a 2CSPW instance ψ such that

val(ϕ) ≤ 1− ε⇒ val(ψ) < 1− ε

10d

and that Gψ is nice, 4d-regular, and half of the edges adjacent to each vertex are loops.

There is a constant d and an explicit (d , 0.1)-expander {Gn}n∈N. We may assume thatϕ is d-regular (adding self-loops if d ′ < d) and that ϕ contains n variables.

We get ψ from ϕ by adding a tautological constraint for every edge of Gn and adding2d tautological constraints forming self-loops for each vertex. Then

λGψ ≤3

4+

1

4λGϕ < 0.9.

Notice that “adding” decreases ε by a factor ≤ d and “adding” by a further factor ≤ 4.

Computational Complexity, by Fu Yuxi PCP Theorem 83 / 119

Page 85: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

To amplify the gap, we apply a path-product like operation on constraint graphs sothat a new constraint is a conjunction of some old constraints.

Path construction increases the fraction of violated constraints.

We need to address the issue of how to compose two-variable constraints so that everynew constraint contains two variables.

Computational Complexity, by Fu Yuxi PCP Theorem 84 / 119

Page 86: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Construction of the 2CSPW ′ instance ψt : Variables.

1. Let x1, . . . , xn denote the variables of ψ.

2. ψt contains n variables y1, . . . , yn ∈W ′ <W d5t, where yi is an assignment to

those of x1, . . . , xn reachable within t + δ(t) steps from xi . We will let δ(t) =√t.

For i , j ∈ [n] we say that an assignment to yi claims a value for xj .

t+√t

xi

xj

xk

t

The belt zone is for consistence checking.

Computational Complexity, by Fu Yuxi PCP Theorem 85 / 119

Page 87: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Construction of the 2CSPW ′ instance ψt : Constraints.

1. For each 2t+1 step path p = (i1, . . . , i2t+2) in Gψ, introduce Cp =∧

j∈[2t+2] Cjp as

a constraint of ψt such that for each j that C jp appears in Cp, the following hold:

1.1 The length of (i1, . . . , ij) and the length of (ij+1, . . . , i2t+2) are ≤ t +√t;

1.2 C jp is obtained from the constraint of xij and xij+1 by replacing xij , xij+1 respectively by

yi1 ’s claim for xij and yi2t+2 ’s claim for xij+1 .

t+√ti1 i2t+2

ij ij+1

t+√t

t t

Computational Complexity, by Fu Yuxi PCP Theorem 86 / 119

Page 88: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Lemma. There is an algorithm that given t > 1 and a nice 2CSPW instance ψ with nvariables, m= dn

2 edges, d-degree Gψ, produces a 2CSPW ′ instance ψt satisfying 1-4.

1. W ′ <W d5tand ψt has at most n·d t+

√t+1 constraints.

2. If ψ is satisfiable then ψt is satisfiable.

3. For ε < 1d√t, if val(ψ) ≤ 1− ε, then val(ψt) ≤ 1− `ε for ` =

√t

104dW 5 .

4. The formula ψt is produced in poly(m,W d5t) time.

Gap Amplification follows immediately from the lemma.

I If ` = 6 and W = 2q0 , we get a constant t and a constant ε0 = 1d√t.

I In this case ψt has O(m) constraints and is produced in poly(m) time.

Computational Complexity, by Fu Yuxi PCP Theorem 87 / 119

Page 89: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

The conditions 1, 2, 4 of the lemma are satisfied.

Computational Complexity, by Fu Yuxi PCP Theorem 88 / 119

Page 90: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Fix an arbitrary assignment v1, . . . , vn to y1, . . . , yn.

We would like to define an assignment to x1, . . . , xn from v1, . . . , vn.

1. Let Zi ∈ [W ] be a random variable defined by the following.I Starting from the vertex i , take a t step random walk in Gψ to reach some vertex k;

output vk ’s claim for xi .

Let wi denote the most likely value of Zi .

2. We call w1, . . . ,wn the plurality assignment to x1, . . . , xn. Clearly Pr[Zi=wi ] ≥ 1W .

You are what your friends think you are.

Computational Complexity, by Fu Yuxi PCP Theorem 89 / 119

Page 91: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

A random 2t+1 step path p = (i1, . . . , i2t+2) is picked up with probability 2n·d2t+1 .

Equivalently such a random path can be chosen in either of the following manners.

1. Pick up a random node, and take a 2t+1 step random walk from the node.

2. Pick up a random edge, and then take a j-step random walk from one node of theedge and a (2t−j)-step random walk from the other node of the edge.

Pick up a random constraint of ψt is the same as picking up a random 2t+1 step path.

Computational Complexity, by Fu Yuxi PCP Theorem 90 / 119

Page 92: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

For j ∈ [2t+1] the j-th edge (ij , ij+1) in p is truthful if vi1 claims the plurality value forij and vi2t+2 claims the plurality value for ij+1.

Suppose val(ψ) ≤ 1− ε. There is a set F of εm = εdn2 constraints in ψ violated bythe assignment x1 = w1, . . . , xn = wn

I If p has an edge that is both truthful and in F , the constraint Cp is violated.

Claim. Let δ = 1100W . For each j ∈ [t + 1, t + δ

√t], the proof is on the next slide

PrpPre∈RE [the jth edge of p is truthful | the jth edge of p is e] ≥ 1

2W 2.

Consequently an edge in p is violated with probability at least ε2W 2 .

Computational Complexity, by Fu Yuxi PCP Theorem 91 / 119

Page 93: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

A 2t+1 step random walk with (ij , ij+1) = e can be generated by a (j−1)-step randomwalk from ij and a (2t−j+1)-step random walk from ij+1. It boils down to proving

Pr[vi1claims the plurality value for ij ]·Pr[vi2t+2claims the plurality value for ij+1] ≥ 1

2W 2. (4)

If j = t + 1 then the left hand side of (4) is at least 1/W 2. Otherwise observe that

I a j-step random walk can be generated by tossing coin for j times and takingSj -step non-self-loop random walk, where Sj = ]head’s, and that

I the statistical distance ∆(St ,St+δ√t) is bounded by 10δ.

Intuitively it is very likely that starting from a same vertex a (t+δ√t)-step random

walk and a t-step walk would end up in the same vertex.

Thus the left hand side of (4) is at least(

1W − 10δ

) (1W − 10δ

)≥ 1

2W 2 .

Computational Complexity, by Fu Yuxi PCP Theorem 92 / 119

Page 94: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Let V be the random variable for the number of edges among the middle δ√t edges

that are truthful and in F .

Pr[V > 0] is the probability of a ψt ’s constraint being violated. If Pr[V > 0] ≥ ε′,then at least ε′ fraction of ψt ’s constraints are violated.

Lemma. For every non-negative random variable V , Pr[V > 0] ≥ E[V ]2

E[V 2].

Proof.E[V |V>0]2 ≤ E[V 2|V>0] by convex property. The lemma follows from the following.

I E[V 2|V>0] =∑

i i2 · Pr[V=i |V>0] =

∑i i

2 · Pr[V=i ]Pr[V>0] = E[V 2]

Pr[V>0] .

I E[V |V>0]2 = (∑

i i · Pr[V=i |V>0])2 =(∑

i i ·Pr[V=i ]Pr[V>0]

)2

=(

E[V ]Pr[V>0]

)2

.

Computational Complexity, by Fu Yuxi PCP Theorem 93 / 119

Page 95: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Claim. E [V ] ≥ δ√tε

2W 2 .

Proof.By the previous claim, the probability of an edge in the middle interval of size δ

√t

that is truthful and in F is at least ε2W 2 . Then E [V ] ≥ δ

√tε

2W 2 by linearity. �

Claim. E [V 2] ≤ 11δ√tdε.

Proof.

I Let V ′ be the number of edges in the middle interval that are in F . Now V ≤ V ′.It suffices to show that E [V ′2] ≤ 11δ

√tdε.

I For j ∈ {t + 1, . . . , t + δ√t}, let Ij be an indicator random variable that is 1 if the

jth edge is in F and 0 otherwise. Then V ′ =∑

j∈{t+1,...,t+δ√t} Ij .

I Let S be the set of end points of the edges in F . Then |S |dn ≤ ε. continue on next slide.

Computational Complexity, by Fu Yuxi PCP Theorem 94 / 119

Page 96: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

E[V ′2] = E

[∑j

I 2j

]+ E

∑j 6=j′

Ij Ij′

= εδ

√t + 2

∑j<j′

Pr[jth edge is in F ∧ j ′th edge is in F ]

≤ εδ√t + 2

∑j<j′

Pr[jth vertex of walk lies in S ∧ j ′th vertex of walk lies in S ]

≤ εδ√t + 2

∑j

Pr[jth vertex of walk lies in S ] ·∑j′>j

Pr(a,b)∈E j′−j [a ∈ S , b ∈ S ]

(3)

≤ εδ√t + 2

∑j

dε ·∑j′>j

(1

2+

(λG )j′−j

2

)

≤ εδ√t + (δ

√t)2(dε)2

1 +∑k≥1

(λG )k

λG < 0.9 and δ < 1 and√tdε < 1

≤ 11δ√tdε.

Computational Complexity, by Fu Yuxi PCP Theorem 95 / 119

Page 97: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 2: Gap Amplification

Finally we conclude that

Pr[V > 0] ≥ E[V ]2

E[V 2]

≥(δ√tε

2W 2

)2

· 1

11δ√tdε

= δ ·√t

44dW 4· ε

=1

100W·√t

44dW 4· ε

>

√t

104dW 5ε

= `ε.

Computational Complexity, by Fu Yuxi PCP Theorem 96 / 119

Page 98: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

We look for an algorithm that transforms a 2CSPW to a q0CSP instance.

A simple idea is to turn a variable over [W ] to logW boolean variables.

I A constraint can be turned into a circuit C of size bounded by 22 log W <W 4.

I This would produce a CSP instance of arity 2 logW .

The problem with this idea is that 2 logW is greater than q0 (in fact W ≥ 2q0).

I If we apply Gap Amplification and Alphabet Reduction for logm times, we would get aCSP instance whose arity depends on input size.

Computational Complexity, by Fu Yuxi PCP Theorem 97 / 119

Page 99: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

A more sophisticated idea is to design a PCP checker for constraint checking!

1. We turn the 2CSPW problem to evaluation checking problem for CKT-SAT.

2. We further turn it to solution checking problem for QUADEQ.

3. We then apply the construction of the PCP verifier (with q0 queries!) for QUADEQ.

4. Finally we turn the PCP verifier to a q0CSP instance.

PCP of Proximity, Verifier Composition, Proof Composition.

I In some occasions a verifier is allowed to make only a small or constant number ofqueries. In other words it cannot read any complete assignment to variables.

I A solution is to see an assignment as part of a proof. Consequently a verifier canonly get to see a fragment of the proof. This is the PCP verifier for QUADEQ!

Computational Complexity, by Fu Yuxi PCP Theorem 98 / 119

Page 100: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

Suppose a constraint has been converted to a QUADEQ instance.

I Let u1 and u2 be assignments to logW variables.

I Let c be bit string of size ` = poly(W ) that represents the quadratic equationsderived from the circuit C . We assume that the first 2 logW bits of c are u1u2.

Let π1π2π3 be a PCP proof for the QUADEQ instance, where

I π1 is supposedly WH(u1), π2 is supposedly WH(u2) and π3 is supposedly WH(c).

Computational Complexity, by Fu Yuxi PCP Theorem 99 / 119

Page 101: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

The PCP verifier does the following:

1. Check that π1, π2 and π3 are 0.99-close to WH(u1), WH(u2) and WH(c) respectively.

2. Check that the first 2 logW bits of c are u1u2. This is done by concatenation test:

2.1 Choose randomly x, y ∈ {0, 1}log W .

2.2 Check that π3(xy0|c|−2 log W ) = π1(x) + π2(y). Confer the reduction from CKT-SAT to QUADEQ.

Computational Complexity, by Fu Yuxi PCP Theorem 100 / 119

Page 102: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

PCP of Proximity. There is a PCP verifier for every old constraint.

There is a verifier V that, given any circuit C with 2k input variables, runs inpoly(|C |) time, uses poly(|C |) random bits, and enjoys the following property.

1. If u1,u2 ∈ {0, 1}k and u1u2 is a satisfying assignment for C , then there is some

π3 ∈ {0, 1}2poly(|C |)such that V accepts WH(u1)WH(u2)π3 with probability 1.

2. For π1, π2 ∈ {0, 1}2k and π3 ∈ {0, 1}2poly(|C |), if V accepts π1π2π3 with probability

> 1/2, then π1 and π2 are 0.99-close to WH(u1) and WH(u2) respectively for someu1,u2 ∈ {0, 1}k , where u1u2 is a satisfying assignment to C .

Computational Complexity, by Fu Yuxi PCP Theorem 101 / 119

Page 103: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

The PCP verifier can be turned into a q0CSP instance. This is the proof of theequivalence between PCP Theorem and PCP Theorem.

Computational Complexity, by Fu Yuxi PCP Theorem 102 / 119

Page 104: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Step 3: Alphabet Reduction

Fact. If the value of the old CSP is ≤ 1−ε, then the value of the new CSP is ≤ 1−13ε.

Suppose an assignment to the new variables satisfied > 1−13ε fraction of the new

constraints. By decoding an assignment to the old variables satisfied a 1−δ fraction ofthe old constraints. For each violated old constraint Cs , at least half of the set Cs ofthe new constraints is violated. Thus 1

2δ ≤13ε. So at least 1−δ ≥ 1−2

3ε > 1− εfraction of the old constraints were violated, contradicting to the assumption.

This finishes the proof of Alphabet Reduction.

Computational Complexity, by Fu Yuxi PCP Theorem 103 / 119

Page 105: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Threshold Result by Hastad’s 3-Bit PCP Theorem

Computational Complexity, by Fu Yuxi PCP Theorem 104 / 119

Page 106: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Hastad Theorem. For every δ ∈ (0, 1) and every L ∈ NP, there is a PCP verifier Vfor L that makes three binary queries and satisfies completeness with parameter 1− δand soundness with a parameter at most 1

2 + δ. Moreover, given a proof π ∈ {0, 1}m,V chooses i1, i2, i3 ∈ [m] and b ∈ {0, 1} according to some distribution and accepts iffπi1 + πi2 + πi3 = b (mod 2).

1. J. Hastad. Some Optimal Inapproximability Results. J. ACM, 48:798-859, 2001, also in STOC’97.

Computational Complexity, by Fu Yuxi PCP Theorem 105 / 119

Page 107: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Threshold Result

An instance of MAX-E3LIN consists of finitely many equations of the form

xi1 + xi2 + xi3 = b (5)

taking values in GF (2). One looks for the size of the largest set of satisfiable equations.

According to Hastad Theorem an NP-complete problem has a PCP verifier that checks if a

proof validates equations of the form (5). It is NP-hard to compute a 1/2+δ1−δ -approximation to

MAX-E3LIN. In other words ( 12 +ε)-approximation to MAX-E3LIN is NP-hard for all ε ∈ (0, 1/2).

It is straightforward to give a 12 -approximation algorithm for MAX-E3LIN.

Computational Complexity, by Fu Yuxi PCP Theorem 106 / 119

Page 108: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Threshold Result for MAX-3SAT

Fact. For all ε ∈ (0, 1/8) computing ( 78 +ε)-approximation to MAX-3SAT is NP-hard.

Convert x + y + z = 0 to four clauses x ∨ y ∨ z , x ∨ y ∨ z , x ∨ y ∨ z , x ∨ y ∨ z andx + y + z = 1 to four clauses x ∨ y ∨ z , x ∨ y ∨ z , x ∨ y ∨ z , x ∨ y ∨ z .

If an assignment to x , y , z satisfies the equation, it satisfies all the four clauses.Otherwise it satisfies three of the four clauses.

With the help of the previous reduction, we see that in the yes case at least a 1− δfraction of the clauses are satisfied, and in the no case at most a 1− ( 1

2 − ε)×14

fraction of the clauses are satisfied.

There is a 78 -approximation algorithm to MAX-3SAT.

Computational Complexity, by Fu Yuxi PCP Theorem 107 / 119

Page 109: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Proof of Hastad’s 3-Bit PCP Theorem

Computational Complexity, by Fu Yuxi PCP Theorem 108 / 119

Page 110: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Long Code

Let W ∈ N.

A function f : {±1}W → {±1} is a coordinate function if f (x1, . . . , xW ) = xw forsome w ∈W . In other words f = χ{w}.

The long code for [W ] encodes each w ∈ [W ] by all the values of χ{w}.

Computational Complexity, by Fu Yuxi PCP Theorem 109 / 119

Page 111: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Local Test for Long Code

Let δ ∈ (0, 1).

1. Choose x, y ∈R {±1}W .

2. Choose a noise vector z ∈R {±1}W using following distribution: For i ∈ [W ],choose zi = +1 with probability 1− ρ and zi = −1 with probability ρ.

3. Accept if f (xy) = f (xyz), reject otherwise.

If f = χ{w}, then f (x)f (y)f (xyz) = xwyw (xwywzw ) = zw . The test accepts iff zw = 1,which happens with probability 1− ρ.

Computational Complexity, by Fu Yuxi PCP Theorem 110 / 119

Page 112: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Long Code

Lemma. If the test accepts with probability 12 + δ, then

∑α f

3α (1− 2ρ)|α| ≥ 2δ.

If the test accepts with probability 12 + δ, then Ex,y,z[f (x)f (y)f (xyz)] = 2δ. By Fourier

expansion,

2δ ≤ Ex,y,z

(∑α

fαχα(x)

)∑β

fβχβ(y)

(∑γ

fγχγ(xyz)

)= Ex,y,z

∑α,β,γ

fα fβ fγχα(x)χβ(y)χγ(x)χγ(y)χγ(z)

=∑α

f 3αEx[χα(z)]

=∑α

f 3αEx

[∏w∈α

zw

]=

∑α

f 3α

∏w∈α

Ex[zw ] =∑α

f 3α (1− 2ρ)|α|.

The smaller α is, the more significant fα is. See the next corollary.

Computational Complexity, by Fu Yuxi PCP Theorem 111 / 119

Page 113: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Corollary. If f passes the long code test with probability 12 + δ, then for k = 1

2ρ log 1ε ,

there is α with |α| ≤ k such that fα ≥ 2δ − ε.

Computational Complexity, by Fu Yuxi PCP Theorem 112 / 119

Page 114: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Historical Remark

Computational Complexity, by Fu Yuxi PCP Theorem 113 / 119

Page 115: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

Interactive proof, Zero knowledge, IP.

It all started with the introduction of interactive proof systems.

1. Shafi Goldwasser, Silvio Micali, Charles Rackoff. The Knowledge Complexity of InteractiveProofs. STOC’85, SIAM, 1989.

2. Laszlo Babai and Shlomo Moran. Arthur-Merlin Games: A Randomized Proof System, and aHierarchy of Complexity Classes. STOC’85, JCSS, 1988.

The authors of the papers shared the first Godel Prize (1993).

Goldwasser and Sipser. Private Coins versus Public Coins in Interactive Proof Systems. STOC’86.

Computational Complexity, by Fu Yuxi PCP Theorem 114 / 119

Page 116: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

“1989 was an extraordinary year.” Laszlo Babai, 1990

1. N. Nisan. Co-SAT has multi-prover interactive proofs, e-mail announcement. Nov. 27,1989.

2. C. Lund, L. Fortnow, H. Karloff, N. Nisan. The polynomial time hierarchy has interactiveproofs, e-mail announcement, Dec. 13, 1989.

3. A. Shamir. IP=PSPACE, e-mail announcement, Dec. 26, 1989.

Computational Complexity, by Fu Yuxi PCP Theorem 115 / 119

Page 117: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

On Jan. 17, 1990 another email was sent out by L. Babai, L. Fortnow, and L. Lund.

I Non-Deterministic Exponential Time has Two Prover Interactive Protocols. FOCS 1990.CC 1991.

The main theorem of the paper, MIP = NEXP, inspired almost all future development of PCPtheory and a lot of future development in derandomization theory. It can be interpreted as

NEXP = PCP(poly,poly).

Computational Complexity, by Fu Yuxi PCP Theorem 116 / 119

Page 118: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

A profitable shift of emphasis was made that, instead of scaling down the time orspace complexity of verifier, scales down the randomness and query complexity.

Babai, Fortnow, Levin, and Szegedy showed NP ⊆ PCP(polylog,polylog).

1. L. Babai, L. Fortnow, L. Levin, and M. Szegedy. Checking Computation in Polylogarithmic Time.STOC, 1991.

Computational Complexity, by Fu Yuxi PCP Theorem 117 / 119

Page 119: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

2001 Godel Prize

1. NP ⊆ PCP(log · log log, log · log log).

2. NP = PCP(log, log).

3. NP = PCP(log, 1).

1. U. Feige, S. Goldwasser, L. Lovasz, S. Safra, and M. Szegedy. Interactive Proofs and theHardness of Approximating Cliques. FOCS’91, JACM, 1996.

2. S. Arora and S. Safra. Probabilistic Checking of Proofs: A New Characterization of NP.FOCS’92, JACM, 1998.

3. S. Arora, C. Lund, R. Motwani, M. Sudan, and M. Szegedy. Proof Verification and the Hardnessof Approximation Problems. FOCS’92, JACM, 1998.

Computational Complexity, by Fu Yuxi PCP Theorem 118 / 119

Page 120: PCP Theorem - basics.sjtu.edu.cnbasics.sjtu.edu.cn/~yuxi/teaching/complexity/slides/10. PCP Theorem.pdfPCP Theoremcannot be proved using Cook-Levin reduction. Ival(f(x)) tends to 1

2019 Godel Prize

Irit Dinur. The PCP Theorem by Gap Amplification. J. ACM, 2007. STOC 2006.

Computational Complexity, by Fu Yuxi PCP Theorem 119 / 119