What is Coq written in?
Proof assistant.
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
| Language | Confidence | Notes | Source |
|---|---|---|---|
| OCaml | 95% | Coq is implemented in OCaml. | Source |
Influenced By
- ML — Coq's tactic language and core descend from ML.
Languages Coq Influenced
- Lean — Lean follows in the tradition of Coq.
- Agda — Coq influenced dependently typed Agda.
- Idris — Coq influenced Idris's proof features.
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
- https://en.wikipedia.org/wiki/Lean_(proof_assistant)
- https://en.wikipedia.org/wiki/Coq
- https://en.wikipedia.org/wiki/Agda_(programming_language)
- https://en.wikipedia.org/wiki/Idris_(programming_language)
- Coq on Wikipedia
- Coq on Wikidata (Q1131652)