-
Notifications
You must be signed in to change notification settings - Fork 147
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
Deprecate adjoin_to_theory #1383
Comments
@mn200 How would you suggest to remove the use of |
Good question. This facility is used to give every theory a binding of If you do
from the head of the HOL repo you'll see that that it's used quite a lot. In the short term, I'd let the parser be privileged and leave its uses of the calls. |
What's the long term solution? Use the Parse APIs where these bindings were used? I'd rather jump straight to that (or something else that allows me to remove |
I think that's right. The call to use is |
OK the EDIT: I have gone ahead in this way and it seems to work. |
Also more progress on removing setup_grammars. Progress on #1383.
OK so now the problem is |
Its uses most likely still need to be fixed. Work on #1383
What are we doing with |
I haven't looked at what it's trying to do yet. If possible, I think it might be nice to keep it. |
Adjoin to theory is a pain when trying to better modularise HOL4 theories and libraries, and isn't really a necessity: better practice is to put the code in a library and expect that library to be loaded alongside the theory as a matter of convention.
See further discussion in #381 to which this issue can be considered a prerequisite.
This issue is to remove
adjoin_to_theory
by deleting the API entry and revising the small number of uses in the repository to a cleaner convention.The text was updated successfully, but these errors were encountered: