Generated banner for Math Olympiad
Generated logo for Math Olympiad

Math Olympiad

AnthropicOfficialPublished by Anthropic

  • Skill
  • Workflow
  • Science and research
  • Apache-2.0
  • Low risk
  • Has scripts

From the author

Solve competition math problems (IMO, Putnam, USAMO, AIME) with adversarial verification that catches the errors self-verification misses. Activates when asked to 'solve this IMO problem', 'prove this olympiad inequality', 'verify this competition proof', 'find a counterexample', 'is this proof correct', or for any problem with 'IMO', 'Putnam', 'USAMO', 'olympiad', or 'competition math' in it. Uses pure reasoning (no tools) — then a fresh-context adversarial verifier attacks the proof using specific failure patterns, not generic 'check logic'. Outputs calibrated confidence — will say 'no confident solution' rather than bluff. If LaTeX is available, produces a clean PDF after verification passes.
— the description by Anthropic

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Math Olympiad provides a structured, multi-agent framework for solving complex competition math problems. It emphasizes rigorous reasoning over computation, utilizing a dual-context isolation approach where solvers generate solutions and independent verifiers perform adversarial attacks to identify logical gaps. The skill is designed to avoid common pitfalls like misinterpreting problem statements or bluffing, ensuring high conditional accuracy by abstaining when a confident solution cannot be reached.

What it does

  • Interprets problem statements to identify and avoid common trap readings.
  • Generates multiple candidate solutions in parallel using internal self-refinement.
  • Performs adversarial verification using fresh contexts to prevent bias.
  • Applies specific failure patterns to stress-test proofs for logical gaps.
  • Provides calibrated confidence, abstaining rather than guessing on unsolvable problems.
  • Compiles verified solutions into clean LaTeX-formatted proofs or PDFs.

When to use it

  • When solving high-stakes competition math problems like IMO, Putnam, USAMO, or AIME.
  • When you need to verify the correctness of an existing mathematical proof.
  • When you require a rigorous, multi-step validation process for complex proofs.
  • When you need to identify potential logical flaws or counterexamples in a mathematical argument.

Advantages

  • Reduces bias by isolating verifiers from the solver's internal thinking trace.
  • Uses a taxonomy of failure patterns to catch subtle errors that generic checks miss.
  • Improves reliability through asymmetric voting and pigeonhole-based early exit.
  • Prioritizes honesty and accuracy by explicitly abstaining from bluffing.
  • Separates the discovery of a proof from its presentation for maximum clarity.

Usage examples

“Solve this IMO problem: [Insert problem statement]”
The agent will generate multiple candidate solutions, subject them to adversarial verification, and return a verified, step-by-step proof or a 'no confident solution' report.
“Is this proof correct? [Insert proof text]”
The agent will treat the proof as a candidate and launch a fresh-context adversarial verifier to check for logical gaps, tautologies, or false assumptions.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/anthropics/math-olympiad/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip math-olympiad.zip -d .agents/skills

Documentation by Anthropic

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)

  • The instruction: "NO WEB ACCESS — do not look up this problem or its solution. Bounded local computation allowed (mod 2^k, small cases n≤10, symbolic identity checks via Bash/Python only). 60-second computation limit. If n≤10 brute force reveals a pattern the tight-budget solvers missed, that pattern IS the proof structure."

The deep agent may find the construction the pure-reasoning solvers couldn't see. If it also abstains, THEN write the abstention. Do not skip this step — problems with √n or log n answers are often invisible to pure reasoning because the optimal structure is the asymmetric one.

Orchestrator self-restraint: The orchestrator itself must not web-search the problem "to help" the deep agent. If you're tempted to Fetch an AoPS thread "just to check the answer," don't — that contaminates the skill's output and misrepresents its capability.

7. Calibrated abstention

If 3 revise cycles all fail: stop and admit it.

**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]

Do NOT guess. A wrong confident answer is worse than an honest "couldn't solve it." The metric that matters is CONDITIONAL accuracy — when you say "solved," are you right?

8. Presentation pass (after correctness is established)

A VERIFIED-CORRECT proof is often not a BEAUTIFUL proof. The order you discovered it is rarely the best order to present it. Launch a fresh presentation agent with the verified proof.

Load references/presentation_prompts.md. The agent asks:

  • What's the simplest way to say this?

  • Which lemmas should be inlined? Which deserve to stand alone?

  • Is anything OVERKILL? (constructing a double exponential when linear suffices)

  • Now that we know the answer, is there a 3-line hindsight proof?

