The BCS transform: public-coin interactive oracle proofs to non-interactive arguments #
The Ben-Sasson–Chiesa–Spooner (BCS) transformation ([BSCS16]; compare
[CY24], Construction 25.1.1 and Remark 25.1.3, printed pp. 274–277) compiles a
multi-round public-coin Interactive Oracle Proof (PublicCoinIOP) into a non-interactive argument
(BCSProof, bcsProve, bcsVerify; round-by-round ROM soundness and knowledge soundness are
Cslib.Crypto.Protocols.BCS.bcsROMSoundness_bound and
Cslib.Crypto.Protocols.BCS.bcsROMKnowledgeSoundness_bound in
CslibFrontier.Crypto.Protocols.BCS.ROM, while state-restoration BCS knowledge soundness as in
[CY24], Theorem 26.1.1, is open in #6042), by combining two primitives:
- Merkle-tree oracle commitments (
merkleRoot,merklePath,merkleVerifyfromCslibFrontier.Crypto.Computational.MerkleTreeandCslibFrontier.Crypto.Computational.MerkleTree.Binding): in each roundj : Fin r, the prover commits to its oracle tableπ_j : Fin (2 ^ d) → Symas the root of a depth-dMerkle tree over the encoded symbolsoracleLeaves encSym d π_j. - Fiat–Shamir challenge derivation (
bcsChallenge): the verifier'sj-th public-coin challengec_jis derived deterministically by hashing the statementxand the prefix of Merkle roots[rt_0, ..., rt_j]through roundjwith a Fiat–Shamir oraclehFS : Stmt → List (List Bool) → Chal. - Query openings: after all
rrounds, the prover evaluates the IOP verifier's query listiop.queries x chalson the derived challengeschalsand opens every queried entry(j, idx)together with its Merkle authentication path againstrt_j.
Main definitions #
Cslib.Crypto.Protocols.BCS.OracleTable,Cslib.Crypto.Protocols.BCS.oracleLeaves,Cslib.Crypto.Protocols.BCS.prefixChallenges: depth-doracle tables, their encoded Merkle leaf lists, and challenge-prefix restriction.Cslib.Crypto.Protocols.BCS.PublicCoinIOP,Cslib.Crypto.Protocols.BCS.iopProverOracles,Cslib.Crypto.Protocols.BCS.iopAnswers,Cslib.Crypto.Protocols.BCS.iopVerify: syntax and evaluation of anr-round public-coin Interactive Oracle Proof.Cslib.Crypto.Protocols.BCS.IOPCompleteness,Cslib.Crypto.Protocols.BCS.IOPSoundness,Cslib.Crypto.Protocols.BCS.IOPRoundByRoundSoundness,Cslib.Crypto.Protocols.BCS.IOPKnowledgeSoundnessAt: perfect completeness, rejection of false statements on a given set of good challenge vectors, round-by-round soundness, and straight-line knowledge soundness at a given challenge vector for aPublicCoinIOP. These are deterministic predicates; none of them bounds a probability.Cslib.Crypto.Protocols.BCS.BCSProof,Cslib.Crypto.Protocols.BCS.rootPrefix,Cslib.Crypto.Protocols.BCS.bcsChallenge: BCS proof structure and Fiat–Shamir challenge derivation from Merkle root prefixes.Cslib.Crypto.Protocols.BCS.bcsHonestTables,Cslib.Crypto.Protocols.BCS.bcsHonestRoots,Cslib.Crypto.Protocols.BCS.bcsHonestChallenges,Cslib.Crypto.Protocols.BCS.bcsHonestOpenings,Cslib.Crypto.Protocols.BCS.bcsProve,Cslib.Crypto.Protocols.BCS.bcsVerify: the BCS prover and verifier.Cslib.Crypto.Protocols.BCS.bcsFindConflict,Cslib.Crypto.Protocols.BCS.bcsExtractTableCollision: deterministic Merkle collision extraction when an accepted BCS proof opens a queried entry inconsistently with the committed oracle tables.Cslib.Crypto.Protocols.BCS.encOracleTable,Cslib.Crypto.Protocols.BCS.encMerkleOpeningOf,Cslib.Crypto.Protocols.BCS.encBCSProof,Cslib.Crypto.Protocols.BCS.BCSTableCommitOutput,Cslib.Crypto.Protocols.BCS.encBCSTableCommitOutput,Cslib.Crypto.Protocols.BCS.BCSTableCommitAdversary,Cslib.Crypto.Protocols.BCS.bcsTableCollisionFinder,Cslib.Crypto.Protocols.BCS.bcsBreaksTableBinding,Cslib.Crypto.Protocols.BCS.bcsTableBindingGame: encodings (building onencFinEnum (Fin ...)andencFinFnfromCslibFrontier.Computability.Machines.Turing.MultiTape.Encodings.DPi), collision-finding reduction, and standard-model committed-table binding game.
Main results #
Cslib.Crypto.Protocols.BCS.merkleVerify_oracleLeaves: honest Merkle paths fororacleLeavespassmerkleVerifyat depthd.Cslib.Crypto.Protocols.BCS.bcsHonestTables_eq_iopProverOracles: the causal round-by-round tables computed bybcsHonestTablesagree with the IOP prover run on the full Fiat–Shamir challenge vector.Cslib.Crypto.Protocols.BCS.bcsVerify_bcsProve_of_iopVerify,Cslib.Crypto.Protocols.BCS.bcsVerify_bcsProve_eq_true: perfect completeness of the BCS transform for any hash functionH kwhose digests have one length and any Fiat–Shamir functionhFS.Cslib.Crypto.Protocols.BCS.bcs_sound_or_merkleCollision,Cslib.Crypto.Protocols.BCS.isCollision_of_bcsVerify_of_iopVerify_eq_false,Cslib.Crypto.Protocols.BCS.isCollision_of_bcsVerify_conflict: deterministic Merkle binding. With an injective symbol encoding, an accepted proof whose roots are the Merkle roots of given oracle tables either makes the IOP verifier accept those tables at the Fiat–Shamir challenges or yields an explicit hash collision; two accepted proofs that open one position under a shared round root to symbols with distinct encodings also yield one. These statements involve no language, error bound or adversary; the random-oracle soundness bound isCslib.Crypto.Protocols.BCS.bcsROMSoundness_boundinCslibFrontier.Crypto.Protocols.BCS.ROM.Cslib.Crypto.Protocols.BCS.bcs_knowledge_or_soundness_violation_or_collision,Cslib.Crypto.Protocols.BCS.bcs_knowledge_or_merkleCollision,Cslib.Crypto.Protocols.BCS.rel_iopExtract_of_bcsVerify_of_openings_eq: consequences for an arbitrary relationreland functioniopExtract. The first splits the accepting case ofbcs_sound_or_merkleCollisionon whetherrel x (iopExtract x oracles)holds. AssumingIOPKnowledgeSoundnessAtat the Fiat–Shamir challenges for the given tables, the second yieldsrel x (iopExtract x oracles)or an explicit hash collision under the hypotheses ofbcs_sound_or_merkleCollision, and the third yieldsrel x (iopExtract x oracles)when the proof's openings agree with the tables. The random-oracle knowledge-soundness bound isCslib.Crypto.Protocols.BCS.bcsROMKnowledgeSoundness_bound, also in that module.Cslib.Crypto.Protocols.BCS.computableInPolyTime_oracleLeaves,Cslib.Crypto.Protocols.BCS.computableInPolyTime_rootPrefix,Cslib.Crypto.Protocols.BCS.computableInPolyTime_bcsChallenge,Cslib.Crypto.Protocols.BCS.computableInPolyTime_bcsFindConflict,Cslib.Crypto.Protocols.BCS.computableInPolyTime_bcsExtractTableCollision,Cslib.Crypto.Protocols.BCS.isPPT_bcsTableCollisionFinder,Cslib.Crypto.Protocols.BCS.succProbability_bcsTableBindingGame_le,Cslib.Crypto.Protocols.BCS.CollisionResistant.bcsTableBinding_negligible,Cslib.Crypto.Protocols.BCS.HashFamily.bcsTableBinding_negligible: polynomial-time certificates forbcsExtractTableCollisionand standard-model committed-table binding reductions toCollisionResistant H.
References #
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions, Chapter 25 (Construction 25.1.1, Remark 25.1.3, and Theorem 25.2.1, printed pp. 274–278) and Chapter 26 (Theorem 26.1.1, printed pp. 288–289).
Oracle tables and Merkle leaf encodings #
Encode an oracle table π : OracleTable d Sym as a list of 2 ^ d bit-string leaves for a
Merkle tree.
Honest openings of an oracle table pass merkleVerify: when all digests of H k have one
length, for every index idx : Fin (2 ^ d), opening oracleLeaves encSym d π at idx.val with
merklePath is accepted by merkleVerify at depth d.
Public-coin Interactive Oracle Proofs (PublicCoinIOP) #
An r-round public-coin Interactive Oracle Proof (PublicCoinIOP) with oracle table depth d,
statement type Stmt, witness type Wit, oracle alphabet Sym, and verifier challenge type Chal
([BSCS16]).
After all
rrounds of challenges, the IOP verifier deterministically selects a list of(round, position)oracle queries.Given the statement, challenges, and the list of symbols read at
queries x chals, the IOP verifier decides whether to accept.
The r oracle tables produced by the honest IOP prover on statement x, witness w, and
challenges chals : Fin r → Chal.
The list of oracle answers read by iop.queries x chals from the oracle tables oracles.
Evaluate the IOP verifier on statement x, challenge vector chals, and oracle tables
oracles.
Perfect completeness of a PublicCoinIOP for relation rel: for every (x, w) satisfying
rel x w and every challenge vector chals, the IOP verifier accepts the honest prover's oracle
tables.
Soundness of a PublicCoinIOP on a set of non-bad challenge vectors goodChallenges: for
every statement x ∉ lang, every family of oracle tables oracles, and every challenge vector
chals ∈ goodChallenges x oracles, the IOP verifier rejects. goodChallenges is an arbitrary
parameter and the predicate bounds no probability; in particular it says nothing about how likely
a challenge vector is to lie outside goodChallenges x oracles.
Round-by-round soundness of a PublicCoinIOP with respect to a doomed-prefix predicate
doomed : Stmt → List (OracleTable d Sym × Chal) → Prop and non-escaping round transitions
goodStep : Stmt → List (OracleTable d Sym × Chal) → OracleTable d Sym → Chal → Prop:
- The empty prefix is doomed for every
x ∉ lang. - Whenever a prefix
prefis doomed and the round challengecsatisfiesgoodStep x pref π c, the extended prefixpref ++ [(π, c)]remains doomed. - On any full transcript
List.ofFn (fun j => (oracles j, chals j))that is doomed, the IOP verifier rejects.
Every false statement starts in a doomed state on the empty transcript prefix.
- step_doomed (x : Stmt) (pref : List (OracleTable d Sym × Chal)) (π : OracleTable d Sym) (c : Chal) : doomed x pref → goodStep x pref π c → doomed x (pref ++ [(π, c)])
Every non-escaping challenge preserves the doomed state.
- reject_of_doomed (x : Stmt) (oracles : Fin r → OracleTable d Sym) (chals : Fin r → Chal) : doomed x (List.ofFn fun (j : Fin r) => (oracles j, chals j)) → iopVerify iop x chals oracles = false
A doomed complete transcript is rejected by the IOP verifier.
A prefix predicate doomed x that holds on the empty prefix and survives every round
satisfying goodStep holds on the complete transcript when every round satisfies goodStep.
If every round's challenge satisfies goodStep under IOPRoundByRoundSoundness, then the IOP
verifier rejects x ∉ lang.
Knowledge soundness at a challenge vector (x, chals, oracles): if the IOP verifier accepts
oracles at challenge chals, the straight-line IOP knowledge extractor iopExtract recovers a
valid witness for x.
A non-interactive BCS proof for an r-round PublicCoinIOP: one Merkle root per round and one
MerkleOpening per verifier query ([BSCS16]; compare [CY24],
Construction 25.1.1).
The Merkle root committed in each round
j : Fin r.- openings : List (MerkleOpening Sym)
The opened symbol and authentication path for each query in
iop.queries x chals.
The Fiat–Shamir challenge for round j : Fin r, obtained by applying the Fiat–Shamir oracle
hFS to the statement x and the prefix of Merkle roots [rt_0, ..., rt_j].
Structural helper for bcsHonestTables: given fuel ≥ j.val, computes the round-j oracle
table by structural recursion on fuel so that concrete instances reduce in the kernel.
The honest IOP oracle tables computed sequentially during the BCS transform: in round j, each
earlier challenge c_i (i < j) is derived via hFS from the Merkle roots of rounds 0, ..., i,
and the IOP prover computes the round-j oracle table from (c_0, ..., c_{j-1}).
The Merkle roots committed by the honest BCS prover in each round j : Fin r.
The Fiat–Shamir challenges derived from the honest BCS prover's Merkle roots.
The Merkle openings produced by the honest BCS prover for all queries in iop.queries.
The BCS prover (bcsProve): sequentially computes each round's IOP oracle table, commits to
it with merkleRoot, derives the Fiat–Shamir challenges via hFS, and opens every queried entry
with merklePath ([BSCS16]; compare [CY24], Construction 25.1.1 and
Remark 25.1.3).
The BCS verifier (bcsVerify): recomputes the Fiat–Shamir challenges c_j from the Merkle
roots in prf, checks that every queried entry (j, idx) has a valid depth-d Merkle opening
against prf.roots j, and runs iop.decide on the opened symbols ([BSCS16];
compare [CY24], Construction 25.1.1 and Remark 25.1.3).
Every queried opening of a proof accepted by bcsVerify is accepted against its root.
Perfect completeness #
Causal consistency of bcsHonestTables: the oracle tables produced sequentially in the BCS
transform equal the IOP prover's oracle tables evaluated on the full Fiat–Shamir challenge vector
bcsHonestChallenges.
If the IOP verifier accepts the honest prover's tables at the Fiat–Shamir challenge vector
bcsHonestChallenges, then bcsVerify accepts bcsProve, when all digests of H k have one
length.
Perfect completeness of the BCS transform: if iop satisfies IOPCompleteness iop rel and
rel x w holds, then for every Merkle hash H and key k such that all digests of H k have one
length, every symbol encoding encSym, and every Fiat–Shamir function hFS, bcsVerify accepts
bcsProve ([BSCS16]; compare [CY24], Construction 25.1.1).
Binding extraction and soundness / knowledge reductions #
Find the first query-opening pair ((j, idx), ⟨val, path⟩) in a BCS proof whose encoded symbol
encSym val disagrees with the committed oracle table entry encSym (oracles j idx).
Deterministic Merkle collision extractor for the BCS transform: given committed oracle
tables oracles and a BCS proof prf, find the first query position where prf opens a symbol
whose encoding differs from oracles and run extractMerkleCollision against the honest Merkle
path of oracles.
If bcsVerify accepts prf and every opened symbol in prf agrees with the oracle tables
oracles, then the IOP verifier accepts oracles at the Fiat–Shamir challenge vector
bcsChallenge hFS x prf.roots.
Committed-table binding extraction (bcs_sound_or_merkleCollision): if bcsVerify accepts
prf against the Merkle roots of oracles : Fin r → OracleTable d Sym and encSym is injective,
then either the IOP verifier accepts oracles on the Fiat–Shamir challenges
bcsChallenge hFS x prf.roots, or bcsExtractTableCollision deterministically extracts a hash
collision for H k ([BSCS16]; compare [CY24], Theorem 25.2.1).
If the IOP verifier rejects oracles at the Fiat–Shamir challenge vector
bcsChallenge hFS x prf.roots while bcsVerify accepts prf, then bcsExtractTableCollision
deterministically extracts a hash collision for H k.
Two-opening binding extraction (isCollision_of_bcsVerify_conflict): if two accepted BCS
proofs prf₁ and prf₂ share the same round-j Merkle root and open the same position (j, idx)
to symbols val₁, val₂ with distinct encodings encSym val₁ ≠ encSym val₂, then
extractMerkleCollision finds a hash collision for H k.
Knowledge extraction when openings match the committed tables: if bcsVerify accepts prf
and every opened symbol in prf agrees with oracles, then under IOPKnowledgeSoundnessAt at the
Fiat–Shamir challenge vector bcsChallenge hFS x prf.roots, the straight-line IOP extractor
iopExtract x oracles produces a valid witness for x.
Three-way case split of committed-table binding: for an arbitrary relation rel and any
iopExtract : Stmt → (Fin r → OracleTable d Sym) → Wit, any accepting BCS proof prf against
committed oracle tables oracles (with encSym injective) satisfies at least one of:
rel x (iopExtract x oracles)(the IOP extractor recovers a valid witness forx),iopVerify iop x (bcsChallenge hFS x prf.roots) oracles = true ∧ ¬ rel x (iopExtract x oracles)(oraclesviolates IOP knowledge soundness at the Fiat–Shamir challenge), orbcsExtractTableCollisionextracts an explicit hash collision forH k([BSCS16]; compare [CY24], Theorem 26.1.1).
This is bcs_sound_or_merkleCollision with its accepting case split on whether
rel x (iopExtract x oracles) holds.
BCS knowledge extraction under IOP knowledge soundness (bcs_knowledge_or_merkleCollision):
if IOPKnowledgeSoundnessAt holds at the Fiat–Shamir challenge bcsChallenge hFS x prf.roots, then
any accepting BCS proof against oracles either yields a valid witness
rel x (iopExtract x oracles) or yields an explicit hash collision via
bcsExtractTableCollision.
Polynomial-time certificates and standard-model reduction to collision resistance #
Encoding of a depth-d oracle table OracleTable d Sym as a framed list of 2 ^ d encoded
symbols.
Encoding an oracle table into its Merkle leaf list oracleLeaves takes polynomial time.
Selecting the j-th round's encoded Merkle leaf list from oracles takes polynomial time.
Reading the encoded symbol encSym (oracles a (j a) (idx a)) at a computed (round, index)
pair takes polynomial time without requiring Inhabited Sym.
Computing rootPrefix at round j takes polynomial time.
Deriving the Fiat–Shamir challenge vector bcsChallenge takes polynomial time when hFS is
polynomial-time.
Finding the first conflicting opening in a BCS proof against committed oracle tables takes polynomial time.
Deterministic Merkle collision extraction for the BCS transform (bcsExtractTableCollision)
runs in polynomial time.
A committed-table BCS adversary receives the unary security parameter n and the Merkle hash
key k, and outputs a statement, committed oracle tables, and a BCS proof.
The collision finder built from a committed-table BCS adversary: run the adversary and extract
a Merkle collision with bcsExtractTableCollision.
Boolean predicate recording that out breaks committed-table BCS binding under k: the proof's
round roots match the Merkle roots of out.oracles, bcsVerify accepts out.proof, and
iopVerify rejects out.oracles at the Fiat–Shamir challenge vector.
The committed-table BCS binding experiment at security parameter n: sample a uniform n-bit
hash key k, run adversary n k, and accept when bcsBreaksTableBinding holds.
A committed-table BCS binding break yields a hash collision: if bcsBreaksTableBinding
holds and encSym is injective, then bcsExtractTableCollision outputs a valid collision for
H k.
Tight reduction from committed-table BCS binding to collision finding: at every security
parameter n, a committed-table BCS adversary succeeds at most as often as its collision finder
bcsTableCollisionFinder.
Efficiency of bcsTableCollisionFinder: for a polynomial-time hash H with k.length-bit
digests, polynomial-time iop.queries, and polynomial-time hFS, the collision finder of any
uniform strict PPT committed-table BCS adversary is uniform strict PPT.
Standard-model committed-table BCS binding from collision resistance: if H is
collision-resistant (CollisionResistant H), every uniform strict PPT committed-table BCS adversary
breaks binding with negligible probability.
Collision-resistant HashFamily corollary for committed-table BCS binding.