Aether / Rigor

Rigor

An independent proof checker for Lean 4, written in safe Rust. It re-checks every definition and theorem that Lean exports, so a proof is trusted only if a second, small kernel agrees.

3.8× fasterthan leanchecker on Lean's Std library (11.9 s vs 44.2 s)
25% less memoryon Std (696 MB vs 928 MB peak)
~2,600 linesof kernel, forbid(unsafe_code), no dependencies
0 of 1,608meaning-changing mutants accepted in mutation testing

Try the real kernel

The same kernel and parser, compiled to WebAssembly, run below on Lean's Init.Prelude export (1,840 declarations; 570 KB download). Checking runs in a background worker on one thread. Tamper gives one theorem another theorem's proof; the kernel must refuse it.

Loading the kernel…

Your own file: run lake exe lean4export YourModule > out.ndjson (lean4export 3.x, NDJSON). It is read in this page only. Large libraries are faster with the native, multi-threaded build.

Measured against leanchecker

Lean v4.36.0-rc1 exports, Apple M4 MacBook Air, leanchecker --fresh against rigor-bench --check. Peak resident memory from /usr/bin/time -l. Rigor’s times include parsing the text export (332 MB for Init, 532 MB for Std); leanchecker reads compiled .olean files.

LibraryDeclarationsleancheckerRigor, parallelRigor, one thread
Init58,54628.7 s · 547 MB7.8 s · 478 MB25.1 s · 404 MB
Std96,62644.2 s · 928 MB11.9 s · 696 MB44.9 s · 567 MB

How it stays trustworthy

Source on GitHub · MIT license.