Documentation

CslibFrontier.Crypto.Protocols.BCS.ROM

Soundness and straight-line knowledge soundness of the BCS transform in the random-oracle model #

This facade re-exports the multi-round Ben-Sasson–Chiesa–Spooner (BCS) random-oracle development (split across ROM.Extract, ROM.PolyTime, ROM.Protocol, ROM.State, ROM.StickyBad, ROM.VerifyBounds, ROM.Soundness, and ROM.KnowledgeSoundness), lifting (CslibFrontier/Crypto/Protocols/BCS/Basic.lean) to an explicit two-channel random-oracle model ([BSCS16]; compare [CY24], Construction 25.1.1, Remark 25.1.3, and Theorem 25.2.1, printed pp. 274–278, Theorem 26.1.1 and Construction 26.1.3, printed pp. 288–291, Chapter 31, Definitions 31.1.1–31.1.2, Definition 31.1.6, Construction 31.1.8, Theorem 31.2.1, and Theorem 31.3.1, composed with Merkle trace extraction from Chapter 18, Construction 18.5.3 and Lemma 18.5.7, printed pp. 199 and 204–207), proving adaptive round-by-round ROM soundness and straight-line knowledge-soundness bounds (bcsROMSoundness_bound, bcsROMKnowledgeSoundness_bound; state-restoration BCS knowledge soundness as in [CY24], Theorem 26.1.1, is open in #6042) alongside standard-model Merkle trace-binding reductions:

  1. Straight-line multi-round oracle-table reconstruction (bcsExtractTable, bcsExtractOracles, bcsExtractWitness). Given a symbol decoder decSym : List Bool → Sym with Function.LeftInverse decSym encSym, a default symbol defaultSym : Sym, and a recorded Merkle query-answer trace tr_MT : List (List Bool × List Bool), bcsExtractTable reconstructs the depth-d oracle table committed under any Merkle root rt via extractLeafFromTrace without rewinding, and bcsExtractOracles reconstructs all r round tables of a BCSProof. When tr_MT is collision-free and records every opened authentication path of an accepted proof, iopVerify accepts the extracted oracle tables (iopVerify_bcsExtractOracles_of_bcsVerify); conversely, if iopVerify rejects the extracted tables on a trace consistent with H k, tr_MT contains an explicit hash collision (exists_collision_of_bcsVerify_of_iopVerify_eq_false). Prepending a fresh Merkle query-answer pair (q, ans) leaves bcsExtractTable and bcsExtractOracles unchanged unless ans hits a target root or a child of an existing Merkle query (bcsExtractTable_cons_of_ne, bcsExtractOracles_cons_of_ne).
  2. Two-channel BCS random-oracle model & completeness (BCSROMSpec, chainedFS, bcsProveROM, bcsVerifyROM, bcsHonestROMGame_eq_pure_true). Over BCSROMSpec Stmt Chal := MerkleHashSpec ⊕ₒ BCSFSSpec Stmt Chal, the left channel (Sum.inl) answers Merkle hash queries lazily with uniform σ-bit digests (BitString.uniformList σ), while the right channel (Sum.inr) answers transcript-chained Fiat–Shamir queries (x, rts, prevChals) ↦ Chal lazily with PMF.uniformOfFintype Chal: in round j, the prover and verifier query (x, rootPrefix roots j, [c_0, ..., c_{j-1}]) ↦ c_j. Under any deterministic oracle pair (hTree, f), bcsProveROM and bcsVerifyROM agree via OracleComp.evalPure with bcsProve and bcsVerify instantiated with chainedFS f, yielding perfect completeness in the lazy two-channel ROM (bcsHonestROMGame_eq_pure_true).
  3. Adaptive two-channel ROM soundness (bcsROMSoundness_bound, bcsROMSoundness_bound_of_prover_verifier). Given IOPRoundByRoundSoundness iop lang doomed goodStep with per-round escape probability ≤ ε_rbr under PMF.uniformOfFintype Chal, the combined state invariant BCSGoodState requires TraceCollisionFree tr_MT together with BCSChainDoomed: every recorded Fiat–Shamir chain (rts, chals) of length ≤ r for x ∉ lang maps under bcsExtractTranscript to a doomed IOP transcript prefix. Restricting the Merkle forbidden-digest guard (bcsForbiddenDigests) to the first r roots of each Fiat–Shamir query keeps the Merkle preimage/root-hit budget bounded by 3 * |tr_MT| + r * |tr_FS| regardless of adversarial Fiat–Shamir input lengths, while fsOutOfOrderTargets bounds out-of-order Fiat–Shamir chain guessing by |tr_FS| / |Chal| per query. Accumulating both growing channel budgets via OracleComp.toOuterMeasure_bad_le_two_budgets bounds adaptive cheating provers with t_FS Fiat–Shamir queries and Q_MT total Merkle queries by (t_FS + r) * (ε_rbr + (t_FS + r) * (1 / |Chal|)) + Q_MT * ((3 * Q_MT + r * (t_FS + r)) * (1 / 2 ^ σ)).
  4. Adaptive straight-line ROM knowledge soundness (IOPRoundByRoundKnowledgeSoundness, bcsROMKnowledgeSoundness_bound, bcsROMKnowledgeSoundness_bound_of_prover_verifier). From IOPRoundByRoundKnowledgeSoundness iop rel iopExtract doomed goodStep (which also implies IOPRoundByRoundSoundness for {x | ∃ w, rel x w} via IOPRoundByRoundKnowledgeSoundness.toRoundByRoundSoundness), bcsKnowledgeSoundnessGame reconstructs bcsExtractWitness iopExtract decSym defaultSym tr_P x prf.roots straight-line from the prover's own Merkle query trace tr_P before running bcsVerifyROM, with zero rewinding, and bounds the probability that bcsVerifyROM accepts while rel x w fails by the same explicit two-channel ROM error bound.

Source-to-Lean adaptation and scope notes:

Main definitions #

Main results #

References #