FaithSieve: Fine-Grained Evaluation of Math Proofs with Faithful Formal Evidence

Ziyu Wang, Qiming Dai, Yishan Wu, Zaiwen WenNeurIPS 2026

TL;DR

Large language models can write convincing mathematical proofs, yet catching the exact moment their logic quietly derails remains notoriously difficult. FaithSieve bridges the gap between informal text and formal proof assistants (like Lean) by breaking human-style proofs into tiny, atomic steps and checking them formally—only after verifying that the translation into code didn't accidentally alter the original math. It dramatically boosts our ability to pinpoint the very first logical flaw in complex, multi-step reasoning.

What Problem Does This Paper Address?

Imagine grading a clever student’s math exam late at night. A proof might arrive at the right answer while skipping vital conditions, making subtle algebraic leaps, or coasting past an early mistake to a plausible-looking conclusion. When we ask LLMs to judge natural-language proofs, they often fall for these exact illusions.

Using a formal theorem prover like Lean—software that checks mathematical proofs with absolute, compiler-level rigor—sounds like the obvious fix. However, plugging informal text into Lean hits two major walls:

  1. Locality Mismatch: A single "step" in a written proof usually bundles several logical jumps together. If a strong automated prover is asked to verify that step $A$ leads to $C$ (ignoring an intermediate flawed claim $B$), it might find its own valid shortcut from $A \to C$, completely bypassing the error you wanted to catch.
  2. Semantic Mismatch: Translating informal math into formal Lean code ("autoformalization") is error-prone. An LLM translator might accidentally drop an assumption, reverse an implication, or weaken a claim so that it becomes provable in Lean, even though it no longer matches what the original proof actually said.

Methods

Instead of treating Lean as an end-to-end judge, FaithSieve uses it as a surgical, conditional evidence generator across a three-stage pipeline:

Overview of the FaithSieve workflow
  • Tree of Proof States & Suspicion Search: Rather than verifying coarse paragraphs, FaithSieve uses an LLM to recursively decompose the proof into a tree of states—tracking accumulated assumptions and current subgoals, much like Lean does internally. Every transition between states becomes an atomic EdgeUnit (e.g., a case split, rewrite, or goal reduction). Because formal proving is computationally expensive, a lightweight LLM pass scores each edge for "suspicion," building a targeted audit window around the earliest risky transitions.
Figure 2: From Proof Steps to a Tree of Proof States
  • Typed Obligations & Statement Faithfulness Scoring: Each suspicious transition is converted into an explicit, checkable mathematical claim (an obligation). Purely numerical claims take a fast path through a Python SymPy checker. Everything else is translated into a formal Lean statement. Crucially, before Lean tries to prove anything, a semantic checker computes a Statement Faithfulness Score—evaluating whether premises, conclusions, variables, and logical directions match the informal claim. If the translation drifts, the agent uses diagnostic feedback to revise the code before proceeding.
  • Lean Proving & Evidence Fusion: Only faithful statements pass the gate. Depending on how suspicious the step looks, a Lean agent attempts to prove either the claim itself, its negation, or a counterexample. Finally, all local formal verdicts and diagnostics are mapped back to the original coarse proof steps to flag the first genuine error.

Datasets

To test first-error localization, the authors built two new expert-verified benchmarks where candidate proofs were generated by GPT-4o and manually annotated by math experts to mark either overall correctness or the exact first erroneous step:

  • ProofLoc-Olympiad: 350 competition-level problems covering algebra and number theory.
  • ProofLoc-University: 200 textbook-style problems spanning six advanced undergraduate domains: real analysis, linear algebra, abstract algebra, topology, convex analysis, and convex optimization.

