Repository navigation
Add retained-key Hash.Real/Ideal presentations and one-query collision lifting - #459
Merged
Merged
Conversation
… lifting Add `Commons.Definitions.Hash.Keyed`, giving the keyed-collision DSL systems `Hash.Real` and `Hash.Ideal` a retained-key presentation (`Hash.Real.eq_sample`, `Hash.Ideal.eq_sample`) using CC's `sample k ←$ 𝒰[K]` notation via a shared `Hash.source_eq_ofProbAutomaton` lemma. Provide the stateless one-query pair-routing converter `Hash.extractConverter` for key-independent pair extractors `extract : M' × M' → M × M` (covering unkeyed hashes and key-independent domain extensions), along with `Hash.extractConverter_smul_real`, `Hash.extractConverter_smul_ideal`, `Hash.CR.of_extractor`, and lossless advantage transport `Hash.CR.advantage_eq_of_extractor`. Add `Tests.HashExtractor` exercising domain extension, exact advantage transport, `cc_normalize` and `cc_calc mixed` tactic interoperability, and standard-axiom checks. Closes #456
MarcIlunga
force-pushed
the
feat/hash-keyed-extractor
branch
from
November 24, 2026 12:12
672c95d to
d5d779e
Compare
…ctor # Conflicts: # src/Tests.lean
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.
A key-independent extractor maps each outer message pair to one inner pair. If it preserves digest equality at every key and message equality in the ideal system, the outer observer has exactly the advantage of its absorbed inner observer. Collision resistance transfers with the same query budget and the inside error evaluated at that observer.
Hash.Real.eq_sampleexposes the single retained key. The ideal presentation and its attachment law specialize the real laws to the identity hash.TypedSystem.source_eq_ofProbAutomatonsupplies the fresh source presentation.Tests.HashExtractorchecks injective domain extension, the advantage equality, and use withcc_normalizeandcc_calc mixed.Closes #456. Advances #14 and #413.