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:
- 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.
- 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:
- 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.
- 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
EdgeUnitdecomposition 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
EdgeUnittransitions—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