Skip to content
Lean mathematical components library
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github fix(PULL_REQUEST_TEMPLATE): use absolute urls Jan 14, 2019
.vscode maintain(vscode): add ruler at 100 in editor Jan 23, 2019
docs feat(tactic/omega): tactic for linear integer & natural number arithm… Apr 17, 2019
scripts feat(scripts): use apt-get on ubuntu and support older Python versions ( Apr 17, 2019
test feat(tactic/linarith): treat expr atoms up to defeq (#950) Apr 20, 2019
.gitignore fix(scripts/update-mathlib): protect file operations from interrupts (#… Apr 2, 2019
.mergify.yml fix(mergify): merge if either push or pr build passes. (#918) Apr 10, 2019
.travis.yml feat(scripts): use apt-get on ubuntu and support older Python versions ( Apr 17, 2019
CODEOWNERS chore(github/pr): enable code owners Apr 4, 2019
appveyor.yml chore(build): allow PRs from separate repos to test deployment scripts Apr 9, 2019
leanpkg.toml feat(meta, logic, tactic): lean 3.4.2: migrate coinductive_predicates… Jan 21, 2019 chore( a few small improvements (#661) Feb 3, 2019


Build Status Mergify Status

Build status

Lean standard library

Besides Lean's general documentation, the documentation of mathlib consists of:

This repository also contains extra Lean documentation not specific to mathlib.

Obtaining binaries

Install the update-mathlib script

Two options are avaiblable to install update-mathlib:

  • Linux/OS X/Cygwin/MSYS2/git bash: run the following command in a terminal:
curl -sSf | sh
  • Any platform: in the release section of this page, download mathlib-scripts-###-###-###.tar.gz, expand it and run

Fetch mathlib binaries

In a terminal, in the directory of a project depending on mathlib, run the following:


The existing _target/deps/mathlib will be rewritten with a compiled version of mathlib.

Automatic update of the binaries

The following command, run on each project, sets up an automatic update of the mathlib binaries after every git checkout.

echo \#! /bin/sh > .git/hooks/post-checkout
echo update-mathlib >> .git/hooks/post-checkout
chmod +x .git/hooks/post-checkout

Maintainers (topics):

  • Jeremy Avigad (@avigad): analysis
  • Reid Barton (@rwbarton): category theory, topology
  • Mario Carneiro (@digama0): all (lead maintainer)
  • Simon Hudon (@cipher1024): all
  • Chris Hughes (@ChrisHughes24): group_theory, ring_theory, field_theory
  • Robert Y. Lewis (@robertylewis): all
  • Patrick Massot (@patrickmassot): documentation
You can’t perform that action at this time.