ProofFlow: A Dependency Graph Approach to Faithful Proof Autoformalization
Rafael Cabral, Tuan Manh Do, Xuejun Yu, Wai Ming Tai, Zijin Feng, Shen Xin
Abstract
Proof autoformalization, the task of translating natural language theorems and proofs into machine-verifiable code, is a critical step for integrating large language models into rigorous mathematical workflows. Current approaches focus on producing executable code, but they frequently fail to preserve the semantic meaning and logical structure of the original human-written argument. To address this, we introduce PROOFFLOW, a novel pipeline that treats structural fidelity as a primary objective. PROOFFLOW first constructs a directed acyclic graph (DAG) to map the logical dependencies between proof steps. Then, it employs a novel lemma-based approach to systematically formalize each step as an intermediate lemma, preserving the logical structure of the original argument. To facilitate evaluation, we present a new benchmark of 184 undergraduate-level problems, manually annotated with step-by-step solutions and logical dependency graphs, and introduce PROOFSCORE, a new composite metric to evaluate syntactic correctness, semantic faithfulness, and structural fidelity. Experimental results show our pipeline sets a new state-of-the-art for autoformalization, achieving a PROOFSCORE of 0.545, substantially exceeding baselines like full-proof formalization (0.123), which processes the entire proof at once, and step-proof formalization (0.072), which handles each step independently. Our pipeline, benchmark, and score metric are open-sourced to encourage further progress at https://github.com/Huawei-AI4Math/ProofFlow .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites Don't Trust: Verify - Grounding LLM Quantitative Reasoning with Autoformalization
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Faults in Our Formal Benchmarking: Dataset Defects and Evaluation Failures in Lean Theorem Proving cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Faults in Our Formal Benchmarking: Dataset Defects and Evaluation Failures in Lean Theorem Proving cites ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of Data
- Faults in Our Formal Benchmarking: Dataset Defects and Evaluation Failures in Lean Theorem Proving cites Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction
- Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction cites Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs
- Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction cites Reviving DSP for Advanced Theorem Proving in the Era of Reasoning Models
Cited by top-tier papers1
Builds on6
- Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-CorrectionYong Lin, Shange Tang, Bohan Lyu, Ziran Yang et al.ICLR 2026 · 160 citations
- Don't Trust: Verify - Grounding LLM Quantitative Reasoning with AutoformalizationJin Peng Zhou, Charles Staats, Wenda Li, Christian Szegedy et al.ICLR 2024 · 72 citations
- ATLAS: Autoformalizing Theorems through Lifting, Augmentation, and Synthesis of DataXiaoyang Liu, Kangjie Bao, Jiashuo Zhang, Yunqi Liu et al.NeurIPS 2025 · 28 citations
- Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal ProofsAlbert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothée Lacroix et al.ICLR 2023 · 25 citations
- Reviving DSP for Advanced Theorem Proving in the Era of Reasoning ModelsChenrui Cao, Liangcheng Song, Zenan Li, Xinyi Le et al.NeurIPS 2025 · 23 citations
Related papers
- Mathesis: Towards Formal Theorem Proving from Natural LanguagesXuejun Yu, Jianyuan Zhong, Zijin Feng, Pengyi Zhai et al.ICLR 2026 · 15 citations
- ReForm: Reflective Autoformalization with Prospective Bounded Sequence OptimizationGuoxin Chen, Jing Wu, Xinjie Chen, Xin Zhao et al.ICLR 2026 · 22 citations
- Reliable Evaluation and Benchmarks for Statement AutoformalizationAuguste Poiroux, Gail Weiss, Viktor Kuncak, Antoine BosselutEMNLP 2025
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
- LoC-Decomp: LLM Autoformalization via Logical Concept Decomposition and Iterative Feedback CorrectionJiangze Shi, Zhiwei Zhang, Baoquan Ma, Shuai Zhao et al.ICLR 2026
