feat(MacFromPRF): deterministic MAC from PRF is UF-CMA secure (Boneh-Shoup Thm 6.2)#414
Open
astefano wants to merge 1 commit into
Open
feat(MacFromPRF): deterministic MAC from PRF is UF-CMA secure (Boneh-Shoup Thm 6.2)#414astefano wants to merge 1 commit into
astefano wants to merge 1 commit into
Conversation
…Boneh-Shoup Thm 6.2) Construct the PRF distinguisher from a UF-CMA forger and prove UF_CMA_Advantage(A) ≤ prfAdvantage(prf, B) + 1/|R|. Also adds wasQueried_cons_self/wasQueried_cons_of_ne to Structures.lean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🤖 PR SummaryMathematical Formalization
Infrastructure and Utility
Statistics
Lean Declarations ✏️ **Added:** 16 declaration(s)
📋 **Additional Analysis**No findings. 📄 **Per-File Summaries**
Last updated: 2026-05-28 06:32 UTC. |
dtumad
reviewed
May 30, 2026
| exact hq ((getQ_ne_nil_iff_mem_map_fst log t).mpr hm) | ||
| simp [wasQueried, hq, hm] | ||
|
|
||
| lemma wasQueried_cons_self [spec.DecidableEq] {t : spec.Domain} {u : spec.Range t} |
Collaborator
There was a problem hiding this comment.
These two lemmas can probably be marked @[simp].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR formalizes Theorem 6.2 from Boneh-Shoup: a deterministic MAC constructed from a secure PRF is UF-CMA secure, with an explicit advantage bound. It adds
VCVio/CryptoFoundations/MacFromPRF.lean(PRF-to-MAC bridge, reduction adversary, and the security theoremprfMac_ufcma_advantage_le). It also adds a small helper (logCache_subset_queryLog) inVCVio/OracleComp/QueryTracking/Structures.lean.closes #408
Made with Cursor