arXiv:2610.25018cs.PLOct 2026

Manuscript Offprint

arXiv:2610.25018

Structure-Aware Equivalence for Evaluating Autoformalized Statements

Yi Yu, Yu-Hsuan Wu, Guang Lin, Yuhui Zhang, Yuxiang Peng

ABSTRACT

Evaluating autoformalized mathematical statements requires determining whether a candidate preserves the mathematical claim intended by a trusted reference. Existing methods approach this problem from complementary directions: reference-free learned evaluators estimate semantic agreement but are not constrained to a formal equivalence relation, while reference-based proof methods typically employ whole-statement logical equivalence to provide formal certificates, which is too coarse for translation fidelity and may identify mathematically unrelated statements.

We introduce Structure-Aware Equivalence (SAE), a role-preserving formal equivalence relation between syntactic and whole-statement logical equivalence that allows formally justified reformulations while preserving translation-relevant mathematical structure. We operationalize SAE in the Autoformalization Correctness Evaluator (ACE), which provides certified equivalence or inequivalence judgments and reports Inconclusive otherwise. On ProofNetVerif, a benchmark introduced with BEq+, ACE retains substantial equivalent-case coverage while remaining highly conservative in certifying disputed or inequivalent pairs. On targeted diagnostics, BEq+ accepts 94–96% of unrelated but whole-statement logically equivalent pairs, while Mathesis LeanScorer accepts 42% of localized meaning-changing perturbations; ACE accepts none of either set as equivalent.

1 INTRODUCTION

Large language models (LLMs) are increasingly capable of translating informal mathematical statements into formal languages such as Lean (Azerbaiyev et al., 2023; Wu et al., 2022; Weng et al., 2025). Yet measuring whether a generated formal statement is semantically correct remains a fundamental bottleneck. A statement may compile successfully while altering its assumptions, mathematical domain, or conclusion. Conversely, a correct formalization need not reproduce a reference statement syntactically: differences in notation, variable names, or algebraic presentation need not change the intended mathematics. Reliable autoformalization therefore requires deciding whether different formal representations preserve the same intended mathematical claim.

There are two complementary settings for this problem. In reference-free evaluation, an informal statement and a candidate formalization are available, but no trusted formal counterpart exists. In reference-based evaluation, a trusted formalization is available and the candidate is evaluated against it. The former is indispensable for previously unformalized mathematics, while the latter serves a different and practically important role in benchmarking models, curating formal datasets, and providing reliable training or selection signals. Importantly, a reference does not make evaluation trivial: exact matching rejects valid reformulations, while compilation or independent provability does not establish semantic equivalence to the reference.

Reference-free methods such as FormalAlign (Lu et al., 2025) and Mathesis LeanScorer (Yu et al., 2026) use learned semantic alignment or LLM-based judgments to compare natural- and formal-language statements. Such methods are valuable when no trusted formal reference exists, but their decisions are not constrained to realize a formally defined semantic relation. For direct LLM-as-a-judge methods, this weakness can appear visibly as contradictory judgments for the same pair across repeated evaluations or prompt variations (Xie et al., 2024; Wei et al., 2025). More generally, learned evaluators provide no guarantee that semantics-preserving reformulations retain the same judgment, or that localized semantics-changing edits alter it. Their outputs are therefore learned predictions of semantic agreement rather than mechanically checkable evidence of that agreement.

A trusted formal reference makes stronger guarantees possible: once both the reference and candidate are Lean statements, their relationship can itself be subjected to formal proof. Reference-based metrics such as BEq and BEq+ attempt to mutually derive a reference TrT_r and candidate TcT_c, thereby establishing whole-statement logical equivalence, Tr→TcT_r \to T_c and Tc→TrT_c \to T_r (Liu et al., 2025; Poiroux et al., 2025). When successful, these derivations provide mechanically checked proofs, but the relation itself is too coarse for translation correctness. For an extreme but concrete example, consider

