← All papers
First page of Beyond LLM Judge: Mechanical Verification for Agentic Autoformalization

Beyond LLM Judge: Mechanical Verification for Agentic Autoformalization

Anna Mei, Michael R. Douglas

cs.LO Oct 14, 2026 · v2 cs.AI
Builds an agentic Lean autoformalization pipeline for NIST DLMF special-function identities and adds numerical and vacuity checks for verifying Lean statement faithfulness.
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.

Agentic autoformalizations can produce provable but unfaithful Lean statements, for example with wrong domains, signs, or branch conventions, or with contradictory hypotheses. Existing faithfulness checks rely mostly on LLM judges or trained models.

The verification stack combines an LLM semantic check (direct inspection plus back-translation) with a mechanical numerical check of Lean statements and a vacuity check run on completed proofs. It is embedded in an Extract-Verify-Prove agentic pipeline driven by a dependency DAG. The pipeline is used to build FLMF, a partial Lean formalization of the NIST DLMF. The method is compared against GPT-5.5, Opus 4.6, LeanScorer and FormalAlign on FLMF, ProofNet, Beyond Compilation and RLM25.

The method had the lowest accepted-error rate among the evaluated methods on the three labeled datasets: 4.8% on FLMF, 1.9% on Beyond Compilation and 9.2% on ProofNet. Expert review also found translation defects and source defects in existing datasets, including a false Taylor bound and DLMF misprints.

MethodFLMFBeyond CompilationProofNet
Ours5/105 (4.8%)3/154 (1.9%)14/153 (9.2%)
GPT-5.528/178 (15.7%)10/227 (4.4%)26/176 (14.8%)
Opus 4.672/232 (31.0%)24/261 (9.2%)44/206 (21.4%)
LeanScorer10/93 (10.8%)7/175 (4.0%)17/135 (12.6%)
Incorrect statements accepted (rate) by verification method