Source-shaped dynamic event proof surface (#2000)#2020
Open
Th0rgal wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4 tasks
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
eventParamSourceShapeProofSupported_of_scalar/eventDefSourceShapeProofSupported_of_scalarkeep the existing scalar-event semantic bridge intact and additivePart of #2000. Stacked on #2017 (task/1974-reverterror-args).
Note: the word-by-word semantic bridge remains the scalar bridge; this adds the dynamic/struct proof surface without claiming the scalar bridge proves non-scalar log execution.
Test plan
lake build Verity Contracts Compiler PrintAxioms— Build completed successfullyscripts/refresh_verification_artifacts.sh— [refresh] PASSmake check— All checks passedNote
Low Risk
Proof-catalog additions only; existing scalar event emission semantics and bridges are explicitly unchanged.
Overview
Adds additive proof-side predicates in
SupportedSpec.leanfor ABI event declarations with dynamic/struct payloads, separate from the existing scalareventEmissionProofSupportedbridge (word-by-word log semantics stay scalar-only).eventParamSourceShapeProofSupportedis currently a permissive catalog (truefor all representedParamTypeconstructors).eventDefSourceShapeProofSupportedchecks all params pass that catalog, at most three indexed params, andeventDefScratchBounded.eventParamSourceShapeProofSupported_of_scalarandeventDefSourceShapeProofSupported_of_scalarshow scalar-supported events still satisfy the new surface.Four
rflsmokeEventDefexamples (dynamic tuples, static struct tuples, indexed dynamic struct arrays, fixed arrays + ADT) document that non-scalar payload shapes are admitted by the new predicate.PrintAxioms.leanregisters the two new theorems and bumps the public theorem count by 2.Reviewed by Cursor Bugbot for commit 22d551a. Bugbot is set up for automated code reviews on this repo. Configure here.