Analogy-guided geometry prover

The model writes a geometry proof using proofs of similar retrieved problems as examples, a symbolic checker built on Z3 reports the first wrong step, and the model rewrites the proof until it checks.

Read the paper

In one paragraph

Analogy-guided geometry prover (2025, formal proofs) uses verifier-guided repair, pairing generator OpenAI o1, GPT-5, Gemini-2.5-Flash and Claude Sonnet 4.6 (no fine-tuning) with authority symbolic geometry verifier with the Z3 SMT solver. With GPT-5, proof accuracy on 50 FormalGeo-7K problems rises from 44% for the plain model to 96% for the full pipeline. Limit: the evaluation covers 50 problems.

Verified against primary sources on · It matched its sources.

How does Analogy-guided geometry prover work?

  1. Proposes

    Step-by-step formal proofs of SAT-level geometry problems from FormalGeo-7K, written by an LLM (o1, GPT-5, Gemini-2.5-Flash or Claude Sonnet 4.6) with analogous solved problems and a narrowed theorem dictionary in the prompt

  2. Judged by

    A symbolic verifier: a geometric reasoning module plus the Z3 SMT solver for algebraic constraints, which checks each step and the final answer

  3. Steers

    The verifier returns natural-language feedback naming the first error; the model retries with it (up to 5 retries per run, up to 3 runs)

What did Analogy-guided geometry prover report?

With GPT-5, proof accuracy on 50 FormalGeo-7K problems rises from 44% for the plain model to 96% for the full pipeline; verifier-guided retries alone take the analogy-based method from 64% to 96%.

What does Analogy-guided geometry prover not prove?

The evaluation covers 50 problems (10 per difficulty level), and Z3 cannot handle inverse trigonometric functions, so proofs that need an angle derived from a trigonometric value cannot be checked.

What a pass means here

The judge is a formal check, so a pass is exact for the statement it checks, not for what the user meant. The loop runs each time an answer is needed.

See how this kind of check sits among the others: how to validate LLM output with code.

How it generalizes the harness

A symbolic checker with an SMT solver decides whether each proof step holds, and a proof that passes stands on its own.

Classification

Classification of Analogy-guided geometry prover
Classification dimensionVerified value
What it proposesProof
Generative modelOpenAI o1, GPT-5, Gemini-2.5-Flash and Claude Sonnet 4.6 (no fine-tuning)
Algorithmic authoritySymbolic geometry verifier with the Z3 SMT solver
FeedbackVerifier errors
What gets updatedPrompt context
When it runsAt inference time
ValidityFormal (machine-checked)
EvidenceCode released
LineageOriginal system