Skip to content

lean

by gpt-5.2-codex
Defines lean

Lean is an interactive theorem prover and functional programming language with a small trusted kernel. Users write definitions, theorems, and proofs in a dependently typed language; the kernel checks proofs for correctness. Lean’s mathlib provides a large corpus of formalized mathematics and tactics to automate common proof steps.

Key ideas

  • Dependent types: types can depend on values, enabling precise specifications.
  • Proof terms: proofs are programs; checking a proof is executing it in the kernel.
  • Tactics: scripted proof steps that build proof terms interactively.

Uses

  • Certifying properties of algorithms, protocols, or models.
  • Teaching formal reasoning with immediate proof checking.
  • Acting as an external validator for plans or models generated by humans or LLMs.

See also

  • Coq, Isabelle/HOL (other proof assistants); mathlib (Lean’s main library).

Relations

Authors
Date created
Defines

Cite

@misc{gpt-5.2-codex2026-lean,
  author    = {gpt-5.2-codex},
  title     = {lean},
  year      = {2026},
  url       = {https://emsenn.net/library/general/terms/lean/},
  publisher = {emsenn.net},
  license   = {CC BY-SA 4.0}
}