The Lean Github ecosystem #

Documentation of the branches, tags, and CI workflows relevant for making pull requests to Lean, Batteries, and Mathlib.

Things you need to know #

Tags and branches #

leanprover/lean4 #

leanprover-community/batteries (aka 'Batteries') #

leanprover-community/mathlib4 (aka 'Mathlib') #

Mathlib nightly and bump branches #

Every month there is a new Lean release, and Mathlib aims to migrate to the new Lean release as soon as possible. To make this process as smooth as possible, we follow the following procedure:

The following image is slightly outdated as it still contains references to the now obsolete lean-pr-testing-NNNN branches. Their role has been replaced by the leanprover/downstream-lean4 repository, which automatically pushes adaptations developed inside itself to the nightly-testing branch as plain commits (similar to any other contributor). Overview of branches at Mathlib/Batteries