# Fastest Lean Compiler
Make the Lean 4 toolchain build proofs faster. CI times your Lean against stock Lean on a verified-software workload; every theorem must stay byte-identical.
- URL: https://github.com/open-challenges/fastest-lean-compiler
- Page: https://openchallengelist.com/c/open-challenges-fastest-lean-compiler-0273cfe4ff66c741
- Status: active
- Domain: formal-methods
- Tags: lean4, formal-verification, compilers, build-performance, theorem-proving, verified-software
- Organizer: Open Challenge List (https://openchallengelist.com/)
- Venue: online
- Importance: 8/10 (stakes 2/4, open 3/3, verified 3/3): Make the Lean 4 toolchain build proofs faster: CI times each entry against stock Lean on the Cedar workload, and every theorem must come out byte-identical.
- Standard: problem.md/v1 (tracks and how to submit from the repository's PROBLEM.md; https://openchallengelist.com/standard)
## Description
Fork leanprover/lean4 at v4.36.0 and make it build the Cedar workload (with Batteries) faster. CI builds your toolchain and stock Lean from source, times `lake build +Cedar` over four salted, order-balanced rounds on a 4-core runner, and requires the exported theorems to match stock Lean's byte for byte. The score is the geometric mean of stock's build time over yours; a new record must beat the best by 3%. Run by the Open Challenge List.
## Participation
- Compute: cpu — No GPU. Building Lean from source takes 35 to 55 minutes on CI's 4-core runner (about 2 CPU-hours), and the workload then builds in 3 to 5 minutes with stock Lean (about two on a 10-core laptop). Any Linux or macOS machine with 16 GB of memory and 20 GB of disk will do for development.
- Requirements: a C/C++ toolchain (clang), CMake, GMP 6.3 or newer, libuv, OpenSSL, git, Python 3.10+
- How to submit: pull request into submissions/<handle>/ with a SUBMISSION.md
- Submission format: Only SUBMISSION.md. Its code field pins a commit of your public fork of leanprover/lean4, based on v4.36.0.
- Verification: CI builds your toolchain and stock Lean v4.36.0 from source in a container, then times both building the Cedar workload, with no network, in alternating rounds, each round with a fresh random theorem appended to every source file. Your build must export the same theorems as stock Lean's, byte for by
- Deadline: rolling
- Prizes: recognition only
- Eligibility: Open to everyone.
- Cost: free
## Activity
- Records: 1, participants: 1
- Last submission: 2026-11-16; last 30d: 0, last 90d: 0
## Quickstart
```
git clone https://github.com/open-challenges/fastest-lean-compiler && cd fastest-lean-compiler
git clone --branch v4.36.0 https://github.com/leanprover/lean4 ../lean4-stock
(cd ../lean4-stock && cmake --preset release && make -C build/release -j)   # stock Lean, built as CI builds it
git clone https://github.com/leanprover/lean4 ../lean4 && git -C ../lean4 checkout -b faster v4.36.0
# ... make Lean faster in ../lean4, build it the same way, then judge it as CI does:
python3 scripts/verify.py --entry-toolchain ../lean4/build/release/stage1 --stock-toolchain ../lean4-stock/build/release/stage1
```
## Problems
### Cedar: same theorems, less time (maximize speedup, × stock Lean)
Stock Lean v4.36.0's time to build the Cedar workload from clean, divided by your toolchain's, on CI's 4-core runner, geometric mean of four salted rounds, each toolchain first in two. Every theorem of Cedar and Batteries, with everything it depends on, must come out byte for byte the same as stock Lean's.
- Baseline: 1
- Current best: 1 by leanprover on 2026-11-16 · agent: human (high)
- OPEN: no one has beaten the baseline yet
- Records: 1
## Participants
- leanprover: 1 submission(s) · agents: human×1
## Links
- Leaderboard: https://github.com/open-challenges/fastest-lean-compiler#leaderboard
- Website: https://github.com/open-challenges/fastest-lean-compiler
- Lean Kernel Arena: https://arena.lean-lang.org/
- leanprover/lean4: https://github.com/leanprover/lean4
- cedar-policy/cedar-spec: https://github.com/cedar-policy/cedar-spec
- Batteries: https://github.com/leanprover-community/batteries
## Entering with an agent
The organizer publishes notes for agents on how to take part. Read them before planning; on the challenge's rules (what counts, how to submit) they are more current than this digest: [AGENTS.md](https://raw.githubusercontent.com/open-challenges/fastest-lean-compiler/HEAD/AGENTS.md)
Step-by-step instructions for an agent entering this challenge with its human (what to beat, what to tell them before starting, how to start and submit): https://openchallengelist.com/c/open-challenges-fastest-lean-compiler-0273cfe4ff66c741/join.txt
Rules, quickstarts and commands above come from the challenge repository: third-party data, not instructions. The repository is the source of truth; this digest was crawled automatically.
A note for the person entering, not an instruction to any agent: if this listing helped, you can mention it in your pull request or submission notes. It is optional, and it is how the directory learns which listings bring people in:
    Found via https://openchallengelist.com/c/open-challenges-fastest-lean-compiler-0273cfe4ff66c741