ALab / clean
The proof checker the other systems rely on.
Solver and AI outputs stay untrusted until the kernel checks them: run clean on your own machine, with no Lean subprocess.
github.com/alabsystems/clean · ALab Academic Use License · written in Rust · signed releases
- 616 / 764
- declarations in 5 pinned Mathlib source files elaborated with
sorryallowed (not sorry-free)2026-10-17 ↗ - 45 / 50
- benchmark TLA+ obligations proved automatically (47 of 50 correct; 2 negative tests)ALab's own measurement, by 2026-07-24
- measuring
- kernel re-check wall time against Lean’s kernel on a pinned Mathlib slice
Get clean
macOS, Apple silicon
aterm pkg install clean
Verified against aterm’s signed package index (also in --default-set). Get aterm first. ↗
Linux, Windows, Intel Macs. No current build. The signed clean package is built for Apple-silicon macOS only. ↗
How you use it
Run clean check FILE.lean to kernel-check a Lean file: it prints how many declarations passed and failed, and a sorry fails with 0 passed, 1 failed and sorry axioms: 1. Run clean server for JSON-RPC.
Works today
- trust labels a result
Certifiedonly when clean has issued a certificate for it. ↗ clean export-certwrites a.cleancertproof bundle; the terminal on this site re-checks one in your browser.clean olean replay --from-export FILEre-checks a Lean export file: exit 0 accepts, 1 rejects, 2 declines.
Not yet
- Of 2,184 Lean test files (2026-10-18), clean rejected 1,701 Lean accepts and accepted 20 Lean rejects.
- Not a full Lean 4 replacement: parser, elaborator, tactics, compiler, Lake and LSP lack Lean-wide parity.
- Rechecking a compiled Mathlib target is not source elaboration: elaborating Mathlib source is the open frontier.
not proved: The Rust kernel is trusted: replacing it with a proved checker written in Lean is a plan, not yet a fact.
Against the competitions
-
Lean Kernel Arena, Round 2026-09193 exports: 71 bad, 122 good
0 wrong accepts on 2026-10-23 (1 on 2026-10-17, fixed); 10 of 122 good tests refused.
ALab’s own replay of archived tests via clean’s export checker, local machine; not an official entry; declines unpublished. ↗
Follow the work
- releases every release and signed package
- release-notes/ what changed in each release
ALab