The Weizmann Institute of Science, Rehovot, Israel
Abstract. In this paper, it is proven that when both randomization and interaction are allowed, the proofs that can be verified in polynomial time are exactly those proofs that can be generated with polynomial space.
Categories and Subject Descriptors: F.1.1 [Computation by Abstract Devices]: Models of Computation—bounded-action devices (e.g., Turing machines, random access machines); F.1.2 [Computation by Abstract Devices]: Modes of Computation—interactive computation, probabilistic computation, relations among modes; F.1.3 [Computation by Abstract Devices]: Complexity Classes—complexity hierarchies, relations among complexity classes
General Terms: Algorithms, Theorem
Additional Key Words and Phrases: Interactive proofs, IP, PSPACE
1 Introduction
The class IP of languages that have efficient interactive proofs of membership was introduced by Goldwasser et al. [8], and in a slightly different form by Babai [1] (the equivalence between these models was established by Goldwasser and Sipser [7]). A language belongs to IP if a probabilistic polynomial time verifier can be convinced by some prover to accept any with overwhelming probability, but cannot be convinced by any prover to accept any with a nonnegligible probability. Goldreich et al. [6] showed that IP contains some languages believed not to be in NP, but its exact characterization remained a major open problem for several years. In a breakthrough paper, Lund et al. [10] made ingenious use of earlier results by Valiant [12], Toda [11] Beaver and Feigenbaum [2] and Lipton [9] to prove that IP contains the polynomial hierarchy PH. In this paper, we use surprisingly simple techniques to extend the previous results and prove that IP contains PSPACE. Since every IP language is trivially accepted by the PSPACE machine that traverses the tree of all the possible interactions, this result completely characterizes IP.
The interactive proofs introduced in this paper use only public coins, are accepted with probability 1 when the prover is honest, and require only logarithmic workspace when the verifier is given a 2-way access to his random
Author’s address: Applied Mathematics Department, The Weizmann Institute of Science, Rehovot, Israel. Permission to copy without fee all or part of this material is granted provided that the copies are not made or distributed for direct commercial advantage, the ACM copyright notice and the title of the publication and its date appear, and notice is given that copying is by permission of the Association for Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific permission. © 1992 ACM 0004-5411/92/1000–0869 \$01.50 tape. They can be turned into zero knowledge proofs under the sole assumption that one-way functions exist by using known techniques.
2 *Quantified Boolean Formulas*
The class of quantified Boolean formulas (QBF) is defined as the closure of the set of Boolean variables and their negations under the operations (and), (or), (universal quantification), and (existential quantification). These operations can be mixed in any order, and in particular we do not require that all the quantifiers appear in a leftmost prefix. For the sake of convenience, we add the boolean equality operation, denote vectors of boolean variables by , and extend the operations from single variables to vectors of variables in the obvious way.
A QBF in which all the variables are quantified is called closed, and can be evaluated to either (true) or (false). An open QBF with free variables can be interpreted as a boolean function from to .
The interactive proofs presented in this paper can only handle QBFs of a special type:
Definition. A closed QBF is called simple if in the given syntactic representation every occurrence of each variable is separated from its point of quantification by at most one universal quantifier (and arbitrarily many other symbols).
Example. is simple, since: (1) is used once, and only separates its point of quantification from its point of use, (2) is used twice; its first use is not separated from its point of quantification by any universal quantifiers, whereas its second use is separated only by , (3) is used once, and separated only by , (4) is used once, and not separated by any universal quantifiers.
Example. is not simple, since the second occurrence of (which is negated) is separated from its point of quantification by both and .
The notion of simple QBFs seems to be quite restrictive. However, we can prove:
Theorem 1. Every QBF of size n can be transformed into an equivalent simple QBF whose size is polynomial in n.
Proof. To turn a given QBF into a simple QBF, we completely rename all the Boolean variables after each universal quantifier, by introducing new existentially quantified Boolean variables to denote the th name of the th variable, and equating each with its previous name . Consider, for example, the QBF
in which is quantifier free. The transformed QBF is:
where is the last name given to the initial boolean variable . This QBF is simple by definition, and contains a quadratic number of variables (compared to the original QBF). □
3 *The Arithmetization of QBF*
The problem of deciding whether a given closed QBF is true or false can be expressed in an arithmetic form by using the following syntactic transformations:
(1) Replace each Boolean variable by a new variable , which can range over the (positive and negative) integers . (2) Replace each occurrence of by . (3) Replace by integer multiplication , by integer addition , the universal quantification by the integer product , and the existential quantifier by the integer sum .
Example. Consider the true QBF:
Its arithmetization yields:
which can be evaluated to the integer 2.
Theorem 2. A closed QBF B is true iff the value of its arithmetic form A is nonzero.
Proof. By straightforward induction on the structure of B. □
Remarks. (1) A problem may arise if we try to express a negated directly as , since the value c of the arithmetic form A of B is difficult to compute. We avoid this difficulty by allowing negated variables but no negated expressions in our definition of QBFs. This is not a real limitation, since we can always push the negations in B all the way to the variables without increasing its structural complexity. (2) We cannot replace the boolean = by arithmetic = , since we want to interpret different non-zero integers as the same Boolean value T. We thus have to replace by and arithmetize the expression as .
When B is true, the value of A can be quite large. However, we can upper bound this value as follows:
Theorem 3. Let B be a closed QBF of size n. Then the value of its arithmetic form A cannot exceed .
Proof. For any (potentially open) subexpression of B, define as the maximal value of the arithmetic form of under all the possible 0/1 substitutions to the free variables.
This value satisfies:
(1) If is or , then . (2) If is , then . (3) If is , then . (4) If is , then . (5) If is , then . (6) When is closed, coincides with the value of its arithmetic form.
It is easy to verify that satisfies all the recursive inequalities. This bound cannot be substantially improved, since for
, and each universal quantifier squares the previous value.
Since such large numbers cannot be handled by the polynomial time verifiers in our interactive protocols, we reduce them modulo some smaller prime .
Theorem 4. Let B be a closed QBF of size n. Then there exists a prime p of length polynomial in n such that iff B is true.
Proof. Assume first that is a non-zero integer. If it is zero modulo all the polynomial size primes, then by the Chinese remainder theorem it is zero modulo their product as well. Since by the prime number theorem this product is for any desired constant , this contradicts the assumption that is non-zero and at most . On the other hand, if is false, then modulo any prime.
4 *Interactive Proofs for PSPACE Languages*
Since deciding the truth of (simple) QBFs is known to be PSPACE complete (see Garey and Johnson [5]), it suffices to demonstrate the existence of interactive proofs for this problem. Given the arithmetic form of a simple QBF , we want to prove that for some polynomially long prime . This prime can be chosen by the prover and sent to the verifier (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 . Alternatively, we can ask to choose a random prime , and use the fact that for most , iff is true. This makes it possible to prove both membership and non-membership by the same protocol, but has imperfect completeness (even an honest prover may be unable to prove a correct statement if the verifier chooses a prime divisor of ).
Given a closed arithmetic expression , we define its functional form by eliminating the leftmost or symbol, and considering as a polynomial function of one free variable . The randomized form of is in which is set to a random number modulo supplied by the verifier. This randomized form can again be evaluated to a constant, but its number of and symbols is reduced by 1. Note that the simplicity of is preserved by these transformations.
Example. Consider the true QBF:
and assume that is large enough so that the following calculations are not affected by modular reductions. The arithmetic form of is
whose value is 2. The functional form of is:
By evaluating all the summations and products, the infinitely powerful prover can express as the polynomial
The randomized form of with can be expressed as
whose value 10 can be deduced from .
The polynomial that represents can have an exponentially high degree. Consider, for example, the QBF
whose arithmetization is
The polynomial of its functional form is the product of terms of the form for , which is a dense polynomial of degree . Such polynomials cannot be handled by the polynomial time verifier during the interactive proof. However, for simple QBFs we can prove:
THEOREM 5. If B is simple, then the degree of the polynomial that describes the functional form of A grows at most linearly with the size of B.
PROOF. Let be the leftmost quantified variable in . The degree of created by any quantifier-free subexpression of is bounded by the size of the subexpression. Summations over arbitrarily many other variables can change the coefficients but not the degree of the polynomial, and each product can at most double the degree. The result follows from the fact that in simple such a doubling can occur at most once.
Remark. By adding sufficiently many dummy variables to the quantifier-free subexpressions of , this degree can be reduced to 3, and thus can be represented by just four numbers in . Consider for example where occurs times in . This expression can be replaced by
where is obtained from by using a different variable in each occurrence of in . If is simple and the multiple equality is arithmetized as , the degree of each functional form is at most 3.
The interactive protocol for proving that is very simple. The prover sends the claimed value of to the verifier , and justifies this claim by considering successively smaller subexpressions of . At any intermediate stage of the protocol, the current expression is split into or where is a polynomial with fully instantiated variables (whose value can be computed by himself), and starts with the leftmost or symbol of . and then repeatedly execute the following simplification steps:
(1) If is empty, stops and accepts the claim iff . (2) If is nonempty, replaces by , and replaces by or (depending on the operator that connects and ). If tries to divide by , he stops and accepts the claim iff . (3) Otherwise, sends the polynomial descriptions of to . checks that or (depending on the first symbol of ), sends a random to , replaces by , and replaces by .
Example. Consider once more the expression of the previous example, whose claimed value is . When sends its polynomial to checks that , sends to , replaces by , and replaces by . The new starts with a nonempty , whose value can be computed by . and are now adjusted to
The functional form of this is
whose polynomial representation is . When gets this polynomial from , he checks that , and picks as his random choice. and are again adjusted to
now sends as the polynomial representation of , and checks that . Finally, chooses , and verifies by himself that the value of
is the same as .
THEOREM 6
(1) When B is true and P is honest, V always accepts the proof. (2) When B is false, V accepts the proof with negligible probability.
PROOF
(1) An honest P can always justify his claimed values and polynomials. (2) The proof of this part is similar to the one used by Lund et al. [10] in their permanent proving protocol. A cheating prover who supplied an incorrect value of a must provide an incorrect polynomial q(z_t) to support his claim, since a is checked against q(0) + q(1) (mod p) or q(0) · q(1) (mod p). By the interpolation theorem, such an incorrect polynomial of degree t can agree with the correct polynomial on at most t of the p points in . When the value of t is a polynomial and the value of p is exponential in the size of B, there is only a negligible probability that the incorrect q yields a correct value when evaluated at a random point r chosen by V. As a result, a cheating P is forced to provide incorrect values for successively smaller subexpressions, until he is exposed with overwhelming probability when V evaluates the final subexpression by himself. □
Remark. A single application of this protocol suffices to make the probability of cheating exponentially small, and there is no need to iterate it as in other interactive proofs. However, the protocol seems to be inherently sequential, and it is a major open problem whether it can be executed with a small (e.g., logarithmic) number of rounds. Note that the existence of a constant round protocol for IP would collapse the polynomial hierarchy to its second level, as shown by Boppana et al. [3].
5 Space-Bounded Verifiers
The interactive proofs introduced in Section 4 require polynomial time and polynomial space verifiers. In this section, we prove that the space bound can be greatly improved.
Definition. A verifier is called weak if (1) its running time is polynomial, (2) its workspace is logarithmic, (3) it has a two-way read-only access to a random tape, (4) its messages consist solely of the random bits it reads.
THEOREM 7. Any PSPACE language can be accepted by a weak verifier.
Remarks. Since the accessible portion of the random tape is polynomial, we cannot "cheat" by using the head position or the location of desirable substrings as super-logarithmic auxiliary storage. Note that without the two-way access, Fortnow and Sipser [4], proved that only languages in P can be accepted by such verifiers, and without condition 4, Condon and Rompel [private communication] have already shown that logspace verifiers can accept all of IP.
PROOF (SKETCH). To use such weak verifiers in our interactive proofs, we consider the particular PSPACE complete class of QBFs obtained by the standard reduction from deterministic polynomial space Turing machine computations. We encode each configuration of such a computation (which consists of the contents of the tape, the position of the head, and the internal state) as a polynomially long vector of Boolean variables. If and are two configurations, then we can recursively express the existence of a legal transition of length between them by:
The final is the quantifier free 3CNF formula that characterizes a single move of the given Turing machine. In this expression represents the middle configuration of the computation, the single Boolean variable chooses which half of the computation we consider, and are new configuration names, and the rest of the expression states that both halves are legal transitions of length . When is the initial configuration and is the unique accepting configuration (with tape, initial head position, and accepting state), we can express the acceptance condition by the polynomially long QBF obtained by unrolling this recursive definition.
Such QBFs are simple by definition. Their innermost 3CNF formulas can be arithmetized with de Morgan’s laws (replacing each clause such as by the logically equivalent ) to yield only 0/1 values. Such values are preserved by the products that result from universal quantifiers. Since the Turing machine computation is deterministic, the existentially quantified configurations and are uniquely determined by the endpoint configurations and the selector . When such a is arithmetized, at most one of the exponentially many summands can be non-zero. We can thus prove by induction that the arithmetized value of such QBFs is either 0 or 1 (rather than ), and allow the prover to use primes of logarithmic size.
The constant degree polynomials with logarithmic coefficients can be easily handled by weak verifiers. However, to evaluate the quantifier-free subexpressions by themselves, such verifiers need access to the random values assigned to the variables, which require too much storage space. We overcome this difficulty by giving the verifiers a two-way read-only access to their random tapes, where these values are stored as consecutive blocks of bits. □
ACKNOWLEDGMENTS. I am greatly indebted to Donald Beaver, Joan Feigenbaum, Dick Lipton, Noam Nisan, Carsten Lund, Lance Fortnow, Howard Karloff, and Laci Babai for making this result possible, and would like to thank Uri Feige and Oded Goldreich for simplifying some of my earlier proofs.