What is Lean written in?
Software for interactive and automated theorem proving.
Quick Facts
- Designed by
- Leonardo de Moura
- Developer
- Microsoft Research
- First released
- 2013
- Typing
- static
- License
- Apache Software License 2.0
- Website
- lean-lang.org
About Lean
Lean is a software for interactive and automated theorem proving. It is a statically typed and garbage-collected language that compiles ahead of time to native machine code. It supports functional, proof-assistant, and dependent-typed programming.
Lean first appeared in 2013 and was designed by Leonardo de Moura. Development is led by Microsoft Research. Lean is now used mainly in specialized niches and by dedicated communities.
How Lean is implemented
In the Language Lineage dataset, Lean is self-hosting, so its own compiler is written in Lean itself and its runtime is implemented in C++. Reaching self-hosting — where a language is mature enough to compile itself — is a milestone that proves the language can handle a large, real-world program.
Lean in the language family tree
Lean drew on ideas from Coq and Haskell.
Sources: Wikipedia · Wikidata · Official site
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Runtime Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| C++ | 85% | Lean 4 compiles via a C backend and a C++ runtime. | Source |