Software
The Coq Proof Assistant
We use Coq 8.4pl2 in this class. Please use exactly this version. Coq is very much a research system and often introduces backward-incompatible changes.
-
You can get the source code and various binaries here:
-
You can also use OPAM to install Coq:
opam install coq.8.4pl2
CoqIDE / Proof General
You must use one of the following IDEs to interact with Coq. If you try to use the command-line coqtop
program, you will be very unhappy and definitely fail.
CoqIDE
CoqIDE is easier to use than Proof General. But, in the past, I’ve found it annoying to use on a Mac.
There are several ways to get it:
-
Compile it from source or get a pre-built binary for Mac/Windows:
-
Install it from OPAM:
opam install coqide.8.4.pl2
Proof General
Proof General integrates with Emacs and works well on a Mac. But, you’ll need to fiddle with your Emacs configuration to set it up. Read Section 1.6.3 of CPDT for more information.
If you’re not an Emacs user, this is your chance to either learn it well, or cheat by adding the following lines to ~/.emacs
. They give you slightly more normal keyboard bindings (you're welcome):
(cua-mode t)
(delete-selection-mode t)
(global-set-key [kp-delete] 'delete-char)
(global-set-key [(end)] 'move-end-of-line)
If Proof General cannot find the coqtop
program, you can fix it by adding this to your ~/.emacs
file:
(setq coq-prog-name COMPLETE-PATH-TO-COQTOP)