Integrating Testing and Interactive Theorem Proving
Authors:
Open Access
- 20 October 2011
- journal article
- Published by Open Publishing Association in Electronic Proceedings in Theoretical Computer Science
- Vol. 70, 4-19
Abstract
Using an interactive theorem prover to reason about programs involves a sequence of interactions where the user challenges the theorem prover with conjectures. Invariably, many of the conjectures posed are in fact false, and users often spend considerable effort examining the theorem prover's output before realizing this. We present a synergistic integration of testing with theorem proving, implemented in the ACL2 Sedan (ACL2s), for automatically generating concrete counterexamples. Our method uses the full power of the theorem prover and associated libraries to simplify conjectures; this simplification can transform conjectures for which finding counterexamples is hard into conjectures where finding counterexamples is trivial. In fact, our approach even leads to better theorem proving, e.g. if testing shows that a generalization step leads to a false conjecture, we force the theorem prover to backtrack, allowing it to pursue more fruitful options that may yield a proof. The focus of the paper is on the engineering of a synergistic integration of testing with interactive theorem proving; this includes extending ACL2 with new functionality that we expect to be of general interest. We also discuss our experience in using ACL2s to teach freshman students how to reason about their programs.Comment: In Proceedings ACL2 2011, arXiv:1110.447Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Nitpick: A Counterexample Generator for Higher-Order Logic Based on a Relational Model Finder2010
- Functional Testing in the Focal Environment2008
- ACL2s: “The ACL2 Sedan”Electronic Notes in Theoretical Computer Science, 2007
- A Framework for Verifying Bit-Level Pipelined Machines Based on Automated Deduction and Decision ProceduresJournal of Automated Reasoning, 2006
- Automating the generation and sequencing of test cases from model-based specifications2005
- Symbolic Test Case Generation for Primitive Recursive FunctionsLecture Notes in Computer Science, 2005
- Combining Testing and Proving in Dependent Type Theory2003
- QuickCheck2000
- Computer-Aided Reasoning2000
- Testing can be formal, too1995