Решение олимпиадных задач по математике (IMO, Putnam, USAMO) с состязательной проверкой, которая ловит то, что пропускает самопроверка. Верификаторы с чистым контекстом атакуют доказательства по конкретным шаблонам ошибок. Калиброванный отказ вместо блефа.

Звёзды47 601
Форки4 945
Авторanthropics
Маркетплейс@claude-plugins-official
В маркетплейсе258 плагинов
Компонентов100
Обновлённоя 18 2026

Установка

SKILL.md

Math Olympiad Solver

The five things that change outcomes

  1. Strip thinking before verifying — a verifier that sees the reasoning is biased toward agreement. Fresh context, cleaned proof only.
  2. "Does this prove RH?" — if your theorem's specialization to ζ is a famous open problem, you have a gap. Most reliable red flag.
  3. Short proof → extract the general lemma — try 2×2 counterexamples. If general form is false, find what's special about THIS instance.
  4. Same gap twice → step back — the case split may be obscuring a unified argument. Three lines sometimes does what twelve pages couldn't.
  5. Say "no confident solution" — wrong-and-confident is worse than honest abstain.

Tool policy: Solvers and verifiers use THINKING ONLY in the tight-budget workflow. Competition math is reasoning. Computation is for deep mode (§6c), and even then bounded — a recurrence that's doubly-exponential can't be computed past n~30, work mod 2^m instead.


When to use which approach

ProblemApproachVerification
AIME numeric answerBest-of-N → majority voteAnswer check only
Olympiad proof (IMO/Putnam/USAMO)Full workflow below5-pass adversarial
"Is this proof correct?"Skip to verification (step 4)Adversarial + spec-gaming
Full problem set (e.g. all 6 from a competition)Sequential: one full workflow per problem, collect results, compile single PDFPer-problem adversarial

Batch in one Workflow: Set opts.label on every agent() call to include the problem ID (e.g., label: "P3:solver:2"). Without labels, 36 results come back with no problem association. Run problems in parallel — the label is what matters, not ordering.

For a full problem set

Launch one solver workflow per problem (same VERBATIM prompt, different statement). Run them in parallel. When all return, run adversarial verification per problem. Problems that pass get their proof in the PDF; problems that abstain get "No confident solution" with partial notes.

Don't try to solve all N problems in one agent's context — each problem needs its own thinking budget and its own fresh-context verifier. The composition is mechanical: collect the per-problem outputs, fill in LaTeX sections, compile once. | "Simplify this proof" | Skip to presentation (step 8) | — |


The Workflow

1. Interpretation check (30 seconds, catches 50/63 of one class of errors)

Before solving anything, identify the interpretation.

Read the problem statement. List 2-3 ways it could be interpreted. For each: is this reading TRIVIAL? If one reading makes the problem easy and another makes it hard, the hard one is almost certainly intended. State which interpretation you're solving and WHY you believe it's the intended one.

The Aletheia case study found 50 of 63 "technically correct" solutions were for the wrong interpretation. Olympiad problems often have a trap easy reading.

2. Generate candidates with internal refinement (parallel, thinking only)

Launch 8-12 attempt agents in parallel. Each agent internally iterates — solve → self-improve → self-verify → correct → repeat. This is the Yang-Huang structure that achieves 85.7% on IMO: one-shot solving isn't enough; per-attempt refinement matters.

The Agent tool cannot enforce tool restriction. Subagents get the full tool set. The only mechanism is the prompt. Use this prompt VERBATIM — do not summarize, do not synthesize your own:

NO COMPUTATION. Do not use Bash, Python, WebSearch, Read, Write, or any tool that runs code or fetches data. Numerical verification is not a proof step. "I computed n=1..10 and the pattern holds" is not a proof.

(If your agent harness requires a StructuredOutput or similar return-mechanism tool call, that is NOT a computation tool — call it to return your answer. The restriction is on tools that DO work, not tools that REPORT work.)

Your internal process (iterate until done):
- Solve: Complete rigorous solution.
- Self-improve: Reread. Fix gaps before a grader sees it.
- Self-verify: Strict grader mode. Every step justified?
- Correct: Fix and re-verify. Up to 5 rounds.
- Stop: Self-verify passes twice clean, OR 5 rounds, OR approach fundamentally wrong.

