Kilian's protocol: committing to a PCP proof with a Merkle tree #
Kilian's argument system ([Kil92]; [BG01], Construction 3.4) lets a prover
convince a verifier that x ∈ L while sending only a hash-tree root and a few openings of a PCP
proof. For a PCP verifier V with logarithmic randomness and a keyed hash H, at security
parameter n:
- the verifier sends a uniform
n-bit hash keyk; - the prover sends the statement
xand the Merkle rootrootof its proof table; - the verifier sends
nindependent PCP random stringsρs, each ofV.coins xbits; - for each random string
ρthe prover sends one opening per query ofVon(x, ρ): the bit at that position of the table and its authentication path; - the verifier accepts when every opening is accepted by
merkleVerifyandVaccepts every repetition on the opened bits (kilianVerify).
Positions. PCP addresses are binary numbers that may be exponentially large, so the committed
object is not the PCP proof itself but its compact table: the bits at the addresses of
V.queryTable x, the list of all addresses queried on all random strings, as in
PCPVerifier.tableVerifier. Address a is stored at position (V.queryTable x).idxOf a, its first
occurrence, and the tree has depth Nat.clog 2 (V.queryTable x).length (kilianDepth). The
verifier computes positions itself, so a prover cannot choose them. With logarithmic randomness the
table has polynomially many entries.
The honest prover (kilianTable, kilianCommit, kilianRespond) takes a table accepted by
V.tableVerifier as its witness, normalizes it to the length of V.queryTable x, commits to its
bits as one-bit leaves [b], and opens the queried positions with merklePath. Every repetition
then passes (kilianVerify_kilianRespond), so the honest execution (kilianHonestGame) accepts
with probability one when H k returns k.length bits (eval_kilianHonestGame): perfect
completeness. The tables accepted by
V.tableVerifier are exactly the witnesses of PCP_log_subset_NP, so for a PCP verifier for L
this is the NP relation of L on which the prover is efficient.
Efficiency. The verifier's decision (computableInPolyTime_kilianVerify) and the honest
prover's two messages (computableInPolyTime_kilianCommit, computableInPolyTime_kilianRespond)
have plain polynomial-time certificates, and sampling the verifier's challenges is strict PPT
(isPPTOn_kilianChallenges), for a polynomial-time V with O(log n) random bits and a
polynomial-time H with n-bit digests.
Computational soundness, against cheating provers that choose x after seeing the key, is in
CslibFrontier.Crypto.Computational.Kilian.Soundness, and the arguments for NP in
CslibFrontier.Crypto.Computational.Kilian.NP.
Differences from [BG01], Construction 3.4. The tree is the one of
CslibFrontier.Crypto.Computational.MerkleTree (hashed leaves, encPair pairing, sibling-only
openings), not Barak and Goldreich's tree over raw proof bits (see the module documentation of
CslibFrontier.Crypto.Computational.MerkleTree.Binding). The prover commits to a compact table of
polynomial length, which suffices for NP, rather than to an oracle of superpolynomial length.
Repetition is explicit (n parallel PCP runs). The hash key is uniform and hashing resists uniform
adversaries, as in CollisionResistant.
Main definitions #
Cslib.Crypto.KilianResponse: the prover's answers, oneMerkleOpening Boolper query.Cslib.Crypto.kilianDepth,Cslib.Crypto.kilianPosition: depth of the committed tree and the position of a PCP address.Cslib.Crypto.kilianCheck,Cslib.Crypto.kilianVerify: the verifier's decision on one repetition and on all of them.Cslib.Crypto.kilianChallenges: the verifier's challenge sampler.Cslib.Crypto.kilianLeaves,Cslib.Crypto.kilianTable,Cslib.Crypto.kilianCommit,Cslib.Crypto.kilianOpen,Cslib.Crypto.kilianRespond: the honest prover.Cslib.Crypto.kilianHonestGame: the honest execution.Cslib.Crypto.KilianClaim,Cslib.Crypto.KilianView,Cslib.Crypto.KilianProverInput: the verifier's claim and view and the honest prover's input, with their encodingsencKilianClaim,encKilianViewandencKilianProverInput.
Main results #
Cslib.Crypto.kilianVerify_kilianRespond,Cslib.Crypto.eval_kilianHonestGame: perfect completeness for tables accepted byPCPVerifier.tableVerifier.Cslib.Crypto.computableInPolyTime_kilianVerify,Cslib.Crypto.isPPTOn_kilianChallenges: the verifier is efficient.Cslib.Crypto.computableInPolyTime_kilianCommit,Cslib.Crypto.computableInPolyTime_kilianRespond: the honest prover is efficient.
References #
The verifier #
The prover's last message: for each repetition, one opening per query of the PCP verifier, each the claimed bit of the table and its authentication path.
The depth of the tree committing to the compact table of x.
The position of the PCP address a in the compact table of x: its first occurrence in
V.queryTable x.
The verifier's decision on one repetition with random string ρ: one opening per query of V
on (x, ρ), each accepted (MerkleOpening.verify, one-bit leaves) at the position of its address,
and V accepts the opened bits.
The verifier's decision: one answer list per random string, each accepted by kilianCheck.
The verifier's challenge at security parameter n on statement x: n independent uniform
random strings of V.coins x bits.
The honest prover #
The honest prover's table: a candidate table normalized to the length of V.queryTable x,
missing entries read as false, as PCPVerifier.tableVerifier reads them.
The honest prover's openings for the random string ρ: for each query of V, the bit of the
normalized table at its position and the authentication path.
The honest execution at security parameter n on statement x with witness table table:
the verifier samples a key, the prover commits, the verifier samples challenges, the prover
answers, and the verifier decides.
Completeness #
The normalized table has one entry per address of the address table.
Below the length of the address table, the normalized table agrees with the candidate.
Honest openings pass: for a table accepted by V.tableVerifier, the honest openings for
a random string of the right length pass kilianCheck, when all digests of H k have one
length.
Honest responses are accepted: for a table accepted by V.tableVerifier, the honest
prover's commitment and openings are accepted on every list of random strings of the right length,
when all digests of H k have one length.
Perfect completeness of Kilian's protocol: for a hash whose digests have the length of
the key, on a statement x with a table accepted by V.tableVerifier, the honest execution
accepts with probability one, at every security parameter.
Efficiency #
The encoding of an opening of a bit: the bit, then the authentication path.
The encoding of the prover's last message.
The verifier's view of a run, the input of kilianVerify: the claim, the random strings and
the prover's response.
- stmt : α
The verifier's random strings, one per repetition.
- response : KilianResponse
The prover's openings.
The encoding of a claim: the framed key, the framed statement, then the root.
The tuple of the fields of encKilianView.
The encoding of the verifier's view: the claim as one framed word, the framed random strings, then the response.
The encoding of the honest prover's input: the framed key, the framed statement, then the table.
The verifier's decision is efficient: kilianVerify on the key, the statement, the root,
the random strings and the response takes polynomial time, for a polynomial-time PCP verifier with
O(log n) random bits and a polynomial-time hash with n-bit digests. Malformed responses are
charged for their length.
Bounded-view machine runtime and space for kilianVerify: given any polynomially bounded
upper bound inBound (param view) on the encoded views in a subclass P, the machine computing
kilianVerify runs in monotone polynomial time and space on all KilianView α and within
polynomially bounded functions of param view on every view satisfying P.
The honest commitment is efficient: the root of the honest prover's tree takes polynomial time in the key, the statement and the witness table.
The honest response is efficient: the honest prover's openings take polynomial time in the key, the statement, the witness table and the random strings.
Sampling the challenges is efficient: drawing n random strings of V.coins x bits is
strict PPT in the unary security parameter and the statement, for a polynomial-time PCP verifier
with O(log n) random bits.