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

make <==> chain like ==. or making chaining <==> an error #512

Open
kjx opened this issue Dec 29, 2024 · 0 comments
Open

make <==> chain like ==. or making chaining <==> an error #512

kjx opened this issue Dec 29, 2024 · 0 comments

Comments

@kjx
Copy link

kjx commented Dec 29, 2024

I remembered <==> has a lower binding strength than ==, but not that <==> didn't chain.
Debugging something like this took me an hour or so.

an obvious solution is to either make <==> chain like == or making chaining <==> an error

lemma chain(a : bool, b : bool, c : bool)
  requires a <==> b 
  requires b <==> c
  ensures  a  ==  b  ==  c
  ensures  a <==> b <==> c
  {}

I honestly can't understand why one would write a <==> b <==> c meaning a <==> (b <==> c) ---especially when both brackets and a <==> b == c is available for the other sense.

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

No branches or pull requests

1 participant