Towards Autoformalization of Mathematics and Code Correctness: Experiments with Elementary Proofs

01/05/2023
by   Garett Cunningham, et al.
0

The ever-growing complexity of mathematical proofs makes their manual verification by mathematicians very cognitively demanding. Autoformalization seeks to address this by translating proofs written in natural language into a formal representation that is computer-verifiable via interactive theorem provers. In this paper, we introduce a semantic parsing approach, based on the Universal Transformer architecture, that translates elementary mathematical proofs into an equivalent formalization in the language of the Coq interactive theorem prover. The same architecture is also trained to translate simple imperative code decorated with Hoare triples into formally verifiable proofs of correctness in Coq. Experiments on a limited domain of artificial and human-written proofs show that the models generalize well to intermediate lengths not seen during training and variations in natural language.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/14/2022

Towards a Mathematics Formalisation Assistant using Large Language Models

Mathematics formalisation is the task of writing mathematics (i.e., defi...
research
12/11/2017

Coqatoo: Generating Natural Language Versions of Coq Proofs

Due to their numerous advantages, formal proofs and proof assistants, su...
research
03/24/2021

NaturalProofs: Mathematical Theorem Proving in Natural Language

Understanding and creating mathematics using natural mathematical langua...
research
05/25/2022

Autoformalization with Large Language Models

Autoformalization is the process of automatically translating from natur...
research
01/04/2021

Lassie: HOL4 Tactics by Example

Proof engineering efforts using interactive theorem proving have yielded...
research
01/31/2018

The Elfe System - Verifying mathematical proofs of undergraduate students

Elfe is an interactive system for teaching basic proof methods in discre...
research
05/17/2019

Isabelle technology for the Archive of Formal Proofs

This is an overview of the Isabelle technology behind the Archive of For...

Please sign up or login with your details

Forgot password? Click here to reset