Key Insights and Ideas

  • A benchmark step is an annotation unit, not a reasoning unit: Removing fine-grained EdgeUnit decomposition caused exact accuracy with GPT-5.4 to plummet from 81.43% to 60.86%—worse than just asking the raw LLM directly (72.29%). Formal tools fail when fed human-sized chunks of text.
  • Unfaithful formal proofs are worse than no formal proofs: When the authors relaxed the semantic faithfulness gate, GPT-5.4's exact accuracy dropped by over 10 percentage points (to 70.86%). A green checkmark from Lean is actively misleading if the formal statement drifted away from the informal intent.
  • Structure helps small models punch above their weight: Simply organizing a proof into local EdgeUnit transitions—even without calling Lean—boosted an open-weight 9B model (Qwen3.5-9B) from 53.71% to 71.14% exact accuracy on Olympiad problems, nearly matching frontier direct judges.

Key Results

Evaluated on two metrics—Binary Accuracy (is the whole proof valid or invalid?) and Exact Accuracy (did the system pinpoint the exact first wrong step?)—FaithSieve consistently outperformed one-pass direct judging:

  • On ProofLoc-Olympiad: FaithSieve (with a GPT-5.4 backbone) achieved 81.43% exact accuracy and 93.71% binary accuracy, beating the GPT-5.4 direct-judge baseline (72.29% exact / 88.29% binary). With Qwen3.5-9B, exact accuracy jumped from 53.71% to 74.00%.
  • On ProofLoc-University: FaithSieve (GPT-5.4) reached 84.50% exact and 92.50% binary accuracy, up from 75.00% exact and 87.00% binary for direct judging. Notably, it hit 100% exact accuracy on linear algebra and 97.50% on abstract algebra.

Limitations and Future Work

Formal verification remains computationally heavy—requiring suspicion-based pruning rather than checking every single transition—and can still end in timeouts or formalization failures on complex steps. Additionally, gains were not uniform across every domain (for instance, Convex Optimization tied with the direct judge at 80.00%, and Convex Analysis remained challenging at 60.00% exact accuracy). Looking ahead, the authors aim to improve autoformalization efficiency and extend FaithSieve to domains that are notoriously tricky to formalize, such as geometry, combinatorics, and definition-heavy university mathematics.

Summary updated

Abstract

Large language models can now generate complex, multi-step mathematical proofs, but reliably determining their correctness and localizing early logical errors remains a critical challenge. Existing evaluation approaches largely depend on model-based natural-language judgments, which often overlook local reasoning gaps. While formal theorem provers like Lean offer a path to rigorous verification, using them to evaluate informal text requires solving locality and semantic mismatches: a prover might bypass a local flaw by proving an overly broad target, or validate an auto-formalized statement that drifts from the original mathematical intent. To address this, we introduce FaithSieve, a Lean-assisted framework for fine-grained evaluation of natural-language mathematical proofs. FaithSieve decomposes coarse proof steps into local reasoning units, extracts typed proof obligations, and verifies them through a formal evaluation agent. Formal validation is gated by semantic alignment scoring, so Lean evidence is incorporated only when the formal statement faithfully preserves the context, objects, and logical form of the original claim. We construct two expert-verified datasets, ProofLoc-Olympiad and ProofLoc-University, to benchmark first-error localization. On the 350-problem Olympiad dataset, FaithSieve using a GPT-5.4 backbone achieves 81.43\% exact first-error accuracy, outperforming the direct-judging baseline of 72.29\%. Furthermore, on the 200-problem ProofLoc-University benchmark spanning six advanced domains, FaithSieve reaches 84.5\% exact accuracy, compared to 75.0\% for the direct judge. Our work demonstrates that decomposing proofs into fine-grained units and grounding them with faithful formal evidence significantly improves reliable evaluation of natural-language reasoning.
BibTeX
@inproceedings{wang2026faithsieve,
  author = {Ziyu Wang and Qiming Dai and Yishan Wu and Zaiwen Wen},
  title = {{FaithSieve: Fine-Grained Evaluation of Math Proofs with Faithful Formal Evidence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=si7lviFpgb},
}
Figure