-
Install opam. Follow the instructions in the installation page.
-
Configure opam.
$ opam init
$ eval $(opam env)
- Switch OCaml version.
$ opam switch create 4.07.1
$ eval $(opam env)
- Add additional opam repositories.
$ opam repo add coq-released https://coq.inria.fr/opam/released
$ opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
- Install Coq.
$ opam pin add coq 8.9.1
- Install mathcomp and other Coq packages.
$ opam install coq-mathcomp-ssreflect coq-mathcomp-algebra
$ opam pin add lwt 5.0.1
$ opam install lwt_ppx
- Install external tools.
$ sudo apt install singular boolector
- Compile submodules.
$ git submodule update --init --recursive
$ make -C lib/gbarith
$ make -C lib/polyop
$ make -C lib/coq-bits
- Compile Coq code.
$ make