-
Notifications
You must be signed in to change notification settings - Fork 143
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
Automation for defining from/to functions for cv_compute's cv type #1142
Conversation
$(HOL_LNSIGOBJ) | ||
endif | ||
|
||
selftest.exe: selftest.uo |
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.
@mn200 should this line have more deps?
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.
As long as selftest.sml clearly depends (via on open fooTheory
type line) on what's needed, this should be fine.
$(HOL_LNSIGOBJ) | ||
endif | ||
|
||
selftest.exe: selftest.uo |
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.
As long as selftest.sml clearly depends (via on open fooTheory
type line) on what's needed, this should be fine.
The recent cv_compute feature in the HOL4 kernel allows for fast computation, but requires all input to cv_compute to be phrased in terms of the simple Lisp-like
cv
type.This PR adds automation for defining mappings between the
cv
type and user-defined datatypes. For each run of the new automation, the tool proves that applying the mapping into thecv
type and then the mapping out of thecv
type is the same as applying the identity function.Future PRs will provide further automation to ease use of the new cv_compute feature.