TCS: Interactive Proofs and Zero-Knowledge
Interactive Proofs and Zero-Knowledge
Interactive Proofs
Interactive Proof Verification
Interactive proof system allows prover and verifier to exchange messages before stopping. We restrict to be PPT while the probabilitic is necessary otherwise this system is as is stronger than .
Problem is in if there is a pair of interactive algorithms , with running in probabilistic polynomial time in the length of input , such that
- (Completeness). If , then .
- (Soundness). If , then for any possibly dishonest , we have .
satisfying above is called a proof system for . We say if it has a proof system using times of message exchanges (number of messages, not rounds!).
We have that:
Concretely, we consider two problem (图同构问题) and . Easily, since we can choose the isomorphic permutation as witness. Besides, we have .
The GNI protocol is:
- samples a random and a random permutation , send to
- returns an bit to and accepts iff
As is all-know, it must have the ability to distinguish if . But it can just guess arbitarily if they are isomorphic.
Merlin-Arthur (Public-Coin) Protocols
A Merlin-Arthur protocol is an interactive proof system where the verifier (Arthur) messages are public random coin flips
A really simple !
Let to be the Merlin-Arthur protocol with messages. Consider and
Though it seems week, but we have:
Goldwasser-Sipser theorem: ,
GNI as a Set-Size Problem
Assume and have the same vertex set ; different vertex counts can be checked directly. Define a set of labeled graphs and automorphisms
Here is the set of vertex permutations preserving . An isomorphism class contains labeled graphs, and each contributes pairs to . Thus each isomorphism class contributes exactly elements
Let . It suffices to distinguish from . Encode each pair injectively as an -bit string, using a fixed polynomial-length encoding with padding if necessary
Membership in has a polynomial-size certificate. For , Merlin supplies a bit and an isomorphism from to . Arthur checks that and are permutations, , and
Goldwasser-Sipser Set Lower Bound Protocol
More generally, suppose membership in has an efficient verifier, and the promised cases are and
Choose such that
Let be an efficiently sampleable pairwise independent family from to . For example, over works when the binary matrix and vector are chosen uniformly
- Arthur samples and independently and uniformly, and sends their descriptions to Merlin
- Merlin sends an satisfying , together with a certificate of membership in . If no such exists, he cannot provide a valid response
- Arthur accepts exactly when the membership certificate is valid and
Arthur’s message consists entirely of public randomness. Merlin’s task is to show that the randomly selected hash bucket intersects
Completeness and Soundness
Fix any and let be the event . Pairwise independence gives
If , inclusion-exclusion through pairs gives the lower bound
The honest prover finds a valid response whenever the bucket is nonempty, so this also bounds his acceptance probability from below after averaging over
If , the union bound instead gives
No dishonest prover can make Arthur accept an empty bucket, because every response must pass the membership check. The one-shot completeness and soundness probabilities are therefore separated by at least
Amplification without More Messages
Run independent copies in parallel: Arthur sends all challenges in one message, Merlin returns all responses in one message, and Arthur accepts if the fraction of valid responses is at least
Let indicate that the -th challenged bucket intersects . These indicators are independent, since they depend only on the independently sampled challenges. The honest prover achieves every available success, while any prover’s number of accepted responses is at most
The threshold is at least away from either promised expectation bound. Hoeffding’s inequality gives
Since , each error is at most . Taking makes both errors at most , and taking reduces them to
For the graph set above, encodings, hash descriptions and membership certificates all have polynomial length. This gives a two-message public-coin protocol for with bounded completeness error, establishing
More facts
- for all constant
- Allowing bounded completeness error leaves each of the classes , and unchanged
Coin Flipping and Commitment
We want a protocol where Alice and Bob talk to each other and then decide some important thing on the outcome of the coin flip and it makes sure that the result is not biased even if one of them is cheating (malicious). This means:
So we need something to hide which filped by Alice to Bob to avoid bias.
Bit Commitment
The commitment scheme is a protocol consisting of the commit phase and reveal phase.
A PPT protocol is a (computationally hiding and statistically binding) commitment scheme if:
- Hiding: , .
- Binding: The probability that Alice can open to with is negligible.
In this means that one cannot distinguish both is polynomial time.
Intuitively, this definition means Bob(recevier) can hardly verify or and Alice(sender) can almost always verify them.
Coin Flipping from Bit Commitment
The safe protocol is as follows:
- Alice send to Bob with a random
- Bob sends to Alice
- Alice opens
- Set
Bit Commitment From PRG (Naor’s Construction)
Assume is a PRG with
In the commit phase:
- The receiver sends ;
- The sender samples , and sends ;
In the reveal phase:
The sender sends and .
Zero-Knowledge Proofs
Definition at first is as follows, in which contains the transcript of the interaction(all messages and their probabilities) and local information.
An interactive protocol is perfect (statistical or computational) ZK for if, PPT , there exists a PPT simulator such that , the following two distributions are the same:
We have . The protocol is as follows:
- samples a random permutation and sends to
- samples a random and sends it to
- responds with a proof that with the permutation
simulator and rewind
To prove this protocol is what we want, we need to prove its completeness, soundness and ZK. The first two are easy to argue, the ZK need a simulator and we generates it as follows:
- Choose uniformly at random.
- Sample a random permutation and compute .
- Randomly sample and simulate with random tape content .
- If sends , outputs as the message and the random tape as the internal randomness of .
- If sends , rewind and start from the beginning.
ZK Proofs for NP
We have:
(Goldreich-Micali-Wigderson). If statistically binding commitments exist, then there exists a zero-knowledge proof system for
The protocol is:
- samples random permutation .
- sends
- samples a random edge and sends it to
- opens the commitment and
- checks if and
In this, is a coloring scheme