What is Coq written in?

Proof assistant.

Programming language Year 1989 Paradigm proof-assistant, functional, dependent-typed Typing static
The Coq compiler is written in OCaml (well-documented).

Quick Facts

Developer
Institut National de Recherche en Informatique et en Automatique
First released
1989
Typing
static
License
GNU Lesser General Public License, version 2.1
Website
coq.inria.fr

About Coq

Coq is a proof assistant. It is a statically typed and garbage-collected language that compiles ahead of time to native machine code. It supports proof-assistant, functional, and dependent-typed programming.

Coq first appeared in 1989 and was developed at INRIA. Coq is now used mainly in specialized niches and by dedicated communities.

How Coq is implemented

In the Language Lineage dataset, its compiler is written in OCaml.

Coq in the language family tree

Coq drew on ideas from ML and went on to influence Lean, Agda, and Idris.

Sources: Wikipedia · Wikidata · Official site

Relationship Graph

All directly connected languages. Click any node to navigate to its page.

Compiler Implementation

LanguageConfidenceNotesSource
OCaml 95% Coq is implemented in OCaml. Source

Influenced By

Languages Coq Influenced

Frequently Asked Questions

What language is Coq written in?
Coq is primarily implemented in OCaml. See the implementation section above for details and source references.
What languages influenced Coq?
Coq was influenced by ML among others. See the influence section above for the full list.
Which languages did Coq influence?
Coq influenced Lean, Agda, Idris among others.
When was Coq first released?
Coq was first released in 1989.

Evidence Sources

Discover More

Explore Coq in Graph →