Skip to content
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

Merged
merged 15 commits into from
Aug 28, 2023

Conversation

myreen
Copy link
Contributor

@myreen myreen commented Aug 25, 2023

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 the cv type and then the mapping out of the cv type is the same as applying the identity function.

Future PRs will provide further automation to ease use of the new cv_compute feature.

@myreen myreen requested a review from mn200 August 25, 2023 08:48
$(HOL_LNSIGOBJ)
endif

selftest.exe: selftest.uo
Copy link
Contributor Author

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?

Copy link
Member

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.

@myreen myreen changed the title Automation for defining from/to function for cv_compute's cv type Automation for defining from/to functions for cv_compute's cv type Aug 25, 2023
$(HOL_LNSIGOBJ)
endif

selftest.exe: selftest.uo
Copy link
Member

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.

@mn200 mn200 merged commit d6874f9 into develop Aug 28, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants