@@ -27,7 +27,7 @@ Refer to the reference manual for more details of individual functions:
27
27
The Objective CAML (OCaml) implementation is a prerequisite for running
28
28
HOL Light. HOL Light should work with any recent version of OCaml; I've
29
29
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 .
31
31
32
32
1. OCaml: there are packages for many Linux distributions. For
33
33
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.
142
142
HOL Light does not have convenient commands or scripts to exploit DMTCP,
143
143
but you can proceed as follows:
144
144
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:
146
147
147
- dmtcp_launch ocaml
148
+ dmtcp_launch ./hol.sh
148
149
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:
154
151
155
152
dmtcp_command -kc
156
153
157
- This will kill the ocaml process once checkpointing is done.
154
+ This will kill the process once checkpointing is done.
158
155
159
- 4 . Step 3 created a checkpoint of the OCaml process and
156
+ 3 . Step 2 created a checkpoint of the OCaml process and
160
157
a shell script to invoke it, both in the directory in
161
158
which ocaml was started. Running that should restore
162
159
the OCaml process with all your state and bindings:
@@ -206,7 +203,7 @@ checkpointing programs.
206
203
DEPENDENCIES
207
204
208
205
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,
210
207
HOL Light will use Zarith. You can install it using the OCaml package
211
208
manager "opam" by
212
209
@@ -234,8 +231,8 @@ checkpointing programs.
234
231
2. camlp5: this is needed to run HOL Light under any OCaml >= 3.10.
235
232
Somtimes you need a recent version of camlp5 to be compatible with
236
233
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
239
236
240
237
https://github.com/camlp5/camlp5/releases ('tags' tab has full series)
241
238
@@ -269,7 +266,7 @@ HOL Light will only work on OCaml 4.14 or above.
269
266
270
267
To compile an OCaml file that opens Hol_lib using OCaml bytecode compiler,
271
268
use the following command. For OCaml native compiler, replace ocamlc with
272
- ocamlopt.
269
+ ocamlopt and .cmo with .cmx .
273
270
274
271
ocamlfind ocamlc -package zarith -linkpkg -pp "`./hol.sh -pp`" \
275
272
-I (HOL dir) (HOL dir)/bignum.cmo (HOL dir)/hol_loader.cmo \
0 commit comments