whereismyai
Sheaf
Sheaf is an offline auto-prover that verifies Lean 4 code locally on standard computers.
Sheaf is a local-first, single-binary Lean 4 auto-prover written in Rust. It embeds a quantized RoPE encoder, a scalar-quantized HNSW premise index, a content-addressed virtual filesystem, and a Lean 4 kernel verifier into a single ~25 MB executable. The tool runs offline in 8 GB of RAM using CPU-only processing without requiring a GPU, Python runtime, or external model downloads. It routes goals using a compact transformer to predict tactic strategy, executing high-confidence goals directly while escalating uncertain goals to HNSW premise retrieval and Best-First tree search. Every candidate proof is verified by the real Lean 4 kernel, accepting proofs only under standard axioms with zero sorryAx.
Sheaf at a glance
- Best for: Software engineer
- Runs on: CLI, self-hosted, open source
- Pricing: Free
- Released: November 2026
- Category: AI research tool
- Website: github.com/stevesujo/sheaf
Key features
- System 1 and System 2 routing
- Content-addressed virtual filesystem
- Strict kernel and axiom gate
- Two-tier loop deduplication
- Interactive TTY and plain CI output modes
- Machine JSON output mode
- Pre-flight diagnosis and sanity probing
Use it for
- Eliminating sorrys in algebraic laws and list inductions
- Proving multi-module structure and state-machine invariants
- Offloading routine Lean 4 goals locally
- Proving self-contained import Init specifications
Alternatives to Sheaf
- Witness — Generates mathematically proven code and boundary tests from plain English.
- Verified Lean 4 Proofs & Prover Arena — Independent verification and on-chain settlement for Lean 4 code proofs.
- Qwen Reasoning Trainer — Enables self-training and abliteration of Qwen3.8 models on consumer-grade hardware.
- Wyrd — Builds custom verification layers with open-source building blocks.
- SutraDB — It delivers high-performance vector search with zero external C dependencies and extreme RAM reduction.
- LEANN — Efficiently index millions of documents locally with 97% storage savings.
- SemIf OpenJev — Extracts direct token probabilities without generating text or running JSON repair loops.
- Pavel Kazantsev — It checks whether delivered files support listing claims before publishing.
All Sheaf alternatives