l4v
l4v copied to clipboard
Remove or alter use of `stateAssert`
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 turnsstateAssert
intostate_assert
and rewriting ourcorres_underlying/ccorres_underlying
rules in terms ofstate_assert
, or -
providing
lemmas
statements for our existingcorres_underlying/ccorres_underlying
rules to usestate_assert
instead ofstateAssert
, for exampleccorres_stateAssert[simplified stateAssert_def]
or similar