Soundness of Micali's Computationally Sound Proofs in the Random Oracle Model #
This module proves an explicit soundness bound for an unsalted, two-channel adaptation of
Micali's non-interactive random-oracle compilation of Kilian's protocol ([Mic00];
[CY24], Construction 21.1.1 and Theorem 21.2.1, printed pp. 239–242) by
combining the straight-line Merkle trace extractor of
CslibFrontier/Crypto/Computational/MerkleTree/ROMExtract.lean with a union bound over the
Fiat–Shamir challenge queries:
- Pure / fixed-trace soundness bridge (
micaliVerifyPure_sound_of_traceCollisionFree). Given a deterministic Merkle hashH k(or unkeyedhTree), a Fiat–Shamir oraclehFS, and a recorded Merkle query-answer tracetr : List (List Bool × List Bool): iftris collision-free (TraceCollisionFree tr) and records every hash evaluation along the openings ofproof : MicaliProof(AllOpeningsQueriedInTrace), then whenevermicaliVerifyPureaccepts(x, proof), the PCP verifierVaccepts the single extracted proofmicaliExtractProof V tr x proof.rooton every challenge stringρ ∈ hFS (x, proof.root)of lengthV.coins x. Equivalently, an accepting Micali proof whose opened paths lie intreither exhibits a collision intr(¬ TraceCollisionFree tr, from whichextractTraceCollisionextracts a concrete hash collision whenTraceConsistentWith (H k) tr) or convincesVon the extracted PCP proof (not_traceCollisionFree_or_accepts_of_micaliVerifyPure,exists_collision_of_micaliVerifyPure_of_rejects). - Fiat–Shamir challenge union bound & two-stage ROM soundness
(
toOuterMeasure_run_memoize_not_fsTraceSound_le,toOuterMeasure_twoStageMicali_le). For any false statementx ∉ Land any fixed Merkle rootrt(which determines the extracted PCP proofmicaliExtractProof V tr x rtfromtr), a fresh challenge drawρs ← kilianChallenges V m xmakesVaccept on allmrepetitions with probability at most(1 / 2) ^ m(toOuterMeasure_kilianChallenges_accepts_le, shared with Kilian soundness inCslibFrontier.Crypto.Computational.Kilian.Soundness). Across at mostQ_FSqueries to the lazy Fiat–Shamir oracle, the probability that any queried(x, rt)withx ∉ Lpasses allmPCP repetitions againstmicaliExtractProof V tr x rtis at mostQ_FS * (1 / 2) ^ m. Combining this bound withtoOuterMeasure_run_memoize_not_traceCollisionFree_lebounds a two-stage execution (aQ_MT-query Merkle phase followed by a(t_FS + 1)-query Fiat–Shamir phase) by(t_FS + 1) * (1 / 2) ^ m + Q_MT * (Q_MT * (1 / 2 ^ σ)). - Full adaptive two-channel ROM soundness (
micaliSoundness_bound). When a single-stage cheating proverP : OracleComp (MicaliSpec α) (α × MicaliProof)interleaves Merkle hash queries (Sum.inl) and Fiat–Shamir queries (Sum.inr) arbitrarily, a freshσ-bit Merkle digest preserves the extracted proofmicaliExtractProof V tr x rtof every earlier Fiat–Shamir query(x, rt)unless it collides with an existing Merkle digest, inverts the left or right child of an existing Merkle query, or hits an earlier Fiat–Shamir rootrt(micaliExtractProof_cons_of_ne). Bounding this joint bad event acrossQ_MTMerkle queries andt_FS + 1Fiat–Shamir queries (the prover'st_FSqueries plus the verifier's evaluation query) yields Micali's unconditional ROM soundness bound:micaliSoundnessGame V L P σ m true ≤(t_FS + 1) * (1 / 2) ^ m + Q_MT * ((3 * Q_MT + (t_FS + 1)) * (1 / 2 ^ σ)). - CS proofs for NP relations and languages (
exists_micaliCSProof_of_npRelation,exists_micaliCSProof_of_mem_NP). Combining Micali's construction with the PCP theorem and its witness compiler (exists_pcpVerifier_of_npRelation) gives unconditional non-interactive random-oracle CS proofs with polylogarithmic proof size for any NP relationR : NPRelation encand every languageL ∈ NP, with a polynomial-time mapcompilesending arbitraryR-witnesses to accepted compact PCP tables (V.tableVerifier).
The cited construction includes privacy parameters and a salt in the Fiat–Shamir query; here
that query is (x, root). Our explicit error expression counts all Merkle queries in the prover
and verifier execution, including queries on malformed paths, and is not the source's literal
multi-extraction bound. The separate-budget corollary requires a verifier bound only for outputs
in P.support. Native ROM-oracle verifier runtime and truncation of oversized proofs are not
established here.
Main definitions #
Cslib.Crypto.AllOpeningsQueriedInTrace: all Merkle opening paths in aKilianResponseare recorded in a hash tracetr.Cslib.Crypto.micaliExtractCompactTable,Cslib.Crypto.micaliExtractProof: straight-line extraction of the compact bit table and full PCP proof from a Merkle tracetr.Cslib.Crypto.FSTraceSound,Cslib.Crypto.MicaliGoodState: soundness invariants on the Fiat–Shamir trace and combined(tr_MT, tr_FS)ROM state.Cslib.Crypto.micaliMTCost,Cslib.Crypto.micaliFSCost: per-channel query cost functions onMicaliSpec α.Cslib.Crypto.micaliSoundnessProg,Cslib.Crypto.micaliSoundnessGame,Cslib.Crypto.micaliMemoize: the Micali ROM soundness experiment and its list-cache handler.Cslib.Crypto.micaliProofBits: payload bit length of aMicaliProof.
Main results #
Cslib.Crypto.kilianVerify_sound_of_traceCollisionFree,Cslib.Crypto.micaliVerifyPure_sound_of_traceCollisionFree,Cslib.Crypto.not_traceCollisionFree_or_accepts_of_micaliVerifyPure,Cslib.Crypto.exists_collision_of_micaliVerifyPure_of_rejects: pure fixed-trace soundness and dual collision extraction for Micali verification.Cslib.Crypto.toOuterMeasure_run_memoize_not_fsTraceSound_le,Cslib.Crypto.toOuterMeasure_twoStageMicali_le: Fiat–Shamir challenge union bound and two-stage ROM soundness bound.Cslib.Crypto.micaliExtractProof_cons_of_ne: invariance of extracted PCP proofs under non-inverting Merkle trace extensions.Cslib.Crypto.micaliSoundness_bound,Cslib.Crypto.micaliSoundness_bound_of_prover_verifier: Micali's explicit ROM soundness theorem for adaptive two-channel cheating provers.Cslib.Crypto.micaliProofBits_micaliProvePure_le,Cslib.Crypto.micaliProofBits_micaliProvePure_le_log: succinctness of honest Micali proofs.Cslib.Crypto.exists_micaliCSProof_of_npRelation,Cslib.Crypto.exists_micaliCSProof_of_mem_NP: every NP relation and language inNPhas a Micali CS proof system in the random oracle model, with polynomial-time witness compilation from arbitrary NP witnesses.
References #
- S. Micali, Computationally Sound Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions, Construction 21.1.1 and Theorem 21.2.1, printed pp. 239–242, March 25, 2026 version.
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- J. Kilian, A note on efficient zero-knowledge proofs and arguments
Part 1: Pure / Fixed-Trace Soundness Bridge #
Every Merkle authentication path in response for challenge strings ρs on statement x has
all of its hash steps recorded in tr.
Instances For
Extract the compact bit table (of length 2 ^ kilianDepth V x) committed under Merkle root
rt from a recorded hash query-answer trace tr, taking the first bit (headD false) of each
extracted leaf.
Fixed-trace soundness of kilianVerify: if tr is collision-free and records all hash
steps of every opening in response, then kilianVerify H V k x rt ρs response = true implies
that the PCP verifier V accepts the single extracted proof micaliExtractProof V tr x rt on
every challenge string ρ ∈ ρs of length V.coins x.
Pure / fixed-trace soundness bridge for Micali verification
([CY24], Lemma 18.5.7 and Theorem 21.2.1): if tr is collision-free and records all
hash steps of the openings in proof : MicaliProof, then
micaliVerifyPure hTree hFS V x proof = true implies that the PCP verifier V accepts the
extracted proof micaliExtractProof V tr x proof.root on every challenge string
ρ ∈ hFS (x, proof.root) of length V.coins x.
Disjunctive fixed-trace soundness of micaliVerifyPure: if micaliVerifyPure accepts
proof and all opened paths are in tr, then either tr contains a hash collision
(¬ TraceCollisionFree tr) or V accepts the extracted proof
micaliExtractProof V tr x proof.root on every challenge string of length V.coins x in
hFS (x, proof.root).
Dual collision extraction for micaliVerifyPure: if tr is consistent with H k and
records all opened paths of a proof accepted by micaliVerifyPure (H k) hFS V x proof, yet V
rejects the extracted proof micaliExtractProof V tr x proof.root on some challenge
ρ ∈ hFS (x, proof.root) of length V.coins x, then tr contains two distinct queries with the
same hash under H k.
Part 2: Fiat–Shamir Challenge Union Bound & Two-Stage ROM Soundness #
A Fiat–Shamir query-answer trace tr_FS has no accepting false-statement entry relative to the
Merkle trace tr if for every recorded ((x, rt), ρs) ∈ tr_FS with x ∉ L, the PCP verifier V
rejects micaliExtractProof V tr x rt on at least one challenge ρ ∈ ρs.
Fiat–Shamir challenge union bound: any program making at most Q_FS queries to the lazy
Fiat–Shamir oracle starting from the empty trace violates FSTraceSound V L tr with probability at
most Q_FS * (1 / 2) ^ m.
List-cache state for the two-channel Micali random oracle: a Merkle hash trace and a Fiat–Shamir challenge trace.
Good-state invariant of the two-channel Micali ROM state (tr_MT, tr_FS): the Merkle trace
tr_MT is collision-free and the Fiat–Shamir trace tr_FS has no accepting false-statement entry
relative to tr_MT.
Two-stage ROM soundness bound (combining
toOuterMeasure_run_memoize_not_traceCollisionFree_le with
toOuterMeasure_run_memoize_not_fsTraceSound_le): if a first stage mtProg makes at most Q_MT
queries to a uniform σ-bit Merkle random oracle (producing a state st and Merkle trace tr) and
a second stage fsProg st makes at most t_FS + 1 queries to the Fiat–Shamir random oracle
(producing a Fiat–Shamir trace tr_FS), then the probability that the final trace state
(tr, tr_FS) is not a MicaliGoodState (tr has a collision or tr_FS violates
FSTraceSound V L tr) is at most (t_FS + 1) * (1 / 2) ^ m + Q_MT * (Q_MT * (1 / 2 ^ σ)).
Part 3: Full Adaptive Two-Channel ROM Soundness #
Invariance of trace extraction under non-inverting Merkle additions #
Prepending (q, ans) to tr leaves micaliExtractProof at rt unchanged whenever ans ≠ rt
and ans does not equal unframe p.1 or dropFrame p.1 for any p ∈ tr.
Two-channel query costs, good-state invariant, and accumulated bad-state lemma #
The Micali soundness execution as an OracleComp (MicaliSpec α) program: run the cheating
prover P to obtain (x, proof), run micaliVerify V x proof, and return true when x ∉ L and
the verifier accepts.
If the cheating prover P makes at most t_FS Fiat–Shamir queries, then
micaliSoundnessProg V L P makes at most t_FS + 1 Fiat–Shamir queries.
If P makes at most t_MT Merkle hash queries and micaliVerify V x proof makes at most
q_V Merkle hash queries for every (x, proof) that P can output, then
micaliSoundnessProg V L P makes at most t_MT + q_V Merkle hash queries.
The Micali ROM soundness experiment with σ-bit Merkle digests and m PCP repetitions: runs
micaliSoundnessProg V L P against the shared lazy random oracle
RandomOracle.answer (micaliOracleDist V σ m) starting from an empty cache.
Two-channel association-list handler implementing
RandomOracle.answer (micaliOracleDist V σ m): Merkle queries are memoized in the first trace and
Fiat–Shamir queries in the second.
Support invariants of memoize, kilianVerifyProg and micaliVerify #
Adaptive ROM soundness for the unsalted two-channel variant (compare [Mic00];
[CY24], Theorem 21.2.1, printed pp. 241–242):
for any PCP verifier V whose soundness error on statements outside L is at most 1 / 2 per
repetition, and any cheating prover P making at most t_FS Fiat–Shamir queries such that the
combined execution micaliSoundnessProg V L P makes at most Q_MT Merkle hash queries, the
probability that P outputs (x, proof) with x ∉ L accepted by micaliVerify is at most
(t_FS + 1) * (1 / 2) ^ m + Q_MT * ((3 * Q_MT + (t_FS + 1)) * (1 / 2 ^ σ)).
Micali's ROM Soundness Theorem (separate prover/verifier Merkle budgets): if the cheating
prover P makes at most t_MT Merkle hash queries and at most t_FS Fiat–Shamir queries, and
micaliVerify V x proof makes at most q_V Merkle hash queries for outputs in P.support,
then micaliSoundnessGame
accepts a false statement with probability at most
(t_FS + 1) * (1 / 2) ^ m + (t_MT + q_V) * ((3 * (t_MT + q_V) + (t_FS + 1)) * (1 / 2 ^ σ)).
Part 4: Succinctness of Micali Proofs and CS-Proofs for NP #
The payload bits of a non-interactive Micali proof: the Merkle root and the opening responses.
Honest Micali proof size in the PCP parameters: with σ-bit Merkle digests and m
Fiat–Shamir challenge strings of r = V.coins x bits, the honest proof micaliProvePure has at
most σ + m * (q * (1 + (r + ⌈log₂ q⌉) * σ)) payload bits.
Polylogarithmic Micali proof size: for a verifier with at most c * (log₂ |enc x| + 1)
random bits and at most q queries per random string, the honest proof micaliProvePure with
σ-bit Merkle digests and m repetitions has at most
(1 + q + q * c + q * ⌈log₂ q⌉) * (σ + m + 1) ^ 2 * (log₂ |enc x| + 1) payload bits.
Micali's CS Proofs for arbitrary NP relations in the Random Oracle Model
([Mic00]; compare [CY24], Construction 21.1.1 and Theorem 21.2.1): every NP relation
R : NPRelation enc has a polynomial-time PCP verifier V with O(log n) random bits and at most
d queries per random string together with a polynomial-time witness compiler
compile : α × List Bool → List Bool such that:
compileturns everyR-witness into a table accepted byV.tableVerifier, and the honest Micali ROM protocol acceptscompile (x, w)with probability1for everyR.IsWitness x w(micaliHonestGame_eq_pure_true),- the protocol satisfies the unconditional ROM soundness bound
micaliSoundness_boundagainst any cheating proverPwith Fiat–Shamir budgett_FSand total Merkle budgetQ_MT, and - honest proofs have
O((σ + m + 1)² · (log₂ |enc x| + 1))payload bits.
Micali's CS Proofs for NP in the Random Oracle Model
([Mic00]; compare [CY24], Construction 21.1.1 and Theorem 21.2.1): every language
L ∈ NP has a polynomial-time PCP verifier V with O(log n) random bits and a constant number
of queries whose accepted compact tables (V.tableVerifier) characterize L, such that Micali's
non-interactive ROM protocol over V:
- accepts the honest prover with probability
1on every accepted compact table (micaliHonestGame_eq_pure_true), - satisfies the unconditional ROM soundness bound
micaliSoundness_boundagainst any cheating proverPwith Fiat–Shamir budgett_FSand total Merkle budgetQ_MT, and - produces honest proofs of
O((σ + m + 1)² · (log₂ |enc x| + 1))payload bits.