Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs

Albert Q. Jiang, Sean Welleck, Jin Peng Zhou, Wenda Li, Jiacheng Liu +4 more
10/21/2022
400 citations
cs.AIcs.LG

Official code: facebookresearch/miniF2F (108 stars, Objective-C++, MIT, last commit 2025-01-04). 1 more implementation below.

Abstract

The formalization of existing mathematical proofs is a notoriously difficult process. Despite decades of research on automation and proof assistants, writing formal proofs remains arduous and only accessible to a few experts.

Show full abstract

While previous studies to automate formalization focused on powerful search algorithms, no attempts were made to take advantage of available informal proofs. In this work, we introduce Draft, Sketch, and Prove (DSP), a method that maps informal proofs to formal proof sketches, and uses the sketches to guide an automated prover by directing its search to easier sub-problems. We investigate two relevant setups where informal proofs are either written by humans or generated by a language model. Our experiments and ablation studies show that large language models are able to produce well-structured formal sketches that follow the same reasoning steps as the informal proofs. Guiding an automated prover with these sketches enhances its performance from 20.9% to 39.3% on a collection of mathematical competition problems.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
facebookresearch/miniF2FOfficial108Objective-C++MIT2025-01-04
albertqjiang/draft_sketch_proveOfficial75Python–2023-09-30
MIT

An updated version of miniF2F with lots of fixes and informal statements / solutions.

10820Objective-C++, IsabelleOct 20, 20221 years agoMIT
7512PythonFeb 19, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{jiang2022draft,
  title  = {Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofs},
  author = {Albert Q. Jiang and Sean Welleck and Jin Peng Zhou and Wenda Li and Jiacheng Liu and Mateja Jamnik and Timothée Lacroix and Yuhuai Wu and Guillaume Lample},
  year   = {2022},
  eprint = {2210.12283},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12283}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.12283.svg)](https://codeofpaper.com/paper/2210.12283)

Discussion