Skip to main content

mathlib-build

Building Mathlib

Source facts

Repository
leanprover/skills
Last source activity
February 20, 2026 at 12:34
Detected SKILL.md language
English
Stars
72
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
mathlib-build
description
Building Mathlib
# Building Mathlib Fetch the Mathlib olean cache before build: ```bash 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: ```bash 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`.
View on GitHub