mlsanityData to 14 Oct 2026

Automated Formalization via Conceptual Retrieval-Augmented LLMs

arXiv 2508.06931 ↗First posted 9 Aug 2025cs.AI cs.LGcited by 5

On the map: Retrieval-augmented generation → Agentic RAG, agents and memory

Abstract (arXiv)

Interactive theorem provers (ITPs) require manual formalization, which is labor-intensive and demands expert knowledge. While automated formalization offers a potential solution, it faces two major challenges: model hallucination (e.g., undefined predicates, symbol misuse, and version incompatibility) and the semantic gap caused by ambiguous or missing premises in natural language descriptions. To address these issues, we propose CRAMF, a Concept-driven Retrieval-Augmented Mathematical Formalization framework. CRAMF enhances LLM-based autoformalization by retrieving formal definitions of core mathematical concepts, providing contextual grounding during code generation. However, applying retrieval-augmented generation (RAG) in this setting is non-trivial due to the lack of structured knowledge bases, the polymorphic nature of mathematical concepts, and the high precision required in formal retrieval. We introduce a framework for automatically constructing a concept-definition knowledge base from Mathlib4, the standard mathematical library for the Lean 4 theorem prover, indexing over 26,000 formal definitions and 1,000+ core mathematical concepts. To address conceptual polymorphism, we propose contextual query augmentation with domain- and application-level signals. In addition, we design a dual-channel hybrid retrieval strategy with reranking to ensure accurate and relevant definition retrieval. Experiments on miniF2F, ProofNet, and our newly proposed AdvancedMath benchmark show that CRAMF can be seamlessly integrated into LLM-based autoformalizers, yielding consistent improvements in translation accuracy, achieving up to 62.1% and an average of 29.9% relative improvement.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 29 of its 52 references that are in the map. First posted on arXiv 9 Aug 2025.

Builds on

29 of 52 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Models27 Jun

Other references · 28

  1. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  2. 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
  3. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 391
  4. 2022Autoformalization with Large Language Modelscited by 263
  5. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
  6. 2023Query Rewriting for Retrieval-Augmented Large Language Modelscited by 213
  7. 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 192
  8. 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learningcited by 180
  9. 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 154
  10. 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
  11. 2024InternLM-Math: Open Math Large Language Models Toward Verifiable Reasoningcited by 119
  12. 2024Enhancing LLM Factual Accuracy with RAG to Counter Hallucinations: A Case Study on Domain-Specific Queries in Private Knowledge-Basescited by 77
16 more
  1. 2024Herald: A Natural Language Annotated Lean 4 Datasetcited by 59
  2. 2021MathBERT: A Pre-Trained Model for Mathematical Formula Understandingcited by 58
  3. 2024Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistencycited by 41
  4. 2019Exploration of Neural Machine Translation in Autoformalization of Mathematics in Mizarcited by 40
  5. 2025Mind the Confidence Gap: Overconfidence, Calibration, and Distractor Effects in Large Language Modelscited by 40
  6. 2023Multilingual Mathematical Autoformalizationcited by 39
  7. 2023Text2Analysis: A Benchmark of Table Question Answering with Advanced Data Analysis and Unclear Queriescited by 38
  8. 2024A Semantic Search Engine for Mathlib4cited by 31
  9. 2024LEAN-GitHub: Compiling GitHub LEAN repositories for a versatile LEAN provercited by 25
  10. 2025ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Datacited by 23
  11. 2025Mathesis: Towards Formal Theorem Proving from Natural Languagescited by 18
  12. 2025LeanExplore: A search engine for Lean 4 declarationscited by 18
  13. 2025Right Is Not Enough: The Pitfalls of Outcome Supervision in Training LLMs for Math Reasoningcited by 10
  14. 2024GFLean: An Autoformalisation Framework for Lean via GFcited by 9
  15. 2024An Evaluation Benchmark for Autoformalization in Lean4cited by 4
  16. 2025Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalizationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement
  2. 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Models
  3. 2024Formal Language Knowledge Corpus for Retrieval Augmented Generation
  4. 2026Semantic Search over 9 Million Mathematical Theorems
  5. 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
  6. 2025Autoformalization in the Era of Large Language Models: A Survey
  7. 2023math-PVS: A Large Language Model Framework to Map Scientific Publications to PVS Theories
  8. 2026TheoremGraph: Bridging Formal and Informal Mathematics