-
Notifications
You must be signed in to change notification settings - Fork 62
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 saw-script functions term_eval
and term_eval_unint
.
#927
base: master
Are you sure you want to change the base?
Conversation
dd1e327
to
a25518f
Compare
We might want to reconsider the naming of these operations. |
Currently this only works for first-order values; function types are not supported yet.
These are analogous to the `goal_eval` and `goal_eval_unint` proof tactics, but instead of proof goals they work on arbitrary terms.
Landing this would address one aspect of #1788. |
I think the conclusion is that we want this functionality, and I see no reason to start over rather than taking this code. So I'm going to see if it's still buildable. |
Answer: it wasn't, but was easily fixed. I'm going to un-draft it, I think, at least until we identify any reasons it's not ready. @RyanGlScott do you have any examples we could add into the test suite? I am pretty sure I understand what it's doing and why but concocting a simple example involves too many things I'm not yet quite on top of. |
Two potential test cases that come to mind:
|
These are analogous to the
goal_eval
andgoal_eval_unint
prooftactics, but instead of proof goals they work on arbitrary terms.