Beyond LLM Judge: Mechanical Verification for Agentic Autoformalization
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.
| Method | FLMF | Beyond Compilation | ProofNet |
|---|---|---|---|
| Ours | 5/105 (4.8%) | 3/154 (1.9%) | 14/153 (9.2%) |
| GPT-5.5 | 28/178 (15.7%) | 10/227 (4.4%) | 26/176 (14.8%) |
| Opus 4.6 | 72/232 (31.0%) | 24/261 (9.2%) | 44/206 (21.4%) |
| LeanScorer | 10/93 (10.8%) | 7/175 (4.0%) | 17/135 (12.6%) |
