← All competitions ended · formal-methods · CPU only · 8 open problems

Lean Kernel Challenge — Stage 1

Write faster Lean 4 kernel-reducible algorithms and proofs for eight computational problems, ranked by instruction count.

Stage 1 of a multi-stage competition on improving the performance of verified computation in the Lean 4 kernel. Participants submit a single Submission.lean file containing a total function impl : Nat → Output and a proof impl_correct : ∀ n, impl n = spec n, which must be kernel-reducible. Each of the eight problems has its own leaderboard and three test groups; ranking is by the sum of per-case median instruction counts over three kernel replays, lowest first. Co-organized by the Lean FRO and the SAIR Foundation, with Joachim Breitner, Leonardo de Moura, Kim Morrison, and Terence Tao.

Run by Lean FRO and SAIR Foundation

Importance: 5/10 (stakes 2/4, open 0/3, verified 3/3). Stage 1 closed November 20, 2026; Stage 2 of this verified-computation race in the Lean kernel begins in December. How we rank

8 tracks · 0 entries · 0 participants

Repository: github.com/SAIRcompetition/lean-kernel-challenge · Markdown digest · JSON

Point your agent at it

Solve Lean Kernel Challenge — Stage 1 with your agent

Paste this into Claude Code, Codex, Cursor or any agent that can run a shell. It reads this challenge's instructions for agents and works with you from the rules to a first valid entry.

Fetch and follow the instructions at https://openchallengelist.com/c/saircompetition-lean-kernel-challenge-d09e1d4be0a1fb34/join.txt to enter "Lean Kernel Challenge — Stage 1" with me.
  1. Reads the rulesWhat is measured, how entries are verified, and what to beat: 8 open tracks.
  2. Checks with you firstCompute (CPU only), cost, and what becomes public, before it changes anything.
  3. Builds and verifiesReproduces the current best, then tries to beat it, checking every attempt the way the organizers will.
  4. Submits on your goOpens the pull request only when you say so, with the agent credited.

Read what your agent reads →Nothing is forked, pushed or submitted without you.

What it takes to enter

Compute
CPU only — Local evaluation is unsandboxed and CPU-only; official evaluation runs in a container with a 4 GiB memory envelope and sealed timing budgets. No GPU required.
Tooling
Lean 4 (pinned 4.33.1), elan, Git, Python 3.9+ (for fib, mertens, primecount setup), C/C++ toolchain (for local evaluation)
How to submit
Submit one Submission.lean file through the SAIR competition platform at https://competition.sair.foundation/ when submissions open.
Submission
A single human-readable Submission.lean file, at most 1 MiB, with a total, kernel-reducible algorithm and proof in namespace Submission: impl : Nat → Output and impl_correct : ∀ n, impl n = spec n. Keep the starter's exact types and theorem statement.
Verified by
Official evaluation checks the interface, universal proof, and axioms, then runs the complete unseeded public plan with three kernel replays per case, measuring instruction counts. Correctness replay is verification only.
Deadline
Stage 1 closed November 20, 2026, 23:59 AoE; Stage 2 begins December 2026, date to be announced
Rounds
Stage 1 of a multi-stage competition; pre-registration 2026-08-26, official launch 2026-09-15 12:00 UTC, deadline 2026-11-15 23:59 AoE.
Eligibility
Open to the community; registration via the SAIR competition platform.
Cost
free

Quickstart (from the repository; read before running)

cd problems/partition
lake build
# edit only Submission.lean, then repeat lake build
# optional local evaluation:
bash evaluation/setup.sh --problem partition
python3 evaluation/run.py --problem partition --submission problems/partition/Submission.lean

If this page helped, you can mention Found via https://openchallengelist.com/c/saircompetition-lean-kernel-challenge-d09e1d4be0a1fb34 in your pull request or submission notes. It is optional; it is how this directory learns which listings bring people in.

Leaderboards

TrackMetricBaselineBestByEntriesStatus
Fibonacci (fib)↓ instruction count (instructions)———0Open: baseline unbeaten
Integer partitions (partition)↓ instruction count (instructions)———0Open: baseline unbeaten
Mertens function (mertens)↓ instruction count (instructions)———0Open: baseline unbeaten
Prime counting (primecount)↓ instruction count (instructions)———0Open: baseline unbeaten
Seeded matrix permanent (permanent)↓ instruction count (instructions)———0Open: baseline unbeaten
Rule 110 cellular automaton (ca-rule110)↓ instruction count (instructions)———0Open: baseline unbeaten
SHA-256 hash chain (sha256)↓ instruction count (instructions)———0Open: baseline unbeaten
Polynomial discriminant (polydisc)↓ instruction count (instructions)———0Open: baseline unbeaten

Latest entries

No dated entries yet.

Links

For the organizer

Open Challenge List badge Add this badge to your README: it shows this listing's live numbers and links here.

[![Open Challenge List](https://openchallengelist.com/badge/c/saircompetition-lean-kernel-challenge-d09e1d4be0a1fb34.svg)](https://openchallengelist.com/c/saircompetition-lean-kernel-challenge-d09e1d4be0a1fb34)

Crawled 2026-11-26 from public sources. The repository is the source of truth; verify before citing.