Lean is an open-source proof assistant and functional programming language whose development was started by Leonardo de Moura at Microsoft Research in 2013. Users write mathematical statements and proofs in a formal language, and the computer checks each step of the proof. Since 2023, development has been led by the nonprofit Lean FRO.
Lean is used to formalize mathematics and verify software, and its community-maintained library mathlib is widely used. In AI, it also serves as a way to mechanically check proofs generated by models.