Output: LaTeX-formatted proof. If pdflatex is available (scripts/check_latex.sh returns 0), also compile to PDF via scripts/compile_pdf.sh.


Model tier defaults

Read references/model_tier_defaults.md for full details. Summary:

ModelSolversVerify passesAbstain afterPresentation
Haiku832 revise failsskip
Sonnet453 revise failsyes
Opus35 + full pattern sweep4 revise fails2 drafts, pick cleaner

Weaker models: more parallel attempts, faster abstention. Stronger models: deeper verification, more presentation effort.


For numeric-answer problems (AIME-style)

Skip the proof machinery. Run 5-7 solvers with varied approaches, take majority vote on the numeric answer. If no majority: verify the top 2 candidates by substitution.


Key references

  • references/verifier_patterns.md — the 12 adversarial checks

  • references/adversarial_prompts.md — ready-to-use verifier prompts

  • references/presentation_prompts.md — beautification prompts + LaTeX template

  • references/model_tier_defaults.md — per-model configuration


What makes this different from generic verify-and-refine

  1. Dual context isolation: verifier is blind to (a) the solver's thinking trace — which biases toward agreement — and (b) other verifiers' verdicts — social proof also biases. Each verifier thinks it's first.

  2. Pattern-specific attacks: not "is this correct?" but "does this make the #40 mistake? the #4 mistake?" Specific beats generic. The 7-category refutation taxonomy gives the verifier a checklist.

  3. Asymmetric vote + pigeonhole exit: 4-to-confirm, 2-to-refute. One flaky verifier doesn't kill a correct proof; two dissents does. Stop launching verifiers once the outcome is decided — saves ~30% of verification cost on clear cases.

  4. Specification-gaming check first: explicitly asks "is this the intended interpretation?" before solving. The #1 failure mode in prior work (50/63 "correct" answers solved the wrong reading).

  5. Calibrated abstention: will say "no confident solution" with partial results. Optimizes conditional accuracy, not coverage.

  6. Presentation pass: correctness and elegance are separate steps. The presentation agent gets the VERIFIED proof and finds the cleanest way to say it.

Files

references/adversarial_prompts.md

Adversarial Verifier Prompts — Math Olympiad

Prompt bank for the verifier subagent. Fresh context: problem statement + cleaned solution, NO thinking trace. Agent has NO tools — pure reasoning only.

Source: shared/verifier_patterns_source.md. Background: arXiv:2503.21934 showed self-verified 85.7% IMO success drops to <5% under human grading. These prompts are the human grader.

Verifier isolation: You do NOT know how other verifiers voted. You are not told if this proof has been confirmed or refuted by anyone else. Assume you're the first and only reviewer. (Social proof — "3 others confirmed" — biases toward agreement.)


Reasons to REFUTE (the taxonomy — look for ANY one of these)

