Public coins emulate a count over private coins #
The emulation of private coins by public coins of Goldwasser and Sipser
(Arora and Barak, Theorem 8.8), for an arbitrary 0/1
payoff. Let g be a private-coin game shape (Cslib.Complexity.IPMove) and
V : List Bool → Bool a payoff on complete transcripts. The count
Cslib.Complexity.IPGame.count g V sums over the verifier's messages and maximises over the
prover's. A public-coin game of shape Emulation.shape B Z g lets Merlin prove lower bounds on this
count to Arthur.
At a verifier move of n bits, Arthur sends the seed of an affine hash to B bits of strings of
n + Z bits (Cslib.BitString.LinearHash.hashZero). Merlin answers with a claim, the number
b ≤ B of true bits in a block of B bits, a message m of n bits and padding z of Z
bits. The claim b says that the continuation after m has count at least 2 ^ b. With the
current claim κ, Merlin's answer must hash to zero and the first Z + κ - (b + K) bits of z
must be false: when the claim κ is honest, about 2 ^ (κ - b) messages have continuations
worth 2 ^ b, each padded in 2 ^ (b + K - κ) ways, so the padded set has about 2 ^ K
elements. At a prover move Merlin sends the prover's message. At the end Arthur accepts when the
last claim is 0 and V accepts the transcript (Cslib.Complexity.Emulation.check).
- Soundness (
Cslib.Complexity.Emulation.value_le): forB ≤ K,μ > 0and an initial claimκ ≤ K, the value is at mostc (B + 1) 2 ^ K / (μ 2 ^ B) + μ ^ c N / 2 ^ κ, wherecis the number of verifier moves andNthe count. A claimbis generous for a messagemwhen2 ^ κ N_m > μ 2 ^ b N; the generous messages number at most2 ^ κ / (μ 2 ^ b), so a random hash finds a padded generous answer with probability at most2 ^ K / (μ 2 ^ B)(the first moment bound), for each of theB + 1claims. Otherwise the claim is not generous and the induction applies. - Completeness (
Cslib.Complexity.Emulation.one_sub_le_value): forB ≤ K,B + K ≤ Z, at mostBverifier bits and an initial claimκ ≤ Bwith2 ^ κ ≤ N, the value is at least1 - c (B + 1) 2 ^ B / 2 ^ K. Some scaleβ ≤ Bcarries a1 / (B + 1)share of the count, the messages whose continuations are worth2 ^ βpadded are at least2 ^ K / (B + 1), and a random hash misses them with probability at most(B + 1) 2 ^ B / 2 ^ K(the second moment bound).
With B polynomial and K = B + O(log B) both errors are O(1 / c), while the initial claim
can be log₂ of the count up to a factor μ ^ c, polynomial for a constant number of rounds.
This is the core of IP[k] ⊆ AM[k + 2] (CslibFrontier.Computability.Complexity.Classes.IP.Games. GoldwasserSipser). The claims are exact numbers of bits, not rounded to powers of two of the
counts, which removes the separate normalisation of the set lower bound protocol.
Main definitions #
Cslib.Complexity.Emulation.shape,Cslib.Complexity.Emulation.shapePoly: the public-coin game shape.Cslib.Complexity.Emulation.check: the public-coin verifier.Cslib.Complexity.Emulation.countFrom: the count after a transcript prefix.
Main results #
Cslib.Complexity.Emulation.value_le: soundness.Cslib.Complexity.Emulation.one_sub_le_value: completeness.Cslib.Complexity.Emulation.computableInPolyTime_check: the verifier is polynomial-time.
References #
The public-coin game #
The public-coin shape emulating a private-coin shape: a verifier move of n bits becomes
Arthur's hash seed of B (n + Z) + B bits followed by Merlin's claim, message and padding of
B + (n + Z) bits, and a prover move of n bits becomes a Merlin move of n bits.
The move pattern of Cslib.Complexity.Emulation.shape.
The polynomial public-coin shape emulating a polynomial private-coin shape.
The public-coin verifier emulating the count of the payoff V on the shape g, with current
claim κ and transcript prefix p, on Arthur's and Merlin's messages w. At a verifier move of
n bits it reads Arthur's seed r, Merlin's claim b (the number of true bits in a block of
B bits), message m and padding z, and checks that m ++ z hashes to zero and that the first
Z + κ - (b + K) bits of z are false. At a prover move it reads the prover's message. At the
end it accepts when the claim is 0 and V accepts the transcript.
Soundness #
Soundness of the emulation. With c verifier moves, a count N after the prefix p and
the claim κ ≤ K, Merlin wins the public-coin game with probability at most
c (B + 1) 2 ^ K / (μ 2 ^ B) + μ ^ c N / 2 ^ κ, for every μ > 0.
Completeness #
Completeness of the emulation. With c verifier moves of at most B bits in total, a
count at least 2 ^ κ after the prefix p and the claim κ ≤ B, Merlin wins the public-coin
game with probability at least 1 - c (B + 1) 2 ^ B / 2 ^ K, when B ≤ K and B + K ≤ Z.
Polynomial time #
The public-coin verifier is polynomial-time on a polynomial shape G evaluated at a
polynomial-time length len, with polynomial-time parameters B, Z, K, claim κ, prefix p
and messages w, when the payoff V is polynomial-time on polynomial-time transcripts.