aristotle

aristotle is a command for Claude Code from afhverjuekki/claude-code-aristotle-plugin. It costs 15 tokens per session (681 once invoked), scanned A, original, MIT.

A command that sends informal or incomplete mathematical proofs to Aristotle, a cloud service that turns them into Lean 4 proofs. Lean 4 is a programming language used to check mathematical statements precisely.

In plain words
What is it for?
Use it to work through Lean files containing sorry placeholders, prepare theorem scaffolds, submit proofs to Aristotle, and inspect the resulting axioms.
Why use it?
It helps turn proof ideas into machine-checked code. It also provides checks for placeholder proofs and hidden assumptions before accepting the result.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the aristotle plugin — 1 skill, 2 commands, 2 agents shipped together

Good fit Use it to work through Lean files containing sorry placeholders, prepare theorem scaffolds, submit proofs to Aristotle, and inspect the resulting axioms.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/afhverjuekki/claude-code-aristotle-plugin/aristotle
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.

Clone the repo
git clone --depth 1 https://github.com/afhverjuekki/claude-code-aristotle-plugin

Made for: Claude Code.

Or install aristotle, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 agents.

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 aristotle

README.md
[![agentmods](https://agentmods.dev/badge/commands/afhverjuekki/claude-code-aristotle-plugin/aristotle.svg)](https://agentmods.dev/commands/afhverjuekki/claude-code-aristotle-plugin/aristotle)
Your own site
<a href="https://agentmods.dev/commands/afhverjuekki/claude-code-aristotle-plugin/aristotle"><img src="https://agentmods.dev/badge/commands/afhverjuekki/claude-code-aristotle-plugin/aristotle.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00015 $0.00681
Opus 5 $0.00008 $0.00341
Sonnet 5 $0.00003 $0.00136
Haiku 4.5 $0.00002 $0.00068

Measured 7d ago against content hash d1481dd2b506, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

aristotle 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 7d 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.

commands/aristotle.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aristotle Lean 4 Formalization

Load the aristotle-workflow skill for comprehensive guidance.

Workflow Overview

Aristotle is a cloud-based theorem prover that formalizes proofs to Lean 4. It works best when given an informal proof to formalize, not when asked to discover proofs from scratch.

If Given a Lean File ($ARGUMENTS)

  1. Read the file: @$1

  2. Identify theorems with sorry placeholders

  3. For each theorem:

    • Check if docstring contains PROVIDED SOLUTION hint
    • If no hint, ask user for informal proof strategy
    • Add hint to docstring
  4. Create standalone file if needed (custom library imports won't compile in Aristotle's cloud)

  5. Submit to Aristotle:

uvx --from aristotlelib aristotle prove-from-file "$1" \
  --no-validate-lean-project --no-auto-add-imports
  1. After Aristotle completes (3-6 min queue):
    • Review the output file (*_aristotle.lean)
    • Verify proofs with #print axioms theorem_name
    • Check for sorryAx contamination

If Given a Theorem Description

Follow the Erdos-style workflow:

Step 1: Write Informal Proof

Draft a rigorous informal proof first. Break into small lemmas.

Step 2: Create Lean Scaffold

/--
[Informal proof here]

PROVIDED SOLUTION
[Specific hints: lemmas to use, induction strategy, etc.]
-/
theorem theorem_name : [statement] := by
  sorry

Step 3: Submit to Aristotle

uvx --from aristotlelib aristotle prove-from-file theorem.lean \
  --no-validate-lean-project --no-auto-add-imports

Step 4: Verify and Fix

  • Check #print axioms for sorryAx
  • Fix any Lean warnings
  • Adapt proof back to project if needed

Critical Reminders

  • Aristotle runs in cloud: Lean 4.24.0 + mathlib 4.24.0
  • Custom imports fail: Create standalone files with inlined definitions
  • Upstream sorries contaminate: Verify #print axioms shows no sorryAx
  • Queue time: Expect 3-6 minutes
  • Provide hints: Break proofs into small lemmas in docstrings

Read the full file on GitHub · 90 lines

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. 7d ago First seen · 90 lines · 15 tokens per session scan A d1481dd2b506

Subscribe to this mod's changes

aristotle is a command published in the GitHub repository afhverjuekki/claude-code-aristotle-plugin (10 stars, last pushed 8mo ago), licensed MIT. It adds 15 tokens to every session and 681 once invoked, about $0.0001 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.