Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptance

πŸ“… 2026-06-11
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work addresses the limitations of current automatic formalization research, which predominantly focuses on well-supported mathematical domains and relies solely on kernel acceptance rate as a quality metric, thereby neglecting the practical needs of underrepresented areas such as numerical analysis and lacking comprehensive evaluation. For the first time, we employ a Lean 4 coding agent to formalize an entire textbookβ€”*Numerical Methods for Ordinary Differential Equations*β€”from scratch and introduce a three-dimensional evaluation framework that jointly assesses semantic correctness, Mathlib reusability, and cross-file reusability. Through LLM-as-judge, semantic validation, and dependency analysis, we uncover pervasive issues in existing systems, including incomplete statements and weakened assumptions, demonstrating that kernel acceptance rate substantially overestimates formalization quality. Our approach establishes a reproducible, multidimensional auditing paradigm for trustworthy automated formalization.
πŸ“ Abstract
Recent work has demonstrated that coding agents can formalize entire advanced mathematics textbooks in Lean 4, yet existing efforts concentrate on branches of mathematics already well-represented in mathlib and measure success solely through kernel acceptance. We address both limitations by applying a coding agent to formalize Numerical Methods for Ordinary Differential Equations, a textbook in numerical analysis that is largely absent from mathlib, stressing the agent's capacity to develop new theory from scratch. We further introduce a systematic, reproducible three-dimensional framework for evaluating the quality of agent-produced formalizations beyond compilation: semantic correctness, Mathlib reuse, and cross-file reuse via LLM-as-judge methods. Applying this framework to our own formalization and to the released outputs of RepoProver and M2F, we uncover recurring unfaithful formalization patterns, including incomplete multi-part statements, added weakening hypotheses, and parameter restrictions, that kernel acceptance entirely obscures. Our results suggest that compilation-based metrics substantially overstate formalization quality, and we provide a reproducible audit methodology to support more rigorous evaluation of future autoformalization systems.
Problem

Research questions and friction points this paper is trying to address.

autoformalization
numerical analysis
formal verification
quality evaluation
kernel acceptance
Innovation

Methods, ideas, or system contributions that make the work stand out.

autoformalization
numerical analysis
Lean 4
quality audit
LLM-as-judge
πŸ”Ž Similar Papers
T
Theodore Meek
Math AI Lab, University of Washington, Seattle, United States; Department of Mathematics, University of Washington, Seattle, United States
S
Siyuan Ge
Math AI Lab, University of Washington, Seattle, United States; Department of Computer Science & Engineering, University of Washington, Seattle, United States
D
Di Qiu Xiang
Math AI Lab, University of Washington, Seattle, United States; Department of Mathematics, University of Washington, Seattle, United States; Department of Computer Science & Engineering, University of Washington, Seattle, United States
S
Simon Chess
Math AI Lab, University of Washington, Seattle, United States; Department of Mathematics, University of Washington, Seattle, United States; Department of Computer Science & Engineering, University of Washington, Seattle, United States
Vasily Ilin
Vasily Ilin
University of Washington
samplingneural networksLandau equation