prototype: prove Glamsterdam write-prepayment liveness - #1
Closed
chugarchugarr wants to merge 8 commits into
Closed
Conversation
Owner
Author
|
Superseded by #2, which contains the four named proof assertions and the successful focused proof run: https://github.com/chugarchugarr/execution-specs/actions/runs/32996887596 Closing this earlier phase without deleting its branch or history. The active public record is chugarchugarr/-x402-resolution-receipt#2. |
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.
Phase 1: executable falsification gate
Pinned base:
ethereum/execution-specs@20f7f6271a720091e5fea0a82e7bc802866ae36a(forks/amsterdam).This PR deliberately does not modify consensus semantics yet. It first proves the two invariants required before a write-voucher encoding is worth implementing:
Osaka PASS -> Amsterdam FAIL -> Amsterdam + prepayment PASS;Minimal case
Existing non-zero slot, two PUSHes + SSTORE, fixed child gas = 5,006.
2,100 + 2,900 + 6 = 5,006-> PASS2,100 + 10,000 + 6 = 12,106-> FAIL100 + 2,800 + 6 = 2,906-> PASSConservation
STORAGE_WRITEdelta =10,000 - 2,800 = 7,200.Ordinary Amsterdam storage work:
2,100 + 10,000 = 12,100.Prepaid split:
2,000 access-list key + 100 warm runtime + 7,200 prepayment + 2,800 legacy write = 12,100.Account access independently conserves:
3,000 = 2,900 access-list address + 100 warm runtime.Total core call/storage resource charge therefore remains
15,100.Gate
If CI passes, the next branch change will implement explicit opt-in voucher state/rollback semantics and test nested calls, reverts, restoration/refunds, duplicates, and EIP-8037 interaction. Mainnet bytecode/value scanning stays out of scope until those semantics survive.