-
Notifications
You must be signed in to change notification settings - Fork 25
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
some trigger updates #25
base: master
Are you sure you want to change the base?
some trigger updates #25
Conversation
…y selected trigger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor suggestions. I think we had also discussed updating the README or STYLE file with a note along the lines of "The {:trigger} annotations used in the standard library are an advanced topic and should not be needed when starting out on Dafny projects."
Cool, thanks for the changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank you. It really good to see so many manual triggers go. I have a few specific comments below.
/* Dafny selected triggers: {x in xs}, {x in m}, {x in m'} */ | ||
ensures forall x {:trigger x in m'} :: x in m' ==> x in m && x !in xs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trigger in the other direction (that is, x in m
) seems equally useful to me. Is there a reason not to include it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the ensures is an implication, we might only want the x in m'
? My limited understanding is that we are ensuring the properties of m'
, rather than the original m
. So might not be necessary to invoke this fact every time we see the original map.
@RustanLeino I believe Yi has addressed all of the issues you raised. Is this ready to be merged? |
removed some tiggers that repeats dafny's selection
added some comments for dafny selected trigger