Your goal is to find ANY reason to refute. These are the seven categories a hole falls into:

  1. Step doesn't follow — The conclusion of some step is not implied by its premises. (Includes direction errors: A>B and C>D does NOT give A−C>B−D.)

  2. Hypothesis not satisfied — An invoked theorem needs a condition the proof never verified. (Pattern #5: "entire" ≠ "analytic in a disk".)

  3. Claim false in small case — A stated identity or bound fails at n=2, n=3, or the first nontrivial block. Mentally test it.

  4. Tautological — The "gap" at the end is the original problem in disguise. (Pattern #18: substitute the proof's own identities back in.)

  5. Proves too much — The argument's skeleton applies to a famous object and proves something open or false about it. (Pattern #4.)

  6. Wrong interpretation — Solves an easier reading of the problem than the intended one. (Pattern #60.)

  7. Hand-wave at the crux — "iterating and optimizing gives the result", "by standard methods", "the details are routine" — at exactly the step that ISN'T routine.

If none of these fire after a genuine attempt, CONFIRM. Do not confirm because the proof sounds confident.


1. General Adversarial (default)

You are an adversarial verifier. Below is a problem and a proposed solution.

You are NOT grading this. You are trying to BREAK it. Assume the author is a strong student who made one subtle error that a sympathetic reader would gloss over. Your job is to find that error. If you cannot find one after genuinely trying, say so — but do not say so just because the solution is confidently written.

Attack each step:

  • Is the claimed inequality actually in the claimed direction? Reason through a small case mentally.

  • Is every "clearly" / "obviously" / "it follows that" actually clear? These words often mark the exact spot where the author convinced themselves of something false.

  • Does every cited theorem's hypothesis actually hold? Check quantifiers: "for all" vs "there exists", pointwise vs average.

  • At each "WLOG": is generality actually preserved, or does the reduction discard the hard case?

  • Does the argument use a property that's true for the generic object but not the specific one in the problem?

You have no tools. Reason about small cases in your head — do not claim to have "computed" anything.

Output format:

VERDICT: CORRECT | INCORRECT | GAP
CONFIDENCE: high | medium | low
ISSUE: [if INCORRECT/GAP: one-sentence location, then one-paragraph explanation. If CORRECT: the step you tried hardest to break and why it held.]

2. Pattern #4 — Would It Prove Too Much?

You are an adversarial verifier running a single check: does this argument prove something famously open or famously false?

Read the proposed solution. Ignore whether the proof is locally valid. Instead:

  1. Strip the argument down to its skeleton: what properties of the given objects does it actually use?

  2. Find the most famous object that shares exactly those properties. (If it bounds a sum using only "positive decreasing terms" — does the harmonic series have positive decreasing terms? If it uses only "multiplicative and bounded by 1" — does the Möbius function qualify?)

  3. Mentally rerun the argument on that substitute. What does it now prove?

If the substitute conclusion is a known open problem or a known falsehood, the original proof has a gap. The gap is at the step where the argument stops working for the substitute — find that step. That step is silently using a property the author never stated.

If the argument genuinely uses a property specific to the problem's object that the famous substitute lacks, say which property and where it's used.

Output format:

VERDICT: CORRECT | INCORRECT
CONFIDENCE: high | medium | low
SUBSTITUTE_TESTED: [what object you substituted]
ISSUE: [if it proves too much: which step fails for the substitute, and what unstated property is needed. If not: which step uses the specific property and why the substitute fails there.]

3. Pattern #40 — One-Line-Proof-Too-Clean

You are an adversarial verifier targeting short proofs. The solution below contains at least one step that is suspiciously brief — one line doing a lot of work.

For the shortest load-bearing step in the solution:

  1. Extract the general lemma. Write down the most general claim the step is implicitly using. Not "for this sum" but "for any sum of this shape." Not "for the determinant" but "for any function of the matrix entries with this property."

  2. Try to break the general lemma with a 2×2 case. Two elements, two terms, a 2×2 matrix — the smallest nontrivial instance. Reason it through in your head. Can you find values where the general lemma fails?

  3. Judge:

    • If the general lemma survives your 2×2 attack: the step is probably fine.

    • If the general lemma FAILS at 2×2 but the specific instance in the proof still seems to work: the step is INCORRECT as written. There is special structure in the problem that makes it true, and the proof does not invoke that structure. The author got the right answer for the wrong reason.

The classic failure: "rank depends only on support" — but [[1,1],[1,1]] has rank 1 and [[1,1],[1,−1]] has rank 2, same support. General lemma false; a specific instance was true because of a sign-factorization the proof never mentioned.

Output format:

VERDICT: CORRECT | INCORRECT | GAP
CONFIDENCE: high | medium | low
GENERAL_LEMMA: [the extracted general claim]
2x2_TEST: [the instance you tried, and what it showed]
ISSUE: [if the general lemma is false: what special structure the proof failed to invoke]

4. Pattern #18 — Tautological Reduction

You are an adversarial verifier checking one thing: did the solution argue itself in a circle?

The solution likely proceeds through a chain of reductions or equivalent reformulations, ending at a "final estimate" or "key inequality" that it then proves directly. Your task:

  1. List every identity, equality, or substitution the solution establishes along the way. (Things like "A = B + C", "the sum splits as X + Y", "by the earlier lemma, P = Q".)

  2. Take the FINAL claim — the one the solution presents as "and this is now easy" or "this follows from [standard fact]".

  3. Substitute the chain's OWN identities (from step 1) back into that final claim. Expand. Simplify.

  4. What do you get? If you recover the ORIGINAL problem — or something trivially equivalent to it — then the "reduction" is a tautology. The proof has done nothing; it renamed the problem and declared it solved.

The trap: long chains feel like progress. "We've reduced it to bounding X!" is only progress if X is actually different from what you started with. Sometimes X is just the original, wearing a hat.

Output format:

VERDICT: CORRECT | INCORRECT | GAP
CONFIDENCE: high | medium | low
FINAL_CLAIM: [the claim the solution treats as the easy endpoint]
SUBSTITUTED_BACK: [what it becomes after expanding the chain's own identities]
ISSUE: [is it the original problem? trivially equivalent? genuinely simpler? say which and why]

5. Pattern #60 — Specification-Gaming

You are an adversarial verifier checking one thing: did the solution answer the easiest interpretation of the question instead of the intended one?

Read the problem statement alone. Before looking at the solution in detail:

  1. Write down 2–3 plausible readings of what the problem is asking. Pay attention to: scope of quantifiers ("find all" vs "find one"), what "determine" means (a formula? a characterization? an existence proof?), boundary cases (does n=0 or n=1 count? is the empty set allowed? are degenerate configurations included?).

  2. Rank them by how hard they would be to solve.

  3. Which reading did the solution actually address?

If the solution addresses the EASIEST reading — and especially if the problem under that reading would be trivially short for its stated source (an IMO problem that becomes a two-liner is a red flag) — then be suspicious. Olympiad problems are calibrated to their point values. A final-problem that falls in three lines means you're probably not solving the final problem.

Also check: did the solution prove something about an object when the problem asked about all such objects? Did it show possibility when the problem wanted necessity?

Output format:

VERDICT: CORRECT | INCORRECT | GAP
CONFIDENCE: high | medium | low
READING_SOLVED: [which interpretation the solution addresses]
READING_INTENDED: [which interpretation you believe was intended, and why]
ISSUE: [if they differ: what the solution is missing. If they match: why the easy reading is genuinely the intended one.]

6. Consecutive-Verify (5-pass loop)

You are verifier pass {K} of 5. A solution passes only if all five independent verifiers agree.

Verify INDEPENDENTLY. You have not seen — and must not imagine — what any other verifier said. Do not reason "this probably already got checked." Your vote is the only vote you control. If you wave something through on the assumption that another pass will catch it, and the other four passes reason the same way, a wrong solution ships.

Read the problem. Read the solution. Trace every step yourself, from scratch.

One bias to actively resist: when a solution is well-written, confident, and uses standard machinery correctly in most places, you will be inclined to trust the one place you can't quite follow. Invert this. Well-written and confident is exactly what a subtly wrong solution looks like — the author convinced themselves before they convinced the math. The place you can't quite follow is the place to press hardest.

You have no tools. Reason through small cases mentally; do not claim numerical verification.

Output format:

VERDICT: CORRECT | INCORRECT | GAP
CONFIDENCE: high | medium | low
PASS_NUMBER: {K}
ISSUE: [if INCORRECT/GAP: exact step and why. If CORRECT: the step you found hardest to verify, and the reasoning that convinced you it holds.]

7. Adversarial Brief (for the reviser when pattern #40 fires)

Use this instead of a general "fix the hole" prompt when a verifier flagged a one-line lemma whose general form is false. This framing forces a binary — the reviser cannot return "looks fine."

Adversarial brief: The principle "[extracted general lemma]" is obviously false in general — [trivial counterexample, e.g., [[1,1],[1,1]] has rank 1 and [[1,1],[1,−1]] has rank 2, same support].

So exactly one of these is true, and your job is to determine which:

(A) The conclusion holds for a DIFFERENT reason specific to this case. Find that reason. What structure does [the specific object in the problem] have that [the counterexample] lacks? That structure is the real proof.

(B) The proof is wrong and the conclusion fails at [concrete prediction of where it diverges — e.g., "the first case where the block is ≥2×2, which is m=4"].

Return (A) with the special structure identified, or (B) with the failure point. "The original proof is actually fine" is not an available answer — the general lemma is false, so either something saves this instance or nothing does.

The best outcome is (A) — the thesis survives AND you learn why. The corrected proof is more informative than the false one.

Output format:

RESOLUTION: (A) SPECIAL_STRUCTURE | (B) CONCLUSION_FALSE
IF (A): The structure [specific object] has that [counterexample] lacks: [...]. Revised proof: [...]
IF (B): Fails at [parameter/case]. Reason: [...]

Requirements and compatibility

Written for: Claude Code, Claude apps

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Names Claude Code tools

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Anthropic
Publisher
Anthropic (Official)
Source
anthropics/claude-plugins-official · plugins/math-olympiad/skills/math-olympiad · commit 0412be7
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from plugins/math-olympiad/LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
cline/skills

AutoGineer is not affiliated with or endorsed by Anthropic.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download math-olympiad.zip