(1:N)+1=2↔Fermat′s Last Theorem.(1:\mathbb{N})+1=2\qquad\leftrightarrow\qquad\mathrm{F e r m a t^{\prime}s~L a s t~T h e o r e m}.

Both propositions are now formally provable in Lean (Anthropic, 2026), and so is their biconditional: each implication can ignore its assumption and invoke the theorem on the other side. Yet the two clearly do not express the same mathematical statement. The issue is not a failure of theorem proving: the prover correctly certifies the formal relation. Rather, logical equivalence is too coarse to serve directly as translation equivalence.

This distinction also changes how proof-search strength should be interpreted. Incomplete search may hide the mismatch by failing to discover logically valid but translation-inappropriate equivalences, whereas stronger search more faithfully realizes the chosen relation. It cannot, however, repair a misaligned correctness criterion, and failure to establish equivalence is not a proof of inequivalence. BEq+, for example, certifies equivalence when both implication directions are proved, but a failed proof search does not provide a Lean-checked proof of ¬(Tr↔Tc)\neg(T_r \leftrightarrow T_c). The choice of what relation defines correctness must therefore be separated from the ability of a prover to certify that relation.

Nor does the reference itself uniquely determine the first. Even the informal statement “f is a constant function” may reasonably be formalized by requiring all values of f to agree, by asserting the existence of a common value, or by identifying f with a constant function. Whether such formulations are formally interchangeable can depend on implicit domain assumptions and on principles available in the ambient theory. A reference-based evaluator must therefore make explicit which distinctions it preserves and which variations it treats as equivalent.

We therefore view reference-based autoformalization evaluation as the selection and certification of an appropriate formal equivalence relation. Syntactic equivalence preserves almost every representational choice and rejects many harmless reformulations, whereas whole-statement logical equivalence can identify statements with unrelated mathematical content. For statement-level autoformalization, we introduce Structure-Aware Equivalence (SAE), an intermediate relation designed to preserve translation-relevant mathematical roles while allowing formally justified reformulation within those roles. For statements with assumptions and a conclusion, SAE preserves this premise–conclusion organization; for relational statements, it preserves the mathematical expressions and relations being asserted. Across both cases, it maintains a consistent correspondence between the mathematical objects of the two statements. SAE is not intended as a universal definition of mathematical equivalence, but as one conservative, role-preserving point in an explicit hierarchy of possible criteria.

We operationalize SAE through the Autoformalization Correctness Evaluator (ACE). SAE specifies what relation should be checked; ACE implements the corresponding comparison and uses Lean-backed verification to certify its outcome. ACE reports Certified SAE-Equivalent when a certified obligation establishes the required SAE conditions, and Certified SAE-Inequivalent only when every admissible alternative is ruled out. If any required comparison remains unresolved by proof search, ACE reports Inconclusive rather than converting failed proof search into a claim of inequivalence. Proof-search strength therefore affects certification coverage only, not the evaluation criterion.

We evaluate ACE on the general-purpose ProofNetVerif benchmark (Poiroux et al., 2025) and two targeted diagnostic sets. On ProofNetVerif, a general-purpose benchmark introduced with BEq+, ACE shows competitive coverage on consensus-equivalent pairs while remaining highly conservative on disagreement-equivalent and inequivalent pairs. The diagnostic sets expose complementary failure modes of existing approaches: BEq+ accepts 94–96% of unrelated but whole-statement logically equivalent pairs, and LeanScorer accepts 42% of localized meaning-changing perturbations; ACE accepts none of either set as equivalent. These results separate the appropriateness of the correctness criterion from the coverage of the procedure used to certify it.

Our contributions are threefold:

• We introduce Structure-Aware Equivalence (SAE), a role-preserving criterion between syntactic and whole-statement logical equivalence.

• We develop ACE, which operationalizes SAE with formally certified equivalence and inequivalence judgments and an explicit Inconclusive outcome.

• We evaluate SAE and ACE on an existing human-annotated benchmark introduced with BEq+ and targeted diagnostics, exposing complementary failure modes of learned semantic scoring and whole-statement logical equivalence.

References (31)