Migrate Lido locked case to executable Verity contract#17
Open
Migrate Lido locked case to executable Verity contract#17
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
vaulthub_lockedcase from a pure helper-only shape to an executable Verity contract entrypoint viaVaultHubLocked.syncLockedVerification
lake build Benchmark.Cases.Lido.VaulthubLocked.Compile./scripts/run_case.sh lido/vaulthub_lockedlake build Benchmark.Generated.Lido.VaulthubLocked.Tasks.ReserveRatioBoundsnow fails only at the intentional?_placeholder in the public templateNote
Medium Risk
Refactors the
vaulthub_lockedbenchmark from a pure model to an executable contract run with new storage effects (slot6) and updates specs/proofs accordingly, so mistakes could invalidate the intended solvency property despite being proof-checked.Overview
Migrates the Lido
vaulthub_lockedbenchmark to an executable Verity entrypointVaultHubLocked.syncLockedthat computes the_lockedamount from storage slots0..5, stores the result in a newlockedAmountslot6, and returns it.Restates the F-01 solvency spec over the post-state of running
syncLocked(readings'.storage 6), adds helpers (vaultState,lockedRunResult,lockedPostState) to model execution, and updates reference proofs to bridge the executable run back to the existing purelockedarithmetic lemma.Minor generated task templates are adjusted to
open Verity, and the case README is updated to document the new executable-contract shape and clarify generated task files are public templates (not part of the green build).Written by Cursor Bugbot for commit 7eb60a2. This will update automatically on new commits. Configure here.