Math Foundation Formalization Agent: A General-Purpose Approach to Formalizing Mathematical Foundations
Organizations: School of Electronic Engineering, Beijing University of Posts and Telecommunications, Beijing, China
Abstract
Mathematical formalization plays an important role in establishing rigorous and machine-verifiable foundations for mathematical reasoning. With the development of large language models (LLMs) and interactive theorem provers, intelligent agents offer a promising approach to automating the formalization of mathematical theories. This paper presents the Math Foundation Formalization Agent (MFF-Agent), a general-purpose intelligent agent designed to support formalization tasks across multiple mathematical domains. The agent integrates the reasoning capabilities of large language models with the formal verification capabilities of the Rocq proof assistant. It incorporates task classification, tool-assisted execution, verification feedback, and state-based task management to support the generation, refinement, and verification of formal proofs. Unlike an approach focused on a single mathematical theory, the agent is examined through case studies involving Morse--Kelley axiomatic set theory (MK), real numbers, propositional logic, and equivalences of the axiom of choice. These cases investigate its applicability across mathematical foundations and distinguish source-level completion, interactive verification, and reproducible compilation. The results demonstrate the feasibility of a unified operational framework for heterogeneous foundation-level tasks and clarify the gap between such a framework and a fully integrated mathematical foundation.
Figures & tables
| Domain | Formalized content | Representative results |
|---|---|---|
| MK set theory | Classes and sets; relations and functions; ordinals, cardinals, and finite sets | The MKT4 – MKT181b family, including algebraic, order, and cardinality results |
| Choice and equivalents | Finite-characteristic classes, maximal and minimal members, choice functions, partial and total orders, chains, and well-orders | Tukey’s lemma, Hausdorff’s maximal principle, the maximal principle, Zorn’s lemma, WellOrder_AC , and Zermelo_AC |
| Real numbers | Ordered field and completeness; supremum and infimum; , , ; irrationals; absolute value and distance | Sup_Corollary , Inf_Corollary , Existence_of_irRational_Number , and Real_struct_isomorphic |
| Propositional logic | Formula syntax, derivability, truth semantics, proof systems, and meta-theoretic consistency | soundness_PC , consistence_PC , and complete |
Autoformalization
Autoformalization converts natural-language mathematics, proofs, and specifications into machine-checkable formal languages.
See all 118 papers