Rocq
Also known as Coq, Rocq Prover
A proof assistant based on dependent type theory, formerly called Coq. You write programs, statements and proofs in one language; tactics build proof terms, and a kernel checks every one.
Trust card
What you trust when you accept a proof from Rocq. Logic: Dependent type theory (the calculus of inductive constructions, with universe polymorphism and primitive types).
Trusted coreProof kernel. The small trusted core of a proof assistant that checks every proof.
De Bruijn-style kernel written in OCaml (the kernel/ directory). Besides type checking it contains the guard checker for recursive definitions, universe checking, the module system and primitive types (machine integers, floats, arrays, strings). Using vm_compute or native_compute adds a bytecode machine or compilation to native code through OCaml to what you trust. No published line count found. The project keeps a public list of critical bugs.
sourceIndependent re-checkers
- rocqchk (formerly coqchk) — Standalone checker shipped with Rocq that re-type-checks compiled .vo libraries, so custom tactics cannot affect it;
-olists the axioms used. Not fully independent of the kernel: many entries in the critical-bugs list also affected it. - MetaRocq SafeChecker — Type checker for PCUIC (a model of Rocq's core theory) proved correct in Rocq and extracted to OCaml; runs inside Rocq with
MetaRocq SafeCheck. Its proof assumes strong normalization.
Axioms
None by default: the core logic is axiom-free. Excluded middle, functional extensionality, proof irrelevance, choice and others are opt-in modules in the standard library's Logic directory. Print Assumptions and rocqchk -o list the axioms a proof uses.
CertificatesProof certificate. A record of a proof that a separate, simpler program can check.
Yes. Compiled .vo files contain the checked definitions and proofs, and rocqchk can re-check them on another machine, outside the session that produced them.
sourceSoundness record
7 notable issues in the last five years. An empty list means none were found, not that none exist. Reports go to this channel.
- Nov 2026 Primitive array literals longer than max_length were not rejected, giving a proof of False Fix merged in November 2026; the critical-bugs list names 9.3.1 and 9.4 as fixing releases, not yet out on 2026-11-26. Fixed
- Aug 2026 Non-injective naming of module paths gave an axiom-free proof of False with native_compute Only affects native_compute. Fix merged in September 2026. Fixed
- Mar 2026 Module subtyping forgot elimination constraints Risk rated high when module subtyping is combined with sort polymorphism. Fixed in 9.2.0. Fixed
- Sep 2025 Bug in the guard checker allowed a proof of False assuming univalence Fixed in 9.0.1. Fixed
- Jan 2024 Primitives were considered convertible to anything by module subtyping Fixed in 8.19.0. Fixed
- Jul 2023 native_compute with primitive floats gave a proof of False Fixed in 8.18.0. Fixed
- Oct 2022 Inconsistent handling of products in the native-code machine Fixed in 8.16.1. Fixed
In this index
Entries that rely on Rocq.
Semantics usable here
Automation checked by it
- CoqHammer · Łukasz Czajka, Cezary Kaliszyk and contributors