Safe: Enhancing Mathematical Reasoning in Large Language Models via Retrospective Step-aware Formal Verification
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
Chain-of-Thought (CoT) prompting has become the de facto method to elicit reasoning capabilities from large language models (LLMs). However, to mitigate hallucinations in CoT that are notoriously difficult to detect, current methods such as process reward models (PRMs) or self-consistency operate as opaque boxes and do not provide checkable evidence for their judgments, possibly limiting their effectiveness. To address this issue, we draw inspiration from the idea that "the gold standard for supporting a mathematical claim is to provide a proof". We propose a retrospective, step-aware formal verification framework Safe. Rather than assigning arbitrary scores, we strive to articulate mathematical claims in formal mathematical language Lean 4 at each reasoning step and provide formal proofs to identify hallucinations. We evaluate our framework Safe across multiple language models and various mathematical datasets, demonstrating a significant performance improvement while offering interpretable and verifiable evidence. We also propose FormalStep as a benchmark for step correctness theorem proving with 30,809 formal statements. To the best of our knowledge, our work represents the first endeavor to utilize formal mathematical language Lean 4 for verifying natural language content generated by LLMs, aligning with the reason why formal mathematical languages were created in the first place: to provide a robust foundation for hallucination-prone human-written proofs.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 24 of its 67 references that are in the map. First posted on arXiv 5 Jun 2025.
Builds on
24 of 67 references.
Closest ancestors · 8
Same direction, newest first
- 2025UGMathBench: A Diverse and Dynamic Benchmark for Undergraduate-Level Mathematical Reasoning with Large Language Models23 Jan
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec
- 2024Process-Driven Autoformalization in Lean 44 Jun
- 2024InternLM-Math: Open Math Large Language Models Toward Verifiable Reasoning9 Feb
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challenges31 Jan
- 2023SciBench: Evaluating College-Level Scientific Problem-Solving Abilities of Large Language Models20 Jul
- 2020Generative Language Modeling for Automated Theorem Proving7 Sep
Other references · 16
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024GPT-4o System Cardcited by 4,588
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 499
- 2024Skywork-Reward: Bag of Tricks for Reward Modeling in LLMscited by 327
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
- 2019The Lean mathematical librarycited by 134
- 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
4 more
- 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 55
- 2024Can LLMs Solve longer Math Word Problems Better?cited by 22
- 2024S^3cMath: Spontaneous Step-level Self-correction Makes Large Language Models Better Mathematical Reasonerscited by 17
- 2024Can We Verify Step by Step for Incorrect Answer Detection?cited by 15
Built on by
Citing papers per year: 2025: 5; 2026: 12.
17 papers.
Sort:
By area:
- 2025AgentGuard: Runtime Verification of AI Agentscited by 17
- 2025Towards a Common Framework for Autoformalizationcited by 7
- 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verificationcited by 5
- 2026FaithformBench: Benchmarking Faithfulness of Mathematical Chain-of-Thought Autoformalisationcited by 5
- 2025FMC: Formalization of Natural Language Mathematical Competition Problemscited by 4
- 2025From Static to Dynamic: Adaptive Monte Carlo Search for Mathematical Process Supervisioncited by 1
- 2025Mathematics with large language models as provers and verifierscited by 1
- 2026SciHorizon-GENE: Benchmarking LLM for Life Sciences Inference from Gene Knowledge to Functional Understandingcited by 1
- 2026Beyond Length Scaling: Synergizing Breadth and Depth for Generative Reward Modelscited by 1
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chainscited by 1
- 2026VeriBound: PAC-Bayesian Generalization Bounds for Process Reward Models Trained with Formal Verification Toolscited by 1
- 2026VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verificationcited by 1
5 more
- 2026Evaluating the Robustness of Proof Autoformalization in Lean 4cited by 0
- 2026LAVA: Logic-Aware Validation and Augmentation Framework for Large-Scale Financial Document Auditingcited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026Learning to Prove, Not Just to Answer: Reinforcement Learning from Formal Verification for Natural-Language Logical Reasoningcited by 0
- 2026LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verificationcited by 0
- 2026LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verification13 Oct 2026
- 2026Learning to Prove, Not Just to Answer: Reinforcement Learning from Formal Verification for Natural-Language Logical Reasoning29 Sep 2026
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026LAVA: Logic-Aware Validation and Augmentation Framework for Large-Scale Financial Document Auditing17 Aug 2026
- 2026FaithformBench: Benchmarking Faithfulness of Mathematical Chain-of-Thought Autoformalisation11 Aug 2026
- 2026VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verification23 Jun 2026
- 2026VeriBound: PAC-Bayesian Generalization Bounds for Process Reward Models Trained with Formal Verification Tools17 Jun 2026
- 2026Evaluating the Robustness of Proof Autoformalization in Lean 412 Jun 2026
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chains22 Apr 2026
- 2026Beyond Length Scaling: Synergizing Breadth and Depth for Generative Reward Models2 Mar 2026
- 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification30 Jan 2026
- 2026SciHorizon-GENE: Benchmarking LLM for Life Sciences Inference from Gene Knowledge to Functional Understanding19 Jan 2026
5 more
- 2025Mathematics with large language models as provers and verifiers11 Oct 2025
- 2025From Static to Dynamic: Adaptive Monte Carlo Search for Mathematical Process Supervision29 Sep 2025
- 2025AgentGuard: Runtime Verification of AI Agents28 Sep 2025
- 2025Towards a Common Framework for Autoformalization11 Sep 2025
- 2025FMC: Formalization of Natural Language Mathematical Competition Problems15 Jul 2025
- 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verificationcited by 5
- 2026FaithformBench: Benchmarking Faithfulness of Mathematical Chain-of-Thought Autoformalisationcited by 5
- 2025FMC: Formalization of Natural Language Mathematical Competition Problemscited by 4
- 2025From Static to Dynamic: Adaptive Monte Carlo Search for Mathematical Process Supervisioncited by 1
- 2026Beyond Length Scaling: Synergizing Breadth and Depth for Generative Reward Modelscited by 1
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chainscited by 1
- 2026VeriBound: PAC-Bayesian Generalization Bounds for Process Reward Models Trained with Formal Verification Toolscited by 1
- 2026VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verificationcited by 1
- 2026Learning to Prove, Not Just to Answer: Reinforcement Learning from Formal Verification for Natural-Language Logical Reasoningcited by 0
- 2026Learning to Prove, Not Just to Answer: Reinforcement Learning from Formal Verification for Natural-Language Logical Reasoning29 Sep 2026
- 2026FaithformBench: Benchmarking Faithfulness of Mathematical Chain-of-Thought Autoformalisation11 Aug 2026
- 2026VeryTrace: Verifying Reasoning Traces through Compilable Formalism and Structured Verification23 Jun 2026
- 2026VeriBound: PAC-Bayesian Generalization Bounds for Process Reward Models Trained with Formal Verification Tools17 Jun 2026
- 2026Where Reasoning Breaks: Logic-Aware Path Selection by Controlling Logical Connectives in LLMs Reasoning Chains22 Apr 2026
- 2026Beyond Length Scaling: Synergizing Breadth and Depth for Generative Reward Models2 Mar 2026
- 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification30 Jan 2026
- 2025From Static to Dynamic: Adaptive Monte Carlo Search for Mathematical Process Supervision29 Sep 2025
- 2025FMC: Formalization of Natural Language Mathematical Competition Problems15 Jul 2025
- 2025AgentGuard: Runtime Verification of AI Agentscited by 17
- 2025AgentGuard: Runtime Verification of AI Agents28 Sep 2025
- 2025Towards a Common Framework for Autoformalizationcited by 7
- 2025Mathematics with large language models as provers and verifierscited by 1
- 2026SciHorizon-GENE: Benchmarking LLM for Life Sciences Inference from Gene Knowledge to Functional Understandingcited by 1
- 2026Evaluating the Robustness of Proof Autoformalization in Lean 4cited by 0
- 2026LAVA: Logic-Aware Validation and Augmentation Framework for Large-Scale Financial Document Auditingcited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verificationcited by 0
- 2026LeanPRM: Lean-Grounded Process Supervision for Natural Language Proof Verification13 Oct 2026
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026LAVA: Logic-Aware Validation and Augmentation Framework for Large-Scale Financial Document Auditing17 Aug 2026
- 2026Evaluating the Robustness of Proof Autoformalization in Lean 412 Jun 2026
- 2026SciHorizon-GENE: Benchmarking LLM for Life Sciences Inference from Gene Knowledge to Functional Understanding19 Jan 2026
- 2025Mathematics with large language models as provers and verifiers11 Oct 2025
- 2025Towards a Common Framework for Autoformalization11 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
- 2026Mask-Proof: An LLM-based Automated Data Curation Pipeline on Mathematical Proofs
- 2026LiveMathematicianBench: A Live Benchmark for Research-Level Mathematical Reasoning with Proof Sketches
- 2025LeanProgress: Guiding Search for Neural Theorem Proving via Proof Progress Prediction
- 2026LEAP: Supercharging LLMs for Formal Mathematics with Agentic Frameworks
- 2026AdvancedMathBench: A Benchmark Suite for Advanced Mathematical Proof Generation and Verification
- 2026Fragile Thoughts: How Large Language Models Handle Chain-of-Thought Perturbations
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoning