-
Notifications
You must be signed in to change notification settings - Fork 40
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
Compile where clauses #23
Conversation
omelkonian
commented
Nov 8, 2020
- also compiling postulates to undefined
c1f7edf
to
0d2e250
Compare
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.
If you try to add an argument to ex
and use it in one of the where
functions it fails. I don't think it's worth doing this if it only works for definitions without left-hand sides.
Also, do you have a use case in mind for compiling postulates to undefined? I can't think of situation where you would actually want this...
I see, the problem is that the definitions inside
Re. postulates, you will never want it in the end result, but it seems useful while prototyping: think of a :: A
a = undefined (another way to do it is add a postulate in |
This should be possible. There's an |
Hm.. since the objective is to prove things about the code, I'd rather not add |
c5203c8
to
e9694fc
Compare
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.
Progress! Still doesn't quite work for functions with multiple clauses.
a0f2b2f
to
ec44f1b
Compare
* also compiling postulates to undefined
If nothing else this makes it easier to debug failures when we try to translate generated types.
ec44f1b
to
29a88e7
Compare
29a88e7
to
f20604c
Compare
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.
We're getting there! Some cosmetics and a problem with finding local declarations.
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.
Good job!