Skip to content


Repository files navigation


Docker CI Nix CI Contributing Code of Conduct Zulip

Coq formalization of Pocklington's criterion for checking primality of large natural numbers. Includes a formal proof of Fermat's little theorem.


Building and installation instructions

The easiest way to install the latest released version of Pocklington is via OPAM:

opam repo add coq-released
opam install coq-pocklington

To instead build and install manually, do:

git clone
cd pocklington
make   # or make -j <number-of-cores-on-your-machine> 
make install