Forbidden Merkle digests, out-of-order Fiat–Shamir targets, and bad-state bounds for bcsMemoize #
Bounds the single-step and accumulated probability that an adaptive two-channel BCS random-oracle
execution violates BCSGoodState, using bcsForbiddenDigests (restricted to the first r roots of
each Fiat–Shamir query) on the Merkle channel, fsOutOfOrderTargets on the Fiat–Shamir channel, and
a private sticky-bad handler wrapper bcsStickyMemoize analyzed via
OracleComp.toOuterMeasure_bad_le_two_budgets ([BSCS16]; compare
[CY24], Chapters 18, 25, 26, and 31).
Main definitions #
Cslib.Crypto.Protocols.BCS.bcsForbiddenDigests: digests that a fresh Merkle hash answer must avoid to preserveBCSGoodStateand root-extraction stability.Cslib.Crypto.Protocols.BCS.fsOutOfOrderTargets: previously queried challenge components that bound out-of-order Fiat–Shamir chain guessing.
Main results #
Cslib.Crypto.Protocols.BCS.length_bcsForbiddenDigests_le,Cslib.Crypto.Protocols.BCS.mem_bcsForbiddenDigests_of_not_bcsGoodState_cons,Cslib.Crypto.Protocols.BCS.length_fsOutOfOrderTargets_le: cardinality and bad-transition containment bounds forbcsForbiddenDigestsandfsOutOfOrderTargets.Cslib.Crypto.Protocols.BCS.toOuterMeasure_memoize_not_bcsChainDoomed_step,Cslib.Crypto.Protocols.BCS.toOuterMeasure_bcsMemoize_not_goodState_step,Cslib.Crypto.Protocols.BCS.toOuterMeasure_run_bcsMemoize_not_goodState_le: single-step and two-budget accumulated outer-measure bounds on violatingBCSGoodStateunderbcsMemoize.
References #
Digests that a fresh Merkle hash output must avoid to preserve BCSGoodState: existing Merkle
outputs, left/right child digests of existing Merkle queries, and the first r roots of every
existing Fiat–Shamir query. Restricting each Fiat–Shamir entry via List.take r makes the list
length independent of adversarial Fiat–Shamir root-list sizes.
If BCSGoodState holds on st and prepending (msg, ans) to st.1 violates BCSGoodState,
then ans belongs to bcsForbiddenDigests r st.
Candidate challenges at challenge-list index idx already anticipated by existing Fiat–Shamir
trace entries (used to bound out-of-order Fiat–Shamir chain guessing).
Single-step Fiat–Shamir bad-event bound: from a state (tr_MT, tr_FS) satisfying
BCSChainDoomed, one call to memoize (fun _ => PMF.uniformOfFintype Chal) violates
BCSChainDoomed with probability at most ε_rbr + tr_FS.length * (1 / Fintype.card Chal).
The sticky-bad wrapper bcsStickyMemoize runs bcsMemoize and records in a flag whether
any step was bad. Forgetting the flag recovers bcsMemoize
(run_interpret_bcsStickyMemoize_map), so the bad-state bounds of bcsMemoize below follow from
those of the wrapper.
Single-step bad-state bound for bcsMemoize: from a good state st, a call q violates
BCSGoodState with probability at most
bcsMTCost q * ((3 * st.1.length + r * st.2.length) * (1 / 2 ^ σ)) +
bcsFSCost q * (ε_rbr + st.2.length * (1 / Fintype.card Chal)).
Accumulated bad-state bound for bcsMemoize: any program with Merkle query budget Q_MT
and Fiat–Shamir query budget Q_FS starting from ([], []) violates BCSGoodState with
probability at most
Q_FS * (ε_rbr + Q_FS * (1 / Fintype.card Chal)) + Q_MT * ((3 * Q_MT + r * Q_FS) * (1 / 2 ^ σ)).