Execution summary frame theorems (#1994)#2009
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jun 12, 2026
# Conflicts: # PrintAxioms.lean
Contributor
| \n### CI Failure Hints\n\nFailed jobs: `build`\n\nCopy-paste local triage:\n```bash\nmake check\nlake build\nFOUNDRY_PROFILE=difftest forge test -vv\n``` |
Member
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5b3c464. Configure here.
# Conflicts: # PrintAxioms.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.
Summary
ExecutionSummarymachinery toCompiler/Proofs/Frames.leanfor summarizing generated function bodies: storage/address/array frame predicates (PreservesStorageExcept,PreservesAddressStorageExcept,PreservesStorageArraysExcept).ExecutionSummary.refl/weaken/trans) and generated-body bridge theorems (execStmt_setStorage_execution_summary,execStmt_setStorageAddr_execution_summary,execStmtList_execution_summary_cons).writeUintSlots,writeStorageWordSlots,writeAddressSlots,writeStorageArray.PrintAxioms.lean(zero new axioms).Toward #1994; downstream consumer is Morpho Blue
Proofs/Disciplines.leanlocal-axiom discharge. Complements the #1990 stack (#2005/#2007/#2008) — based on main, may need a trivial rebase after that stack lands since both extend Frames.lean.Test plan
lake build Verity Contracts Compiler PrintAxioms→ "Build completed successfully."refresh_verification_artifacts.sh→[refresh] PASSmake check→ "All checks passed."Note
Low Risk
Proof-only additions in Frames.lean and PrintAxioms registration; no runtime or auth behavior changes.
Overview
Adds
ExecutionSummaryinCompiler/Proofs/Frames.lean: a bundled record of “what changed” across bindings, storage slots, address storage, storage arrays, and selector/calldata, withrefl,weaken, andtransfor composing summaries along successful runs.New “except written slots” lemmas for
writeUintSlots,writeStorageWordSlots,writeAddressSlots, andwriteStorageArray, plus bridge theorems thatsetStorage/setStorageAddrsuccessfulexecStmtsteps yield anExecutionSummary, andexecStmtList_execution_summary_conschains stmt + rest viaExecutionSummary.trans.PreservesSelectorCalldatais hoisted next to the other preservation abbreviations.Compiler.leanimportsCompiler.Proofs.Frames;PrintAxioms.leanregisters the new public theorems (theorem count 5227 → 5240, no new axioms).Reviewed by Cursor Bugbot for commit 52c3ff7. Bugbot is set up for automated code reviews on this repo. Configure here.