arXiv(opens in a new tab)cs.CLAug 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2608.29270

SHADOWBENCH: Toward Reliable Automatic Evaluation of Semantic Alignment in Autoformalization

Hojae Han, Jongyoon Kim, Sanghyuk Park, Dongwook Cheon, Myungjae Jeon, Sunjong Choi, Soonho Kong, Wonseok Heo, Seung-won Hwang, Donghoon Hyeon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Autoformalization translates informal mathematical theorems into code for proof assistants such as Lean. A central challenge is that current evaluation metrics can accept type-correct but misaligned statements or reject correct statements written in a different formulation. Inspired by Pass@k, we propose SA-PASS (Semantic Alignment Pass), which tests formal statements using auxiliary statements called shadows that characterize the intended statement. A generated statement receives full credit only when it compiles, implies each shadow (forward check), and is implied by their conjunction (backward check). We instantiate SA-PASS in SHADOWBENCH, a Lean 4 full autoformalization benchmark of 178 postgraduate-to research-level problems spanning eight mathematical areas. Claude Code (Opus 4.8) with Numina-Lean-Agent reaches 61.8% compile rate and 11.2% SA-PASS. Across outputs generated by six agentic configurations, SA-PASS achieves 98.8% binary agreement with expert judgments. An early version of SHADOWBENCH served as the benchmark for Track 4 of the ICML 2026 AI4Math Challenge. 1^{1}

1 Introduction

Autoformalization translates informal mathematics written in natural language into code for proof assistants such as Lean. 2^{2} In the full autoformalization setting, the input is an informal theorem statement and proof, and the output is code containing the corresponding formal statement and proof. The proof assistant can then mechanically check whether the formal proof proves the formal statement.

The core challenge for evaluation is to assess whether the generated formal statement expresses the same mathematics as the informal statement (Ospanov et al., 2025; Ammanamanchi et al., 2026). Existing automatic metrics either rely on compile rate signals that can accept misaligned statements, assign scores without formally checking the intended meaning, or require equivalence to a fixed reference formulation that can reject correct statements expressed differently ( §2.2§2.2). An alternative is manual judgment by mathematicians familiar with Lean, which is reliable yet too costly to scale for repeated evaluations (Wu et al., 2022; Fang et al., 2025; Ying et al., 2024).

In this paper, we propose SA-PASS (Semantic Alignment Pass), an automatic metric that scores semantic alignment through forward and backward implication checks. SA-PASS follows the Pass@k idea from code generation, where an output is accepted only if it passes all tests for the task (Chen et al., 2021). For formal statements, we define these checks using a complete set of shadow theorems: auxiliary theorems selected such that each shadow is implied by the intended theorem and the shadows together characterize it (Figure 1a). During evaluation, a generated formalization receives the maximum SA-PASS score only if it compiles, its statement implies every shadow in the forward checks (Figure 1b), and its statement is implied by the shadows' conjunction in the backward check (Figure 1c).

This design makes expert supervision reusable: a shadow set is constructed once for each intended theorem rather than separately for every generated formalization. Experts construct the set by revising LLM-generated drafts ( §4.1§4.1), and Lean mechanically verifies the set completeness ( §3.2§3.2). The same shadow checkers can then be reused to evaluate any number of generated formalizations automatically.

Alongside SA-PASS, we introduce SHADOW-BENCH, a Lean 4 full-autoformalization bench-

∗^{*}These authors contributed equally to this work.

†^{\dagger}Corresponding authors.

Contact information for all authors is provided in §L.

1^{1}https://github.com/ldilab/shadowbench

2^{2}https://lean-lang.org/

Figure

(a) Intended theorem and shadows.

Figure

(b) Forward check failure.

Figure

(c) Backward check failure.

Figure 1: Illustrative example of shadow theorem checks. Here A,B,B1,B2A, B, B_1, B_2 are predicates and B⇔B1∧B2B \Leftrightarrow B_1 \land B_2. The intended theorem statement TT implies both shadows (S1,S2)(S_1, S_2), and the two shadows jointly imply TT. The shadow theorem statement checks reject both generated theorems. The forward check finds that T^1\widehat{T}_1 does not imply S2S_2, and the backward check finds that S1∧S2S_1 \land S_2 does not imply T^2\widehat{T}_2.

mark comprising 178 postgraduate- to research-level problems across eight mathematical areas and three difficulty levels. Each problem is annotated with a complete set of shadow theorems, enabling automatic evaluation with SA-PASS. Existing benchmarks such as ProofNet (Azerbaiyev et al., 2023) primarily contain short formalizations with a single conclusion. In contrast, SHADOWBENCH targets multi-conclusion problems whose reference formalizations are about 1.6 times longer lines on average (Table 9). An early version of SHADOWBENCH, comprising 126 problems, served as the benchmark for Track 4 of the ICML 2026 AI4Math Challenge, with analyses of the results provided in §G.

Empirically, Claude Code (Opus 4.8) with Numina-Lean-Agent (Liu et al., 2026a) achieves a 61.8% compile rate on SHADOWBENCH, yet only 11.2% of its outputs pass SA-PASS (Table 3). SA-PASS achieves 98.8% binary agreement with expert judgments for generated outputs across six agentic configurations, whereas compile rate and BEq+ (Liu et al., 2025a; Poiroux et al., 2025b) achieve 17.8% and 80.6%, respectively (Table 4).

We summarize our contributions as follows.

• We introduce SA-PASS, an automated metric that evaluates semantic alignment between formal and informal statements through Lean-checkable shadow theorems.

• We construct SHADOWBENCH, a Lean 4 full autoformalization benchmark that uses SA-PASS as its main evaluation metric across 178 postgraduate- to research-level problems. Claude Code (Opus 4.8) with Numina-Lean-Agent reaches 61.8% compile rate and 11.2% SA-PASS.

• SA-PASS achieves 98.8% binary agreement with expert judgments.