To use this project, you will need to install some specific dependencies in order to have a development setup of this project.
There are two maintained ways to do this, using nix (preferred) or opam.
We assume that you have nix installed on your system. Setup instructions can be found here: https://nixos.org/download.
- You can use
nix developto enter an interactive subshell containing the tools you will need:
cd <form-arith>
nix developThe tools lives in this subshell and will disappear as soon as you leave the subshell.
- Build the Rocq implementation:
dune buildIf you do not have flakes enabled, you may get this error:
error: experimental Nix feature 'nix-command' is disabled; use ''--extra-experimental-features nix-command' to overrideAll you have to do is enable flakes, see this NixOS wiki page for more details on how to enable flakes permanently.
We assume that you have opam installed on your system. Setup instructions can be found here: https://opam.ocaml.org/doc/Install.html
- Create a new
opamswitch for this project:
opam switch create <name> --packages=ocaml-variants.4.14.2+options,ocaml-option-flambda
opam switch <name>- Install the necessary dependencies:
opam pin add coq 8.19.2
opam repo add coq-released https://coq.inria.fr/opam/released- Build the Rocq implementation:
dune build