Repository navigation
proof(xmss): relate full words to shared byte conversions - #839
Closed
alexanderlhicks wants to merge 2 commits into
Closed
alexanderlhicks wants to merge 2 commits into
alexanderlhicks wants to merge 2 commits into
Conversation
…lemmas The shared byte module already has the map from a bit vector to its little-endian bytes, and both inverse laws. The bijection of 8n-bit vectors with n-byte vectors is now built there from those lemmas. So the fact is proved once, for leanXMSS and leanSPHINCS alike. The XMSS copy and its sampler theorem are removed. The sampler theorem only applied a VCVio lemma, and no proof used it. No existing statement changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcoratger
force-pushed
the
codex/xmss-layer-callbacks
branch
from
November 6, 2026 09:43
711d847 to
bc5fde2
Compare
tcoratger
force-pushed
the
codex/xmss-vcv-bytes
branch
from
November 6, 2026 09:43
a9e5863 to
3504039
Compare
Collaborator
|
XMSS was removed from EthLib in #5461; the formalization of leanVM, including its hash-based signatures, now lives in https://github.com/leanEthereum/leanVM. Closing this pull request here. |
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.
The XMSS proof gains a word-to-bytes equivalence built from EthLib's shared little-endian conversions.
Both inverse laws hold at every byte length, including zero.
Stacked on #785.
The problem
A random-oracle model must retain all 256 bits of each hash reply before the signer selects a 16-byte half.
The shared byte conversions already implement the required encoding.
Reduction proofs need an equivalence that connects these conversions to VCVio's sampler transport.
The idea
wordBytesEquiv npairs the existing conversions and proves that they are inverse.uniform_wordBytesapplies VCVio's existing equivalence transport theorem.Its conclusion concerns the transported sampler and states the required measurable-space and singleton hypotheses explicitly.
Example
At byte length zero, the unique zero-width word maps to the empty vector and back.
At byte length 32, the equivalence retains the full 256-bit word.
Two words with the same low 128 bits and different high 128 bits therefore remain distinct byte vectors.
For reviewers
The new declarations live in
Unforgeability.VCV, alongside the existing proof namespace.The implementation reuses the shared conversions without importing the existing security proof.
The sampler theorem supplies no new global sampler instance.
This bridge adds no unforgeability bound.
Checks
Validation uses parent
711d8478over master59d8233e, with VCVio pinned tobbf05eee.A later source audit found no XMSS, toolchain or Lake changes through master
8c6c1944.The full build below tests
59d8233ewith the stacked additions.lake build --wfail: passed, 6,016 jobs.lake exe check-decls: passed, 53,254 declarations and zero findings or baseline entries.The soundness and release-manifest Python unit tests also passed.
The binding and vector suites were skipped because their sources and interfaces are unchanged.
Prepared by OpenAI Codex, an AI coding agent.