Repository navigation
Description
Background
How can adaptive security proofs over a bidirectional ideal permutation StrongURP X (such as sponge collision resistance, sponge indifferentiability, and other permutation-based constructions) monitor an arbitrary downward-closed predicate on the recorded partial-permutation query table and translate per-step bad-event bounds directly into adaptive winning-probability and CC statistical distance bounds without duplicating Bidirectional / UntilBad / StrongURP accounting?
Commons.Definitions.Ideal defines StrongURP X on Bidirectional X q, Commons.Schemes.Sponge.Table defines directed partial-permutation tables (PermutationEdge, insertEdge, queryEdge, AgreesWith), and Probability.Permutation.Walk (#466) proves conditional reply-event upper bounds for fresh forward and inverse permutation queries. Extracting the sponge-independent table-monitoring game and one-step/linear-cost reduction engine into Commons.Definitions.PermutationTableGame mirrors Commons.Definitions.CollisionGame (Commons.URF) and Commons.Definitions.LazyPermutation (Commons.URP).
Proposed change
Add Commons.Definitions.PermutationTableGame (src/Commons/Definitions/PermutationTableGame.lean, namespace Commons.StrongURP):
- Bidirectional transcript-to-table bridge:
- Define
portIsInverse,queryPoint,permReply,permEval,queryHistoryTable,transcriptEdge,transcriptTable, andrecordedInputs. - Prove consistency and cardinality lemmas (
recordedInputs_card_le,length_transcriptTable_le,queryHistoryTable_subset_of_prefix,queryHistoryTable_eq_transcriptTable_of_replies,permEval_forall_iff_agreesWith,agreesWith_iff_recordedInputs,replies_permReply_iff).
- Define
- Generic monotone table-monitoring game on
StrongURP:- Define
tableMonitorGame q Good hGood_mono : TypedGame (Bidirectional X q)setting the MBO as soon as¬ Good (queryHistoryTable q π xs). - Prove
tableMonitorGame_visible : (tableMonitorGame q Good hGood_mono).visible = StrongURP X (q := q). - Prove
strongURP_mass_eq,tableMonitorGame_unsetMBOs_eq, andtableMonitorGame_set_mass_eq. - Prove
tableMonitorGame_set_mass_le_of_badEvent: replayed queries cost zero and fresh forward/inverse queries pay at most(|X| / (|X| - q)) · stepBound h.lengthwhenever the fresh reply triggers¬ Goodwith uniform state mass at moststepBound table.length.
- Define
- Linear step-cost summation and CC distance / substitution bridge:
- Prove
transcriptCost_linear_sum,dist_visible_le_of_winProbability_le(Δ,|≡), andsubstitutesWithin_of_dist_le(≃[...]). - Prove
tableMonitorGame_winProbability_le_of_linear,tableMonitorGame_win_le_of_linear, andtableMonitorGame_dist_le_of_linearsumming linear per-step boundsa · (n + 1) + b · ninto(|X| / (|X| - q)) · (a · C(q + 1, 2) + b · C(q, 2)).
- Prove
Acceptance criteria
Tests.PermutationTableGameverifies:tableMonitorGame_visiblerecoversStrongURPon a concrete finite domain (Fin 8,q = 3).- Direct instantiation of
tableMonitorGame_set_mass_le_of_badEventandtableMonitorGame_win_le_of_linearon a concrete downward-closed table predicate. tableMonitorGame_dist_le_of_linear,substitutesWithin_of_dist_le,cc_normalize, andcc_calc statisticalcompatibility under CC custom notation (Δ,|≡,•,≃[...]).#print axiomson all exported theorems confirming dependence only onpropext,Classical.choice, andQuot.sound.
lake build --wfail,scripts/check-sources.sh,scripts/check-axioms.sh, andlake env lean -Dweak.linter.mathlibStandardSet=truepass with zero warnings.
Activity