Formalizing Numerical Analysis: An Agent Pipeline and Quality Audit Beyond Kernel Acceptance
Theodore MeekSiyuan GeDi Qiu XiangSimon ChessVasily Ilin
Theodore Meek
Siyuan Ge
Di Qiu Xiang
Simon Chess
Vasily Ilin
+5
This paper formalizes a numerical analysis textbook (Numerical Methods for Ordinary Differential Equations) in Lean 4 with a coding agent, a domain largely absent from mathlib. It introduces a three-dimensional, reproducible quality audit beyond kernel acceptance—covering semantic correctness, mathlib reuse, and cross-file reuse via LLM-as-judge methods. Applying this framework to their own output and to RepoProver and M2F reveals recurring unfaithful patterns (e.g., incomplete multi-part statements, weakening hypotheses, parameter restrictions) that kernel acceptance hides, concluding compilation-based metrics overstate formalization quality.

OpenReview ·
· May 26, 2026