Beyond LLM Judge: Mechanical Verification for Agentic Autoformalization

arXiv:2610.20573 · cs.LO, cs.AI · Submitted 2026-10-14 · Read on arXiv

cs.LO, cs.AI

Submitted: 2026-10-14

Updated: 2026-10-14

Comments: 9 pages

License: http://creativecommons.org/licenses/by/4.0/

The gist: We introduce a novel method for verifying Lean formalizations that goes beyond LLM-judged faithfulness.

Terminology

Abstract

We introduce a novel method for verifying Lean formalizations that goes beyond LLM-judged faithfulness. Unlike most verification methods, which rely on LLMs or trained models, our method combines LLM-based semantic review with mechanical numerical and vacuity checks, providing checkable feedback and detecting errors missed by LLM judges. We apply this method, along with our Extract-Verify-Proof autoformalization pipeline, to construct the Formalized Library of Mathematical Functions (FLMF), a partial formalization of the NIST Digital Library of Mathematical Functions (DLMF). On three labeled datasets, our method achieves the lowest accepted-error rate among the evaluated methods, measured as the fraction of incorrect statements accepted by the verification method. Expert review of the results also identifies translation and source defects in existing datasets. Code available at https://github.com/annamei1/FLMF-Ch7ErrFunc-Release.git.

Related papers