# Rocq

> 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.

- Kind: proof-assistant
- Logic: Dependent type theory (the calculus of inductive constructions, with universe polymorphism and primitive types)
- Checker level: Strong (green)
- Licence: open-source, LGPL-2.1
- Latest release: 9.3.0 (2026-09-19) https://github.com/rocq-prover/rocq/releases/tag/V9.3.0

## Trust card

- Kernel: 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. ([source](https://github.com/rocq-prover/rocq/blob/master/dev/doc/critical-bugs.md))
- Independent checkers: [rocqchk (formerly coqchk)](https://rocq-prover.org/doc/master/refman/practical-tools/coq-commands.html) (Standalone checker shipped with Rocq that re-type-checks compiled .vo libraries, so custom tactics cannot affect it; `-o` lists the axioms used. Not fully independent of the kernel: many entries in the critical-bugs list also affected it.); [MetaRocq SafeChecker](https://github.com/MetaRocq/metarocq) (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. ([source](https://github.com/rocq-prover/rocq/wiki/The-Logic-of-Coq))
- Certificates: 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. ([source](https://rocq-prover.org/doc/master/refman/practical-tools/coq-commands.html))
- Soundness reports: https://github.com/rocq-prover/rocq/issues?q=label%3A%22kind%3A+inconsistency%22

## Soundness issues (notable, recent first)
- 2026-11: [Primitive array literals longer than max_length were not rejected, giving a proof of False](https://github.com/rocq-prover/rocq/issues/22716) — fixed. 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.
- 2026-08: [Non-injective naming of module paths gave an axiom-free proof of False with native_compute](https://github.com/rocq-prover/rocq/issues/22364) — fixed. Only affects native_compute. Fix merged in September 2026.
- 2026-03: [Module subtyping forgot elimination constraints](https://github.com/rocq-prover/rocq/issues/21750) — fixed. Risk rated high when module subtyping is combined with sort polymorphism. Fixed in 9.2.0.
- 2025-09: [Bug in the guard checker allowed a proof of False assuming univalence](https://github.com/rocq-prover/rocq/issues/21053) — fixed. Fixed in 9.0.1.
- 2024-01: [Primitives were considered convertible to anything by module subtyping](https://github.com/rocq-prover/rocq/issues/18503) — fixed. Fixed in 8.19.0.
- 2023-07: [native_compute with primitive floats gave a proof of False](https://github.com/rocq-prover/rocq/issues/17871) — fixed. Fixed in 8.18.0.
- 2022-10: [Inconsistent handling of products in the native-code machine](https://github.com/rocq-prover/rocq/issues/16645) — fixed. Fixed in 8.16.1.

Used by toolchains: brick, frama-c-wp, islaris, vst

---
Last checked 2026-11-26. Data: [JSON](/provers/rocq.json) · Page: [HTML](/provers/rocq/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
