Papers › Autoformalizing Euclidean Geometry

Autoformalizing Euclidean Geometry

27 May 2024arXiv:2405.17216archive 2025-07-28

Logan Murphy, Kaiyu Yang, Jialiang Sun, Zhaoyu Li, Anima Anandkumar, Xujie Si

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.17216")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · violated contract; 4 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

loganrjmurphy/leaneuclid officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
4ran · our draft was wrong
3ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from loganrjmurphy/leaneuclid. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

PermutationStruct loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · metamorphic tier: deterministic MIT (permissive) · b17a3745345f3d22 · report
checkPerm loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran MIT (permissive) · f93e2527f3540da6 · report
choosePermutations loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · our draft was wrong MIT (permissive) · 9ccf4b01d9d2129a · report
has_match loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · violated contract MIT (permissive) · e9a46f8957968943 · report
has_permutation loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · violated contract MIT (permissive) · 4f18707c98469c94 · report
is_permutation loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran MIT (permissive) · fdfee91915c790f0 · report
removeGuards loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · our draft was wrong MIT (permissive) · cb6fe1699a17fcb6 · report
remove_all_guards loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · our draft was wrong MIT (permissive) · 76c240a8d6747abf · report
replaceGuards loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository ran · our draft was wrong MIT (permissive) · 78112d3724540dc8 · report
NameMap loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository unverified MIT (permissive) · bb00132b7cffb7fb · report
PropData loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository unverified MIT (permissive) · 1160a348cb5575f9 · report
QuantifierData loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository unverified MIT (permissive) · 3e48503267b317e0 · report
checkAndInsert loganrjmurphy/leaneuclid/E3/Engine/choosePerms.py official repository unverified MIT (permissive) · 63f2931afa6efafd · report

Tasks

Math

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections