Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove or alter use of stateAssert #787

Open
michaelmcinerney opened this issue Jul 11, 2024 · 0 comments
Open

Remove or alter use of stateAssert #787

michaelmcinerney opened this issue Jul 11, 2024 · 0 comments
Labels

Comments

@michaelmcinerney
Copy link
Contributor

stateAssert is currently used within the design spec to assert properties about the state. However, given that we do not translate the string associated with the Haskell assert into the design spec, our use of stateAssert offers no benefit over state_assert.

We should investigate replacing stateAssert with state_assert, which would require a change to the Haskell translator.

Alternatives include

  • having a global simp that turns stateAssert into state_assert and rewriting our corres_underlying/ccorres_underlying rules in terms of state_assert, or

  • providing lemmas statements for our existing corres_underlying/ccorres_underlying rules to use state_assert instead of stateAssert, for example ccorres_stateAssert[simplified stateAssert_def] or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants