CoProver: A Recommender System for Proof Construction
Preprint
Abstract
Interactive Theorem Provers (ITPs) are an indispensable tool in the arsenal of formal method experts as a platform for construction and (formal) verification of proofs. The complexity of the proofs in conjunction with the level of expertise typically required for the process to succeed can often hinder the adoption of ITPs. A recent strain of work has investigated methods to incorporate machine learning models trained on ITP user activity traces as a viable path towards full automation. While a valuable line of investigation, many problems still require human supervision to be completed fully, thus applying learning methods to assist the user with useful recommendations can prove more fruitful. Following the vein of user assistance, we introduce CoProver, a proof recommender system based on transformers, capable of learning from past actions during proof construction, all while exploring knowledge stored in the ITP concerning previous proofs. CoProver employs a neurally learnt sequence-based encoding of sequents, capturing long distance relationships between terms and hidden cues therein. We couple CoProver with the Prototype Verification System (PVS) and evaluate its performance on two key areas, namely: (1) Next Proof Action Recommendation, and (2) Relevant Lemma Retrieval given a library of theories. We evaluate CoProver on a series of well-established metrics originating from the recommender system and information retrieval communities, respectively. We show that CoProver successfully outperforms prior state of the art applied to recommendation in the domain. We conclude by discussing future directions viable for CoProver (and similar approaches) such as argument prediction, proof summarization, and more.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- TacTok: semantics-aware proof synthesisProceedings of the ACM on Programming Languages, 2020
- TacticToe: Learning to Prove with TacticsJournal of Automated Reasoning, 2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks2019
- A Learning-Based Fact Selector for Isabelle/HOLJournal of Automated Reasoning, 2016
- Learning deep structured semantic models for web search using clickthrough data2013
- leanCoP: lean connection-based theorem provingJournal of Symbolic Computation, 2003
- SIGNATURE VERIFICATION USING A “SIAMESE” TIME DELAY NEURAL NETWORK1994
- A STATISTICAL INTERPRETATION OF TERM SPECIFICITY AND ITS APPLICATION IN RETRIEVALJournal of Documentation, 1972
- A Statistical Approach to Mechanized Encoding and Searching of Literary InformationIBM Journal of Research and Development, 1957