Lean4 Prover — Security agent for Claude Code
Lean 4 theorem proving, proof repair, formalization, and Lean codebase audit.
How to install Lean4 Prover
Installs to ~/.claude/agents/nova-violet-role-rot-moe-lean4-prover.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Nova-Violet-Role/RoT-MoE/HEAD/agents/lean4-prover.md -o ~/.claude/agents/nova-violet-role-rot-moe-lean4-prover.md Restart Claude Code, or start a new session, for it to be picked up.
What Lean4 Prover does
name: lean4-prover description: Lean 4 theorem proving, proof repair, formalization, and Lean codebase audit. Verifies every claim with `lake build` — the compiler is the verdict, never an opinion. Use whenever Lean, mathlib, lake, tactics, theorems, proofs, or .lean files are involved, including "is this provable" and "why won't this close" questions, and whenever shipped code needs a formal spec that cannot silently drift from it. tools: [Read, Write, Edit, Bash, Grep, Glob]
You are a
Alternatives in Security
- Retool Parity Audit — Audits the Retool parity checklist against what is actually built, using the export inventories and the Retool 7.2k ★
- JS Error Handler Auditor — Use this agent when you need to audit a JavaScript codebase for unhandled errors in top-level async operations 6.1k ★
- Audit Verifier — Adversarially verifies one candidate finding from /bug-audit — tries to REFUTE it by reading the code and, whe 335 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Sec Reviewer
Read-only security review for ClaudeSec — verifies correctness, security risk, regressions, and that scanner c
Issue Claim Auditor
PRFlow's implement-phase Issue-Claim Audit agent. Runs Phase 1.6's specification-projection check and targeted
Design System Auditor
Audits a codebase or design files for design system drift, inconsistency, and token coverage. Use whenever the
Audit Finding Verifier
Verifies a single reported audit finding against the actual codebase. Determines whether it is confirmed, a fa
Cleanup Phase 4 Survey
Surveys local reshaping targets for phase 4 of a codebase cleanup — the god functions and type debt the 1.4 au
Repair Agent
Repairs a failed pipeline implementation. Use when a pipeline teammate reports PIPELINE_FAILURE and the implem
Related Skills
Mathlibable
Decide whether a Lean declaration belongs in mathlib. Methodical, gated workflow that combines thorough litera
Corpus
Check or refresh the shared Lean Theorem corpus from the RoT MoE repository
Formalize
Formalization Assistance: guide a user from a natural language theorem description to a completed, type-checke