Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs

Terry Jingchen Zhang, Wenyuan Jiang, Rongchuan Liu, Yisong Wang, Junran Yang +4 more
8/21/2025
cs.LOcs.AIcs.CL

No official code found. Best implementation: formal-reasoning/Lean-Meets-TCS (1 star, Apache-2.0, last commit 2025-08-22).

Abstract

Formal theorem proving (FTP) has emerged as a critical foundation for evaluating the reasoning capabilities of large language models, enabling automated verification of mathematical proofs at scale. However, progress has been constrained by limited datasets due to the high cost of manual curation and the scarcity of challenging problems with verified formal-informal correspondences. We propose leveraging theoretical computer science (TCS) as a scalable source of rigorous proof problems, where algorithmic definitions enable automated generation of arbitrarily many challenging theorem-proof pairs. We demonstrate this approach on two TCS domains: Busy Beaver problems, which involve proving bounds on Turing machine halting behavior, and Mixed Boolean Arithmetic problems, which combine logical and arithmetic reasoning. Our framework automatically synthesizes problems with parallel formal (Lean4) and informal (Markdown) specifications, creating a scalable pipeline for generating verified proof challenges. Evaluation on frontier models reveals substantial gaps in automated theorem proving: while DeepSeekProver-V2-671B achieves 57.5\% success on Busy Beaver problems, it manages only 12\% on Mixed Boolean Arithmetic problems. These results highlight the difficulty of long-form proof generation even for problems that are computationally easy to verify, demonstrating the value of TCS domains for advancing automated reasoning research.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official Code Repo of The Paper "Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs" published at AI4MATH@ICML2025

10Aug 22, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2025lean,
  title  = {Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs},
  author = {Terry Jingchen Zhang and Wenyuan Jiang and Rongchuan Liu and Yisong Wang and Junran Yang and Ning Wang and Nicole Ni and Yinya Huang and Mrinmaya Sachan},
  year   = {2025},
  eprint = {2508.15878},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.15878v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.15878.svg)](https://codeofpaper.com/paper/2508.15878)

Discussion