arXiv:2610.19223cs.AIOct 2026

Manuscript Offprint

arXiv:2610.19223

Definition Grounding in Theory-Level Auto-formalization

Leyan Pan, Christian Szegedy, Frederick Rajasekaran, Robi Bhattacharjee, Gregory Constantine, Wenke Lee

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

Abstract

LLM-based auto-formalization systems can now generate formally verified Lean code at unprecedented rates. However, a formalization advances mathematical research only when further mathematical results can be built on it, especially when its definitions and helper lemmas are general enough to be imported and used idiomatically. We propose definition grounding, where definition formalizations are continuously judged and revised, as a method to ensure formalization quality. We find that agents formalizing definitions from textbook text often produce definitions that later statements cannot use, and only 25%–50% of their definition sets are compatible with all later statements. However, clarifying the informal definitions can improve this rate up to 77.5% averaged over all models. Furthermore, stating a small set of basic properties without proving them can improve model judges' capability to detect definitions with compatibility issues, at only about 11% of the definition formalization cost. These results are verified with ReuseBench, a benchmark we curated for formalizing new mathematical fields and theories.

1 INTRODUCTION

AI systems now produce new mathematical results faster than human experts can carefully check their proofs (OpenAI, 2026b). As a result, formal verification in proof assistants such as Lean 4 is increasingly important to establishing the correctness of these results. Fortunately, modern AI auto-formalization systems are capable of autonomously formalizing frontier mathematical results, hundreds of pages of mathematical textbooks (Gloeckle et al., 2026), and large-scale proofs spanning several areas of mathematics (OpenAI, 2026a,b). However, these large-scale formalizations are often overly convoluted, unrefactored, and poorly understood, and they are very hard to use in downstream formalization projects. A formalization's value for advancing mathematical research critically depends on how well it allows further mathematical results to be built on it.

This is clearest when a whole theory is being auto-formalized. Formalizing a new mathematical or theoretical field as a library for others to import starts from its core definitions, then adds basic properties, core results, and eventually progresses to research-level results. Each of these layers is built on earlier ones. We call this setting theory-level auto-formalization following Min et al. (2026), which we elaborate on in Section 2.2.

In this setting, the most crucial aspect of a correct, reusable formalization is the quality of the formalized definitions. A good formalized definition should be faithful to the intended meaning of the informal source that defines it. It should also be suitable for formalizing downstream statements and their proofs, with the help of its helper lemmas. By downstream statements we mean those statements that use the definition (either in their statement or proof). A definition that fails the second condition can go unnoticed through several layers of a theory-level auto-formalization task, and fixing it then means refactoring everything already built on it.

Writing quality definitions in the manner described above is one of the key failure points of state-of-the-art auto-formalization systems. Ilin and Nugent (2026) report in a case study that only 1 of their 62 definitions was formalized in a correct and reusable way, and Rammal et al. (2026) report that their agents some-

∗^{*}Work partly done during internship at AletheAI.

times replaced a complex object, such as a manifold or a scheme, with an oversimplified definition, resulting in incorrectly formalized downstream statements.

Thus, in order for large-scale autoformalization projects to create high-quality code, it is necessary to be able to continuously evaluate formalized definitions for reusability. Ideally, an auto-formalization system should be able to evaluate the quality of definitions as they are created, such as through an independent model judge. However, if, throughout the formalization, evidence arises that the original statements have faithfulness or reusability issues, the model should go back and improve them. In this paper we investigate the foundational questions underlying such a framework, namely, when current LLM agents generate good vs. bad definition formalizations, and how such definition issues can be identified.

Our main contributions are the following. First, we corroborate the findings above and show that LLM definition formalizations given source text often have issues when being used downstream. Further, we show that these issues often occur deep down in the dependency tree. To address this issue, we propose formalizing a small set of basic properties on top of a candidate definition formalization, and revising or regenerating the definitions if a judge predicts the definitions to be incompatible with the given evidence. We demonstrate that LLM judges can identify and predict incompatibility problems of definitions, and we show that providing the initial downstream formalizations can increase the accuracy of the LLM judge. To measure the above results, we curate ReuseBench that evaluates whether models write high-quality, reusable Lean code, especially reusable definition formalizations.

References (69)