Skip to content

Conversation

@cilinder
Copy link

implement two new instances

GetElem State Identifier Literal fun _ _ => True

GetElem State String Literal fun _ _ => True

so we can use the standard s[var] notation (along with its ! and ? versions).

The condition for validity is simply True as variables are all initialized with a default value of 0.
Perhaps this should check that the state is not OutOfFuel?

Needed to add some lemmas, so that everything still compiles, for instance so that we can use string literals in place of identifiers and connecting lemmas between the two instances Also added the new lemmas to the clr_varstore tactic so it can handle the example case of peano.

implement GetElem instance for state and identifier so we can use the standard `s[var]` notation instead of the double exclamation mark.

Needed to add some lemmas, so that everything still compiles, for instance so that we can use string literals in place of identifiers and connecting lemmas between the two instances
Also added the new lemmas to the clr_varstore tactic so it can handle the example case of peano.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant