Lean is an open-source programming language and proof assistant that enables correct, maintainable, and formally verified code

Trustworthy

Lean's minimal trusted kernel guarantees absolute correctness in mathematical proof, software and hardware verification.

Powerful

From elementary concepts to cutting-edge research, Lean's expressive language and extensive built-in tools let users focus on the big picture rather than routine details.

Extensible

Lean's metaprogramming capabilities enable users to extend the language with domain-specific notations and new proof automation techniques.

USE CASES

Lean in Action

Showcasing real-world applications.

MORE FROM THE LEAN ECOSYSTEM
The Tau Ceti logo

Tau Ceti

Tau Ceti uses AI to build a reusable library of formalized mathematics on top of Mathlib. Humans direct the work through curated roadmaps, AI contributors write and review the code, and Lean's kernel checks the proofs. Recent results include Burnside's theorem, Carathéodory's boundary extension theorem, and Schur–Weyl duality. The goal is to provide the foundations researchers need to reach the mathematical research frontier.

Read more
Pierre de Fermat painting by Rolland Lefebvre

Fermat's Last Theorem

The Fermat's Last Theorem project is formalizing one of mathematics' most complex proofs in Lean, demonstrating the proof assistant's capacity to handle frontier research mathematics. This ambitious work is creating formalized definitions for advanced number-theoretic objects, enabling mathematicians to build machine-verified proofs of cutting-edge results while establishing Lean as a powerful platform for mathematical collaboration.

Read more
USE CASES

Browse the full gallery

See how engineering teams and research labs are putting Lean to work.

Explore All Use Cases
COMMUNITY

From our Community

Voices from the people formalizing math and verifying software with Lean.

Lean enables large-scale collaboration by allowing mathematicians to break down complex proofs into smaller, verifiable components […] With Lean, we are beginning to see how AI can accelerate the formalization of mathematics, opening up new possibilities for research.
Terence TaoMathematician, UCLA
Mathematical Superintelligence (MSI) with Lean will play a critical role in any industry where safety is paramount, including aerospace, automotive, and medical technology.
Tudor AchimCo-Founder and CEO, Harmonic
At Google DeepMind, we used Lean to build AlphaProof, a new reinforcement-learning based system for formal math reasoning. Lean’s extensibility and verification capabilities were key in enabling the development of AlphaProof.
Pushmeet KohliVP, Science and Strategic Initiatives, Google DeepMind
Lean has become a key enabler in scaling automated reasoning at Amazon. Its capacity to verify complex systems involving advanced mathematical concepts has transformed how we tackle problems once thought too complex or impractical. Lean is an indispensable tool in modern, large-scale software engineering, helping ensure soundness, correctness, and verified AI across our systems.
Byron CookVP and Distinguished Scientist, AWS
Lean is the core verification technology behind Cedar, the open-source authorization language that powers cloud services like Amazon Verified Permissions and AWS Verified Access […] Lean’s efficiency, extensive libraries, and vibrant community enable us to develop and maintain Cedar at scale, while ensuring the key correctness and security properties that our users depend on.
Emina TorlakSenior Principal Applied Scientist, AWS
FOR DEVELOPERS

Write software. Prove it correct.

Lean is a real functional language that compiles to native code. Its dependent type system lets you write a precise specification, then prove your software meets it.

Covers every case

A single proof guarantees correctness for every possible input a function could receive, not just the tested examples.

Proofs live with your code

There's no separate spec language. You write proofs in the same language you write your program in.

Service.lean

FOR MATHEMATICIANS

Formalize mathematics. Verify every step.

Define it, prove it, and let Lean check every step. With Mathlib, you build on an expansive library of formalized mathematics instead of starting from zero.

Automate routine steps

Use more powerful tactics to combine many elementary steps into one, so you spend less time on routine reasoning.

Real-time feedback as you write

Lean's Infoview shows your current goal and hypotheses live, updating with every tactic so you always know what's left to prove.

Infinitude.lean

LEAN FRO

The Organization Behind Lean

Lean FRO supports the people, systems, documentation, automation, and community work that help Lean grow from a research tool into durable public infrastructure.

A focused mission

The Lean Focused Research Organization envisions a future where Lean drives innovation and progress across formal mathematics, software and hardware verification, and software development.

Read the roadmap →

OpenAI announces a Lean-verified refutation of the Exponential Time Hypothesis and results on the Kakeya and Stein restriction conjectures, covered by New Scientist; Axiom releases the first complete Lean formalization of the Classification of Finite Simple Groups; &Truth launches out of stealth with $70M in seed funding for Lean-based software verification, covered by The New York Times; Google DeepMind's Gemini 4 Argon and Anthropic's Claude design efficient quantum circuits, with key components verified in Lean; Google DeepMind publishes a Gemini-based agentic pipeline for the Busy Beaver problem, integrating formal theorem proving in Lean

SPONSORS

Sponsors and Partners

Lean FRO gratefully acknowledges support from Alex Gerko, Founder and CEO of XTX Markets, as well as from the following organizations.

Start building with Lean

From formalizing frontier mathematics to verifying production software, Lean gives you the tools to know your work is correct.