Reproduce “Step-Wise Formal Verification for LLM-Based Mathematical Problem Solving” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Kuo Zhou, Lu Zhang

Researchers from Peking University developed MATH-VF, a framework that formally verifies large language model-generated mathematical solutions by translating them into a custom "SimpleMath" language and using an LLM-orchestrated critic with external symbolic tools. The system achieved over 90% correct formalization and verification on MATH500, demonstrating superior accuracy and stability in verifying and refining solutions compared to prior LLM-only or Coq-based approaches, while significantly reducing token consumption.

Key insights

  • Designing a formal language ("SimpleMath") that closely resembles natural language mathematical texts significantly improves an LLM's ability to formalize solutions compared to complex ITP languages.
  • Mathematical reasoning steps exhibit "sparsity" in their dependencies, allowing for a drastic reduction in the number of tokens processed by a verification critic per step.
  • Combining LLM formalization with external, specialized symbolic solvers provides a robust verification mechanism that surpasses the accuracy of LLM-only critics and the practical limitations of full interactive theorem provers.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.