Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.53 KB

INSTALL.md

File metadata and controls

49 lines (34 loc) · 1.53 KB

Installing From Sources

To install and use Coq, we recommend relying on the Coq platform or on a package manager (e.g. opam or Nix).

See https://coq.inria.fr/download and https://github.com/coq/coq/wiki#coq-installation to learn more.

If you need to build the stdlib from sources manually (e.g. to contribute to the stdlib or to write a Coq package), the remainder of this file explains how to do so.

Build Requirements

To compile the stdlib yourself, you need:

Opam (https://opam.ocaml.org/) is recommended to install Coq.

$ opam switch create coq --packages="ocaml-variants.4.14.1+options,ocaml-option-flambda"
$ eval $(opam env)
$ opam install coq-core rocq-init

should get you a reasonable Coq environment to compile the stdlib. See the OPAM documentation for more help.

Nix users can also get all the required dependencies by running:

$ nix-shell

Build and install procedure

To build and install the stdlib do:

$ make
$ make install

Then, the recommended way to require standard library modules is From Stdlib Require {Import,Export,} <LibraryModules>., except for Byte (use From Stdlib.Strings or From Stdlib.Init), Tactics (use From Stdlib.Program or From Stdlib.Init), Tauto (use From Stdlib.micromega of From Stdlib.Init) and Wf (use From Stdlib.Program or From Stdlib.Init).