Interactive Proofs as a Unified Framework for Evaluating and Leveraging Verifiable Proof Generation by LLM Agents

Yankai Shu, Xingyu Zhao, Chuan Mao, Congchi YinarXiv 2026

TL;DR

We want AI agents that don’t just say "trust me, bro," when solving math or verifying code—we want rigorous, independently checkable proof. To measure whether AI genuinely understands how to prove things rather than just memorizing syntax for tools like Lean or Dafny, the authors borrow a classic idea from theoretical computer science: Interactive Proofs. They pit 10 frontier LLM agents as all-powerful "provers" against skeptical algorithmic "verifiers," revealing that while LLMs are getting great at finding answers, translating insights into strict, protocol-compliant proofs is still a massive stumbling block—though lessons learned on abstract puzzles surprisingly transfer to real-world software verification.

What Problem Does This Paper Address?

Right now, human–AI collaboration in math and software engineering follows a neat pattern: an LLM agent searches for a proof or loop invariant, and a formal verification tool (or human expert) checks it.

So how do we benchmark this underlying "proving capability"? Existing benchmarks hit a frustrating four-way trade-off:

  1. Simple problem sets (like graph puzzles in NLGraph) aren't agent-oriented—an agent with a Python interpreter can trivialize low-complexity problems in seconds.
  2. LLM-audited benchmarks (like SATBench) lack rigorous certificates—having one hallucination-prone LLM grade another isn't formal proof.
  3. Math competition suites (like miniF2F) rely on human-crafted Olympiad problems, preventing scalable synthesis and risking data contamination.
  4. Tool-specific suites (like DafnyBench) test how well an LLM knows a specific programming language's quirks rather than a unified, protocol-agnostic proving ability.
Comparison of Merlin-Bench against existing benchmarks across four key criteria.

Methods

To unify proof evaluation, the authors reach back to 1985 computational complexity theory and Interactive Proof ($\mathsf{IP}$) systems, famously framed as a dialogue between Merlin (an unbounded, brilliant prover, played by the LLM agent) and Arthur (a fast, randomized, skeptical verifier, played by a local Python HTTP server).

Consider Graph Non-Isomorphism—proving two graphs $G_0$ and $G_1$ are different. There is no known simple static certificate for this. Instead, Arthur secretly picks one graph, scrambles its labels, and hands it to Merlin: "Which one did I start with?" If the graphs are truly different, Merlin can figure it out every time; if they're identical, Merlin is stuck guessing 50/50. Repeat 24 times, and Arthur is mathematically convinced (with false-acceptance probability $\le 2^{-23}$).

Figure 1: Example of Test Case 2.1.1

What's also novel is how they build the problems. Using an automated construction agent, the pipeline mines academic literature for hidden structural properties (like tractable subclasses of hard problems), writes randomized instance generators (preventing memorization!), and filters each case between two gates: a Feasibility Check (a strong model given the secret trick must pass within 600s) and a Discrimination Check (weaker models without the trick must fail). Human reviewers verify every surviving case.

Figure 2: Overview of the MERLIN-BENCH construction and evaluation pipeline. (Left) Test cases are developed through problem selection, literature research, generator implementation, and auto- matic checks under human supervision, followed by feasibility and discrimination checks. (Right) The frozen case bank generates an instance, an agent workspace, and a verifier service for each evaluation. The agent interacts with the verifier according to the protocol to obtain a final verdict.

Datasets

The authors introduce MERLIN-BENCH, comprising 100 dynamic test cases across 15 problem families, organized into three tiers:

  • Tier 1 (Deterministic Certificates): 36 cases across 6 $\mathsf{NP}$ problems (e.g., Max-Flow/Min-Cut, Weighted Partial MaxSAT) requiring a single-round submission.
  • Tier 2 (Multi-round Interactions): 40 cases across 6 $\mathsf{IP}$ problems (like Graph Non-Isomorphism) requiring multi-turn stateful reasoning against Arthur.
  • Tier 3 (Real-world Tasks): 24 cases (expanded to 48 in transfer studies) using actual formal verifiers: Lean 4 (math), Dafny (software), and DRAT (hardware/SAT).

They also create an auxiliary 18-case Tier 0 of easy polynomial-time ($\mathsf{P}$) problems for ablations, and test generalization on two external benchmarks: AlgoVeri (Dafny verification) and CombiBench (combinatorics).

