Agda vs Lean
Agda
wiki.portal.chalmers.seLean
lean-lang.orgSide by side
| Figure | Agda | Lean |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | Yes | — |
| Plans published | 0 | 1 |
| Spec score · Formal Verification Tools | 8.1 (#5) | 8.6 (#2) |
| Libraries | Agda's standard library is optional and is not bundled with all packages; additional community libraries and developments are listed on the wiki. | The official site describes Mathlib as a community-driven mathematical library with over a million lines spanning algebra, analysis, topology, probability, and computer science. |
| Support | The Agda wiki directs users to ask questions on the Agda mailing list or Agda Zulip server. | The Lean Community Zulip is described as the central hub for questions and collaboration, and Lean FRO hosts weekly technical office hours. |
| What it is | Agda is a dependently typed functional programming language and an interactive proof assistant for writing and checking proofs. | Lean is an open-source programming language and proof assistant for correct, maintainable, and formally verified code. |
Plans
In their own words
Lean
Lean is an open-source programming language and proof assistant for formalizing mathematics, verifying software, and writing general code. Its minimal trusted kernel checks proofs, and the project describes it as supporting correctness in mathematical, software, and hardware verification. Lean includes the Grind tool for automating some pattern matching, case analysis, and systems of linear inequalities; metaprogramming lets users add notation and proof automation. Projects are managed with Lake, the package manager bundled with Lean. Mathlib is a community-driven library with over a million lines spanning areas including algebra, analysis, topology, probability, and computer science. The recommended setup uses VS Code with the Lean 4 extension for syntax highlighting and code completion, while Neovim with lean.nvim is also well-supported. Lean runs on Linux, macOS, and Windows, and Lean4Web lets users run code in a browser. The software is free under the Apache 2.0 license. Learning resources include textbooks, tutorials, interactive games, documentation, and an API reference.