With large language models (LLMs) increasingly applied to mathematical reasoning, formal proof assistants such as Lean can be leveraged to verify reasoning outputs with machine-checkable rigor, enabling use cases such as answer selection in test-time scaling with K sampled candidate answers. However, employing Lean requires that LLM outputs, originally in natural language, first be formalized. Existing Lean-based answer-selection work uses an autoformalization model to generate a formal statement in Lean for each candidate answer independently, incurring a significant computational cost. We propose BASE, a base-and-edit pipeline that formalizes a single base candidate per problem and derives the remaining K-1 statements by editing the answer expression in place. To facilitate this, we train a rewriter model LEANSCRIBE to localize the answer in the base formalization and generate a reusable edit function for the other K-1 candidates. BASE simultaneously improves selection accuracy and reduces formalization cost - a Pareto improvement that holds on all 12 (dataset, solver) configurations across four benchmarks and three solvers, cutting autoformalizer calls by about 5x at K=8, with the reduction expected to become larger as K grows. Code is available at https://github.com/ucr-rai/base-and-edit.
Lean Workbook: A large-scale Lean problem set formalized from natural language math problems
Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);Shanghai Jiao Tong University(上海交通大学);Peking University(北京大学);The Chinese University of Hong Kong(香港中文大学)
Automated Conjecture Resolution with Formal Verification
School of Mathematical Sciences, Peking University(北京大学数学科学学院);Westlake Institute for Advanced Study, Westlake University(西拉雅大学先进研究所);School of Mathematics, Tianjin University(天津大学数学学院);Research Institute for Mathematical Sciences, Kyoto University(京都大学数学研究所);Department of Mathematics, Stanford University(斯坦福大学数学系);IQuest Research(IQuest研究);New Cornerstone Science Laboratory, School of Mathematical Sciences, Peking University(北京大学数学科学学院新基石科学实验室);Beijing International Center for Mathematical Research and the New Cornerstone Science Laboratory, Peking University(北京大学国际数学研究所以及新基石科学实验室);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心);Center for Intelligent Computing, Great Bay Institute for Advanced Study, Great Bay University(大湾大学先进研究所智能计算中心);Zhongguancun Academy(中关村学院)
A Machine-Verified Proof of a Quantum-Optimization Conjecture
Center of Mathematical Sciences and Applications, Harvard University(哈佛大学数学科学中心);MIT Center for Theoretical Physics - a Leinweber Institute(麻省理工学院理论物理中心 - 莱因韦伯研究所);Research Laboratory of Electronics, Massachusetts Institute of Technology(麻省理工学院电子研究实验室)
Lean Formalization of Generalization Error Bound by Rademacher Complexity and Dudley's Entropy Integral
RIKEN AIP(日本理化学研究所AIP);CyberAgent Inc.(CyberAgent公司);OMRON SINIC X Corporation(OMRON SINIC X株式会社);University College Cork(科克大学);The University of Tokyo(东京大学)