Computational soundness of Kilian's protocol #
A cheating prover for Kilian's protocol (KilianProver) is a two-stage program, as in
CommitmentReceiver: on the security parameter n and the hash key k it outputs a statement
x, a root and a saved state; on the state and the verifier's random strings it outputs the
openings. It chooses x after seeing the key. The soundness experiment (kilianSoundnessGame)
accepts when x ∉ L and the verifier accepts; membership in L is decided classically, and no
reduction ever decides it. Kilian's protocol is computationally sound (KilianSound) when every
uniform strict PPT cheating prover wins with negligible probability.
The reduction. kilianBindingAdversary P runs the first stage of P once and the second stage
twice, on independent challenges, and outputs the first pair of openings, one from each run, of a
common position to different bits (kilianBindingOutput). When both runs are accepted, these are
two accepted openings of one position of one root to different one-bit leaves
(merkleBreaksBinding_kilianBindingOutput): a break of MerklePositionBinding with the leaf space
of one-bit words. The reduction is strict PPT (isPPT_kilianBindingAdversary).
The exact bound (succProbability_kilianSoundnessGame_le). If every statement that P can
output at parameter n has a compact table of at most M entries, then
Pr[x ∉ L ∧ accept] ≤ 2⁻ⁿ + M · √Adv^bind(kilianBindingAdversary P, n).
The proof is Cslib.Probability.Rewinding.le_add_mul_sqrt_disagreement: at each saved state, a
run that accepts while its opened bits agree with a fixed table makes the PCP verifier accept the
proof spelled by that table on all n independent random strings, which happens with
probability at most 2⁻ⁿ when x ∉ L (IsPCPVerifier.sound); otherwise two runs disagree.
Composing with succProbability_merkleBindingGame_le bounds the advantage by that of the collision
finder merkleCollisionFinder H (kilianBindingAdversary P), for a hash whose digests have the
length of the key.
Asymptotics. For a polynomial-time PCP verifier for L with O(log n) random bits and a
HashFamily H, every efficient prover outputs statements of polynomial length, so M is
polynomial, and Kilian's protocol is computationally sound (HashFamily.kilianSound), while the
generated verifier input—and hence verifier time and space—is polynomial in n
(length_kilianVerifierInput_of_isPPT_le, computableInTimeAndSpace_kilianVerify_of_isPPT). With
the PCP theorem, every NP relation has such a verifier together with a polynomial-time honest
witness compiler (CslibFrontier.Crypto.Computational.Kilian.NP).
Relation to [BG01]. Construction 3.4 is analysed there in Lemma 3.5 as a weak
proof of knowledge against non-uniform provers, with a reverse-sampling extractor for oracles of
superpolynomial length. Here statements and tables have polynomial length, adversaries are uniform
(as in CollisionResistant), and the bound is computational soundness with an explicit loss; the
statement and its constants are our own packaging. Succinctness accounting (communication and
verifier time) is in CslibFrontier.Crypto.Computational.Kilian.Succinct.
Main definitions #
Cslib.Crypto.KilianProver,Cslib.Crypto.KilianProver.IsPPT: cheating provers.Cslib.Crypto.KilianMessage,Cslib.Crypto.KilianCommitment: a cheating prover's first message and its commitment, with their encodingsencKilianMessageandencKilianCommitment.Cslib.Crypto.kilianSoundnessGame,Cslib.Crypto.KilianSound: the soundness experiment and computational soundness.Cslib.Crypto.kilianOpenings,Cslib.Crypto.kilianConflict,Cslib.Crypto.kilianBindingOutput,Cslib.Crypto.kilianBindingAdversary: the reduction to position binding.Cslib.Crypto.kilianProof: the PCP proof spelled by a compact position table.
Main results #
Cslib.Crypto.merkleBreaksBinding_kilianBindingOutput: two accepted runs that open a position to different bits give a binding break.Cslib.Crypto.accepts_kilianProof: an accepted response consistent with a position table makes the PCP verifier acceptkilianProof.Cslib.Crypto.toOuterMeasure_kilianChallenges_accepts_le: a fixed proof of a false statement passesmindependent PCP repetitions with probability at most(1 / 2) ^ m; Micali's Fiat–Shamir bound uses it too.Cslib.Crypto.succProbability_kilianSoundnessGame_le: the exact soundness bound.Cslib.Crypto.isPPT_kilianBindingAdversary: the reduction is efficient.Cslib.Crypto.succProbability_kilianSoundnessGame_le_collision: the same bound in terms of collision finding.Cslib.Crypto.HashFamily.kilianSound: computational soundness from collision resistance.Cslib.Crypto.length_kilianVerifierInput_of_isPPT_le,Cslib.Crypto.computableInTimeAndSpace_kilianVerify_of_isPPT: polynomial-in-nverifier input and machine runtime bounds against any uniform strict PPT cheating prover.
References #
- J. Kilian, A note on efficient zero-knowledge proofs and arguments
- B. Barak, O. Goldreich, Universal Arguments and their Applications, Construction 3.4 and Lemma 3.5.
Cheating provers and the soundness experiment #
The encoding of a first message: the framed statement, then the root.
The tuple of the fields of encKilianCommitment.
The encoding of a commitment: the first message as one framed word, then the state.
A cheating prover for Kilian's protocol. The first stage commit n k receives the unary
security parameter and the hash key, and outputs a statement, a root and a saved state; the second
stage answer n state ρs receives the saved state and the verifier's random strings, and outputs
the openings.
First stage: output the statement, the root and the saved state.
Second stage: answer the random strings
ρsfrom the savedstate.
A cheating prover is strict PPT if both stages run in polynomial time in their full encoded inputs, the saved state and the random strings included.
The first stage is a strict PPT family from
(n, k)to the commitment.- answer : Probability.IsPPTOn (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encBits))) encKilianResponse fun (x : ℕ × List Bool × List (List Bool)) => match x with | (n, state, ρs) => P.answer n state ρs
The second stage is strict PPT on
(n, state, ρs).
The soundness experiment of Kilian's protocol against P at security parameter n: the
verifier samples a key, P chooses a statement and a root, the verifier samples its challenges,
P answers, and P wins when the statement is outside L and the verifier accepts.
Computational soundness of Kilian's protocol for L: every uniform strict PPT cheating
prover, which may choose its statement after seeing the hash key, convinces the verifier of a
statement outside L with negligible probability.
The reduction to position binding #
The openings of a response, each with the PCP address it opens.
The first pair of openings, one from each list, of a common position to different bits.
The binding adversary's output from two lists of openings against root: the conflicting
pair found by kilianConflict, as two openings of its position with one-bit leaves.
The position-binding adversary built from a cheating prover: run its first stage once and its second stage on two independent challenges, and output a conflicting pair of openings.
Every opening of an accepted response passes merkleVerify at its position.
Two accepted runs that disagree break position binding: if two responses against one root are accepted and open some common position to different bits, the binding adversary's output breaks binding, with the leaf space of one-bit words.
Acceptance with a consistent table #
The PCP proof spelled by a table π of the positions of x: the bit at address a is the
table's bit at the position of a. Only addresses up to the sum of the address table are
spelled; the others are never queried.
An accepted response whose opened bits agree with the table π makes the PCP verifier accept
the proof spelled by π on every random string of the right length.
The exact bound #
One PCP repetition accepts a fixed candidate proof π of a statement x with soundness
bound 2 * acceptCount ... ≤ 2 ^ V.coins x with probability at most 1 / 2 in ℝ≥0∞.
Across m independent PCP challenge strings kilianChallenges V m x, a fixed candidate proof
π for x with per-repetition soundness error ≤ 1 / 2 is accepted on all m repetitions with
probability at most (1 / 2) ^ m.
Exact soundness of Kilian's protocol. For a PCP verifier whose soundness error on
statements outside L is at most one half per repetition, and a cheating prover P all of whose
statements at parameter n have compact tables of at most M entries,
Pr[x ∉ L ∧ accept] ≤ 2⁻ⁿ + M · √Adv^bind(kilianBindingAdversary P, n). The proof is
original packaging (see the module documentation); it makes no efficiency assumption.
The reduction is efficient #
Polynomial-time opening-extraction helper kilianOpenings for any poly-time PCP verifier
V.
The reduction is efficient: the binding adversary of a strict PPT cheating prover is strict
PPT, for a polynomial-time PCP verifier with O(log n) random bits.
Computational soundness #
The exact soundness bound composed with the reduction of
CollisionResistantOn.merklePositionBinding, for a hash whose digests have the length of the key:
Pr[x ∉ L ∧ accept] ≤ 2⁻ⁿ + M · √Adv^CR(merkleCollisionFinder H (kilianBindingAdversary P), n).
Kilian's protocol is computationally sound ([BG01], Construction 3.4 and
Lemma 3.5, for uniform adversaries and compact tables): for a polynomial-time PCP verifier for L
with O(log n) random bits and any number of queries, and a collision-resistant HashFamily,
every uniform strict PPT cheating prover convinces the verifier of a statement outside L with
negligible probability.
Verifier input size against strict PPT provers: for a PCP verifier using
O(log |enc x|) random bits and any uniform strict PPT cheating prover P, every verifier view
supported in kilianSoundnessGame at security parameter n has encoded length bounded by a
polynomially bounded function of n.
Machine-level verifier runtime and space against strict PPT provers: under a
polynomial-time hash with n-bit digests and a polynomial-time PCP verifier using O(log |enc x|)
random bits, the fixed binary machine computing kilianVerify runs on every transcript supported
in kilianSoundnessGame against a strict PPT prover P within time and space bounded by
polynomially bounded functions of n.