欧几里得几何的自动形式化
Autoformalizing Euclidean Geometry
AI总结:
本文提出一个结合领域知识、SMT求解器和LLMs的神经符号框架,用于自动形式化欧几里得几何,并构建LeanEuclid基准,实验显示GPT-4和GPT-4V的能力与局限。
摘要:
自动形式化涉及将非正式数学自动转换为机器可验证的正式定理和证明。欧几里得几何为研究自动形式化提供了一个有趣且可控的领域。在本文中,我们介绍了一个用于自动形式化欧几里得几何的神经符号框架,该框架结合了领域知识、SMT求解器和大语言模型(LLMs)。欧几里得几何中的一个挑战是非正式证明依赖于图形,在文本中留下难以形式化的空白。为了解决这个问题,我们使用定理证明器自动填充此类图形信息,使得LLM只需自动形式化显式的文本步骤,从而简化模型的任务。我们还为自动形式化的定理陈述提供了自动语义评估。我们构建了LeanEuclid,一个自动形式化基准,包含来自欧几里得《几何原本》和UniGeo数据集的问题,这些问题在Lean证明助手中进行了形式化。使用GPT-4和GPT-4V进行的实验展示了最先进的LLMs在自动形式化几何问题上的能力和局限性。数据和代码可在https://github.com/loganrjmurphy/LeanEuclid获取。
英文摘要:
Autoformalization involves automatically translating informal math into formal theorems and proofs that are machine-verifiable. Euclidean geometry provides an interesting and controllable domain for studying autoformalization. In this paper, we introduce a neuro-symbolic framework for autoformalizing Euclidean geometry, which combines domain knowledge, SMT solvers, and large language models (LLMs). One challenge in Euclidean geometry is that informal proofs rely on diagrams, leaving gaps in texts that are hard to formalize. To address this issue, we use theorem provers to fill in such diagrammatic information automatically, so that the LLM only needs to autoformalize the explicit textual steps, making it easier for the model. We also provide automatic semantic evaluation for autoformalized theorem statements. We construct LeanEuclid, an autoformalization benchmark consisting of problems from Euclid's Elements and the UniGeo dataset formalized in the Lean proof assistant. Experiments with GPT-4 and GPT-4V show the capability and limitations of state-of-the-art LLMs on autoformalizing geometry problems. The data and code are available at https://github.com/loganrjmurphy/LeanEuclid.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。