Summary (Overview)
- FaithSieve is a Lean-assisted framework for fine-grained evaluation and first-error localization in natural-language mathematical proofs, addressing the critical challenge of reliably determining correctness of LLM-generated multi-step proofs.
- The framework decomposes coarse proof steps into local reasoning units (EdgeUnits), extracts typed proof obligations, and validates them through a formal evaluation agent gated by semantic alignment scoring—ensuring Lean evidence is incorporated only when the formal statement faithfully preserves the context, objects, and logical form of the original claim.
- Two expert-verified datasets are constructed: ProofLoc-Olympiad (350 algebra/number theory problems) and ProofLoc-University (200 problems across six advanced domains).
- FaithSieve achieves 81.43% exact first-error accuracy on the Olympiad dataset (vs. 72.29% for direct-judging baseline) and 84.5% exact accuracy on the University dataset (vs. 75.0% for direct judge) using a GPT-5.4 backbone.
- Ablation studies demonstrate that local reasoning units, faithful statement checking, formal evidence, and evidence fusion all contribute to the performance gains.
Introduction and Theoretical Foundation
Background and Motivation
Large language models can now generate complex, multi-step mathematical proofs, but evaluating them and locating the first logical error remains difficult. Such proofs may:
- Omit conditions
- Skip derivations
- Use implicit assumptions
- Continue from early mistakes to plausible-looking conclusions
Reliable evaluation must check not only final answers but also local reasoning steps.
Two Central Challenges for Lean-Based Verification
The paper identifies two critical mismatches when using formal theorem provers like Lean to evaluate informal text:
-
Locality mismatch: A proof consists of local reasoning transitions rather than a single theorem. If a proof claims to derive from , and then from , proving only does not establish that the two local steps and are correct. A strong prover may directly prove a stronger or coarser target and ignore a local error.
-
Semantic mismatch: Even after localization, the system must translate the informal claim into a formal proposition. Autoformalization may omit assumptions, add conditions, reverse implications, alter quantifiers, weaken or strengthen the conclusion, or replace the claim with a different but provable statement.
These two mismatches lead to two requirements:
- Formal validation should operate on local reasoning units
- The Lean statement being validated must be semantically aligned with the original natural-language obligation
The paper's central thesis: Lean evidence is most useful when it is local and faithful.
Methodology
1. Proof-State-Tree Decomposition
FaithSieve treats COT steps as annotation units but not directly as logical verification units. The framework:
- Pre-decomposes original COT steps into finer-grained substeps, removing redundant statements while preserving proof logic faithfully
- Constructs a tree of proof states where each node represents a natural-language proof state :
- : currently available accumulated assumptions
- : current subgoal to be proved
- Each edge represents a local reasoning transition of type , recorded as an EdgeUnit
2. Suspicion Tree Search
Since Lean validation is expensive, FaithSieve runs Suspicion Search over all edges to estimate which local transitions are more likely to contain the first material error. The model produces:
- Whether the transition is suspicious
- How suspicious it is
- An overall suspicion risk score in [0, 1]
Edges with suspicion risk above 0.6 are treated as relatively suspicious candidates. An audit window is built by selecting the earliest suspicious edge plus a short prefix of preceding edges.
3. Typed Obligation Generation
Each EdgeUnit's mathematical responsibility is summarized as an explicit obligation statement using conversion templates matched to edge types:
| Type | Local check | Trigger |
|---|---|---|
| Derived fact | New fact follows from context | Implication to new claim |
| Rewrite | Rewrite or calculation is valid | Equivalent rewrite or simplification |
| Goal reduction | After-goal implies before-goal | Sufficient condition for goal |
| Fact plus reduction | New fact and reduction are valid | Claim + goal change |
| Case split | Cases are valid and covering | Case analysis |
| Branch elimination | Discarded branch is impossible | Infeasible branch |
| Witness | Witness satisfies the target | Witness term |
| Contested claim | Flagged claim is true | Flagged claim |
| Entailment | Context entails the claim | Bare assertion |
| Overlap partition | Cases form a proper partition | Partition claim |
4. Statement Faithfulness Scoring
The statement faithfulness score measures semantic alignment between the formal statement and the natural-language obligation under local context :
where:
- : premise fidelity (whether hypotheses of faithfully retain local context, branch assumptions, fixed witnesses)
- : conclusion fidelity (whether conclusion of matches the target claim)
- : holistic score capturing step-relation fidelity, object/witness fidelity, directionality fidelity, role-alignment fidelity, and syntax fidelity
The component scores are computed as:
5. Formal Evaluation Agent
The agent runs on each obligation and returns:
- Local checking status: passed, refuted, or inconclusive
- Evidence strength adjusted by faithfulness and checker confidence
- A checkable artifact or diagnostic message
Three validation paths:
- Equation SymPy Checker: For pure numeric claims with no variables or natural-language explanation
- Lean Prover Checker: For obligations passing the faithfulness gate—verifies the original proposition (for likely-correct obligations) or a negated proposition/counterexample (for likely-wrong obligations)
- Inconclusive: For timeouts or failures to pass the faithfulness gate
6. Evidence Fusion and Final Decision
Local results are aggregated back to original COT steps. A step is marked:
- Incorrect: when it has faithful and reliable negative evidence (refuted obligation, verified counterexample, or agreement between formal diagnostics and local review)
- Uncertain: when evidence mainly reflects semantic drift, formalization failure, timeout, or conflicting diagnostics
The system returns the earliest step with reliable negative evidence as the first error.
Empirical Validation / Results
Datasets
- ProofLoc-Olympiad: 350 algebra and number theory problems
- ProofLoc-University: 200 problems across topology, linear algebra, abstract algebra, real analysis, convex analysis, and convex optimization
Candidate proofs generated by GPT-4o, annotated by experts for correctness and first-error step.
Direct-Judge Baseline Results (Table 4)
| Base model | Params. | Univ. Exact (%) | Univ. Binary (%) | Olympiad Exact (%) | Olympiad Binary (%) |
|---|---|---|---|---|---|
| GPT-5.4 | undisclosed | 75.00 | 87.00 | 72.29 | 88.29 |
| Gemini-3.1-Pro | undisclosed | 70.00 | 77.50 | 70.86 | 82.86 |
| Opus-4.6 | undisclosed | 64.50 | 77.00 | 71.71 | 89.14 |
| DeepSeek-v4-Pro | undisclosed | 72.00 | 82.00 | 48.00 | 71.14 |
| GLM-5.1 | undisclosed | 66.00 | 75.50 | 57.71 | 78.57 |
| Qwen3.5-9B | 9B | 61.00 | 76.50 | 53.71 | 76.00 |
FaithSieve Main Results
- ProofLoc-Olympiad (GPT-5.4): 81.43% exact / 93.71% binary accuracy (vs. 72.29% / 88.29% direct judging)
- ProofLoc-University (GPT-5.4): 84.50% exact / 92.50% binary accuracy (vs. 75.00% / 87.00% direct judging)
Domain-Level Results on ProofLoc-University (Table 3)
| Domain | N | FaithSieve Exact (%) | FaithSieve Binary (%) | GPT-5.4 Direct Exact (%) | GPT-5.4 Direct Binary (%) |
|---|---|---|---|---|---|
| Overall | 200 | 84.50 | 92.50 | 75.00 | 87.00 |
| Topology | 20 | 80.00 | 80.00 | 65.00 | 70.00 |
| Linear algebra | 40 | 100.00 | 100.00 | 87.50 | 90.00 |
| Abstract algebra | 40 | 97.50 | 97.50 | 92.50 | 92.50 |
| Real analysis | 50 | 80.00 | 90.00 | 68.00 | 86.00 |
| Convex analysis | 30 | 60.00 | 86.67 | 50.00 | 83.33 |
| Convex optimization | 20 | 80.00 | 95.00 | 80.00 | 95.00 |
Ablation Results on ProofLoc-Olympiad (Table 5)
| GPT-5.4 Experiment | Exact (%) | Binary (%) | Qwen3.5-9B Experiment | Exact (%) | Binary (%) |
|---|---|---|---|---|---|
| Full FaithSieve | 81.43 | 93.71 | Full FaithSieve | 74.00 | 89.14 |
| Direct judge | 72.29 | 88.29 | Direct judge | 53.71 | 76.00 |
| Step3 graph judge | 75.71 | 88.57 | Step3 graph judge | 65.71 | 77.71 |
| EdgeUnit + NL only | 73.43 | 88.00 | EdgeUnit + NL only | 71.14 | 86.00 |
| w/o local EdgeUnits | 60.86 | 72.29 | w/o local EdgeUnits | 62.29 | 77.71 |
| w/o semantic gate | 70.86 | 86.29 | w/o semantic gate | 70.86 | 86.00 |
Key Ablation Findings
- w/o local EdgeUnits (falling back to coarse-step-level judging) drops GPT-5.4 to 60.86% exact—directly supporting the locality hypothesis: a benchmark step is an annotation unit, but not necessarily the actual reasoning unit
- w/o semantic gate (relaxing faithfulness thresholds) drops GPT-5.4 to 70.86% exact—showing that Lean success signals are reliable only when the statement remains semantically aligned with the original obligation
Theoretical and Practical Implications
Theoretical Contributions
- Identification of locality and semantic faithfulness as the central challenges in applying formal validation to natural-language proof evaluation—a conceptual framework that clarifies why naive "Lean-as-judge" approaches fail
- Proof-state-tree representation that bridges the gap between coarse annotation units and fine-grained logical verification units
- Typed obligation system providing a structured way to specify what each local transition must establish
- Statement faithfulness scoring offering a formalized approach to measuring semantic alignment between natural-language claims and their formal counterparts
Practical Implications
- Traceable local evidence: FaithSieve provides checkable artifacts for auditing generated proofs, supporting step-level feedback rather than just final-answer correctness
- Error localization: The framework pinpoints where a proof first becomes unreliable, enabling targeted correction rather than wholesale rewriting
- Smaller model improvement: The EdgeUnit + NL-only variant shows particular benefit for smaller backbones (Qwen3.5-9B: 71.14% exact vs. 53.71% direct), suggesting decomposition helps compensate for weaker reasoning
- Domain applicability: Strong gains in linear algebra (100% exact), abstract algebra (97.5%), and real analysis (80% vs. 68%) suggest the approach transfers well to structured mathematical domains
Conclusion
FaithSieve demonstrates that formal validation can serve as structured evidence for evaluating natural-language mathematical proofs when properly conditioned on two requirements: locality (decomposing proofs into fine-grained reasoning units) and faithfulness (ensuring formal statements preserve the original mathematical intent).
The framework operationalizes this view through:
- Decomposition of coarse steps into EdgeUnits via proof-state trees
- Extraction of typed obligations specifying local reasoning responsibilities
- Validation through cheap checking (SymPy) and Lean-assisted agents
- Filtering of formal evidence through semantic alignment scoring
- Fusion of local results into benchmark-aligned first-error predictions
Across both datasets and multiple backbones, this local-evidence design consistently improves both correctness judgment and first-error localization over direct judging. Future work should extend the approach to geometry, combinatorics, and definition-heavy university mathematics while improving autoformalization and validation efficiency.
Related papers
- Understanding Reasoning from Pretraining to Post-Training
Pretraining loss predicts post-RL performance, while pretraining compute predicts RL improvement rate, with optimal compute allocation shifting toward RL as total budget grows.
- SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?
SWE Refactor Bench shows frontier agents fail 95% of whole-repository migrations, with even perfect test passes undermined by hidden behavioral differences.
- RegMix-D: Dynamic Data Mixing via Proxy Training Trajectories
REGMIX-D learns dynamic data mixture schedules from proxy loss trajectories, outperforming static baselines on 13 tasks while using only 25% of RegMix's compute budget.