atlas

Research map / Large language models / Agents, code and math

Autoformalizing Euclidean Geometry

ICML 2024 · Large language models › Agents, code and math · approach: Retrieval-augmented formal theorem proving · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces LeanEuclid, a Lean-based autoformalization benchmark for Euclidean geometry, with an SMT-based engine that automatically checks semantic equivalence of formalized theorems and fills diagrammatic reasoning gaps in proofs; GPT-4 and GPT-4V are evaluated few-shot.

Problem

Autoformalizing informal Euclidean geometry theorems and proofs into Lean is hard to evaluate automatically, and informal proofs rely on diagrams that leave logical gaps difficult to formalize.

Approach

Use an SMT-based symbolic engine built on a Lean implementation of Avigad's formal system E to (1) check logical equivalence between predicted and ground-truth theorem statements and (2) automatically fill diagrammatic reasoning gaps, so the LLM only autoformalizes explicit textual proof steps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 5-shot rather than 0-shot promptingGPT-4 theorem autoformalization · LeanEuclid theorem statements, Overallsemantic equivalence accuracy: 2.8% -> 18.9%Helped
Add vision inputGPT-4 theorem autoformalization with 5-shot prompting · LeanEuclid theorem statements, Overallsemantic equivalence accuracy: 18.9% -> 21.0%Helped
Increase demonstrations from 1-shot to 5-shotGPT-4 proof autoformalization · UniGeo proofs, Overallproof success rate: 17% -> 25%Helped
Add vision inputGPT-4V proof autoformalization with 5-shot prompting · UniGeo proofs, Overallproof success rate: 25% -> 31%Helped
Add vision inputGPT-4 proof autoformalization with 5-shot prompting · LeanEuclid proofsproof success rate: 18.8% -> 23.1%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Euclid's Elements (Book I) UniGeo

Benchmarks: LeanEuclid

Metrics: semantic equivalence rate (proved by SMT engine) proof success rate (Lean-verified) Levenshtein similarity to repaired proofs false negative rate vs human evaluation

Baselines: AlphaGeometry GPT-4 0-shot GPT-4 1-shot

Builds on: Avigad formal system E Lean proof assistant LeanDojo AlphaGeometry

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy