Documentation

CslibFrontier.Crypto.Protocols.BCS.ROM.VerifyBounds

Verifier query-cost bounds and support invariants for bcsVerifyROM #

Proves per-channel query-cost bounds (IsCostBounded) for bcsChallengesProg and bcsVerifyROM together with internal support invariants connecting accepting bcsVerifyROM runs under bcsMemoize in a good state to doomed IOP transcripts accepted by iopVerify ([BSCS16]; compare [CY24], Construction 25.1.1 and Lemma 18.5.7).

Main definitions #

Main results #

References #

theorem Cslib.Crypto.Protocols.BCS.isQueryBounded_bcsChallengesProg {r : ℕ} {Stmt Chal : Type} (x : Stmt) (roots : Fin r → List Bool) :

bcsChallengesProg x roots makes at most r Fiat–Shamir queries.

theorem Cslib.Crypto.Protocols.BCS.isCostBounded_bcsFSCost_bcsVerifyROM {r d : ℕ} {Stmt Wit Sym Chal : Type} (iop : PublicCoinIOP r d Stmt Wit Sym Chal) (encSym : Sym → List Bool) (x : Stmt) (prf : BCSProof r Sym) :

bcsVerifyROM iop encSym x prf makes at most r Fiat–Shamir queries for every statement x and proof prf.

Total number of Merkle hash queries needed to verify every opening in openings (one leaf hash plus path.length internal-node hashes per opening).

theorem Cslib.Crypto.Protocols.BCS.isCostBounded_bcsMTCost_bcsVerifyROM {r d : ℕ} {Stmt Wit Sym Chal : Type} (iop : PublicCoinIOP r d Stmt Wit Sym Chal) (encSym : Sym → List Bool) (x : Stmt) (prf : BCSProof r Sym) :

bcsVerifyROM iop encSym x prf makes at most bcsOpeningsMerkleQueries prf.openings Merkle hash queries, independently of the random Fiat–Shamir challenges.

theorem Cslib.Crypto.Protocols.BCS.isCostBounded_bcsMTCost_bcsVerifyROM_of_queries_le {r d : ℕ} {Stmt Wit Sym Chal : Type} (iop : PublicCoinIOP r d Stmt Wit Sym Chal) (encSym : Sym → List Bool) (x : Stmt) (prf : BCSProof r Sym) {q_iop L_path : ℕ} (hqs : ∀ (chals : Fin r → Chal), (iop.queries x chals).length ≤ q_iop) (hops : ∀ op ∈ prf.openings, op.path.length ≤ L_path) :
OracleComp.IsCostBounded bcsMTCost (bcsVerifyROM iop encSym x prf) (q_iop * (L_path + 1))

If iop.queries x chals makes at most q_iop oracle queries for every chals and every authentication path in prf.openings has length at most L_path, then bcsVerifyROM iop encSym x prf makes at most q_iop * (L_path + 1) Merkle hash queries.

Support invariants of bcsMemoize, bcsChallengesProg, and bcsVerifyROM #