Skip to content

Add retained-key Hash.Real/Ideal presentations and one-query collision lifting - #459

Merged
MarcIlunga merged 3 commits into
mainfrom
feat/hash-keyed-extractor
Nov 24, 2026
Merged

MarcIlunga merged 3 commits into
mainfrom
feat/hash-keyed-extractor

Conversation

@MarcIlunga

@MarcIlunga MarcIlunga commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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_sample exposes the single retained key. The ideal presentation and its attachment law specialize the real laws to the identity hash. TypedSystem.source_eq_ofProbAutomaton supplies the fresh source presentation.

Tests.HashExtractor checks injective domain extension, the advantage equality, and use with cc_normalize and cc_calc mixed.

Closes #456. Advances #14 and #413.

… 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
MarcIlunga force-pushed the feat/hash-keyed-extractor branch from 672c95d to d5d779e Compare November 24, 2026 12:12
@MarcIlunga
MarcIlunga merged commit 5f2dc79 into main Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add retained-key Hash.Real/Ideal presentations and one-query collision lifting

1 participant