arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07047cs.AI
收藏

Mathesis:迈向从自然语言进行形式化定理证明

Mathesis: Towards Formal Theorem Proving from Natural Languages

Huawei Celia Team(华为Celia团队);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);The Chinese University of Hong Kong(香港中文大学)
Yu Xuejun, Jianyuan Zhong, Zijin Feng, Pengyi Zhai, Roozbeh Yousefzadeh, Wei Chong Ng, Haoxiong Liu, Ziyi Shou, Jing Xiong, Yudong Zhou, Claudia Beth Ong, Auste… 展开作者

Yu Xuejun, Jianyuan Zhong, Zijin Feng, Pengyi Zhai, Roozbeh Yousefzadeh, Wei Chong Ng, Haoxiong Liu, Ziyi Shou, Jing Xiong, Yudong Zhou, Claudia Beth Ong, Austen Jeremy Sugiarto, Yaoxi Zhang, Wai Ming Tai, Huan Cao, Dongcai Lu, Jiacheng Sun, Qiang Xu, Shen Xin, Zhenguo Li

AI总结:

本文提出端到端自然语言定理证明流水线Mathesis,结合强化学习自动形式化器、LeanScorer与证明器,并构建Gaokao-Formal基准,在MiniF2F和高考形式化任务上取得先进结果。

摘要:

大语言模型的最新进展为形式化推理展现出强大前景。然而,大多数基于LLM的定理证明器长期受制于需要专家编写的形式化命题作为输入,这限制了其适用于以自然语言表达的现实世界问题。我们通过Mathesis解决这一差距,它是首个处理非形式化问题命题的端到端定理证明流水线。其贡献包括Mathesis-Autoformalizer,这是首个利用强化学习增强自然语言问题形式化能力的自动形式化器,并借助我们新颖的LeanScorer框架进行细致的形式化质量评估。它还提出了Mathesis-Prover,可从形式化命题生成形式化证明。为评估端到端形式化定理证明的现实适用性,我们引入Gaokao-Formal,这是一个包含来自中国全国高考的488道复杂问题的基准。我们的方法经过精心设计,并对每个组件进行了充分研究。实验证明了Mathesis的有效性:自动形式化器在Gaokao-Formal上的通过率比最佳基线高出22%。完整系统优于其他模型组合,在MiniF2F上以pass@32取得64%的准确率,并在Gaokao-Formal上达到最先进的18%。

英文摘要:

Recent advances in large language models show strong promise for formal reasoning. However, most LLM-based theorem provers have long been constrained by the need for expert-written formal statements as inputs, limiting their applicability to real-world problems expressed in natural language. We tackle this gap with Mathesis, the first end-to-end theorem proving pipeline processing informal problem statements. It contributes Mathesis-Autoformalizer, the first autoformalizer using reinforcement learning to enhance the formalization ability of natural language problems, aided by our novel LeanScorer framework for nuanced formalization quality assessment. It also proposes a Mathesis-Prover, which generates formal proofs from the formalized statements. To evaluate the real-world applicability of end-to-end formal theorem proving, we introduce Gaokao-Formal, a benchmark of 488 complex problems from China's national college entrance exam. Our approach is carefully designed, with a thorough study of each component. Experiments demonstrate Mathesis's effectiveness, with the autoformalizer outperforming the best baseline by 22% in pass-rate on Gaokao-Formal. The full system surpasses other model combinations, achieving 64% accuracy on MiniF2F with pass@32 and a state-of-the-art 18% on Gaokao-Formal.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