Rocq (9.0)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].
Snapshot Rocq (9.0) — released March 2025 · lifecycle superseded (Rocq 9.3.0 released October 2026)
Family Rocq — shelf: Verification and Proof
The language’s purpose is to make a machine check a claim about a program. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory Coq (1984 — CAM at Inria) · 9.0 (March 2025 — first release under the Rocq name)
Tags
Use — Verification, Education
Paradigm — Functional
Platform — Native
Lifecycle — Superseded
Memory — Managed (GC)
Typing — Static, strong
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Rocq (9.0); an unmarked link is the current reference for the language.
Landing page
Specification and reference
API documentation
Tutorial
Package registry
1 Assessment
This page assesses Rocq in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 95.7/100 · Ecosystem coupling 87.9/100 · Engineering readiness 52.0/100
1.1 Core coupling
1.1.1 Type
- ✅ Dependent types decouple a specification from its implementation: A type may mention a value, so a sorted list or a length-indexed vector is a type and a term of that type is the proof that the specification holds
- ✅ The Curry–Howard correspondence equates propositions with types: A proposition is a type and a proof is a program, so logic and computation are written in one language
- ✅ Inductive types define the data and the proofs over it together: An
Inductivedeclaration fixes the constructors, and recursion over them is checked for coverage - ✅ The universe hierarchy stratifies types:
Propholds propositions,Setholds program data, andTypeholds types, so a type cannot contain itself - ✅ Type classes and records express an interface: A
Classor aRecordstates a structure and instance resolution selects the implementation, so reuse does not require inheritance - ⚠️ Definitional equality is the checker’s equality: Two terms that are equal only up to a lemma are not interchangeable without a rewrite, so an implementation must be shaped to compute the way the checker reduces
1.1.2 Construction
- ✅ The logic core is pure: A Gallina term has no side effect, so building a value cannot change shared state
- ✅ The tactic language is separate from the term it builds: A proof script constructs a Gallina term, and the kernel checks that term, so the proof strategy and the proof object are distinct artifacts
- ✅ Definitions are checked terms:
DefinitionandFixpointeach name a term that the kernel type-checks before it is used - ✅ Modules and functors confine names: A
Module Typestates a signature and aModuleimplements it, so a name is reachable only through its path - ✅ Extraction separates verified construction from the runtime:
Extractionemits OCaml, Haskell, or Scheme, so verification is decoupled from the implementation language - ⚠️ Totality is required: Every
Fixpointmust be shown to terminate, so a construction that is correct but not obviously decreasing needs a measure or a well-founded relation
1.1.3 Memory
- ✅ The logic core names no memory: A Gallina term has no address, no allocation, and no free operation, so a proof cannot couple to a memory layout
- ✅ Collection belongs to the runtime: The checker is an OCaml program with its own collector, and the extracted program uses its target language’s collector
- ✅ Reduction strategy is a tactic choice:
cbn,cbv,lazy,vm_compute, andnative_computeselect how a term is reduced, so checking cost is stated where it is needed - ⚠️ A large reduction consumes memory without a visible allocation: A
vm_computeornative_computeover a large term can exhaust memory while the source names no allocation - ⚠️
native_computecompiles a module through OCaml: It evaluates the term through code the OCaml compiler produced at proof time, trading the kernel’s own reduction for speed
1.1.4 Error
- ✅ A wrong proof is a type error: A term that does not inhabit the goal is rejected when it is checked, before any extracted code runs
- ✅ Tactic failure is a structured signal:
Ltaccombinators such astry,repeat,first, andprogressbranch on success and failure, so a tactic script has a recovery path - ✅
Failasserts that a command is rejected: A development can test that a wrong proof fails, which keeps a tactic honest - ✅
Qedruns the kernel check andDefinedrecords the term: The sealing decision is explicit at the end of a proof - ⚠️
Admittedandadmitleave a gap the checker accepts: A development can be declared complete with an unproved lemma, so the guarantee holds only if the development contains none - ⚠️
Axiom,Parameter, andHypothesisadd an assumption without a proof: The soundness of a result is relative to the axiom set it used
1.1.5 Concurrency
- ✅ The logic core is sequential: A Gallina term is a pure value, so there is no shared mutable state in the language to race
- ✅ A development is checked file by file in parallel:
coq_makefile -jandrocq makefile -jcompile independent.vfiles in separate processes - ✅ Asynchronous proofs run in a worker process:
-async-proofs ondelegates a proof to another process, so a document and the proof that fills it are decoupled - ⚠️ The tactic monad threads one proof state: A tactic acts on the current goal, so the tactics in a script are ordered even though the resulting term is pure
- ⚠️ Parallel checking is a tool option, not a language guarantee: An interactive session with
-async-proofs offis sequential, and the option is the user’s choice
1.1.6 Platform
- ❌ Rocq is not a general-purpose programming language: A term is written to be checked, and Gallina has no I/O, no foreign-function call, and no runtime of its own (P1)
- ❌ A deployed program exists only in the extraction target:
Extractionemits OCaml, Haskell, or Scheme, so one development reaches three ecosystems but the verified artifact runs only as a program in another language (P1) - ✅ The checker is an ordinary OCaml program: It builds and runs on the platforms OCaml supports, including Linux, macOS, and Windows
- ⚠️ The OCaml toolchain is required to build the checker: A plugin or a
native_computebuild depends on the OCaml environment, not only on Rocq itself
1.1.7 Trade-offs (not coupling)
- Dependent types trade automation for certainty: The specification lives in the type, and every refinement obligation is discharged by a tactic or by hand
- The ecosystem is small by scope: Rocq targets verification and mathematics, so a general-purpose library set is out of scope rather than missing
- The academic audience is the intended one: The domain mark records a scope decision, not a defect of the language
- Tactic scripts are a workflow choice:
Ltac,Ltac2, andssreflectare ways to construct a term, and a proof can also be written directly as a term Properasure is a deliberate design: A proof inPropis erased from the extracted program, so its cost is a checking cost rather than a runtime cost- Totality is required for a consistent logic: The termination obligation is the price of using one language for proofs and for programs
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ The measured workload is proof checking: The kernel checks a term once, so the checking algorithm, not a program’s runtime, sets the cost
- ✅ Independent files are checked in parallel:
-jand-async-proofsspread a build across the available cores - ✅ A heavy reduction can run as compiled code:
native_computeevaluates a term at the speed of compiled OCaml - ✅ Extracted code runs at the target language’s speed: The deployed program’s performance is the target compiler’s concern
- ⚠️ Checking time grows with the proof: A large
vm_compute, a deepinduction, or a longautosearch can take minutes, and the cost is paid on every rebuild
1.2.2 Ecosystem
- ❌ The ecosystem is small and centred on academia: Outside the standard library,
mathcomp, and the Rocq Platform, the set of maintained packages is thin (Ec3) - ✅
opaminstalls Rocq, its libraries, and its plugins: The OCaml package manager is the distribution channel - ✅ The Rocq Platform pins a compatible set: A Platform release fixes versions of libraries and plugins that are known to work together
- ✅ The landmark libraries are mature:
mathcomp(Mathematical Components),stdpp, andCompCertare long-lived and actively maintained - ⚠️ A plugin extends the checker from inside: An OCaml plugin reaches the engine directly, which is powerful and also couples the plugin to a Rocq version
1.2.3 Evolution
- ✅ The rename from Coq to Rocq preserved compatibility: Rocq 9.0 continued to accept the
Coq.*module paths and thecoq*command names, so an existing development kept checking - ✅ A release is versioned and pinned:
opamrecords the Rocq version and the library versions a development was checked against - ✅ Deprecation precedes removal: A renamed tactic or lemma warns before it stops working
- ✅ The changelog names each change: A release records the renamed lemmas and tactics with their replacements
- ⚠️ Library and tactic names do move between releases: A development that pins no version may need edits when it is checked under a later Rocq
1.2.4 Domain
- ❌ The domain is formal verification and mathematics: The language states and checks proofs, and it is not chosen for general software work (D1)
- ✅ It is a strong fit for the domain it targets: Machine-checked mathematics and verified software are what the system is built to do
- ✅ The CompCert verified C compiler is a landmark result: A realistic C compiler was proved correct in Coq, which is evidence that the domain fit works at scale
- ✅ Critical cryptography and kernel components have been verified in it: Rocq has been used to verify cryptographic primitives and operating-system kernel components
- ✅ Extraction bridges to an industrial artifact: A verified algorithm is extracted to OCaml or Haskell and then deployed
- ⚠️ A proof of a program is not the program: The extracted code is correct relative to the extracted semantics, and a declared axiom weakens the guarantee
1.2.5 Learning
- ❌ The learning curve is very steep: Dependent type theory, universes, and the calculus of inductive constructions must be understood before a nontrivial development can be written (L1)
- ❌ Tactic scripting is a second language:
Ltac/Ltac2and thessreflectidioms are a distinct skill from writing a term - ✅ A first proof is short to write:
intros,reflexivity, andQedcomplete a small example in the first session - ✅ The reference material is thorough and maintained: The Rocq reference manual, the Software Foundations course, and the mathcomp book are stable resources
- ⚠️ An error message must be read against the goal state: The checker reports a goal and a term, and interpreting the report takes practice
1.2.6 Syntax
- ✅ The core grammar is small: A term is an application, a
fun, amatch, or alet, and the proof language is a sequence of commands - ✅
Notationand scopes localise a symbol: A notation applies only where its scope is open, so+can mean different things in different developments - ✅ Inductive and record declarations read as their structure:
Record point := { x : nat; y : nat }names the fields in one line - ✅ Proof bullets give a proof a tree shape:
-,+,*, and{ ... }nest the goals, so the structure is visible - ⚠️ Notation interaction is local knowledge: Two declarations for the same infix symbol, with associativity and precedence levels, can parse a term in a way the reader does not expect
1.2.7 Testing
- ✅ Checking is the test of the proved property: A development that compiles has been checked by the kernel, so the property needs no separate suite
- ✅
Qedseals a proof and runs the kernel check: The term is re-checked at sealing, independently of the tactics that built it - ✅
FailandSucceedtest a command’s outcome: A regression test can require that a specific wrong proof is rejected - ✅
Examplegives an inline test: An anonymous lemma checks a claim at the point where it is stated - ✅
coqdocrenders a checked example into the documentation: A documented example is the same checked term - ⚠️ Only the stated property is checked: An
Admittedlemma or anAxiomis accepted on trust, so the guarantee holds only over the proved fragment
1.2.8 Security
- ✅ The kernel check gives the strongest assurance available for the stated property: A
Qedterm is checked against the calculus, so the result holds as long as the kernel is trusted - ✅ Gallina has no memory operation to misuse: There is no pointer arithmetic and no manual free in the logic core
- ✅
native_computeis opt-in: The compiled reduction is selected explicitly and is disabled by default, so the kernel’s own reduction remains the default path - ⚠️ The trusted base includes the kernel, the extraction, and any axiom: A kernel defect, an extraction defect, or a declared axiom is outside the proof
- ⚠️ Extracted code inherits the target language’s safety: An OCaml or Scheme program is subject to that runtime’s own model
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| opam package source | source | no | opam rebuilds the library and regenerates the .vo file on the target |
1.3 Engineering readiness
1.3.1 Reproducibility
- ❌ No contract the toolchain reads: the prover loads what the invocation names, and the dependency manifest is third-party (dune/opam) (Y18)
1.3.2 Supply chain
- ❌ opam packages carry no signed provenance. (Y3)
- ❌ The opam repository is a flat name space. (Y4)
1.3.3 Observability
- ❌ No tracing standard exists in the language. (Y5)
- ❌ The toplevel prints carry no structure. (Y6)
- ❌ A failed proof stops at the goal with no post-mortem. (Y15)
1.3.4 Feedback
- ✅ The toplevel checks proofs interactively with no build. (Y7)
- ⚠️ Editor analysis rides the language-server extensions.
1.3.5 Interop
- ❌ Rocq reaches no foreign code; extraction leaves the language. (Y9)
- ❌ The proof artifact runs after extraction to another language. (Y10)
1.3.6 Governance
- ✅ The development team and its consortium govern in the open. (Y11)
- ✅ The reference manual is public and complete. (Y12)
- ✅ The prover source is public. (Y19)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ❌ Sparse training data: models write it unreliably [8].
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified or standards-qualified path for safety-critical systems.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | — | 0 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | — | 0 | |
T4 |
no sum types | language | — | 0 | |
T5 |
no generics | language | — | 0 | |
T6 |
no namespaces | language | — | 0 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | — | 0 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | — | 0 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | — | 0 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | 0 | ||||
| Construction | C1 |
global mutable state by default | language | — | 0 |
C2 |
no immutability by default | language | — | 0 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | 0 | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | — | 0 | |
M3 |
no RAII | language | — | 0 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | — | 0 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | 0 | ||||
| Error | Er1 |
no structured path | language | — | 0 |
Er2 |
unchecked exceptions only | language | — | 0 | |
Er3 |
errors ignored/non-exhaustive | language | — | 0 | |
Er4 |
no composable result type | language | — | 0 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | 0 | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | — | 0 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | — | 0 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | 0 | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | ✅ | −15 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | — | 0 | |
| Platform cost | −4.3 (−15) |
Core coupling score: 95.7/100 — 15 of the 350 inventory points are present, so the axis cost is 100 × 15 ÷ 350 = 4.3 and the score is 100 − 4.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | — | 0 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | 0 | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | ✅ | −8 | |
Ec4 |
proprietary | context | — | 0 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | — | 0 | |
Ec8 |
unpromised binary boundary | context | — | 0 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | −3.1 (−8) | ||||
| Evolution | V1 |
breaking changes | language | — | 0 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | — | 0 | |
| Evolution cost | 0 | ||||
| Domain | D1 |
domain/vendor lock-in | context | ✅ | −15 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | −5.9 (−15) | ||||
| Learning | L1 |
steep | context | ✅ | −8 |
L2 |
large surface/multi-paradigm | context | — | 0 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | −3.1 (−8) | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | — | 0 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | 0 | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | — | 0 | |
| Security cost | 0 |
Ecosystem coupling score: 87.9/100 — 31 of the 256 inventory points are present, so the axis cost is 100 × 31 ÷ 256 = 12.1 and the score is 100 − 12.1. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | ✅ | −15 |
Y2 |
dependencies not pinned | context | ✅ | −8 | |
Y14 |
no toolchain version pin | context | — | 0 | |
Y18 |
no machine-read project contract | context | ✅ | −8 | |
| Reproducibility cost | −18.1 (−31) | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | ✅ | −4 | |
Y16 |
no advisory feed | context | — | 0 | |
| Supply chain cost | −11.1 (−19) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | ✅ | −4 | |
Y15 |
no post-mortem diagnostics | runtime | ✅ | −8 | |
| Observability cost | −11.7 (−20) | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | — | 0 | |
Y13 |
no bundled debugger | context | — | 0 | |
| Feedback cost | 0 | ||||
| Interop | Y9 |
no foreign-function interface | language | ✅ | −8 |
Y10 |
no portable target | context | ✅ | −4 | |
| Interop cost | −7.0 (−12) | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | — | 0 | |
Y17 |
no conformance mechanism | context | — | 0 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | 0 |
Engineering readiness score: 52.0/100 — 82 of the 171 inventory points are present, so the axis cost is 100 × 82 ÷ 171 = 48.0 and the score is 100 − 48.0. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: Rocq yields low core coupling for the narrow work it is built for: dependent types put the specification in the type, tactic scripts are separate from the terms they build, extraction decouples verification from the implementation language, and the logic core is pure and total. The core score loses only through P1, because the language does not function outside the domain of formal proof. The platform cost is the price of that focus — a small academic ecosystem, a domain lock-in to verification, and one of the steepest learning curves here. Main strengths: kernel-checked certainty, the CompCert landmark result, and extraction as the bridge to OCaml, Haskell, or Scheme; main weaknesses: the narrow domain, the thin ecosystem, and the depth of type theory and tactic knowledge required.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193