Skip to main content

Prerequisites

Install these tools first:
  • elan — Lean toolchain manager (uses the repo-pinned lean-toolchain).
  • just — command runner, from casey/just.
  • solc (0.8.30) and Foundry (forge/cast/anvil) — only needed for the EVM target.

Build

The root justfile is the developer-facing command catalog and CI entrypoint:

Compile a contract

Compile the EVM Counter example to runtime bytecode:
Emit artifacts for other targets from built-in portable IR fixtures:
Lean commands must run through lake env ... so the toolchain environment is set correctly.

Next steps

Onboarding

Full local setup, editor config, and the minimum validation loop.

Architecture

How the compiler lowers Lean sources to chain-native artifacts.

Backend status

Which targets are mature, experimental, or research.

Validation gates

The runnable gates and tool prerequisites for every target.