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

Add update_database for OCaml 5, fix a bug in search, add make switch-5 #115

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

aqjune-aws
Copy link
Contributor

@aqjune-aws aqjune-aws commented Oct 11, 2024

This patch

  • Adds update_database for OCaml5, which is almost a copy of the file for OCaml 4.14
  • Fixes a failure when there are theorems inside a module (OCaml 4.14). My test code:
loads "update_database.ml";;
unset_jrh_lexer;;
module A_SIMPLE_MODULE = struct let mythm = new_axiom `1 + 1 = 2` end;;
set_jrh_lexer;;
search [name "A_SIMPLE_MODULE"];;
search [name "ADD_SUB"];;
  • Moves update_database_*.ml files into a separate directory
  • Fixes usage of a deprecated function in Mizarlight.
  • Add switch-5 which is a command for setting OPAM switch with OCaml 5.2 (the latest version).

After this patch, I think HOL Light is ready to support OCaml 5, resolving github issue #95 and partially resolving #101. I tested holtest and s2n-bignum arm proofs on OCaml 5.2 and it worked fine.
About the new command 'switch-5': I would like to suggest having switch-X for each major version X.

This patch
- Adds update_database for OCaml5, which is almost a copy of the file for OCaml 4.14
- Fixes a failure when there are theorems inside a module (OCaml 4.14). My test code:
```
loads "update_database.ml";;
unset_jrh_lexer;;
module A_SIMPLE_MODULE = struct let mythm = new_axiom `1 + 1 = 2` end;;
set_jrh_lexer;;
search [name "A_SIMPLE_MODULE"];;
search [name "ADD_SUB"];;
```
- Moves update_database_*.ml files into a separate directory
- Fixes usage of a deprecated function in Mizarlight.
- Add switch-5 which is a command for setting OPAM switch with OCaml 5.2 (the latest version).

After this patch, I think HOL Light is ready to support OCaml 5, resolving github issue jrh13#95 and partially resolving jrh13#101.
I tested holtest on OCaml 5.2 and it worked fine.
About the new command 'switch-5': I would like to suggest having switch-X for each major version X.
@jrh13
Copy link
Owner

jrh13 commented Oct 12, 2024

Thank you, this now makes everything work in OCaml 5! I've tested it on OCaml 5.1.0 under Mac OS.

@jrh13 jrh13 merged commit 72b2b70 into jrh13:master Oct 12, 2024
2 checks passed
@aqjune-aws
Copy link
Contributor Author

I think we can use OPAM's compatible version management in the future. :) It will conceptually have a matrix of usable OCaml & camlp5 versions.

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