mathlib-build

star 50

Building Mathlib

leanprover By leanprover schedule Updated 2/20/2026

name: mathlib-build description: Building Mathlib

Building Mathlib

Fetch the Mathlib olean cache before build:

lake exe cache get

Use lake exe cache get! (with !) to force re-download if the cache appears corrupt.

When building Mathlib reduce verbosity to save on tokens:

lake build -q --log-level=info

For merge conflict resolution or small fixes build only the affected files: lake build Mathlib.Foo.Bar -q --log-level=info. Often it is fine to leave a complete build to CI. If you need a thorough local build, use lake build Mathlib MathlibTest Archive Counterexamples && lake exe runLinter.

Install via CLI
npx skills add https://github.com/leanprover/skills --skill mathlib-build
Repository Details
star Stars 50
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator