Towards Advanced Mathematical Reasoning for LLMs via First-Order Logic Theorem Proving
Chuxue Cao, Mengze Li, Juntao Dai, Jinluan Yang, Zijian Zhao, Shengyu Zhang, Weijie Shi, Chengzhong Liu, Sirui Han, Yike Guo
Abstract
Large language models (LLMs) have shown promising first-order logic (FOL) reasoning capabilities with applications in various areas. However, their effectiveness in complex mathematical reasoning involving multi-step FOL deductions is still under-researched. While LLMs perform competitively on established mathematical reasoning benchmarks, they struggle with multi-step FOL tasks, as demonstrated by Deepseek-Prover-V2-7B's low accuracy (4.2%) on our proposed theorem proving dataset. This issue arises from the limited exploration of diverse proof strategies and the potential for early reasoning mistakes to undermine entire proofs. To address these issues, we propose DREAM, a self-adaptive solution that enhances the Diversity and REAsonability of LLMs' generation strategies. DREAM incorporates an Axiom-Driven Strategy Diversification mechanism to promote varied strategic outcomes and a Sub-Proposition Error Feedback to help LLMs reflect on and correct their proofs. Our contributions include pioneering advancements in LLMs' mathematical reasoning through FOL theorem proving, introducing a novel inference stage solution that improves performance by 0.6% to 6.4%, and providing a curated dataset of 447 mathematical theorems in Lean 4 format for evaluation. Our code is available 1 .
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.
4 top-tier papers have 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
- Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification cites What, Whether and How? Unveiling Process Reward Models for Thinking with Images Reasoning
- Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification cites Deliberate Reasoning in Language Models as Structure-Aware Planning with an Accurate World Model
- Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning cites ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Language
- Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning cites Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Autoformalization with Large Language Models
- LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Baldur: Whole-Proof Generation and Repair with Large Language Models
- Deliberate Reasoning in Language Models as Structure-Aware Planning with an Accurate World Model cites Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning
- Baldur: Whole-Proof Generation and Repair with Large Language Models cites Autoformalization with Large Language Models
Cited by top-tier papers4
- Deliberate Reasoning in Language Models as Structure-Aware Planning with an Accurate World ModelSiheng Xiong, Ali Payani, Yuan Yang, Faramarz FekriACL 2025 · 25 citations
- Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic VerificationChuxue Cao, Jinluan Yang, Haoran Li, Kunhao Pan et al.ICML 2026 · 3 citations
- What, Whether and How? Unveiling Process Reward Models for Thinking with Images ReasoningYujin Zhou, Pengcheng Wen, Jiale Chen, Boqin Yin et al.AAAI 2026 · 2 citations
- Reasoning Fails Where Step Flow BreaksXiaoyu Xu, Yulan Pan, Xiaosong Yuan, Zhihong Shen et al.ACL 2026 · 1 citation
Builds on22
- Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
- Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical ReasoningLiangming Pan, Alon Albalak, Xinyi Wang, William Yang WangEMNLP Findings 2023 · 145 citations
- LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu et al.ICLR 2024 · 125 citations
- ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural LanguageOyvind Tafjord, Bhavana Dalvi, Peter ClarkACL Findings 2021 · 122 citations
- Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 citations
Related papers
- QDTSynth: Quality-Driven Formal Theorem Synthesis for Enhancing Proving Performance of LLMsLei Wang, Ruobing Zuo, Gaolei He, Jianlin Wang et al.ACL 2025 · 1 citation
- FormalML: A Benchmark for Evaluating Formal Subgoal Completion in Machine Learning TheoryXiao-Wen Yang, Zihao Zhang, Jianuo Cao, Zhi Zhou et al.ICLR 2026 · 8 citations
- Beyond Correctness: Exposing LLM-generated Logical Flaws in Reasoning via Multi-step Automated Theorem ProvingXinyi Zheng, Ningke Li, Xiaokun Luan, Wang Kailong et al.ICSE 2026
- P-FOLIO: Evaluating and Improving Logical Reasoning with Abundant Human-Written Reasoning ChainsSimeng Han, Aaron Yu, Rui Shen, Zhenting Qi et al.EMNLP Findings 2024 · 3 citations
- APOLLO: Automated LLM and Lean Collaboration for Advanced Formal ReasoningAzim Ospanov, Farzan Farnia, Roozbeh MohitNeurIPS 2025 · 49 citations
