← Latest papers
🤖 AI

Sorries Are Not the Hard Part: An Expert-Review Case Study of a Semi-Autonomous Formalization

This paper argues that successful autoformalization must be evaluated by expert review of definition quality and API design rather than merely by the absence of unproven gaps ("sorries"), demonstrating through a case study of Grothendieck's vanishing theorem that while AI agents can effectively apply local mechanical fixes, they struggle with high-level conceptual design.

Original authors: Vasily Ilin, Brian Nugent

Published 2026-06-15
📖 5 min read🧠 Deep dive

Original authors: Vasily Ilin, Brian Nugent

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 you are hiring a very fast, very eager apprentice to build a house for you. You give them the blueprints (a math theorem) and a textbook chapter explaining how to build it.

The apprentice works day and night. They lay the bricks, frame the walls, and install the roof. When they are done, the house stands up perfectly. It doesn't collapse. The inspector (the computer) says, "Great job! The house is structurally sound."

This paper is about what happens next.

The authors of this paper asked: "Just because the house stands up, is it actually a good house? Can someone else live in it? Can they easily add a second story later, or will they have to tear down the walls first?"

Here is the breakdown of their experiment, using simple analogies:

The Experiment: Building a "Math House"

The team asked an AI (a large language model) to formalize a complex math theorem called Grothendieck's Vanishing Theorem. Think of this theorem as a very specific, high-end architectural challenge.

They gave the AI:

  1. The goal (the theorem statement).
  2. A textbook proof (the instructions).
  3. A rule: "You must use only the existing, standard tools we already have in our toolbox (the math library)."

Phase 1: The "Pass" (State A)
The AI worked hard and produced code that compiled without errors. In the world of math software, errors are called "sorries" (short for "sorry, I couldn't prove this yet"). The AI managed to get the "sorry" count down to zero.

  • The Result: The house is standing. The computer is happy.
  • The Problem: An expert human architect (a mathematician) looked at the house and said, "This is a disaster."

The Expert Review: Why the "Standing House" Failed

The human expert found that while the house didn't fall down, it was built terribly. Here are the specific problems they found, translated into everyday terms:

1. The "Custom Tools" Problem (Definitions)

  • What the AI did: The AI kept inventing its own custom tools for every single tiny task. If it needed to measure a wall, it built a new, weird tape measure just for that one wall.
  • Why it's bad: In a real library, you want standard tools that everyone knows how to use. If the AI builds a custom tool for every job, future builders can't use the house because they don't know how to operate the AI's weird inventions.
  • The Verdict: The AI was great at using tools but terrible at designing them. It made 62 custom definitions, and 61 of them were useless or confusing.

2. The "Cluttered Blueprint" Problem (API Design)

  • What the AI did: The AI didn't build a clean interface (a user manual). Instead, it just kept opening the walls to show the raw bricks every time someone wanted to do something.
  • The Fix: The expert asked the AI to build a "User Interface" (an API) so people could interact with the math without seeing the messy guts.
  • The Result: The AI did build an interface, but it was messy. It added 24 specific "rules" just for the current proof, rather than creating a few elegant, general rules. It was like adding a unique, complicated switch for every single lightbulb in the house instead of installing a standard light switch.

3. The "Short-Sighted" Problem (Theorem Statements)

  • What the AI did: The AI proved exactly what it needed to get the job done, and nothing more. It was like a carpenter who cuts a board to fit only the current gap, rather than cutting it so it could be used for other gaps later.
  • The Verdict: The AI is excellent at solving the immediate puzzle but terrible at thinking, "How can I make this useful for someone else five years from now?"

The "Before and After" Test

The team didn't give up. They took the expert's feedback and asked the AI to fix it.

  • What the AI fixed well: It was great at local repairs. If the expert said, "Rename this file," or "Change this specific number," the AI did it perfectly. It could clean up the mess.
  • What the AI failed to fix: It still couldn't figure out how to design a good house from scratch. Even after the review, the definitions were still clunky, and the "user interface" was still bloated.

The Big Lesson

The paper concludes with a simple, powerful idea:

"Closing the gaps" (getting the code to compile) is the easy part.

The hard part is design.

  • The AI is like a brilliant bricklayer: It can lay bricks perfectly if you tell it exactly where to put them.
  • The AI is NOT like an architect: It cannot decide what the house should look like, how the rooms should flow, or what tools the future residents will need.

The Takeaway:
We shouldn't just ask, "Did the AI solve the math problem?" We need to ask, "Did the AI build something that other humans can actually use?"

Currently, AI can solve the puzzle, but it cannot build the library. To get a truly useful result, a human expert still needs to step in and do the heavy lifting of design and organization. The "hard part" isn't proving the theorem; it's making sure the proof is a gift to the future, not a burden.

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 →