SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.21522 · ICML · 2026

Pessimistic Verification for Open-Ended Math Questions

Yang Liu, Peng Li, J Wang, M Meyer, K Chen, M Lin, L Kaiser, M Wang, M Trebacz, G Zhao, G Leclerc, O Connell, and 12 more

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2511.21522.json · badge: /api/ran/2511.21522.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
THUNLP-MT/pverify canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_xml_content Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/pverify/utils/common.py
code served (permissive licence) · get_code("63664885109d7490")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def extract_xml_content(text: str, tag: str):
    flags = re.DOTALL | 0
    pattern = f'<{re.escape(tag)}(?:\\s+[^>]*)?\\s*>(.*?)</\\s*{re.escape(tag)}\\s*>'
    last_content = None
    for m in re.finditer(pattern, text, flags):
        last_content = m.group(1)
    if last_content is None:
        return None
    return last_content.strip()


ARGS = {
    "text": "<root>Hello World</root><root>Goodbye World</root>",
    "tag": "root"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_boxed Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/pverify/utils/common.py
code served (permissive licence) · get_code("4751907592c23b2e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# The function find_boxed takes a string parameter 'pred_str'
# and extracts content from within 'boxed' markers.
# It handles two cases:
# 1. If content after 'boxed' starts with '{', it extracts balanced braces
# 2. Otherwise, it splits on '$' and takes the first part

# Create test cases for the pred_str parameter
pred_str_case1 = "The answer is \\boxed{42}"
pred_str_case2 = "Result: \\boxed{x + y} in dollars"
pred_str_case3 = "Final answer \\boxed$100$"
pred_str_case4 = "No boxed content here"

# Use one of the test cases
pred_str = pred_str_case1

ARGS = {
    'pred_str': pred_str
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_prepared_rows Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/pverify/utils/arxiv_bench.py
code served (permissive licence) · get_code("219175b5d6c1c209")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import json
from pathlib import Path

# Create a temporary directory structure for the test
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create the manifest.jsonl file with sample entries
manifest_path = temp_path / 'manifest.jsonl'
sample_rows = [
    {
        'arxiv_id': '2301.00001',
        'proof_path': 'proof_001.txt',
        'pdf_path': 'paper_001.pdf',
        'source_archive_path': 'archive_001.tar.gz',
        'source_dir': 'source_001',
        'Location of Error': 'Line 42'
    },
    {
        'arxiv_id': '2301.00002',
        'proof_path': 'proof_002.txt',
        'pdf_path': 'paper_002.pdf',
        'source_archive_path': 'archive_002.tar.gz',
        'source_dir': 'source_002',
        'Location of Error': 'Line 15'
    },
    {
        'arxiv_id': '2301.00003',
        'proof_path': 'proof_003.txt',
        'pdf_path': 'paper_003.pdf',
        'source_archive_path': 'archive_003.tar.gz',
        'source_dir': 'source_003',
        'Location of Error': 'Lemma 3'
    },
    {
        'arxiv_id': '2301.00004',
        'proof_path': 'proof_004.txt',
        'pdf_path': 'paper_004.pdf',
        'source_archive_path': 'archive_004.tar.gz',
        'source_dir': 'source_004',
        'Location of Error': ''
    },
    {
        'arxiv_id': '2301.00005',
        'proof_path': 'proof_005.txt',
        'pdf_path': 'paper_005.pdf',
        'source_archive_path': 'archive_005.tar.gz',
        'source_dir': 'source_005',
        'Location of Error': 'Definition'
    },
]

# Add more rows to reach 35 total
for i in range(6, 36):
    sample_rows.append({
        'arxiv_id': f'2301.{i:05d}',
        'proof_path': f'proof_{i:03d}.txt',
        'pdf_path': f'paper_{i:03d}.pdf',
        'source_archive_path': f'archive_{i:03d}.tar.gz',
        'source_dir': f'source_{i:03d}',
        'Location of Error': f'Line {i * 10}'
    })

# Write manifest
with manifest_path.open('w', encoding='utf-8') as f:
    for row in sample_rows:
        f.write(json.dumps(row) + '\n')

# Create proof files for each entry
for i in range(1, 36):
    proof_file = temp_path / f'proof_{i:03d}.txt'
    proof_file.write_text(f'This is a sample proof for paper {i}.\nSome mathematical content here.', encoding='utf-8')

ARGS = {
    'data_dir': temp_path,
    'expected_count': 35
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_manifest Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/pverify/utils/arxiv_bench.py
code served (permissive licence) · get_code("a2f0bac6c3ebfb01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import tempfile
import os

# Create a temporary directory with a manifest.jsonl file
temp_dir = tempfile.mkdtemp()
manifest_path = Path(temp_dir) / 'manifest.jsonl'

# Write some valid JSONL data
manifest_data = [
    {"id": 1, "title": "Paper A", "content": "Some math content"},
    {"id": 2, "title": "Paper B", "content": "More math content"},
    {"id": 3, "title": "Paper C", "content": "Additional content"}
]

with open(manifest_path, 'w', encoding='utf-8') as f:
    for row in manifest_data:
        f.write(json.dumps(row) + '\n')

# Define ARGS with the temporary directory
ARGS = {
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_data_path Ran
ran; our contract draft was wrong, not the code
THUNLP-MT/pverify/utils/arxiv_bench.py
code served (permissive licence) · get_code("79084342dc349776")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path

ARGS = {
    "data_dir": "/tmp/data",
    "value": "subdir/file.txt"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Automatic verification is a critical component in building math-solving agents and reinforcement learning, yet it often falls short in generalizability, performance, and cost-efficiency. Identifying that the primary bottleneck of verification lies in error detection capability, we propose pessimistic verification, a paradigm of agentic workflows that rejects a solution if any of multiple parallel verifiers identifies a flaw. We further introduce progressive pessimistic verification, which employs fine-grained proof decomposition to significantly enhance verification accuracy and efficiency. Our approach surpasses the performance and token efficiency of extended long chain-of-thought (long CoT) and mainstream verification workflows, crucially, our analysis reveals that existing benchmarks underestimate its effectiveness on stronger models due to inherent annotation errors. To further validate the effectiveness of our method, we applied a verification-based solving workflow on the IMO 2025 and MathArena Apex 2025 datasets, where the workflow with progressive pessimistic verification exhibits remarkable improvements in both efficiency and accuracy on highly challenging contest-level math problems with state-ofthe-art models. Code is available at https: //github.com/THUNLP-MT/pverify.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2511.21522")
get_code_for_paper("2511.21522")
have("2511.21522")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2511.21522.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2511.21522.svg)](https://syntology.ai/paper/2511.21522)

Connect an agent — have() is free.