Key Insights and Ideas

  • Easy complexity classes saturate instantly when agents get tools: Give an LLM agent a code interpreter on standard polynomial-time ($\mathsf{P}$) tasks (Tier 0), and scores hit 94.4%–100%. Take tools away on Tier 1, and pass rates plummet by ~44–56 percentage points. Raising benchmark complexity to $\mathsf{IP}$ (= $\mathsf{PSPACE}$) keeps headroom alive for tool-wielding agents.
  • "Knowing the math" $\neq$ "Finishing the proof": Failure analysis shows practice-level errors (messing up protocols, mismanaging tool budgets, timing out) happen in 43.8% to 58.1% of failed runs. Even when given "Student-level" algorithmic hints that helped agents grasp the right core method, overall pass rates didn't budge (staying at 9/40) because agents fumbled the execution! Conversely, simple "Engineer" prompts ("log Arthur's messages, watch the clock") boosted passes from 9/40 to 14/40.
  • Abstract interactive proof experience transfers to real-world code verification: When an agent reviews its own Tier 1 & 2 synthetic trajectories to write a "study guide" prompt, a fresh agent reading that guide gets noticeably better at Lean, Dafny, and DRAT—without any weight updates.

Key Results

Evaluating 10 frontier models (across the GPT-5.6, Claude 5, DeepSeek-V4, GLM-5.3, and Kimi-K3 families paired with harnesses like Codex and Claude Code):

  • Overall difficulty: The top-performing system (GPT-5.6-Sol) achieved 62% overall strict pass rate, followed by Claude 5 Opus (59%) and Claude 5 Sonnet (53%), down to 22% for Kimi-K3.
  • Strong real-world alignment: Scores on abstract Tiers 1 & 2 strongly correlate with real-world Tier 3 formal verification performance (Spearman's $\rho = 0.834$).
  • Prompt expertise impact (on GPT-5.6-Terra, 40 Tier-2 cases): Baseline passed 9, Engineer guidance hit 14, general Student hints stayed at 9, and strategic domain-specific Expert hints jumped to 22.
  • Synthetic-to-Real Transfer: Distilling a study guide from Sol's abstract proof traces boosted Sol on 48 Tier-3 tasks from 64.58% to 72.92%, and lifted Terra from 36.11% to 51.39%. On external benchmarks, Terra+Sol improved from 74.0% to 77.9% on AlgoVeri and 44.0% to 49.0% on CombiBench.

Limitations and Future Work

  • Agent-level entanglement: Scores measure the combined model + agent harness system (e.g., Codex vs. Claude Code) rather than isolated base LLM weights, and test-case feasibility explicitly depends on the chosen 600-second timeout budget.
  • Prompt-only transfer (and a slight dip): Experience transfer was tested purely via in-context prompting ("study guides"), which showed high variance and one slight dip on AlgoVeri for Sol+Sol (84.4% to 83.1%).
  • Future direction: Because the automated pipeline can synthesize endless rigorous $\mathsf{IP}$ instances, the authors highlight converting Tier 1 and Tier 2 interaction trajectories directly into post-training / reinforcement learning data to bake formal verification discipline straight into model weights.

Summary updated

Abstract

Recent advances in LLM-assisted theorem proving and program verification have attracted widespread attention. Beyond determining whether a proposition is true, LLM agents must produce evidence that can be independently checked by humans or formal verification tools. To evaluate the underlying, protocol-agnostic ability of LLM agents to construct verifiable proofs-rather than their proficiency with any particular proof language or verification tool, we introduce Merlin-Bench. Drawing on interactive proof systems from computational complexity theory, we cast an LLM agent as the prover: under a designated protocol, the agent interacts with a formal verifier to substantiate its claimed answer to a problem instance. We develop an automated framework for constructing test cases and use it to create 100 cases across 15 problem families, each formulated within this prover-verifier framework. Experiments with 10 frontier LLMs across multiple agent harnesses show that reliably producing verifiable proofs in accordance with specified protocols remains a substantial challenge. Our case studies further provide actionable insights into improving agents' ability to generate verifier-accepted proofs: tool use is essential for completing practical proof tasks; different forms of guidance, ranging from engineering instructions to problem-specific knowledge, substantially affect success rates on interactive-proof tasks; and proof-solving experience distilled from abstract tasks can transfer to concrete, real-world verification tasks.
BibTeX
@misc{shu2026interactive,
  author = {Yankai Shu and Xingyu Zhao and Chuan Mao and Congchi Yin},
  title = {{Interactive Proofs as a Unified Framework for Evaluating and Leveraging Verifiable Proof Generation by LLM Agents}},
  year = {2026},
  eprint = {2611.33676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33676},
}
Figure