Definition Grounding in Theory-Level Auto-formalization
Organizations: Georgia Institute of Technology · AletheAI · Stanford University
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.
Figures & tables
| Theory | Source | ||||||
|---|---|---|---|---|---|---|---|
| Markov chain mixing times | Levin and Peres (2017) | 20 | 24 | 14 | 9 | 14 | 13 |
| Random walks on graphs | Levin and Peres (2017) | 13 | 15 | 12 | 9 | 8 | 5 |
| Curie–Weiss model | Friedli and Velenik (2017) | 11 | 12 | 13 | 8 | 7 | 5 |
| Nets, covering numbers & singular values | Vershynin (2026) | 9 | 16 | 14 | 6 | 7 | 4 |
| Linear and Reed–Solomon codes | Guruswami et al. (2025) | 14 | 15 | 13 | 7 | 7 | 6 |
| Symmetric and Schur polynomials | Grinberg (2025) | 14 | 16 | 11 | 9 | 8 | 9 |
| Witness rate (%) | Full pass | |||||
| Model | rate (%) | |||||
| Source | ||||||
| GPT 6 Astra | 6.3 | 18.1 | 10.8 | 11.7 | 15.2 | 43.8 |
| GPT 5.6 Sol | 5.2 | 18.0 | 14.1 | 16.9 | 19.2 | 31.2 |
| Claude Fable 5.1 | 4.8 | 10.3 | 5.6 | 6.2 | 3.8 | 50.0 |
| Claude Opus 5 | 5.5 | 6.5 | 6.2 | 9.0 | 6.9 | 50.0 |
| Baseline | ( ) | ( ) | ( ) | ( ) | ( ) | |
|---|---|---|---|---|---|---|
| Accuracy | 0.62 | 0.65 | 0.85 | 0.82 | 0.82 | 0.81 |
| AUC | 0.62 | 0.79 | 0.85 | 0.85 | 0.84 | 0.87 |
| Precision | 0.62 | 0.78 | 0.86 | 0.82 | 0.86 | 0.86 |
| Formalization cost (USD) | – | $4.32 | $0.27 | $0.30 | $0.24 | $0.26 |
| Judge cost (5 repeats) | – | $0.17 | $0.21 | $0.27 | $0.32 | $0.35 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Theory | Source | Layers | Copy used | License |
|---|---|---|---|---|
| Markov chain mixing times | Levin and Peres (2017) | , – | Authors’ PDF (2nd ed.) | In copyright; free PDF from the authors |
| Diaconis and Shahshahani (1981) | – | ©Springer-Verlag | ||
| Bayer and Diaconis (1992) | – | ©IMS | ||
| Cryan et al. (2021) | arXiv:1903.06081v4 | arXiv non-exclusive license | ||
| Ding et al. (2010) | arXiv:0801.2625v4 | arXiv non-exclusive license | ||
| Basu et al. (2017) | arXiv:1409.3250v4 | arXiv non-exclusive license |
Autoformalization
Autoformalization converts natural-language mathematics, proofs, and specifications into machine-checkable formal languages.
See all 116 papers