mlsanityData to 14 Oct 2026

FANS -- Formal Answer Selection for Natural Language Math Reasoning Using Lean4

arXiv 2503.03238 ↗First posted 5 Mar 2025cs.CL cs.AIcited by 5

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Large Language Models (LLMs) have displayed astonishing abilities in various tasks, especially in text generation, classification, question answering, etc. However, the reasoning ability of LLMs still faces many debates. The inherent ambiguity of Natural Language (NL) limits LLMs' ability to perform verifiable reasoning, making its answers lack coherence and trustworthy support. To tackle the above problems, we propose a novel framework named FANS: Formal ANswer Selection for Natural Language Math Reasoning Using Lean4. To the best of our knowledge, it is the first framework that utilizes Lean4 to enhance LLMs' NL math reasoning ability. In particular, given an NL math question and LLM-generated answers, FANS first translates it into Lean4 theorem statements. Then it tries to prove it using a Lean4 prover and verify it by Lean4. Finally, it uses the FL result to assist in answer selection. It enhances LLMs' NL math ability in providing a computer-verifiable solution for its correct answer and proposes an alternative method for answer selection beyond the reward model. Extensive experiments indicate the effectiveness of our framework. It can improve the accuracy rate of reward model enhanced LLMs in the MATH-500 dataset by at most 1.91% and AMC-23 by at most 8.33% on strong reward-model baselines. In some particular fields like number theory that Lean4 experts in, we can even select all correct solutions. The qualitative analysis also shows our framework can make NL results formally backed by Lean4 proofs. As a pioneering work in the corresponding field, we will open-source all our models and datasets to further boost the development of the field.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 38 of its 65 references that are in the map. First posted on arXiv 5 Mar 2025.

Builds on

38 of 65 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025rStar-Math: Small LLMs Can Master Math Reasoning with Self-Evolved Deep Thinking8 Jan
  2. 2024Lean-STaR: Learning to Interleave Thinking and Proving14 Jul
  3. 2024TheoremLlama: Transforming General-Purpose LLMs into Lean4 Experts3 Jul
  4. 2024Don't Trust: Verify -- Grounding LLM Quantitative Reasoning with Autoformalization26 Mar
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models5 Feb
  6. 2023Llemma: An Open Language Model For Mathematics16 Oct

Other references · 32

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  3. 2023Let's Verify Step by Stepcited by 3,789
  4. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  5. 2023Mistral 7Bcited by 3,164
  6. 2024Qwen2 Technical Reportcited by 2,120
  7. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  8. 2024Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scalingcited by 1,599
  9. 2025s1: Simple test-time scalingcited by 1,341
  10. 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,136
  11. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
  12. 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 963
20 more
  1. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
  2. 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 686
  3. 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 480
  4. 2025The Lessons of Developing Process Reward Models in Mathematical Reasoningcited by 415
  5. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 391
  6. 2024ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Searchcited by 344
  7. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 291
  8. 2024Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Modelscited by 290
  9. 2024RLHF Workflow: From Reward Modeling to Online RLHFcited by 267
  10. 2024KTO: Model Alignment as Prospect Theoretic Optimizationcited by 264
  11. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
  12. 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 197
  13. 2024Secrets of RLHF in Large Language Models Part II: Reward Modelingcited by 171
  14. 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 133
  15. 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
  16. 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 102
  17. 2024Process Reward Model with Q-Value Rankingscited by 80
  18. 2024Enhancing LLM Reasoning with Reward-guided Tree Searchcited by 58
  19. 2024InternLM2.5-StepProver: Advancing Automated Theorem Proving via Critic-Guided Searchcited by 34
  20. 2023Let's Synthesize Step by Step: Iterative Dataset Synthesis with Large Language Models by Extrapolating Errors from Small Modelscited by 30

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Formalize Once, Edit the Rest: Efficient Lean-Based Answer Selection for Math Reasoning
  2. 2025Formally Solving Answer-Construction Problems in Lean
  3. 2024Not All Votes Count! Programs as Verifiers Improve Self-Consistency of Language Models for Math Reasoning
  4. 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning
  5. 2024Herald: A Natural Language Annotated Lean 4 Dataset
  6. 2025FormalMATH: Benchmarking Formal Mathematical Reasoning of Large Language Models
  7. 2026Magenta: Closing the Loop Between Mathematical Reasoning and Lean Verification
  8. 2025FMC: Formalization of Natural Language Mathematical Competition Problems