An agent that writes Lean 4 proofs. Give it a theorem; it loops
(LLM draft → lake build → parse diagnostics → repair) until
the proof type-checks. Nothing counts as proved until Lean's kernel accepts it.
install
# 1. Lean toolchain + Mathlib (once)curl https://elan.lean-lang.org/elan-init.sh -sSf | shcd lean && lake update && lake exe cache get && lake build# 2. Python depspip install -e .pip install textual pyperclip
configure
# any OpenAI-compatible endpointexport OPENAI_API_KEY=...export OPENAI_BASE_URL=http://localhost:11434/v1export PROVER_MODEL=gpt-4o# free: OpenCode Zen, e.g. big-pickleexport OPENAI_BASE_URL=https://opencode.ai/zen/v1
prove
prover prove "theorem absl (a : ℤ) : a ≤ |a|"# best-of-N, full-file mode, adaptive stepsprover prove "..." --n-attempts 3 --adaptive# script-friendly JSON on stdoutprover ask "theorem x : True := by trivial"
benchmark
prover bench --max-steps 20 --report report.json --results benchmark-results.json# pure-Lean floor, no LLMprover lean-baseline --tactic prover_finish# record your score to the boardprover leaderboard --run --name my-model
tui
prover# interactive TUI: browse problems, watch live repairs,# queue parallel workers, slash commands, themes# expose to Claude / opencode / Cursorprover mcp