Testing First-Order Logic Axioms in Program Verification

  • Ki Yung Ahn
  • Ewen Denney
Conference paper

DOI: 10.1007/978-3-642-13977-2_4

Part of the Lecture Notes in Computer Science book series (LNCS, volume 6143)
Cite this paper as:
Ahn K.Y., Denney E. (2010) Testing First-Order Logic Axioms in Program Verification. In: Fraser G., Gargantini A. (eds) Tests and Proofs. TAP 2010. Lecture Notes in Computer Science, vol 6143. Springer, Berlin, Heidelberg

Abstract

Program verification systems based on automated theorem provers rely on user-provided axioms in order to verify domain-specific properties of code. However, formulating axioms correctly (that is, formalizing properties of an intended mathematical interpretation) is non-trivial in practice, and avoiding or even detecting unsoundness can sometimes be difficult to achieve. Moreover, speculating soundness of axioms based on the output of the provers themselves is not easy since they do not typically give counterexamples. We adopt the idea of model-based testing to aid axiom authors in discovering errors in axiomatizations. To test the validity of axioms, users define a computational model of the axiomatized logic by giving interpretations to the function symbols and constants in a simple declarative programming language. We have developed an axiom testing framework that helps automate model definition and test generation using off-the-shelf tools for meta-programming, property-based random testing, and constraint solving. We have experimented with our tool to test the axioms used in AutoCert, a program verification system that has been applied to verify aerospace flight code using a first-order axiomatization of navigational concepts, and were able to find counterexamples for a number of axioms.

Keywords

model-based testing program verification automated theorem proving property-based testing constraint solving 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2010

Authors and Affiliations

  • Ki Yung Ahn
    • 1
    • 2
  • Ewen Denney
    • 3
  1. 1.Portland State UniversityPortlandUSA
  2. 2.Mission Critical TechnologiesInc. / NASA Ames Research CenterMoffett FieldUSA
  3. 3.Stinger Ghaffarian TechnologiesInc. / NASA Ames Research CenterMoffett FieldUSA

Personalised recommendations