verity: discharge C13 layer-1 bridge axioms#10
Merged
Conversation
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.
Summary
C13ResidualLayer1InputsProofs.lean, where the existing layer-0/after-Merkle facts are already availableVerification
cd verity && ./scripts/build.sh SphincsMinusVerifiers.Proofs#print axioms SphincsMinusVerifiers.c13_refines_specreports only[propext, Classical.choice, Quot.sound]Note
Low Risk
Lean-only proof refactor with no runtime behavior change; risk is localized to whether the new bridge proofs are correct relative to the removed axioms.
Overview
Removes the two layer-1 bridge axioms from
C13ResidualLayer1Inputsand replaces them with explicit hypotheses on the residual layer-1 theorems: first-layerstepLayerkeeps seed at memory0x00, and the second-layer guard’s"currentNode"binding matchesd.root0.Call sites in
C13ResidualLayer1Assemblyand the largeProofs.leanlayer-1 residual chain now takehStepSeedandhCurrent0RootBridgeinstead of proving those facts locally from axioms.Proofs.leansupplies the proofs: seed via existing layer-0stepLayer/ memory-zero lemmas (rewritten through residual guard-state equalities), andc13_layer1_current0Root_of_layer0_wotsPk, which derives"currentNode"from the already-composed layer-0 after-Merkle WOTS-PK / XMSS climb facts.Reviewed by Cursor Bugbot for commit 6f37525. Bugbot is set up for automated code reviews on this repo. Configure here.