Autoformalizing Euclidean Geometry

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Murphy, Logan, Yang, Kaiyu, Sun, Jialiang, Li, Zhaoyu, Anandkumar, Anima, Si, Xujie
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914813696802816
author Murphy, Logan
Yang, Kaiyu
Sun, Jialiang
Li, Zhaoyu
Anandkumar, Anima
Si, Xujie
author_facet Murphy, Logan
Yang, Kaiyu
Sun, Jialiang
Li, Zhaoyu
Anandkumar, Anima
Si, Xujie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17216
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Autoformalizing Euclidean Geometry
Murphy, Logan
Yang, Kaiyu
Sun, Jialiang
Li, Zhaoyu
Anandkumar, Anima
Si, Xujie
Machine Learning
Artificial Intelligence
Logic in Computer Science
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.
title Autoformalizing Euclidean Geometry
topic Machine Learning
Artificial Intelligence
Logic in Computer Science
url https://arxiv.org/abs/2405.17216