Rocq (formerly Coq) is a proof assistant for formal definitions, algorithms, and machine-checked proofs. It can extract programs to OCaml or Haskell.
Overview
The Rocq Prover is an interactive theorem prover, or proof assistant. It provides a formal language for mathematical definitions, executable algorithms, and theorems, together with a semi-interactive environment for developing machine-checked proofs.
The project targets mechanised reasoning in mathematics, computer science, and related fields. An introductory example on the website walks through defining a factorial function, proving properties, and extracting OCaml code.
Installation options include packaged builds and Docker images; sources can be built using instructions in INSTALL.md. Documentation spans a reference manual, standard library, wiki, and FAQ.
Rocq was formerly known as the Coq Proof Assistant. Community support is available through Zulip, Discourse, and other channels listed on the project site.
Key features
- Formal proof development
- Program extraction to OCaml
- Program extraction to Haskell
- Reference manual and stdlib docs
- Docker packaging
- Issue tracker for bugs
Use cases
- Machine-checked mathematics
- Verifying program specifications
- Formal software development
- Teaching dependent types