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

HOL-Light with recent versions of ocaml & camlp5 ? #72

Open
fblanqui opened this issue Jan 16, 2023 · 5 comments
Open

HOL-Light with recent versions of ocaml & camlp5 ? #72

fblanqui opened this issue Jan 16, 2023 · 5 comments

Comments

@fblanqui
Copy link

Hi. Is there any plan to have hol-light working with recent versions of ocaml and camlp5? See #71.

@mpu
Copy link
Contributor

mpu commented Jan 16, 2023

I just opened PR #74 that might be of interest.

@rbjones
Copy link

rbjones commented Mar 8, 2023

The latest version of ocaml now seems to be 5, but there are no combinations in #71 with ocaml 5.
The link in the README file to Ckpt no longer works and the Cryopid repository doesn't seem to have any downloads available.
As well as adding package num (as instructed in README file) it's necessary to download camp-streams.
But then I'm stuck with incompatible preprocessor, and I don't seem to be able to revert to an earlier version of ocaml.

@aqjune
Copy link
Contributor

aqjune commented Apr 4, 2024

The latest version of ocaml now seems to be 5, but there are no combinations in #71 with ocaml 5.
The link in the README file to Ckpt no longer works and the Cryopid repository doesn't seem to have any downloads available.
As well as adding package num (as instructed in README file) it's necessary to download camp-streams.
But then I'm stuck with incompatible preprocessor, and I don't seem to be able to revert to an earlier version of ocaml.

README is recently updated to introduce three checkpointing tools that work. :) HOL Light will use Zarith instead of num if OCaml 4.14 is used. Zarith officially succeeds Num and can be installed using opam.

make will create hol.sh which will contain a proper command line invoking the OCaml REPL according to its version.

@mpu
Copy link
Contributor

mpu commented Apr 5, 2024

I can confirm that it works. I recently setup an opam switch from scratch for ocaml 4.14.1, then run make and got a working hol.sh. Good job @aqjune, HOL-Light is now a fair bit less finicky to setup!

One thing that tripped me initially is that I had installed the num and camlp5 packages with opam on the default switch (the one using the system compiler). This does not work well as the libraries are not placed in the stdlib directory. The working procedure involved creating a new switch with opam switch create hol ocaml-base-compiler=4.14.1 then installing num and camlp5 in this switch.

@aqjune
Copy link
Contributor

aqjune commented Apr 16, 2024

@mpu Oops, I just read your message. Do you want to open an issue with the error message please?

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

No branches or pull requests

4 participants