Conversation
Note: this commit was made making some use of `claude-3.5-sonnet` using Cursor (https://www.cursor.com/).
Adjust the `fun_balanceOf_abs_of_concrete` lemma so that `fun_balanceOf_user.lean` still builds successfully.
Copied across `Wheels.lean` and `ProofGenerator.hs` from `Ferinko/Workshop` branch, currently 7631d8. Co-authored-by: Frantisek Silvasi <silvasi.frantisek@gmail.com>
Restore existing proofs overwritten by the generator.
This makes the invocations of `clr_varstore,` behave the same as `clr_varstore` without the comma did prior to the changes to `Wheels.lean` in 61166b.
See the Solidity code this comes from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.2/contracts/token/ERC20/ERC20.sol#L307
Moved into `Predicate.lean`
Also add `sorry`s where this lemma was used.
Includes multiple `sorry`s.
For `_transfer` and `spendAllowance`
…wance` specs, in the success cases These functions are not pure.
And regenerate `erc20shim.yul`
Deleted `ERC20Shim` folder (and `All.lean`), regenerated using `vc`, then manually reverted some files in order to keep existing specs and proofs.
This file was accidentally overwritten while bringing in the changes from the `vc` generator in commit 6848b5.
Restore `balanceOf` spec and proof
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.
This pull request, currently a DRAFT, is to prepare for merging the ERC-20 example into
main.This is a work in progress.