Installing CertiRocq #
Get the code #
Fetch the code:
$ git clone git@github.com:CertiRocq/certirocq.git
Fetch the dependencies:
$ git submodule update --init
Install using opam (preferred) #
First, pin the dependencies:
$ opam pin -n -y submodules/metacoq
Next, pin CertiRocq:
$ opam pin -n -y .
You can now install CertiRocq:
$ opam install rocq-certirocq
Alternatively, if you only want to install the dependencies, you can run:
$ opam install rocq-certirocq --deps-only
Build & install manually #
Dependencies #
If possible, install the dependencies using the opam instructions given above.
If that is not an option, you can instead use these "manual" instructions. Note that this approach will only work if your Rocq installation path is writable without root privileges.
Make sure that you do not have any of the dependencies installed already. From the certirocq/ directory, run:
$ make submodules
Building the compiler #
Once the dependencies are installed (either via opam or by the manual method), you can build the Rocq theories by running
$ make all
The plugin, which depends on those theories, can be built by running
$ make plugin
To install the theory & plugin, simply run
$ make install
Testing the installation #
You can test the installation using the regression suites under tests/:
$ make -C tests all
The Wasm tests under tests/wasm/ additionally require node and
wabt. The CI configuration currently uses Node.js 22.