Skip to content

Commit aea86e7

Browse files
committed
Update README to mention OCaml 5.2 & use hol.sh in checkpointing
1 parent cb1bd18 commit aea86e7

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

README

+11-14
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Refer to the reference manual for more details of individual functions:
2727
The Objective CAML (OCaml) implementation is a prerequisite for running
2828
HOL Light. HOL Light should work with any recent version of OCaml; I've
2929
tried it on at least 3.04, 3.06, 3.07+2, 3.08.1, 3.09.3, 3.10.0, 3.11.2,
30-
4.00, 4.05 and 4.14.
30+
4.00, 4.05 and 4.14 and 5.2.0.
3131

3232
1. OCaml: there are packages for many Linux distributions. For
3333
example, on a debian derivative like Ubuntu, you may just need
@@ -142,21 +142,18 @@ have installed. As of 2024, there are three programs you can use.
142142
HOL Light does not have convenient commands or scripts to exploit DMTCP,
143143
but you can proceed as follows:
144144

145-
1. Start ocaml running under the DMTCP coordinator:
145+
1. Start hol.sh running under the DMTCP coordinator and wait until
146+
HOL Light is loaded:
146147

147-
dmtcp_launch ocaml
148+
dmtcp_launch ./hol.sh
148149

149-
2. Use ocaml to load HOL Light as usual, for example:
150-
151-
#use "hol.ml";;
152-
153-
3. From another terminal, issue the checkpoint command:
150+
2. From another terminal, issue the checkpoint command:
154151

155152
dmtcp_command -kc
156153

157-
This will kill the ocaml process once checkpointing is done.
154+
This will kill the process once checkpointing is done.
158155

159-
4. Step 3 created a checkpoint of the OCaml process and
156+
3. Step 2 created a checkpoint of the OCaml process and
160157
a shell script to invoke it, both in the directory in
161158
which ocaml was started. Running that should restore
162159
the OCaml process with all your state and bindings:
@@ -206,7 +203,7 @@ checkpointing programs.
206203
DEPENDENCIES
207204

208205
1. zarith or num: The HOL Light system uses the OCaml "Num" library
209-
or "Zarith" library for rational arithmetic. If OCaml 4.14 is used,
206+
or "Zarith" library for rational arithmetic. If OCaml 4.14 or above is used,
210207
HOL Light will use Zarith. You can install it using the OCaml package
211208
manager "opam" by
212209

@@ -234,8 +231,8 @@ checkpointing programs.
234231
2. camlp5: this is needed to run HOL Light under any OCaml >= 3.10.
235232
Somtimes you need a recent version of camlp5 to be compatible with
236233
your OCaml. For example, OCaml 4.05 is compatible with camlp5 7.10 and
237-
OCaml 4.14 is compatible with camlp5 8.02 and 8.03. I recommend downloading
238-
the sources for a recent version from
234+
OCaml 4.14 and above is compatible with camlp5 8.02 and 8.03. I recommend
235+
downloading the sources for a recent version from
239236

240237
https://github.com/camlp5/camlp5/releases ('tags' tab has full series)
241238

@@ -269,7 +266,7 @@ HOL Light will only work on OCaml 4.14 or above.
269266

270267
To compile an OCaml file that opens Hol_lib using OCaml bytecode compiler,
271268
use the following command. For OCaml native compiler, replace ocamlc with
272-
ocamlopt.
269+
ocamlopt and .cmo with .cmx.
273270

274271
ocamlfind ocamlc -package zarith -linkpkg -pp "`./hol.sh -pp`" \
275272
-I (HOL dir) (HOL dir)/bignum.cmo (HOL dir)/hol_loader.cmo \

0 commit comments

Comments
 (0)