lean4-prover

lean4-prover is an agent for Claude Code from Nova-Violet-Role/RoT-MoE. It costs 98 tokens per session (8,201 once invoked), scanned A, original, AGPL-3.0.

An agent for Lean 4, a programming language and tool for writing computer-checked mathematical proofs, as well as auditing Lean codebases.

In plain words
What is it for?
Use it to write or repair Lean proofs, formalize mathematics, investigate failed tactics, and build or audit Lean projects.
Why use it?
It checks proof claims by running the Lake build system, so success comes from the compiler rather than an unverified explanation.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rot-moe plugin — 5 commands, 10 agents, 33 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/nova-violet-role/rot-moe/lean4-prover
Clone the repo
git clone --depth 1 https://github.com/Nova-Violet-Role/RoT-MoE

Made for: Claude Code.

Or install rot-moe, the plugin that ships this one along with the rest of its 5 commands, 10 agents, 33 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lean4-prover

README.md
[![agentmods](https://agentmods.dev/badge/agents/nova-violet-role/rot-moe/lean4-prover.svg)](https://agentmods.dev/agents/nova-violet-role/rot-moe/lean4-prover)
Your own site
<a href="https://agentmods.dev/agents/nova-violet-role/rot-moe/lean4-prover"><img src="https://agentmods.dev/badge/agents/nova-violet-role/rot-moe/lean4-prover.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.08201
Opus 5 $0.00049 $0.04100
Sonnet 5 $0.00020 $0.01640
Haiku 4.5 $0.00010 $0.00820

Measured 6d ago against content hash 02480f1ba943, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

lean4-prover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/lean4-prover.md · 560 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 560 lines · 98 tokens per session scan A 02480f1ba943

Subscribe to this mod's changes

lean4-prover is an agent published in the GitHub repository Nova-Violet-Role/RoT-MoE (2 stars, last pushed 6d ago), licensed AGPL-3.0. It adds 98 tokens to every session and 8,201 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

paper-auditor

Autonomous paper consistency verification. Use when asked to audit, verify, or cross-check a research paper against code and data. Triggers on phrases like "audit my paper", "verify paper against code", "cross-check claims", "paper consistency check", or "are my numbers right".

fcakyon/phd-skills · 63 tokens

reviewer

The Reviewer of the aSPARK team. Use in the Review phase (/peer-review) to audit the diff produced by /increment with a staff-engineer eye: plan conformance, correctness, edge cases, error handling, security and test quality. Writes the review report and may fix obvious low-risk issues directly.

a-lottes/aSPARK · 66 tokens

designer

The Designer of the aSPARK team. Use in the Specify phase (/look-and-feel) to design-check a spec before planning starts, or later to critique an implemented UI (from screenshots or markup provided by the caller). Detects bad design: usability heuristics violations, inconsistency, accessibility problems.

a-lottes/aSPARK · 64 tokens

researcher

Sub-agent that performs exhaustive multi-source academic search (paper-search MCP across 22 platforms + optional NotebookLM + optional WebSearch). Returns structured JSON of candidate refs for sota-writer phase A. Invoke when broad literature search is needed without polluting the main agent's context.

roomi-fields/paper-trail · 58 tokens

seo-manager

SEO specialist. Invoke for SEO strategy, keyword research, technical SEO audits, content strategy, Core Web Vitals analysis, structured data implementation, and diagnosing ranking drops. All three SEO pillars: technical, content, and authority.

pranav8494/team-of-agents · 48 tokens

product-manager

Product management specialist. Invoke for product discovery, user story writing, acceptance criteria, PRDs, prioritisation frameworks, roadmaps, success metrics, and opportunity assessment. Distinct from project-manager, use this for what to build, not how to deliver it.

pranav8494/team-of-agents · 55 tokens