-
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
Theory
syntax
#1364
Comments
I have a feeling this would make HOL exceptionally more welcoming/non-intimidating to newcomers. |
This sounds great and I support it. Here are a few requests from my side:
Would expand to:
I intentionally made each open a top-level declaration of its own because I worry that multiple simultaneous opens can lead to some unpredictability. |
I agree with Magnus about both the need to make the common case easy and to include support for I’d also prefer to have the I don’t mind dropping the Finally, is it going to be easy to have a version that works for pre-bossLib files? |
I think we should drop the suffix on the structure name itself. But I think that can be done independently of this proposal, it's a pretty large breaking change. |
Agreed that it can be deferred. It might at least be easy to implement (outside of Holmake) : |
I would like to implement a new syntax for the
new_theory
command and the prelude. This will ensure more consistent use of the header and also make it more introspectable by HOL tooling like IDEs. Proposal:is equivalent to
Some points of interest:
Theory
suffix from the theory imports, since HOL itself tends to refer to theories without this suffix in e.g. qualified constant names, but I don't think it can be implemented as long as quote-filter is a preprocessor which runs without any filesystem context (unless we change the structure name itself to drop theTheory
suffix).Theory
command, except forImport
declarations. In particular, that means that all opens have to happen at the beginning of the file, and there cannot be additional commands beforenew_theory
. This happens occasionally (e.g.temp_delsimps
is often beforenew_theory
), but it doesn't seem to make a difference.export_theory
at the end of the file is implicit when usingTheory
syntax.The text was updated successfully, but these errors were encountered: