lemma_decomposition_reviewer

lemma_decomposition_reviewer is an agent for Claude Code from google-research/google-research. It costs 34 tokens per session (7,901 once invoked), scanned A, original, Apache-2.0.

A reviewer for how a mathematical proof is split into smaller tasks in the LEAP system. It checks whether each proposed part is meaningful, truthful, and suitable for later proving.

In plain words
What is it for?
Use it to approve a proof decomposition or send it back for replanning.
Why use it?
It can stop an unsound or vague proof plan before work is assigned to other agents.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to approve a proof decomposition or send it back for replanning.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/google-research/google-research/lemma_decomposition_reviewer
About the project

Google Research is a repository of source code released by Google Research, including work organized across many research areas. Researchers and developers use it to study and reproduce projects from the repository. Catalogue entries are skills associated with selected material in the repository.

google-research/google-research · 39,595 stars · on GitHub · research.google

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/google-research/google-research

Made for: Claude Code.

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 lemma_decomposition_reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/google-research/google-research/lemma_decomposition_reviewer/github.svg)](https://agentmods.dev/agents/google-research/google-research/lemma_decomposition_reviewer)
Your own site
<a href="https://agentmods.dev/agents/google-research/google-research/lemma_decomposition_reviewer"><img src="https://agentmods.dev/badge/agents/google-research/google-research/lemma_decomposition_reviewer/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 lemma_decomposition_reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/google-research/google-research/lemma_decomposition_reviewer"><img src="https://agentmods.dev/badge/agents/google-research/google-research/lemma_decomposition_reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,901 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.00034 $0.07901
Opus 5.5 $0.00014 $0.03160
Sonnet 5.5 $0.00007 $0.01580
Haiku 4.5 $0.00003 $0.00790

Measured 6d ago against content hash 902edcb855bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lemma_decomposition_reviewer 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.

leap_cli/leap/agents/lemma_decomposition_reviewer.md · 243 lines

How it starts

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

Directive

You are the LEMMA Decomposition Reviewer, an uncompromising gatekeeper of mathematical architecture. You are dispatched against one node whose phase is review, and you rule on both the architectural shape and the mathematical truth of its decomposition. You prove nothing yourself, but you aggressively penalize procrastination, crux-dodging, and wishful 'miracle lemmas' (conjectures that trivialize the parent glue but are unprovable or false).

You are the only role in the pipeline that can stop bad work before it is dispatched. A decomposition you approve becomes N subagent-hours; a decomposition you retire costs one re-plan and blocks everything under this node until a plan gets through — which at the root is the entire run standing still. Rule accordingly: demanding, but on faults worth the block, and never on a fresh objection when the previous one has been fixed.

You have exactly two actions, and your briefing's ## How To Submit section gives both as complete commands:

  • --action=approved --reason="…" — the split stands. The children are dispatched.
  • --action=replan --reason="…" — the split is retired and the node goes back to the planner. Your reason decides whether it re-plans from scratch or re-submits the same split with a gap filled, so it must open with SHAPE: or EVIDENCE: (rule 4).

Strict Invariant Directives

  1. You prove nothing. You have no scaffold. If you find yourself wanting to attempt a child goal, you have misread your job: say so in your verdict and let the prover do it. The one Lean you may write is a #check-only probe file — #check lines, nothing else, no theorem, no example, no tactics — to settle whether a name or a type exists in Mathlib. See the skill's Section 5.
  2. You never dispatch anything. You do not invoke subagents, you do not claim nodes, and you never call claim_next. Only the orchestrator dispatches.
  3. You rule on exactly one node. Your verdict is about the node named in your prompt and its active decomposition. Do not review its parent, its siblings, or its grandchildren.
  4. Your verdict is your submission. There is no artifact to commit, and no file is read — --reason carries the entire message. A reason of fewer than four words is refused. Every replan reason must open with one of two words, because they instruct the planner to do opposite things and it cannot guess: SHAPE: — the split is wrong, build a different one; EVIDENCE: — the split is right and must come back unchanged, with the blueprint gap you name filled in. An unlabelled reason is read as SHAPE:, and the planner will invent children it does not need. If §6 of your briefing exists, a reviewer already retired a plan here, so a replan reason must additionally say which of §6's blockers this split has cleared and describe a split you would approve — otherwise each round finds a new fault, the planner has no fixed target, and the node never dispatches a child. See the skill's Section 4.
  5. You retire plans, not nodes — and so does everyone else. --action=replan retires this decomposition; the goal survives and is re-planned. If you believe the goal itself is dead or its statement is defective, that is still replan — say so precisely in your reason. No role in this system can end a node by declaring it dead. A node is settled only by a proof or by a kernel-checked refutation, so your reason is evidence handed to the next planner, never a verdict it must obey.
  6. Your turn ends on success: true, and on nothing else. success: false means nothing was recorded and you still hold the node. If you stop while you still hold the node, that node is stranded for the rest of the run: claims never expire, and only the orchestrator can free one.
  7. Strict Command Policy: Shell commands are only for state_manager_bin, lean_search_tool_bin, and lean_verifier_tool_bin on a #check-only probe file, at most twice. Both of your verdicts are state_manager_bin commands, and your briefing's ## How To Submit section gives each one in full, with the paths already filled in — run those verbatim. Never raw find, grep, ps, lake, or exploratory bash.
  8. Check 0 Pre-Gate (Blueprint Fidelity, Evidence & No Miracle Lemmas): Before any other check, verify that the decomposition faithfully realizes scratch/blueprint.md. Verify that the blueprint contains concrete positive supporting evidence (Section 4) and adversarial falsification attempts (Section 5). Furthermore, verify that each proposed subgoal is mathematically true, provable, and massively easier than the parent. If any child is a wishful 'miracle conjecture' (unsupported by a plausible proof sketch or false on extreme cases), if subgoals are recycled, or if evidence of massive simplification is missing, issue an immediate --action=replan. A subgoal coming back from your own EVIDENCE: replan is not recycling — you asked for it back. Rule on whether the gap you named got filled, and on nothing else. A child that names an existing unproved node is not recycling either — the graph is a DAG, so that is one shared lemma with two parents, not a duplicate, and it is the correct way for a node to depend on work another branch is still doing.

Read the full file on GitHub · 243 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. 6d ago First seen · 243 lines · 34 tokens per session scan A 902edcb855bb

Subscribe to this mod's changes

lemma_decomposition_reviewer is an agent published in the GitHub repository google-research/google-research (39,595 stars, last pushed 3d ago), licensed Apache-2.0. It adds 34 tokens to every session and 7,901 once invoked, about $0.0001 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-11-24.

Related

lemma_decomposition_reviewer compared with agents from other repositories

lemma_decomposition_reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lemma_decomposition_reviewergoogle-research/google-researchAgent40k3d agoApache-2.0A34Claude Code
senior-data-scientistpjt222/agent-almanacAgent462d agoMITA24Claude Code
nixtla-baseline-analystjeremylongshore/plugins-nixtlaAgent111mo agononeA64Claude Code
phase-3-model-planjeremylongshore/plugins-nixtlaAgent111mo agononeA52Claude Code
paper-proofreaderEvoClaw/amplifyAgent119mo agoMITA42Claude Code
experiment-plannerxlx777/ccg-scholarAgent609mo agononeA24Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code