-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add dicts and gomap packages #13
Conversation
As discussed in the meeting, I will look at the PR again when the changes to the theorems about Go maps are adapted. |
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.
I will look at dicts.gobra
later.
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.
lgtm, just a few minor comments
decreases | ||
pure func Agree(m1, m2 map[int]int) (result bool) { | ||
return forall k int :: {m1[k], m2[k]} k in (domain(m1) intersection domain(m2)) ==> | ||
m1[k] == m2[k] |
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.
identation looks inconsistent
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.
I agree that it looks off; however, it is consistent in the sense that in forall x :: a ==> b
, if b
is in a new line, it is indented by one relative to forall
(compare with IsMonotonic
and IsInjective
, for example) . Removing that indentation everywhere probably will look off again somewhere.
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.
I think that, in some places, the indentation is relative to the the return
. At any rate, let's ignore it for now. Hopefully, we will have an automated formatter at some point
No description provided.