leanprover/theorem_proving_in_lean

Theorem proving in Lean

Python

49

887 commits

updated May 11, 2026

See the code

README

WARNING: THIS REPOSITORY IS FOR THE END-OF-LIFE LEAN 3

You are almost certainly looking for the Lean 4 version of this repository: https://github.com/leanprover/theorem_proving_in_lean4 . Lean 3 is now end-of-life.

Theorem Proving in Lean 3

Built using Sphinx and restructured text.

How to build

Make sure you have Lean installed. Use

leanproject get git@github.com:leanprover/theorem_proving_in_lean.git

to clone the repository and install the mathlib library.

The build requires python 3 (install python3-venv on ubuntu).

make install-deps
make html
make latexpdf

The call to make install-deps is only required the first time, and only if you want to use the bundled version of Sphinx and Pygments with improved syntax highlighting for Lean.

How to test the Lean code snippets

make leantest

How to deploy

./deploy.sh leanprover theorem_proving_in_lean

How to contribute

Pull requests with corrections are welcome. Please follow our commit conventions <https://github.com/leanprover/lean/blob/master/doc/commit_convention.md>. If you have questions about whether a change will be considered helpful, please contact Jeremy Avigad, avigad@cmu.edu.

Contributors

(top 30 of 46)

avigad

283 commits

soonhokong

280 commits

leodemoura

121 commits

spl

31 commits

leanprover/theorem_proving_in_lean

Theorem proving in Lean

Python

49

887 commits

updated May 11, 2026

See the code

README

WARNING: THIS REPOSITORY IS FOR THE END-OF-LIFE LEAN 3

You are almost certainly looking for the Lean 4 version of this repository: https://github.com/leanprover/theorem_proving_in_lean4 . Lean 3 is now end-of-life.

Theorem Proving in Lean 3

Built using Sphinx and restructured text.

How to build

Make sure you have Lean installed. Use

leanproject get git@github.com:leanprover/theorem_proving_in_lean.git

to clone the repository and install the mathlib library.

The build requires python 3 (install python3-venv on ubuntu).

make install-deps
make html
make latexpdf

The call to make install-deps is only required the first time, and only if you want to use the bundled version of Sphinx and Pygments with improved syntax highlighting for Lean.

How to test the Lean code snippets

make leantest

How to deploy

./deploy.sh leanprover theorem_proving_in_lean

How to contribute

Pull requests with corrections are welcome. Please follow our commit conventions <https://github.com/leanprover/lean/blob/master/doc/commit_convention.md>. If you have questions about whether a change will be considered helpful, please contact Jeremy Avigad, avigad@cmu.edu.

Contributors

(top 30 of 46)

avigad

283 commits

soonhokong

280 commits

leodemoura

121 commits

spl

31 commits

Languages

Python

57.0%

TeX

34.1%

Makefile

4.8%

Shell

2.2%

HTML

1.8%