Organizations: School of Electronics Engineering and Computer Science, Peking University. · College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics.
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.
Figures & tables
Table 1
Figure 2: Overview of the Merlin-Bench construction and evaluation pipeline. (Left) Test cases are developed through problem selection, literature research, generator implementation, and automatic 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.
Figure 3: Representative tasks and verification processes across the three tiers of Merlin-Bench . (Left) Tier 1 is deterministic single round verification. (Middle) Tier 2 is probabilistic multi-round verification. (Right) Tier 3 gives a demonstration of this framework in real-world tasks.
Figure 4: Benchmark scores normalized by total cases in Tier 1, Tier 2, Tier 3, and full benchmark.
Figure 5: Failure analysis for GPT-5.6-Terra and GPT-5.6-Sol on 40 Tier-2 cases. (a) Proportions of runs with and without practice-level errors. (b) Method-level outcomes classified as Pass, Minor, or Core. Inner and outer rings represent Terra and Sol, respectively. (c) Runtime distributions for successful and failed runs. Dots represent individual runs and diamonds indicate means.
Tier
GPT-5.6-Sol-High
GPT-5.6-Terra-High
Tier 1 (36)
25.0±1.0
19.7±0.6
Tier 2 (40)
21.0±2.6
9.3±0.6
Tier 3 (24)
16.0±2.0
12.3±3.1
Total (100)
62.0±2.0
41.3±2.9
Table 2: Results over three independent evaluation runs. Entries report the mean and standard deviation.
Table 3: Ablations of tool-use and problem complexity. (a) Pass counts and overall pass rates for Luna, Terra, and Sol on 18 auxiliary Tier-0 cases with tools enabled. (b) Pass counts for Terra and Sol with and without tools on 18 selected Tier-1 cases. Downward arrows denote the no-tools condition, and Δ reports the change in overall pass rate in percentage points after removing tools.
Figure 6: Effects of prompt expertise on GPT-5.6-Terra across 40 Tier-2 cases. (a) Numbers of cases passed under the Baseline, Engineer, Student, and Expert conditions. (b) Proportions of runs with and without practice-level errors under Baseline and Engineer prompts. (c) Method-level outcomes under Baseline and Student prompts, distinguishing Pass, Minor, and Core categories.
Table 4: Results of the transferability experiment. (a) Results on 48 Tier-3 cases, reporting mean and standard deviation over three runs. (b) Pass rates on AlgoVeri (Dafny task) and CombiBench. The setting A+B evaluates model A using a study guide distilled from model B’s Tier-1 and Tier-2 trajectories, while A+0 uses a guide generated without proof trajectories.
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
Task family
δ
Upper bound on ε
Proof
Graph Non-Isomorphism
0
2−24
Lemma E.1
Boolean-Hypercube Sum-Check
0
p5m≤p2000<2−50
Lemma E.2
GKR Circuit Evaluation
0
p5∑i=0L−1si+1<2−49
Lemma E.3
Circuit Image-Size Lower Bound
<10−10
e−16<2−23
Lemma E.4
Shamir-Style TQBF
0
p∑qdq≤p2060<2−49
Lemma E.5
Hamiltonicity Bind–Challenge–Open
0
2−24
Lemma E.6
Appendix
Table 5: Completeness error δ and soundness error ε for the six Tier-2 families. Each soundness bound is strictly below 2−23 .
Harness
Model
Tier 1 (36)
Tier 2 (40)
Tier 3 (24)
Overall (100)
Codex
GPT-5.6-Luna
16
10
9
35
Codex
GPT-5.6-Terra
20
9
9
38
Codex
GPT-5.6-Sol
24
24
14
62
Claude Code
Claude 5 Opus
24
18
17
59
Claude Code
Claude 5 Sonnet
21
13
19
53
DSH
DeepSeek V4 Pro
16
12
8
36
Appendix
Table 6: Per-model pass counts across 36 Tier-1, 40 Tier-2, and 24 Tier-3 cases. Overall is the sum across all 100 cases.
Axis
Label
Evidence criterion
Methodology
CM
No adequate core method is established.
Methodology
NC
A correct core route is evidenced but the proof is not completed successfully.
Practice
PE
An observable execution or interface fault affects validity or completion.
Appendix
Table 7: Failure labels used in the Tier-2 analysis.
Figure 7: The binary-choice gadget. Root connectivity turns group coverage into the selection of a truth-value edge.
Figure 8: The two C2.1.1 constructions at the illustrative value r=5 ; generated instances use an odd r∈[701,1001] .
Figure 9: The subgraph induced by the eight neighbors of a selected vertex in C2.1.2. The selected vertex and its incident edges are omitted.
Figure 10: Two partition vertices of the GQ(2,2) incidence graph. A rectangle is adjacent to the three pair vertices appearing in its partition; the full construction contains all 15 vertices of each type.
Figure 11: The CFI gadget and its straight and crossed port matchings. The three-bit label of a gray vertex specifies its neighbor in every port pair.
Figure 12: Local form of the Fisher transform in C2.1.5. Each root vertex becomes a triangle; each root edge becomes one edge between two triangles.
Figure 13: A small schematic of Cr□Pc . Each displayed column is cyclic; the generated C2.2.3 and C2.2.4 instances use (r,c)=(16,25) and (12,33) , respectively.
Figure 14: The arity-four occupancy factor at an interior vertex of the monomer–dimer graph in C2.2.5.
Figure 15: A fundamental rectangle of a toroidal grid. C2.2.6 uses six rows and 24 columns, with opposite boundaries identified coordinatewise.
Figure 16: Local factor-incidence structure in C2.2.7. Horizontal solid edges denote adjacent-input factors; dotted segments abbreviate omitted positions of the 160-cycle.
Figure 17: A strictly layered fan-in-two arithmetic circuit. Each rectangle applies (4) to two positions in the next layer.
Figure 18: Logical role of an expanded layer before its positions are permuted. Extra gates do not feed the application output, but their values enter a random multilinear evaluation of the complete layer.
Figure 19: One lane of the image-size protocol. A valid response gives an input x whose circuit output lies in Arthur’s random affine bucket Bj .
Figure 20: An illustrative scan for C2.4.3. The first three 1s in the hidden coordinate order are retained; the generated circuit has 12 coordinates.
Figure 21: One independent set of the 3×4 grid in C2.4.6. No two shaded vertices share an edge; every such set occurs as a circuit output.
Figure 22: One universal–existential pair in C2.5.1. A matching response restores the ready state; a mismatch is irreversible.
Figure 23: The two disjoint reversible components underlying C2.5.4–C2.5.6. The public coordinate permutations hide the displayed block order but do not change the relation.
Figure 24: The order of messages in the Hamiltonicity protocol. The challenge bits are sampled only after the complete vector of committed graphs is fixed.
Figure 25: Local pieces of the common CNF construction. Left: a clause vertex can be inserted while traversing an occurrence in its satisfying direction. Right: replacing each directed vertex by a degree-two three-vertex chain preserves the directed order inside an undirected Hamilton cycle.
Task
Required JSON fields
Event kind
Max-Flow / Min-Cut
flow_value , edge_flows , source_side_cut
maxflow.certificate
Weighted Partial MaxSAT
assignment
maxsat.assignment
Structured Set Cover
set_ids
set_cover.selection
Appendix
Table 8: Task-specific fields in the no-tools submission prompt.