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

基于大语言模型的数学形式化助手

Towards a Mathematics Formalisation Assistant using Large Language Models

Microsoft Research(微软研究院);Indian Institute of Science(印度科学学院);London School of Geometry and Number Theory(伦敦几何与数论学院);Indian Institute of Science Education and Research(印度科学教育与研究院)

Ayush Agrawal, Siddhartha Gadgil, Navin Goyal, Ashvni Narayanan, Anand Tadipatri

摘要:

数学形式化是数学写作的任务(即,定义、定理陈述、证明)转换为自然语言语言,然后可以由程序检查其正确性。这是一个蓬勃发展的活动今天,但正式化仍然繁琐。在本文中,我们探讨的能力,一个大语言模型(法典),以帮助形式化的精益定理证明。我们发现,仔细的输入依赖的提示选择和后处理,法典是能够正式的短期数学陈述在本科水平与近75\%的准确度为$120$定理语句。为了证明定量分析是不可行的,我们进行了详细的案例研究。我们选择了一套不同的$13$定理在本科水平的证明,适合在两三个段落。我们表明,一个新的提示策略法典可以正式这些证明在自然语言至少有一个十二法典完成容易修复成一个完整的证明。这是令人惊讶的,因为基本上没有对齐的数据存在形式化的数学,特别是证明。这些结果表明,大语言模型是一个很有前途的途径完全或部分自动化的形式化。

英文摘要:

Mathematics formalisation is the task of writing mathematics (i.e., definitions, theorem statements, proofs) in natural language, as found in books and papers, into a formal language that can then be checked for correctness by a program. It is a thriving activity today, however formalisation remains cumbersome. In this paper, we explore the abilities of a large language model (Codex) to help with formalisation in the Lean theorem prover. We find that with careful input-dependent prompt selection and postprocessing, Codex is able to formalise short mathematical statements at undergrad level with nearly 75\% accuracy for $120$ theorem statements. For proofs quantitative analysis is infeasible and we undertake a detailed case study. We choose a diverse set of $13$ theorems at undergrad level with proofs that fit in two-three paragraphs. We show that with a new prompting strategy Codex can formalise these proofs in natural language with at least one out of twelve Codex completion being easy to repair into a complete proof. This is surprising as essentially no aligned data exists for formalised mathematics, particularly for proofs. These results suggest that large language models are a promising avenue towards fully or partially automating formalisation.

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

↑