arXiv:2609.00062cs.CLAug 2026

Manuscript Offprint

arXiv:2609.00062

RePro: Proof-Verified Benchmark Rewriting for Reliable Evaluation of LLM Mathematical Problem Solving

Xiyuan Zhou, Zhuoqi Li, Xinlei Wang, Yirui He, Yuhao Wu, Yuheng Cheng, Yan Xu, Junhua Zhao, Jinjin Gu

Xiyuan Zhou 1∗^{1*}, Zhuoqi Li 2∗^{2*}, Xinlei Wang 3^{3}, Yirui He 2,4^{2,4}, Yuhao Wu 2^{2}, Yuheng Cheng 2^{2}, Yan Xu 1†^{1\dagger}, Junhua Zhao 2,5†^{2,5\dagger}, Jinjin Gu 3†^{3\dagger}

1^{1}Nanyang Technological University, 2^{2}The Chinese University of Hong Kong, Shenzhen, 3^{3}INSAIT, Sofia University “St. Kliment Ohridski”, 4^{4}Shenzhen Loop Area Institute, 5^{5}AIRS xiyuan002@e.ntu.edu.sg, zhuoqili1@link.cuhk.edu.cn xinlei.wang@insait.ai, yiruihe@link.cuhk.edu.cn yuhaowu@link.cuhk.edu.cn, yuhengcheng@link.cuhk.edu.cn xuyan@ntu.edu.sg, zhaojunhua@cuhk.edu.cn, jinjin.gu@insait.ai

Abstract

Data contamination undermines the reliable evaluation of large language models (LLMs) on mathematical problem solving. While rewriting-based evaluation mitigates memorization, existing methods lack guarantees of problem validity and answer correctness. We propose Proof-Verified Benchmark Rewriting (RePro), the first framework to integrate Lean-oriented neural automated theorem provers (ATPs) into benchmark rewriting, which rewrites problems and regenerates answers with correctness ensured by Lean-verified proofs. Experiments on GSM8K and MATH show that RePro's retained rewritten instances achieve 100% well-definedness, feasibility, and answer correctness, while existing methods still produce invalid or incorrect instances. Moreover, several models exhibit accuracy drops on proof-verified rewritten benchmarks, suggesting that their performance is sensitive to surface-level and structural variations and may partly reflect memorization effects. Our source code and data are available at https://github.com/AI4Engi/RePro.

1 Introduction

Evaluating mathematical capability is essential for understanding the reasoning abilities of large language models (LLMs) (Shao et al., 2024; Ahn et al., 2024). However, benchmark reliability is challenged by data contamination, as training corpora and evaluation benchmarks often share public sources (Chen et al., 2025; Cheng et al., 2025). Such overlap may allow models to achieve high scores through memorization rather than genuine reasoning (Li et al., 2024; Zhou et al., 2026a; Zhao et al., 2025). Recent dynamic evaluation methods,

Figure

Figure 1: Overview of RePro. Existing rewriting methods may produce invalid problems or incorrect answers. RePro integrates formal verification to ensure that rewritten instances are valid questions and paired with verified answers, enabling reliable LLM evaluation.

including benchmark rewriting, interactive evaluation, and multi-agent evaluation, aim to reduce contamination (Chen et al., 2025). However, their reliance on heuristic rewriting or model-generated processes makes it difficult to guarantee problem validity and answer correctness.

Benchmark reliability remains a concern in existing evaluations, even for influential expert benchmarks such as GPQA (Rein et al., 2024) and HLE (Center for AI Safety et al., 2026), which have advanced frontier LLM evaluation. HLE-Verified further highlights the importance of answer reliability, reporting that within HLE's mathematical category, problem validity exceeds 92% while answer validity is 59.6% (Zhai et al., 2026). This suggests that benchmark reliability depends on both problem validity and answer correctness, reflecting a broader emphasis on verifier-guided reliability in

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

LLM systems (Wang et al., 2026). Accordingly, RePro focuses on mathematical and formally verifiable problems, and evaluates rewritten instances by whether they are well-defined, feasible, and paired with a correct reference answer (see Sec. 4).

To improve benchmark rewriting reliability, we introduce deterministic proof verification by incorporating Lean-oriented neural automated theorem provers (ATPs) and proof-assistant checking into the rewriting pipeline, replacing heuristic LLM-based evaluation with machine-verifiable reasoning. In RePro, proof search relies on Lean-oriented neural ATPs such as Goedel-Prover (Lin et al., 2026) and DeepSeek-Prover (Ren et al., 2025). Given a formalized statement, these models generate Lean proof scripts, which are treated as candidate proofs and accepted only after Lean kernel-level verification. Unlike classical ATPs and SMT solvers such as Vampire (Kovács and Voronkov, 2013) and Z3 (De Moura and Bjørner, 2008), which return sound results within supported logical fragments, neural ATPs may generate scripts with compilation failures, target mismatches, or tactic-level errors. RePro therefore retains only proofs that pass Lean kernel-level checking (De Moura et al., 2015).

Building on the guarantees provided by formally verified proofs, we propose RePro (Proof-Verified Benchmark Rewriting), a framework for constructing mathematically rigorous rewritten benchmarks. As illustrated in Fig. 1, in RePro, LLMs generate diverse rewritten problems and perform conservative semantic screening, while ATPs search for candidate proofs and proof assistants verify them. In this way, the rewritten benchmark maintains high diversity while providing verifiable correctness guarantees. Only instances whose reference answers have a formally verified proof are retained, ensuring that the released benchmarks contain only problems with formally verified answers. Detailed methodology is presented in Sec. 3.

Empirical results show that RePro significantly improves the reliability of rewriting-based evaluation. Compared with existing methods, RePro achieves 100% well-definedness, feasibility, and answer correctness among retained rewritten instances on both GSM8K (Cobbe et al., 2021) and MATH (Hendrycks et al., 2021), while prior methods still produce invalid problems or incorrect reference answers.

Our contributions can be summarized as follows: (1) We propose RePro, the first benchmark rewriting framework that integrates ATPs and Lean into a unified verification pipeline, retaining only instances with verified reference answers while enforcing problem validity through a three-stage verification process. (2) We introduce reliability-oriented evaluation criteria for rewritten benchmarks, covering well-definedness, feasibility, and answer correctness. (3) We use proof-verified rewriting to analyze reformulation sensitivity and identify potential memorization-related signals.