UVA CS 6160 Complexity (Theory of Computation)
This is the course website of CS 6160, Theory of Computation, instructed by Wei-Kai Lin. The meetings are Mondays and Wednesdays at 2–3:15pm Fall 2026. Please login to Hoos’ List to see the location. This is the graduate-level course of Theory of Computation, but we focus on Complexity mostly. Hence, we more often use Complexity in the course name for short.
Recent Announcements
Class 24: Circuit Lower Bounds, Håstad’s Switching Lemma
(Nov 23, 2026.)
I chatted about proving circuit lower bounds. An example, in introduction to aglorithms, is that comparison-based sorting requires \(\Omega(n \log n)\) comparison operations. Such a lower bound also holds for any comparison-based circuits, where the circuit is only allowed to use the specific compare-and-swap gate. However, standard boolean circuits compute on wires arbitrarily, and the comparison-based restriction is making the lower bound easier to prove. Indeed, counting sort easily achieves linear circuit size when we just want to sort n bits. It is wild that for any NP problem, the best lower bound we have is no more than \(5n\). See also the recent paper that proved that a symmetric exponential time language requires exponential circuit size.
We continued to prove that the Parity function is not in \(\mathbf{AC}^0\), where Parity is simply the XOR of n bits. The history is interesting: the lower bound was proved by Furst, Saxe, Sipser (1981) and indpendently by Ajtai (1983), and then Håstad (1986) simplified the proof with the Switching Lemma, and then Razborov (1993) simplified the proof of Switching Lemma. It is a long-time effort.
In Arora-Barak, \(k_i = 10 b 2^i\) is chosen to be the parameter of the DNF/CNF after the \(i\)-th Switching Lemma. We have the circuit size defined to be \(n^b\), so \(b\) is a constant. Thus, \(k_0 = 10b\) is a constant; this is WLOG because when we want a greater-than-constant fan-in at the leaf level, we can increase the depth by 2 and move the large fan-in to inner nodes. (I assumed that \(k_0 \le n^{1/100}\), unnecessary.) Also notice that \(k_{i+1}\) increases from \(k_i\) by factor 2 because we want to amplify the probability of Switching Lemma when \(n_i\) decreases. (I chose a constant \(k_i\), maybe to weak in probability.)
Class 23: The PCP Theorem
(Nov 18, 2026.)
Jinye talked about the the relation between Walsh-Hadamard code and Goldreich-Levin Lemma.
We briefly depicted some future topic, that is, circuit lower bounds, natural proofs, and expander graphs.
We showed that given 3SAT is hard to approximation by a constant factor \(\rho \in (7/8, 1)\), the Independent Set (IS) problem is also hard to approximate for any constant factor \(\rho' > 0\). The point is, the hardness of approximation, in terms of the approximation factor, differ from one problem to another. I also wanted to show the “self-improvement” property of independent set.
The first step is to reduce from 3SAT to IS using the standard polynomial-time reduction. I didn’t get it right, but the correct reduction can be found here. Notice that the reduction already preserves the approximation factor: for any \(\alpha \in [0,1]\), the 3SAT instance can be satisfied by \(\alpha\) fraction if and only if the reduction’s graph \(G\) has an indep set of size \(\alpha \cdot n/3\), where \(n\) is the number of vertices of the graph. The second and more important step is to improve the approximation to any \(\rho' > 0\). We improve this by constructing a new graph \(G'\) that is larger than the first step \(G\), where each vertex of \(G'\) is a \(k\)-subset of vertices of \(G\) for a constant \(k \ge 2\), and the edges of \(G'\) come from the non-independent subsets of \(G\). Notice that my lecture and the textbook missed the negation. Such self-improvement can be found in other combinatorial problems as well.
Class 22: The PCP Theorem
(Nov 16, 2026.)
(Wei-Kai was absent for TCC on Nov 11, but Deebak led a good discussion about the refutation of ETH.)
Avery introduced the class \(\mathbf{MIP}\), the languages that can be interactively proved by multiple provers. Then, Avery illustrated the theorem \(\mathbf{MIP} = \mathbf{NEXP}\) and its proof. An important idea in the (proof of) MIP is that the verifier can ask the same question to different prover and ensure the answers are identical or consistent, and that is why MIP is likely larger than IP and PSPACE.
I went over the “baby” PCP theorem, \(\mathbf{NP} \subseteq \mathbf{PCP}(\poly(n), 1)\), with an almost complete proof. The proof of the full PCP theorem is unlikely to be covered due to the time, but we want to get some insight with the baby proof. The baby proof claims that the language \(QE \in \mathbf{PCP}(\poly(n), 1)\) and that \(QE\) is NP-complete, where QE is the decision problem of whether a set of Quadratic Equations has a solution. Let \(n\) be the number of variables \(\vec{v} = (v_1, \dots, v_n)\), and let \(m\) be the number of equations. A QE problem instance is given by a matrix-vector pair \((A,\vec{b})\), where \(A \in GF(2)^{m \times n^2}, \vec{b} \in GF(2)^{n^2}\), and the problem ask if there exists a solution \(\vec{v} \in GF(2)^n\) such that \(A \odot (\vec{u}\otimes \vec{u}) = \vec{b}\). Reducing from SAT to QE is not hard, so proving QE is NP-complete is left as an exercise.
We gave a PCP verifier for QE. The main idea is to query the random subset sum of equations. Particularly, the verifier checks the following. (III) There is a solution \(\vec{v}\) that satisfies \(A \odot \vec{v} = \vec{b}\). This is done by sampling a random subset of rows in \((A, \vec{b})\) and then checking the sums equal. (II) There is a solution \(\vec{u}\) that satisfies \(\vec{v} = \vec{u} \otimes \vec{u}\). This is done by checking the Walsh-Hadamard code of \(\vec{v}\) comes from the code of \(\vec{u}\). (I) The proof correctly encodes \(\vec{u}\) and \(\vec{u} \otimes \vec{u}\). This is done by checking linearity of the code of \(\vec{u}\) as well as that of \(\vec{v}\). Notice that the ordering of the equality checks does not matter, and the verifier rejects if any check fails (the ordering is just for the purpose of understanding).
Class 21: The PCP Theorem
(Nov 9, 2026)
Zhizhen introduced counting problems the the classes \(\mathbf{\#P}\) and \(\mathbf{FP}\). Notice that they are by definition different from decision problems that we have been talking about. Still, they are closely related to other classes, such as NP. Zhizhen also introduced the Permanant of matrices as an important problem in #P. We remark that in the very recent Refutation of ETH, explained by Ryan O’Donnell , computing permanent is an essential building block.
We introduced Probabilistic Checkable Proofs (PCP), The PCP Theorem, and the equivalent theorem of Approximate 3SAT is NP-hard. While we didn’t prove the equivalence, we illustrated PCP by proving that Graph Non-Isomorphism (GNI) is in the class \(\mathbf{PCP}(\poly(n), 1)\), i.e., there is a PCP verifier using \(\poly(n)\) random bits for GNI statements. It is educative to see that some bits in the PCP proof might never be used. (Wish, Deebak, and Nathan fixed the proof and saved me :) We also stated that Approximate Independent Set is also NP-hard, for any constant approximation ratio \(< 1\).
Class 20: Program Checking
(Nov 4, 2026)
Wish delievered The PCP Theorem, from the proof system view. It is similar to interactive proofs, but the proof is only one string that is potentially very long, the verifier is restricted to be non-adaptive but is allowed to read any bit of the proof in unit time. The view can be prove to be equivalent to the hardness of Approximate 3SAT.
I suggested watching Ryan O’Donnel’s video recording on OpenAI’s refutation of the Exponential Time Hypothesis (ETH). To motivate, the resulting algorithm and the implication of ETH is explained. Notice that prior to the refutation, some people already expressed that ETH was a way to write publications.
We introduced program checking. It considers a black-box program, and we want to check whether the program outputs correctly for a specific function we want. By black-box, we only have the input/output of the program, not even its description (in Turing Machine or any computation model). If the program computes a decision problem/function, such as Graph Isomorphism, we may also want to extract the “witness” of the problem instance, which is the permutation in the Graph Isomorphism case. While I failed to show the extractor for Graph Isomorphism, Jinye suggested an extractor that sounded right. However, after the class with some thoughts, Jinye found and then fixed a bug in her suggestion.
We stress that program checking is perhaps important when we consider AI models–they are black-boxes as we do not know how they work.
Class 19: Class AM, Set Lower Bound Protocol
(Nov 2, 2026)
Nathan talked about zero-knowledge proofs and a ZKP for the Graph Isomorphism problem. That is covered by Section 9.4 of Arora-Barak. Notice that in the presented definition, the languages that can be proved by ZKP are by definition in NP.
We wrapped up IP = PSPACE by supplying the missing pieces of arithmetization, which are mostly given on this website under Class 18. A remark is that TQBF in IP is and was very surprising. Fortnow and Sipser (1988) showed that there exists an oracle \(A\) such that \(\mathbf{coNP}^A \subsetneq \mathbf{IP}^A\). That is, to prove TQBF in IP, we must use non-relativizing techniques. Indeed, when we reduce from \(L\in \mathbf{PSPACE}\) to a QBF formula to the IP verifier, we uses the “program” of the Turing Machine and then the “code” of TQBF. The non-black-box reductions circumvent the Fortnow-Sipser impossibility.
We repeated the definition of the class AM, which was introduced by Zhizhen earlier. AM a subset of IP by definition, but we require that the verifier only sends random coins to the prover. We aim to argue that for any \(k(n) \in \N\), if a language \(L \in \mathbf{IP}[k]\), then \(L \in \mathbf{AM}[k+2]\), by Goldwasser and Sipser (1987). A special case is that we can prove Graph Non-Isomorphism public coin.
We introduced Set Lower Bound as a promise problem, where the statement consists of a Turing Machine \(M\) and string lengths \(m, \ell\). An yes instance is that \(M\) accepts a large subset of \(m\)-bit strings, and a no instance is that \(M\) accepts a small subset, where large or small is parameterized by \(\ell\). The cool idea is to pick a pairwise-independent hash family with output length just properly greater than \(\ell+2\). The verifier samples and sends to prover a hash function \(h\) and a random out \(y\). The prover shall find a string \(z\) such that \(M(z)\) accepts and \(h(z) = y\). The trick holds by the probability of \(h\) and \(y\), and it is used in many ZKP protocols.
Class 18: TQBF in IP
(Oct 28, 2026)
Wish introduced PCP Theorem, where PCP stands for Probabilistic Checkable Proofs and is conceptually related to IP. The PCP theorem states that we have an efficient reduction from any NP problem to the Approximate SAT problem (a promise problem). As a corollary, Approximate SAT (or MaxSAT) is as hard as solving the standard SAT (as a decision problem). Notice that the corollary is perhaps unsurprising; However, the efficient reduction is surprising.
We continued and finished the protocol and the proof of TQBF is in IP, which proved that IP = PSPACE. An issue raised and resolved in the textbook is the polynomial degree of the arithmetized QBF. We apply linearization operators to “replace” high-degree variables to degree 1. The resulting linearized polynomial is short in the number of coefficients, so that the prover-to-verifier messages, i.e., the polynomials, are short. Another issue raised by Nathan and Zhizhen is that the values and the polynomial coefficients of the linearization remains double exponential in magnitude. That is too large: The prover cannot send a polynomial with huge coefficients even the degree is low!
I left the issue with saying that “choosing a random prime of \(\poly(n)\) bits works with high probability.” Searching with Gemini, I found it in Shamir’s 1992 paper, quoted below.
THEOREM 4. Let \(B\) be a closed QBF of size \(n\). Then there exists a prime \(p\) of length polynomial in \(n\) such that \(A \neq O \mod p\) if \(B\) is true.
…
This prime can be chosen by the prover P and sent to the verifier V (along with a written proof of primality) as the first step of the interactive proof, since even an infinitely powerful cheating prover cannot find such a prime if \(A = 0\).
The point is that there is a good prime \(p\) that preserves completeness (with probability 1) when the statement is true: The prover finds \(p\) that does not divide the value \(K \neq 0\) in the statement and then sends both \(p\) and \(K' = K \mod p\) to the verifier. The verifier just need to ensure that \(p\) is indeed prime, which can be efficiently proved (see below if needed), and that \(K' \neq 0\) and thus \(K \neq 0\), which does not need the exponentially long string \(K\). Shamir claims perfect completeness. Notice that whether \(K\) is a multiple of \(p\) matters only when we arithmetize the QBF in the very beginning of the protocol. All subsequent statements (i.e., the recursive ones) are all already \(\mod p\) statements and exact equality, not over the integers, not just \(> 0\). Hence, for a true TQBF statement, in an intermediate round of the protocol, the verifier may ask the prover to prove that \(g'(a_1,a_2,a_3) = 0 \mod p\) for some \(g'\) and some random \(a_1,a_2,a_3 \in GF(p)\), which still achieves perfect completeness.
To prove \(p\) is indeed prime, there are many ways. We can use the result that PRIMES is a problem in NP, which is nontrivial and requires some algebra. Alternatively, it is straightforward to see that PRIMES is in coNP because COMPOSITES is in NP. Then, we can reduce PRIMES to \(\mathit{\#SAT_D}\) because TAUTOLOGY and thus \(\mathit{\#SAT_D}\) is coNP-hard. That gives an interactive proof of PRIMES.
Class 17: #SATD in IP
(Oct 26, 2026)
Zhizhen introduced the class AM (for Arthur-Merlin), which is a subset of IP but restricts the verifier-to-prover messages to public random coins. Zhizhen also showed an AM protocol for the GNI problem, which needs a subprotocol to prove set sizes, which we will cover later.
We briefly argued that \(\mathbf{BPL} \subseteq \mathbf{P}\). I would like to stress that, a PTM \(M\) that solves a problem in BPL may not halt in polynomial time, and we must construct another (deterministic) TM \(M'\) to solve the problem. \(M'\) computes on the configuration graph of \(M\) in a way similar to some Markov decision process.
We then finished the sumcheck proof for \(\mathit{\#SAT_D}\). Wish asked a good question: The verifier may ask the prover to prove \(\sum_{b_2, \dots, b_n \in \bit} g(a, b_2, \dots, b_n) = s(a)\) for many distinct random \(a\). Would that catch all cheating provers? The result is yes, but the recursion grow exponentially in \(n\), too much. Shiyu asked another good question: Can we have the verifier send all the random challenges \(a \gets GF(p)\) in one round instead of recursing interactively (so that the number of rounds is reduced to two)? The answer is no, when \(a\) is known in advance, the prover can easily find \(s\) such that satisfies the sumcheck and at the same time makes the recursive statement of \(s(a)\) true.
Class 16: Arithmetization and #SATD
(Oct 21, 2026)
We finished Quiz 1 today. It is good to see our progress :)
We continued with the class IP. Recall that we proved that IP is in PSPACE last time. Given that, although IP is defined without any computable prover, for any language in IP, we know that the language can be decided by a prover instantiated by a TM in PSPACE. That probably makes IP easier to think about.
We next aim to prove that PSPACE is in IP, a surprising result by Shamir. We began with the warmup problem \(\mathit{\#SAT_D}\), which states that a 3-CNF \(\phi\) has exactly \(K\) satisfying assignments. Notice that \(\mathit{\#SAT_D}\) is a decision problem and a generalization of the TAUTOLOGY problem. We showed the arithmetization of boolean formulas and then a sumcheck protocol for polynomials. It is cool as the arithmetization is a one-to-one mapping between boolean formulas and polynomials, but then we evaluate polynomials on non-binary values.
We will finish the theorem next week.
Class 15: Interactive Proofs, Graph Non-Isomorphism
(Oct 19, 2026)
We commented on the BPP-completeness and BPTIME hierarchy and wrapped up the chapter.
The next new chapter is on the languages that can be proved by Interactive Proofs. Recall that by Gödel’s incompleteness, we can only prove a restricted set of statement, i.e., classes of languages. Still, the class can be a large set.
We defined the class of deterministic interactive proofs, \(\mathbf{dIP}\), that are efficiently verifiable (deterministically). Unsurprisingly, \(\mathbf{dIP} = \mathbf{NP}\). That says interaction does not help proving statements. That is different from our human experiences in learning math proofs! Let’s still be interactive—as the following \(\mathbf{IP}\) class suggests, interaction is powerful.
Relaxing the verifier to be a probabilistic Turing Machine, we defined the class \(\mathbf{IP}\). Also, notice that throughout the chapter of interactive proofs, we consider the prover to be any function, which can even be incomputable, e.g., solve a halting problem. We illustrated the example of Graph Non-Isomorphism problem (GNI), and we proved that GNI is in IP. Because GNI is unlikely in NP, IP is probably a strict superset of NP.
We proved that \(\mathbf{IP} \subseteq \mathbf{PSPACE}\) by showing \(\mathbf{IP} \subseteq \mathbf{NPSPACE}\) and then applying Savitch’s Theorem. Another proof by Gemini is copied here, which gives a deterministic PSPACE algorithm that is longer in description. This is the first step toward proving \(\mathbf{IP} = \mathbf{PSPACE}\). We will prove the second direction later.
Class 14: Sipser–Gács–Lautemann Theorem, RL, BPL
(Oct 14, 2026)
Andrew introduced promise problems and their corresponding complexity classes.
We proved Sipser–Gács–Lautemann Theorem, using a probabilistic method. In general, probabilistic methods proves the existence of a combinatorial object that satisfies some properties. It is extremely useful, and as in this proof, the probability boils down to counting, but the probability is much more comprehensible than counting. The existential property gives the existential quantifier needed in the class \(\mathbf{\Sigma_2^p}\).
Jinye asked that if we can find the strings \(u_1,\dots,u_k\) in \(\exists u_1,\dots,u_k \forall r, \bigvee_i (M(x; u_i \oplus r) = 1)\). Notice that such strings may depend on \(x\). If we could find them in polynomial time, then we could prove \(\mathbf{BPP} \subseteq \mathbf{coNP}\), which is an open question. Deebak asked if we can find low Hamming weight \(u_1,\dots,u_k\). I think it is possible but need calculation, and it is an interesting question. If we could reduce the number of randomness to a small number, e.g., logarithmic, then derandomization could be easier.
We introduced randomized logarithmic-space problems and their classes RL and BPL. It is interesting to see that undirected connectivity \(\mathit{UPATH} \in \mathbf{RL}\).
Class 13: BPP vs Other Classes
(Oct 12, 2026)
Deebak talked about UniqueSAT.
We talked the conjecture that BPP is not more powerful than P. That is, given randomness, we probably still do not solve more problems in polynomial time. Notice that some problems, such as Polynomial Identity Test, can be in P, but we just haven’t yet found the efficient and deterministic algorithm.
Adleman’s Theorem states that \(\mathbf{BPP} \subseteq \mathbf{P/poly}\). Its proof is a simple amplification of probability and then a counting argument. An unlikely hypothesis could be that \(\mathit{SAT}\in\mathbf{BPP}\). If the hypothsis is true, by Adleman’s Theorem and then by Karp-Lipton Theorem, the polynomial hierarchy collapses to \(\mathbf{\Sigma_2}\). If we do not believe in the collapse, then we cannot solve SAT in BPP. Similarly, Sipser–Gács–Lautemann Theorem states that \(\mathbf{BPP} \subseteq \mathbf{\Sigma_2 \cap \Pi_2}\).
Class 12: Probabilistic Turing Machines, BPP, RP, ZPP
(Oct 7, 2026)
We introduced Probabilistic Turing Machines (PTM), which are TMs that use an unbiased random bit at each step. Then, we showed the Polynomial Identity Test (PIT) problem, which is an example that can be solved efficiently with a randomized algorithm, or PTM. We do not (yet) know a deterministic algorithm that solves PIT in polynomial time. Thus, it seems that PIT and other similar problems are showing that randomness is a powerful resource and speeds up algorithms. However, we stress that there is no proof. Also, many people in the area believe that randomness does not give extra power to algorithms. That is, we might be able to prove that for an entire class \(S\) of problems that are efficiently solveable using PTMs, we can solve all problems in \(S\) efficiently using deterministic TMs. This is called derandomization and will be discussed later in this course.
As raised by many students in this class, we need to define when or what’s called a PTM solves a problem. The first and perhaps more intuitive definition is \(\mathsf{BPTIME}\) and \(\mathsf{BPP}\). It requires that the PTM outpus the same as the language w.p. \(\ge 2/3\), for all positive and negative instances. The probability is over the choices of the random coins. The second is one-sided, called \(\mathsf{RTIME}\) and \(\mathsf{RP}\), which are similar to \(\mathsf{BPP}\) but additionally require that all negative instances are correct w.p. 1. All above requires the PTM to halt in a specific time \(T(n)\) in (all) worst cases. The third, called \(\mathsf{ZTIME}\) and \(\mathsf{ZPP}\), only requires the PTM to halt in time \(T(n)\) in expectation, but the answer must be correct w.p. 1 when halting for all instances. Notice that in this class, my slides and writing sometimes wrongly said ZP, which should be ZPP.
Older Updates and Notes
List of Updates
- UVA CS 6160 Complexity (Theory of Computation)
- Recent Announcements
- Class 24: Circuit Lower Bounds, Håstad’s Switching Lemma
- Class 23: The PCP Theorem
- Class 22: The PCP Theorem
- Class 21: The PCP Theorem
- Class 20: Program Checking
- Class 19: Class AM, Set Lower Bound Protocol
- Class 18: TQBF in IP
- Class 17: #SATD in IP
- Class 16: Arithmetization and #SATD
- Class 15: Interactive Proofs, Graph Non-Isomorphism
- Class 14: Sipser–Gács–Lautemann Theorem, RL, BPL
- Class 13: BPP vs Other Classes
- Class 12: Probabilistic Turing Machines, BPP, RP, ZPP
- Older Updates and Notes
- List of Updates