[Paper Review] ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematics
ProofNet is a benchmark of 371 parallel informal and formal mathematical statements and proofs in Lean 3, plus baseline results and two novel autoformalization methods (prompt retrieval and distilled backtranslation).
We introduce ProofNet, a benchmark for autoformalization and formal proving of undergraduate-level mathematics. The ProofNet benchmarks consists of 371 examples, each consisting of a formal theorem statement in Lean 3, a natural language theorem statement, and a natural language proof. The problems are primarily drawn from popular undergraduate pure mathematics textbooks and cover topics such as real and complex analysis, linear algebra, abstract algebra, and topology. We intend for ProofNet to be a challenging benchmark that will drive progress in autoformalization and automatic theorem proving. We report baseline results on statement autoformalization via in-context learning. Moreover, we introduce two novel statement autoformalization methods: prompt retrieval and distilled backtranslation.
Motivation & Objective
- Provide a parallel dataset of informal and formal undergraduate mathematics statements and proofs in Lean 3 to drive autoformalization and theorem proving research.
- Evaluate existing language models on autoformalization and informalization tasks within ProofNet.
- Propose and assess techniques to boost autoformalization performance without large parallel corpora.
- Demonstrate open-source models trained on mathematical data and analyze their strengths and limitations.
Proposed method
- Construct ProofNet with 371 parallel formal statements in Lean 3, corresponding natural language statements, and natural language proofs.
- Evaluate in-context learning baselines for autoformalization using large language models.
- Introduce prompt retrieval to augment few-shot prompts with relevant Lean mathlib statements.
- Develop distilled backtranslation to fine-tune models for autoformalization without parallel data.
Experimental results
Research questions
- RQ1How well can large language models autoformalize informal theorem statements into Lean 3 formalizations?
- RQ2Do retrieval-augmented prompts and distilled backtranslation improve autoformalization performance over few-shot baselines?
- RQ3What are the strengths and failure modes of current models on formalization and informalization tasks in ProofNet?
- RQ4Can open-source math-focused models trained on a math-rich corpus compete with black-box API baselines for autoformalization tasks?
Key findings
- In-context learning baselines achieve nontrivial formalization performance but are far from perfect (e.g., 13.4% accuracy for formalization with Code-davinci-002 in few-shot settings).
- Prompt retrieval substantially improves formalization accuracy and typecheck rate compared with standard few-shot prompting.
- Distilled backtranslation improves autoformalization performance for smaller models beyond their in-context learning baselines.
- Informalization is easier than formalization across models, with higher accuracy in generating informal proofs and statements.
- BLEU correlates poorly with formalization performance, while typecheck rate serves as a better predictor of autoformalization success.
- Code-davinci-002 shows strong semantic grasp when it produces typecheckable formalizations, though many outputs require careful verification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.