disprove

disprove is a command for Claude Code from cameronfreer/lean4-skills. It costs 12 tokens per session (4,633 once invoked), scanned A, original, MIT.

An interactive Lean4 command that searches for a counterexample to a mathematical claim and tries to prove the claim false. Lean4 is a programming language and proof checker for formal mathematics.

In plain words
What is it for?
Use it on a file location or theorem name to test whether a proposition is false and obtain a certified counterexample when one can be proved.
Why use it?
It separates a possible counterexample from a verified refutation, reporting a refutation only when Lean checks the proof.

Command for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [disprove-engine.md § Step 2 — Config Menu](../skills/lean4/references/disprove-engine.md#step-2--config-menu)..

Part of the lean4 plugin — 1 skill, 12 commands, 4 agents, 3 hooks shipped together

Good fit Use it on a file location or theorem name to test whether a proposition is false and obtain a certified counterexample when one can be proved.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/cameronfreer/lean4-skills
agentmods
npx agentmods add commands/cameronfreer/lean4-skills/disprove

Made for: Claude Code.

Or install lean4, the plugin that ships this one along with the rest of its 1 skill, 12 commands, 4 agents, 3 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 disprove

README.md
[![agentmods](https://agentmods.dev/badge/commands/cameronfreer/lean4-skills/disprove/github.svg)](https://agentmods.dev/commands/cameronfreer/lean4-skills/disprove)
Your own site
<a href="https://agentmods.dev/commands/cameronfreer/lean4-skills/disprove"><img src="https://agentmods.dev/badge/commands/cameronfreer/lean4-skills/disprove/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for disprove

Your own site · 80×15
<a href="https://agentmods.dev/commands/cameronfreer/lean4-skills/disprove"><img src="https://agentmods.dev/badge/commands/cameronfreer/lean4-skills/disprove.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,633 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.00012 $0.04633
Opus 5.5 $0.00005 $0.01853
Sonnet 5.5 $0.00002 $0.00927
Haiku 4.5 $0.00001 $0.00463

Measured 2mo ago against content hash 75734caba028, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

disprove 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • disprove — 91% identical, 0 lines differ
plugins/lean4/commands/disprove.md · 304 lines

How it starts

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

Lean4 Disprove

Search for a counterexample to a target proposition and, when possible, produce a Lean proof of its negation. Reports REFUTED only when Lean certifies the refutation; otherwise WITNESS_UNCERTIFIED (a candidate was found but Lean refused to certify it) or INCONCLUSIVE (no candidate found within budgets).

/lean4:disprove is always interactive — disprove is an exploratory search, and the workflow generates three dynamic menus each cycle (Step 0 knowledge search, Step 1 method, Step 2 config) seeded by accumulated evidence and the Target Profile.

Usage

/lean4:disprove Foo.lean:42                       # File + line (sorry/declaration site)
/lean4:disprove MyNs.SubNs.myThm                  # Qualified theorem name
/lean4:disprove Foo.lean:42 --max-cycles=5
/lean4:disprove Foo.lean:42 --commit=never

Prime Directive

Report REFUTED only when a Lean term of the negation typechecks under lake lean <target-file> (the dependency-aware file gate: it builds the file's imports, then elaborates this exact file — also for a target outside any lean_lib; lake env lean is a pre-screen, never the license — it reads built .oleans and cannot see a stale import) with no sorry or admit and its axiom set is within the allowed whitelist (propext, Classical.choice, Quot.sound; plus Lean.ofReduceBool only under an explicit native_decide opt-in this cycle). Fast witnesses and informal heuristics are hypotheses until Lean certifies them. See disprove-engine.md § Prime Directive.

REFUTED is licensed by a checked closed term of type ¬ TARGET, not by the artifact's surface form: T_counterexample may be a direct ¬ TARGET theorem or a witness theorem whose named per-shape wrapper (also axiom-checked) derives ¬ TARGET.

Invocation Contract

Interpret this command's inputs per the Command Invocation Contract.

Read the full file on GitHub · 304 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. 2mo ago Changed · +4 lines 75734caba028
  2. 3mo ago First seen · 300 lines · 12 tokens per session scan A 6ecd7a347051

Subscribe to this mod's changes

disprove is a command published in the GitHub repository cameronfreer/lean4-skills (509 stars, last pushed 23d ago), licensed MIT. It adds 12 tokens to every session and 4,633 once invoked, about $0.0000 per session on Opus 5.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-30.

Related

disprove compared with commands from other repositories

disprove next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
disprovecameronfreer/lean4-skillsCommand50923d agoMITA12Claude Code
difffa-mc/vibe-cadingCommand81mo agoAGPL-3.0A14Claude Code
arg-diagramMasqiller/ARG-RESEARCHER-V4.1Command66mo agoMITA14Claude Code
plotzhouziyue233/great-econometricsCommand97mo agononeA44Claude Code
graphite-morphology-classifyDaxxSec/cognitropy-labCommand15mo agononeA0Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code