[isabelle-dev] State of the art in Isabelle with OCaml, opam and zarith

Lars Hupel hupel at in.tum.de
Tue Jan 22 22:34:11 CET 2019


It is admittedly a complicated incantation, but here you go:

$ cat test.ml
let x = Z.one;;
let _ = print_endline (Z.to_string x);;

$ isabelle ocaml_opam config exec ocamlfind -- ocamlopt -package zarith
-linkpkg test.ml

$ ./a.out
1

You need "ocamlfind" to tell the OCaml compiler ("ocamlopt") where to
look for packages.

Cheers
Lars



More information about the isabelle-dev mailing list