Install Elan and a compatible Lean toolchain. This repository pins Lean in the lean-toolchain file at the repo root (for example leanprover/lean4:v4.21.0).
git clone https://github.com/SentinelOps-CI/lean-toolchain.git
cd lean-toolchain
lake buildThe first lake build downloads mathlib and other dependencies; expect a long compile on a cold cache.
Required if you work on the generated crate or run parity tests:
- Install Rust (stable).
- After Lean changes to the extractor or templates, run
lake exe extract, thencargo test(andcargo clippy --all-targets -- -D warningsif you touch Rust) insiderust/.
To build the MkDocs site from the same machine:
pip install mkdocs-material
mkdocs build -f docs/mkdocs.ymlSee Documentation home for what the pages cover.