Lean (Theorem Prover)
Open-source functional programming language and interactive proof assistant (Lean 4)
- Domainlean-lang.org
- GitHubgithub.com/leanprover/lean4
- Linklean-fro.org
Lean (Lean 4) is an open-source programming language and proof assistant published under the Apache-2.0 license and supported by the Lean Focused Research Organization. As of 2026-11-24, its latest stable release is v4.36.0 (2026-11-16) and v4.37.0-rc1 (2026-11-18) is a release candidate; on 2026-11-23, Google DeepMind open-sourced a Lean 4 quantum-program verification library, specifications, and proofs.
- Latest stable release
- v4.36.0 (2026-11-16)5as of 2026-11-24
- Current release candidate
- v4.37.0-rc1 (2026-11-18, pre-release)6as of 2026-11-24
- Lean 4 first official release
- v4.0.0 (2023-09-08)4
- License
- Apache-2.03
Lean is an open-source programming language and interactive proof assistant designed to write formally verified mathematical proofs and software. Its repository is published under the Apache-2.0 license and its development is supported by the Lean Focused Research Organization. Lean 4 had its first official release (v4.0.0) on 2023-09-08. As of 2026-11-24, the latest stable release is Lean 4.36.0 (released 2026-11-16), while Lean 4.37.0-rc1 was published on 2026-11-18 as a pre-release candidate, followed by a matching Mathlib pre-release on 2026-11-19 and Google DeepMind's 2026-11-23 public release of Lean 4 quantum-program verification materials.
Also known as Lean 4, Lean theorem prover, Lean programming language
Lean overview and organization
Lean is an open-source programming language and proof assistant that enables users to write formal mathematical proofs and verified software.13 The Lean 4 repository is published under the Apache-2.0 license, and the Lean Focused Research Organization (Lean FRO) states that it supports Lean's growth.23
- 1Lean Programming LanguageLean Focused Research Organization
- 3leanprover/lean4: Lean 4 programming language and theorem proverLean Focused Research Organization
- 2Lean Focused Research OrganizationLean Focused Research Organization
Lean FRO states that its mission is to advance Lean's critical systems and capabilities, and lists focus areas including scalability, usability, proof automation, documentation, a diverse community, and support for AI research and verified code synthesis.2 Built-in automation examples highlighted on the official Lean site include the grind tactic for induction, algebraic reasoning, and SMT-like reasoning, as well as bv_decide for deciding bitvector equations.1 The Lean 4.0.0 release notes describe Mathlib as Lean's major mathematical library (mathlib4), and projects are managed with the lake build tool and elan toolchain manager.49
- 2Lean Focused Research OrganizationLean Focused Research Organization
- 1Lean Programming LanguageLean Focused Research Organization
- 4Release v4.0.0 - leanprover/lean4Lean Focused Research Organization
- 9google-deepmind/formal-quantum-computationGoogle DeepMind
Lean 4 release history and November 2026 versions
Lean 4 reached its first official release with v4.0.0 on 2023-09-08, when the developers announced plans for approximately monthly minor releases.4
| Version | Type | Release date | Notes |
|---|---|---|---|
| v4.0.0 | Stable | 2023-09-08 | First official release of Lean 4 |
| v4.36.0 | Stable (Latest as of 2026-11-24) | 2026-11-16 | Latest stable release tag on GitHub |
| v4.37.0-rc1 | Release candidate (pre-release) | 2026-11-18 | 370 landed changes; subject to change before final release |
As of 2026-11-24, v4.36.0 (released 2026-11-16) is the latest stable release of Lean 4.5 On 2026-11-18, the project published v4.37.0-rc1, explicitly labeled as a release candidate rather than a final release.6 Its release notes record 370 landed changes, including 71 feature additions, 159 fixes, 108 performance improvements, 7 refactoring changes, 4 test suite improvements, 1 documentation improvement, and 20 other changes, one of which adds the option shiftLeft.threshold (default 65536).6 On 2026-11-19, leanprover-community/mathlib4 tagged pre-release v4.37.0-rc1 to bump its toolchain to the release candidate.7
- 5Release v4.36.0 - leanprover/lean4Lean Focused Research Organization
- 6Lean 4.37.0-rc1 (2026-11-18)Lean Focused Research Organization
- 7Release v4.37.0-rc1 - leanprover-community/mathlib4Lean Community
Lean in formal verification and the November 2026 DeepMind release
Lean FRO names formal mathematics and software and hardware verification among the fields where Lean is applied.12 On 2026-11-23, Google DeepMind announced the public release of verification materials on GitHub for quantum programs synthesized with Google Gemini (Gemini 4) agent teams and checked in Lean 4.89
- 1Lean Programming LanguageLean Focused Research Organization
- 2Lean Focused Research OrganizationLean Focused Research Organization
- 8Finding faster quantum algorithms with agents and formal verificationGoogle DeepMind
- 9google-deepmind/formal-quantum-computationGoogle DeepMind
The open-sourced repository (google-deepmind/formal-quantum-computation, Apache-2.0 license) is grounded in quantum Hoare logic with classical variables and depends on Mathlib4 and QuantumInfo (part of Physlib).9 It separates three parts: the core QuantumComputation library (circuits, gates, registers, quantum Hoare logic, and resource counting), QuantumComputationSpecs (formal problem specifications and benchmark challenges), and a discoveries branch holding the reported programs and Lean proofs.912
- 9google-deepmind/formal-quantum-computationGoogle DeepMind
- 12Google opens the proofs behind its AI-designed quantum programsQubitWire
The underlying research preprint (arXiv:2611.09822v3) was first submitted on 2026-11-06 and revised on 2026-11-16; the 2026-11-23 news event was the public release of the Lean library, specifications, and proofs, covered that day by The Next Web and QubitWire.8101112 Both DeepMind and QubitWire note that the reported resource reductions (such as an 11.8x reduction in a combined qubit-and-operation cost metric and 4,338 versus 5,650 error-corrected qubits for an inertial confinement fusion calculation) are mathematically verified against formal specifications and cost models rather than measured on physical quantum hardware, and the repository lists explicit costing of classical computation and control flow as planned future work.8912
- 8Finding faster quantum algorithms with agents and formal verificationGoogle DeepMind
- 10Discovering formally verified quantum programs with AIarXiv
- 11DeepMind's AI agents found cheaper quantum algorithms, and proved themThe Next Web
- 12Google opens the proofs behind its AI-designed quantum programsQubitWire
- 9google-deepmind/formal-quantum-computationGoogle DeepMind
Lean verification scope and limits
As noted in independent coverage of the DeepMind repository release, a machine-checked Lean proof confirms that a program satisfies its formal specification under the modeled cost assumptions, but does not by itself establish that those specifications or cost models match every physical hardware bottleneck or that external parties have independently reproduced the results.12
¶Frequently asked questions
- What is the latest stable version of Lean 4 as of 2026-11-24?
- As of 2026-11-24, the latest stable release of Lean 4 is v4.36.0, released on 2026-11-16. Lean 4.37.0-rc1, published on 2026-11-18, is a release candidate (pre-release) rather than a final release.56
- What is Mathlib in the Lean ecosystem?
- Mathlib (mathlib4) is Lean's major mathematical library. On 2026-11-19, the Mathlib repository published a v4.37.0-rc1 pre-release updating its toolchain to match Lean 4.37.0-rc1.47
- What did Google DeepMind release for Lean on 2026-11-23?
- On 2026-11-23, Google DeepMind announced the public release of its Apache-2.0 GitHub repository formal-quantum-computation, containing a Lean 4 quantum program library, formal problem specifications, and Lean proofs from its November 2026 preprint.8910
- Did the DeepMind Lean release demonstrate execution on a physical quantum computer?
- No. The 2026-11-23 announcement was the public release of Lean verification materials, and the reported resource improvements come from formal specifications and mathematical cost models rather than timing on physical quantum hardware.812
Quotable sentences
Lean is an open-source programming language and proof assistant licensed under Apache-2.0 and supported by the Lean Focused Research Organization.
123Lean 4.0.0, the first official release of Lean 4, was published on 2023-09-08.
4As of 2026-11-24, Lean v4.36.0 (released 2026-11-16) is the latest stable release on GitHub.
5Lean 4.37.0-rc1 was published on 2026-11-18 as a release candidate with 370 landed changes, and Mathlib published a matching v4.37.0-rc1 pre-release on 2026-11-19.
67On 2026-11-23, Google DeepMind open-sourced its Lean 4 quantum-program verification library, problem specifications, and verified solutions in google-deepmind/formal-quantum-computation.
89The accompanying preprint arXiv:2611.09822v3 was submitted on 2026-11-06 and revised on 2026-11-16, and its reported circuit cost figures are derived from formal models rather than physical quantum hardware runs.
1012
Timeline
- Lean 4.0.0 is released as the first official release of Lean 4.4
- Authors submit preprint arXiv:2611.09822 on discovering formally verified quantum programs in Lean with Gemini 4 agents (revised to v3 on 2026-11-16).10
- Lean v4.36.0 is published as a stable release on GitHub.5
- Lean 4.37.0-rc1 is published as a release candidate with 370 landed changes.6
- Mathlib (mathlib4) publishes pre-release v4.37.0-rc1 updating its toolchain to Lean 4.37.0-rc1.7
- Google DeepMind announces the public release of its Lean 4 quantum-program verification library, problem specifications, and verified solutions on GitHub.89
Sources
Academic and news
- 10Discovering formally verified quantum programs with AI · arXiv · published 2026-11-16 · checked 2026-11-24https://arxiv.org/abs/2611.09822v3
- 11DeepMind's AI agents found cheaper quantum algorithms, and proved them · The Next Web · published 2026-11-23 · checked 2026-11-24https://thenextweb.com/news/google-deepmind-gemini-agents-quantum-algorithms-lean
- 12Google opens the proofs behind its AI-designed quantum programs · QubitWire · published 2026-11-23 · checked 2026-11-24https://qubitwire.com/articles/google-deepmind-quantum-program-proofs-public-release
Official sites
- 1Lean Programming Language · Lean Focused Research Organization · checked 2026-11-24https://lean-lang.org/
- 2Lean Focused Research Organization · Lean Focused Research Organization · checked 2026-11-24https://lean-fro.org/
- 3leanprover/lean4: Lean 4 programming language and theorem prover · Lean Focused Research Organization · checked 2026-11-24https://github.com/leanprover/lean4
- 4Release v4.0.0 - leanprover/lean4 · Lean Focused Research Organization · published 2023-09-08 · checked 2026-11-24https://github.com/leanprover/lean4/releases/tag/v4.0.0
- 5Release v4.36.0 - leanprover/lean4 · Lean Focused Research Organization · published 2026-11-16 · checked 2026-11-24https://github.com/leanprover/lean4/releases/tag/v4.36.0
- 6Lean 4.37.0-rc1 (2026-11-18) · Lean Focused Research Organization · published 2026-11-18 · checked 2026-11-24https://lean-lang.org/doc/reference/latest/releases/v4.37.0/
- 7Release v4.37.0-rc1 - leanprover-community/mathlib4 · Lean Community · published 2026-11-19 · checked 2026-11-24https://github.com/leanprover-community/mathlib4/releases/tag/v4.37.0-rc1
- 8Finding faster quantum algorithms with agents and formal verification · Google DeepMind · published 2026-11-23 · checked 2026-11-24https://deepmind.google/blog/finding-faster-quantum-algorithms-with-agents-and-formal-verification/
- 9google-deepmind/formal-quantum-computation · Google DeepMind · checked 2026-11-24https://github.com/google-deepmind/formal-quantum-computation
Review and writing
Expert review pending
When a credentialed expert reviews this page, the reviewer's name and the review date appear here. (Current version 67e7441e)
How this page was written
Written automatically from the public information in the sources above.
Version
67e7441e6a7932ee0dbba35dc0a3d34393f73ef2df3f56ba1e528b462bc710b3
Each edit gives the page a new version number.
Mimirwiki. "Lean (Theorem Prover)." Version 67e7441e, 2026-11-24. https://mimirwiki.com/wiki/lean-theorem-prover
# Markdown curl https://mimirwiki.com/wiki/lean-theorem-prover.md # JSON-LD, by content negotiation curl -H "Accept: application/ld+json" \ https://mimirwiki.com/wiki/lean-theorem-prover
Add an extension to the address to get the same content in that format.