A correct answer from flawed reasoning is a failure. If incomplete, say so honestly. Never hide gaps.

PROBLEM: <insert the problem statement here>
ANGLE: <insert one starting angle here>

The first two paragraphs are load-bearing. A session that writes its own prompt and omits them will produce subagents that grind Python for 30 iterations and confidently get wrong answers — a pattern that fits n≤10 but fails at n=100 is not a proof.

Starting angles (vary across agents — see references/solver_heuristics.md):

  • Work out small cases (test past n=3)
  • Look for an invariant or monovariant
  • Consider the extremal case
  • Try induction
  • What symmetries?
  • Work backwards
  • Drop a condition — where does it become trivially false?
  • Generalize (inventor's paradox — more structure is sometimes easier)

Each returns its FINAL state (not intermediate rounds):

**Verdict**: complete solution | partial result | no progress
**Rounds**: [how many verify→correct cycles]
**Method**: [key idea, one paragraph]
**Detailed Solution**: [full step-by-step, every step justified]
**Answer**: [if applicable]
**Self-verification notes**: [what you caught and fixed; remaining concerns]

Retry policy: If an agent fails or times out, retry once. Transient failures happen.

3. Clean the solution (context isolation — the #1 lever)

The thinking trace biases the verifier toward agreement — a long chain of reasoning reads as supporting evidence even when the conclusion is wrong. Before any verification, strip:

  • All thinking-block content
  • All "Let me try..." / "Actually wait..." / "Hmm" prose
  • All false starts and backtracking

What remains: problem statement + clean final argument only.

Extract only the Method + Proof + Answer sections from each solver's output. The verifier never sees how the solver got there.

4. Adversarial verify (fresh context, pattern-armed)

For each cleaned solution, launch a fresh verifier agent. Fresh context: it sees only (problem statement + cleaned solution). No tools.

The verifier's job is to ATTACK, not grade. Load references/adversarial_prompts.md for the prompts. The key patterns it runs:

PatternThe check
#4Does this theorem specialize to a famous object (ζ, quadratic reciprocity, etc.) and prove something open about it? → gap
#18Substitute the proof's own intermediate identities into any "remaining gap." Recover the original claim? → tautological
#40Is any step a "one-line lemma"? Extract the GENERAL form. Find a 2×2 counterexample. If the general form is false, find what special structure saves THIS instance
#5For each invoked theorem: re-check hypotheses FROM SCRATCH. "Continuous on [0,1]" ≠ "continuous on ℝ"
#6Any infinite sum "bounded" via a regularized value? Check the boundary — if there's a pole there, the sum diverges

Full pattern list: references/verifier_patterns.md

Verifier returns:

**Verdict**: HOLDS | HOLE FOUND | UNCLEAR

**If HOLE FOUND**:
- Location: [quote the problematic step]
- Pattern: [which check fired, or "other"]
- Why it breaks: [specific]
- Fixable?: [yes with X / no, fundamental]

5. Rank and vote-verify (asymmetric + early exit)

Rank solutions by (verdict, verifier confidence). Take the top one. Run up to 5 fresh verifier agents.

Asymmetric thresholds: 4 HOLDS to confirm, 2 HOLE FOUND to refute. Why asymmetric: one flaky verifier shouldn't kill a correct proof; but two independent dissents is a real signal.

Pigeonhole early exit: stop launching verifiers once the outcome is decided.

  • 2 say HOLE FOUND → refuted, stop (save the remaining 3 calls)
  • 4 say HOLDS → confirmed, stop (save the 5th)
  • After 3 verifiers: if 2 HOLDS + 1 HOLE, launch 2 more (outcome undecided). If 3 HOLDS + 0 HOLE, launch 1 more (could still hit 4-1).

Dual context-isolation: each verifier is blind to (a) the solver's thinking trace — already stripped in step 3 — AND (b) other verifiers' verdicts. Each verifier thinks it's the first. No "3 agents already confirmed this" social proof.

A solver cannot verify its own solution. Different agent, fresh context.

5b. When one case won't close — step back before grinding

If a proof splits into cases and one case proves easily but the other resists: before grinding through the hard case, ask whether there's a route that makes the split disappear.

The pattern that saves you: the hard case's very hypothesis often implies something strong about an intermediate object you haven't looked at. Use that implication directly instead of the original chain.

Concrete shape: proving f(n) ≤ cn for a constrained function f, with a case split on a prime p dividing f(n). One branch closes by index arguments in (ℤ/p^e)*. The other branch resists — same group structure, but the arithmetic doesn't contradict. The fix: the hypothesis "p | f(n)" plugged back into the governing equation implies f(p) = p itself. Once you have that, a Fermat+Dirichlet argument kills both branches in three lines. The case split was a detour — it was splitting on a variable that, under the hypothesis, takes a known value.

Check when stuck on case B:

  • What does case B's hypothesis imply about f at other inputs?
  • Is there a different pair (a,b) to plug into the governing equation?
  • Are you proving too much? (A cleaner contradiction needs less machinery.)

This is also a presentation-pass win: the split-free proof is shorter AND more general.

6. Revise (if needed)

If verification finds a hole: launch a reviser agent. It gets (cleaned solution + verifier's hole report). STILL no access to the original thinking — the reviser works from the hole, not by rereading how you got there.

A verifier found this issue in the proof:
[hole report]

Fix the proof. If the hole is fundamental (the approach doesn't work), say so and return **Verdict: no confident solution** with what partial progress remains.

For any step you cannot fully close, mark it inline: [GAP: specific description of what remains]. Gaps in the proof text, not in a separate list — they're greppable and the next reviser knows exactly where to look.

Up to 3 revise cycles. Then re-run the vote on the revised proof.

If pattern #40 fired (one-line-proof-too-clean), the reviser gets a stronger brief — the Adversarial Brief template from references/adversarial_prompts.md §7. It forces a binary: "the general lemma is obviously false (here's a 2×2 counterexample) — so either find what's special about THIS case, or find where the proof breaks." Can't return "looks fine."

6c. Deep mode (when tight-budget abstains)

The standard workflow is tight-budget: 8 solvers, ~15 min, pure reasoning. When it abstains, the problem may need more time, not more capability.

Deep mode is a single focused agent with:

  • Unlimited time — no wall-clock pressure
  • Targeted computation allowed — modular arithmetic checks, small-case enumeration, symbolic verification of identities. NOT exploratory brute force or unbounded recursion.
  • The abstention reason as starting point — if verifiers found a specific gap, start there. If solvers never claimed complete, start from what they partially proved.

The archetype: a focused agent that gets the proven-so-far state plus "one case of Lemma 5 is open" — and finds a 3-line argument the case split was obscuring. Often under 10 minutes with almost no computation. Deep mode is about giving the problem sustained attention, not throwing compute at it.

What deep mode is NOT: open-ended exploration, literature search, looking up solutions, multi-day investigation. That's a different workflow (math-research). Deep mode is still "solve THIS problem yourself" — just without the clock.

NO WEB. NO LOOKUP. Deep mode may use Bash/Python for bounded computation, but NEVER WebFetch, WebSearch, or any network access. Finding the solution on AoPS or a blog is not solving the problem — it's cheating on an olympiad, and it teaches us nothing about the skill's actual capability. Put this at the TOP of the deep-mode prompt:

NO WEB ACCESS. Do not use WebFetch, WebSearch, or any tool that touches the internet. Do not look up this problem, its solution, or related problems. You are solving this yourself — the only allowed computation is local (Bash/Python for mod-k arithmetic, small-case enumeration n≤10, symbolic identity checks). If you invoke a web tool, the proof is void.

Computation bounds in deep mode (bug #8 lesson): A6's b_{n+1}=2b_n²+b_n+1 is doubly-exponential; b_99 has ~10^{2^98} digits. Never compute such objects exactly — work in ℤ/2^m, or track only v_p(·), or prove the recursion mod the quantity you care about. If a computation is running longer than 60 seconds, it's probably unbounded. Kill it and work symbolically.

Step 6d (not optional): After any ABSTAIN at the verify stage, automatically launch one deep-mode agent before writing the abstention into the output. Give it:

  • The problem statement
  • The best partial proof from tight-budget solvers
  • The verifier gap descriptions (what specifically didn't close)
  • Инструкция: "NO WEB ACCESS — не ищи эту задачу или её решение. Разрешены ограниченные локальные вычисления (mod 2^k, малые случаи n≤10, проверки символьных тождеств только через Bash/Python). Лимит вычислений 60 секунд. Если при n≤10 перебор выявляет закономерность, которую пропустили решатели с жёстким бюджетом, эта закономерность И ЕСТЬ структура доказательства."

Глубокий агент может найти конструкцию, которую не увидели решатели на чистом рассуждении. Если он тоже воздержится, ТОГДА пиши отказ. Не пропускай этот шаг — задачи с ответами вида √n или log n часто невидимы для чистого рассуждения, потому что оптимальная структура является асимметричной.

Самоограничение оркестратора: сам оркестратор не должен искать задачу в вебе, чтобы "помочь" глубокому агенту. Если тебя тянет сделать Fetch ветки на AoPS "просто чтобы проверить ответ", не делай этого — это загрязняет вывод навыка и искажает представление о его возможностях.

7. Калиброванное воздержание

Если 3 цикла доработки все провалились: остановись и признай это.

**Verdict**: no confident solution

**What was tried**: [approaches]
**What WAS proven**: [any lemma or partial result that survived verification]
**Where it breaks**: [the unfixed hole]

НЕ угадывай. Неверный уверенный ответ хуже честного "не смог решить". Метрика, которая имеет значение, — УСЛОВНАЯ точность: когда ты говоришь "решено", прав ли ты?

8. Этап презентации (после установления корректности)

ПРОВЕРЕННО-КОРРЕКТНОЕ доказательство часто не является КРАСИВЫМ доказательством. Порядок, в котором ты его обнаружил, редко бывает лучшим порядком для его изложения. Запусти свежего агента презентации с проверенным доказательством.

Загрузи references/presentation_prompts.md. Агент спрашивает:

  • Как проще всего это сформулировать?
  • Какие леммы следует встроить? Какие заслуживают того, чтобы стоять отдельно?
  • Есть ли что-то ИЗБЫТОЧНОЕ? (построение двойной экспоненты, когда достаточно линейной)
  • Теперь, когда мы знаем ответ, есть ли доказательство в 3 строки задним числом?

Вывод: доказательство в формате LaTeX. Если pdflatex доступен (scripts/check_latex.sh возвращает 0), также скомпилируй в PDF через scripts/compile_pdf.sh.


Уровни моделей по умолчанию

Читай references/model_tier_defaults.md для полных деталей. Сводка:

МодельРешателиПроходы проверкиВоздержаться послеПрезентация
Haiku832 неудачных доработкипропустить
Sonnet453 неудачных доработкида
Opus35 + полный обзор закономерностей4 неудачных доработки2 черновика, выбрать более чистый

Более слабые модели: больше параллельных попыток, более быстрое воздержание. Более сильные модели: более глубокая проверка, больше усилий на презентацию.


Для задач с числовым ответом (в стиле AIME)

Пропусти механику доказательств. Запусти 5-7 решателей с разными подходами, прими голосование большинством по числовому ответу. Если большинства нет: проверь двух лучших кандидатов подстановкой.


Ключевые ссылки

  • references/verifier_patterns.md — 12 состязательных проверок
  • references/adversarial_prompts.md — готовые к использованию промпты верификатора
  • references/presentation_prompts.md — промпты для приукрашивания + шаблон LaTeX
  • references/model_tier_defaults.md — конфигурация для каждой модели

Чем это отличается от обобщённого verify-and-refine

  1. Изоляция двойного контекста: верификатор не видит (а) цепочку рассуждений решателя — которая смещает к согласию — и (б) вердикты других верификаторов — социальное доказательство тоже смещает. Каждый верификатор думает, что он первый.
  2. Атаки, специфичные для закономерностей: не "верно ли это?", а "допускает ли это ошибку #40? ошибку #4?". Конкретное лучше общего. Таксономия опровержений из 7 категорий даёт верификатору контрольный список.
  3. Асимметричное голосование + выход по принципу Дирихле: 4 для подтверждения, 2 для опровержения. Один нестабильный верификатор не убивает корректное доказательство; два несогласия — убивают. Прекращай запускать верификаторов, как только исход решён — это экономит ~30% затрат на проверку в ясных случаях.
  4. Сначала проверка на спекуляцию спецификацией: явно спрашивает "это ли задуманная интерпретация?" перед решением. Режим отказа №1 в предыдущей работе (50 из 63 "правильных" ответов решали неверное прочтение).
  5. Калиброванное воздержание: скажет "нет уверенного решения" с частичными результатами. Оптимизирует условную точность, а не покрытие.
  6. Этап презентации: корректность и элегантность — отдельные шаги. Агент презентации получает ПРОВЕРЕННОЕ доказательство и находит самый чистый способ его изложить.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: math-olympiad](https://darkplay.ru/ai/plugins/anthropics-claude-plugins-official-math-olympiad)

Похожие плагины и другие разделы каталога

Похожие плагины в категории «Образование»

Та же категория — сравните, что ещё подойдёт под вашу задачу.

explanatory-output-styleanthropics · Добавляет обучающие пояснения о выборе реализации и паттернах кодовой базы (имитирует…
34 комп.
learning-output-styleanthropics · Интерактивный режим обучения, который запрашивает содержательные правки кода в ключевых…
34 комп.
explanatory-output-styleanthropics · Добавляет образовательные пояснения о выборе реализации и паттернах кодовой базы…
100 комп.
learn-with-courseraanthropics · Превращает учебный запрос в персональный опыт Coursera: задаёт три вопроса (тема…
100 комп.
learning-output-styleanthropics · Интерактивный режим обучения, который запрашивает содержательные правки кода в ключевых…
100 комп.
signed-audit-trailswshobson · Обучающий навык: пошаговое руководство по подписанным аудит-трейлам для каждого вызова…
495 комп.
learn-with-courseraanthropics · Превращает учебный запрос в персональный опыт Coursera: задаёт три коротких вопроса…
233 комп.
syllabusalirezarezvani · Подбор дополнительной литературы к курсу с генерацией DOCX.
510 комп.
dbs-learningdontbesilent2025 · Интерактивное обучение dontbesilent. Разбивает тему на серию учебных статей и по отзывам…
29 комп.
law-studentanthropics · Сократический метод, разбор дел, составление планов, сессии подготовки к экзамену по…
171 комп.
Популярное в разделе «Плагины»

Самые востребованные плагинов раздела по установкам и звёздам.

mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
41 комп.
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
16 комп.
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
1 комп.
claude-apianthropics · Навык по документации Claude API и SDK для создания приложений на базе LLM.
17 комп.
document-skillsanthropics · Набор инструментов для обработки документов: Excel, Word, PowerPoint и PDF.
17 комп.
example-skillsanthropics · Набор примеров навыков, демонстрирующих разные возможности: создание навыков, разработку…
17 комп.
ponytailDietrichGebert · Настаивает на самом простом работающем решении. YAGNI, сначала стандартная библиотека…
9 комп.
prompts.chatf · Доступ к тысячам AI-промптов и навыков прямо в AI-ассистенте для программирования. Поиск…
6 комп.
agent-sdk-devanthropics · Набор для разработки с Claude Agent SDK.
34 комп.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

golang-samber-losamber · Функциональные хелперы для Golang на samber/lo: 500+ типобезопасных дженерик-функций для…
40 400 устан.
baoyu-markdown-to-htmlJimLiu · Конвертирует Markdown в HTML с темами для WeChat, подсветкой кода, Mermaid и PlantUML.
32 800 устан.
shader-programminggamedev-skills · Написание игровых шейдеров: конвейер вершин и фрагментов, пространства координат…
13 600 устан.
ctf-cryptoljagiello · Методы криптоатак для CTF: шифрование, хеши, подписи, ZKP, PRNG, RSA, AES, ECC.
10 000 устан.
directivesvercel-labs · Готовые кастомные директивы для json-render: форматирование, математика, работа со…
8 100 устан.
defi-amm-securityaffaan-m · Чек-лист безопасности Solidity AMM: реентрантность, оракулы, слиппедж, математика.
5 900 устан.
math-olympiadanthropics · Решение олимпиадных задач по математике (IMO, Putnam, USAMO, AIME) в состязательном…
5 000 устан.
ads-mathagricidaniel · Расчёт и моделирование метрик платной рекламы: CPA, CPL, CPC, CPM, ROAS, MER, точка…
4 000 устан.
streamdownvercel · Внедрение, настройка и кастомизация Streamdown — оптимизированного для стриминга…
3 400 устан.
grpo-rlvr-trainingwshobson · Обучение рассуждению и проверяемым задачам через GRPO и RLVR.
3 100 устан.

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8