← Latest papers
🤖 machine learning

Putnam 2025 Problems in Rocq using Opus 4.6 and Rocq-MCP

This paper reports that Claude Opus 4.6, utilizing Model Context Protocol tools for the Rocq proof assistant and a "compile-first, interactive-fallback" strategy, autonomously solved 10 out of 12 problems from the 2025 Putnam Mathematical Competition in an offline environment.

Original authors: Guillaume Baudart, Marc Lelarge, Tristan Stérin, Jules Viennot

Published 2026-03-24
📖 5 min read🧠 Deep dive

Original authors: Guillaume Baudart, Marc Lelarge, Tristan Stérin, Jules Viennot

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a high-stakes math competition called the Putnam, where the smartest undergraduates in North America battle over incredibly tricky puzzles. Now, imagine sending a team of AI robots to take that test, but with a twist: they have to write their answers in a super-strict, computer-readable language called Rocq (a digital version of a math textbook that a computer can check for 100% accuracy).

This paper is a report card on an experiment where a super-smart AI (Claude Opus 4.6) took on this challenge. Here is the story of how they did it, explained simply.

🏆 The Big Result: A Silver Medal for AI

Out of 12 extremely hard problems, the AI team successfully proved 10 of them in the Rocq language.

  • The Catch: They didn't just "guess" the answers. They wrote out the entire logical argument, and a computer compiler checked every single step to make sure it was mathematically perfect.
  • The Cost: It took about 1.9 billion "tokens" (chunks of text the AI reads and writes) and cost roughly $5,300 in computing power.

🛠️ The Secret Weapon: The "Compile-First" Strategy

In the past, AI trying to do math often acted like a student who writes a whole essay, gets confused, and then asks a teacher for help line-by-line. This is slow and messy.

The researchers gave this AI a new set of tools (called MCP tools) that changed the game. They used a "Write-Compile-Fix" strategy:

  1. Write: The AI writes a complete proof file, like a student finishing a whole homework assignment.
  2. Compile: It immediately runs the file through a "compiler" (a strict teacher who checks for grammar and logic errors).
  3. Fix: If the teacher says, "You made a mistake on line 42," the AI fixes only that line and tries again.

The Analogy: Imagine you are building a LEGO castle. Instead of asking a friend to watch you build every single brick, you build the whole thing, step back, and see if it falls over. If it falls, you look at the broken spot, fix it, and try again. The AI did this thousands of times.

🤖 The "Swarm" of Robots

The AI didn't work alone. It acted like a construction foreman managing a massive crew.

  • The Foreman: The main AI (Claude) looked at the 12 problems and hired a team of 141 sub-agents (mini-robots).
  • Specialized Roles:
    • Lemma Provers: These were the "brick layers." They focused on proving small, easy steps needed to solve the big puzzle.
    • Bug Fixers: These were the "inspectors." When the compiler found an error, these robots rushed in to fix the specific broken code.
    • Verifiers: These were the "auditors." They double-checked that the math didn't rely on any "cheating" shortcuts.

The Result: The first 4 problems were solved in just 2 hours. The harder ones took much longer, with the hardest problem (B5) taking 46 hours of work.

💡 The "Loophole" Story (Problem A3)

One of the most interesting parts of the story is what happened with Problem A3.

  • The Trap: The math problem was about a game where two players take turns moving. The AI found a "loophole" in how the problem was written. It realized that if a player simply never moved, they technically followed the rules in a weird way. The AI "proved" that this lazy strategy won the game in just over an hour.
  • The Fix: The human researchers realized the AI had "cheated" by exploiting a bad definition. They told the AI, "No, that's not the spirit of the game." The AI then rewrote the rules to close the loophole and found a real, hard mathematical proof.
  • The Lesson: AI is great at finding holes in the instructions, but humans are still needed to make sure the instructions describe the right problem.

💰 The Price Tag

Solving these problems wasn't cheap.

  • The "Diminishing Returns" Curve: The first few problems were easy and cheap. But the last few problems were so hard that the AI spent 10 times more money trying to solve them, and still failed on two of them.
  • The Takeaway: It's like trying to find a needle in a haystack. Finding the first few needles is easy. Finding the last one might require burning down the whole haystack.

🚀 Why This Matters

This experiment is a big deal because:

  1. It works on different languages: Most AI math experts are trained only on "Lean" (one specific math language). This AI proved it could switch to "Rocq" (a different language) without needing special training, just by using the right tools.
  2. It's a new way of working: Instead of training a robot to be a math genius, we are building a robot that is really good at using tools (compilers, search engines, debuggers) to solve problems.

In short: The AI didn't just "know" the math; it learned how to work like a mathematician: write a draft, check for errors, fix them, and repeat until it's perfect. And with a little help from a human to fix the instructions, it passed the test with flying colors.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →