---
name: lean
description: "Use when adopting Lean to assess this standard: Build and verify proof dependencies"
---

# Apply Lean

Build the project using its pinned Lean toolchain and Lake manifest. Check changed theorems and review any use of placeholders or additional axioms.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Lean.
2. Use Lean in this repository to meet this standard: Build and verify proof dependencies. Build the project using its pinned Lean toolchain and Lake manifest. Check changed theorems and review any use of placeholders or additional axioms. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://lean-lang.org/) for configuration and prerequisites.

## Tool invocation

```
lake build
```
