# Lean

> Functional programming language and proof assistant for formally verified code

Source: https://talira.ai/catalog/lean-dtwnatpb
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Programming language
- Categories: [developer tools / programming languages](https://talira.ai/categories/developer-tools/programming-languages), [developer tools / formal verification](https://talira.ai/categories/developer-tools/formal-verification)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Memory: Reference counted[^3]
- Paradigms: Functional[^3][^4]
- Package registries: Reservoir[^5]
- Latest release: v4.36.0 (16 Nov 2026)[^5][^6]
- Backed by: [Lean FRO](https://talira.ai/orgs/lean-fro.md)

Lean is an open source functional programming language and interactive theorem prover based on dependent type theory, used to formalize mathematics and to verify software and hardware. Proofs are built one tactic at a time with automation such as grind and bv_decide, and a minimal trusted kernel checks every one; the same language writes ordinary programs, with a run-time system based on reference counting, multi-threading and monadic IO, and metaprogramming that adds notations and proof automation. Lean is mostly implemented in itself, including its language server and the Lake build tool, and is installed through its VS Code extension. Packages are published on Reservoir, and Mathlib, its community mathematics library, holds over a million lines of formalized mathematics. Leonardo de Moura created it in 2013, and the Lean FRO develops it under the Apache 2.0 licence.

## Links

- Website: https://lean-lang.org/
- GitHub: https://github.com/leanprover/lean4
- Docs: https://lean-lang.org/doc/reference/latest/

## Libraries for Lean

Talira doesn't list any yet.

## Problems it solves

- prove that my algorithm is correct instead of only testing it
- formalize a mathematical proof so a computer checks every step
- a language where array index and termination errors are caught at compile time
- let an AI write proofs that are checked automatically

## Features

- interactive theorem proving with tactics
- proof automation (grind, bv_decide)
- minimal trusted kernel
- dependent types
- pure functional programming
- metaprogramming and custom notation
- Lake build tool and language server
- Mathlib mathematics library

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.61, community 1.00, backing 0.30, extensibility 0.20.

- last commit today
- 1022 commits in the last 90 days
- latest release v4.36.0 7 days ago
- 10.3k GitHub stars
- 322 contributors
- backed by Lean FRO

## Alternatives

- [Crystal](https://talira.ai/catalog/crystal-nk6zm40w.md): A language for humans and computers
- [Swift](https://talira.ai/catalog/swift-05qrpmw7.md): A general-purpose programming language that's approachable for newcomers and powerful for experts
- [F#](https://talira.ai/catalog/f-g8fkm6kz.md): F# empowers everyone to write succinct, robust and performant code
- [Kotlin](https://talira.ai/catalog/kotlin-vrmcrayv.md): Concise. Multiplatform. Fun.

## Sources

[^1]: https://lean-lang.org/ (checked 23 Nov 2026)
[^2]: https://github.com/leanprover/lean4/blob/master/LICENSE (checked 23 Nov 2026)
[^3]: https://lean-lang.org/doc/reference/latest/ (checked 23 Nov 2026)
[^4]: https://lean-lang.org/learn/ (checked 23 Nov 2026)
[^5]: https://reservoir.lean-lang.org/ (checked 23 Nov 2026)
[^6]: https://github.com/leanprover/lean4/releases/tag/v4.36.0 (checked 23 Nov 2026)
