Property-Based Testing via Proof Reconstruction Work-in-progress - Archive ouverte HAL Access content directly
Conference Papers Year :

Property-Based Testing via Proof Reconstruction Work-in-progress

(1) , (2, 1) , (3)
1
2
3

Abstract

Property-based testing is a technique for validating code against an executable specification by automatically generating test-data. From its original use in programming languages, this technique has now spread to most major proof assistants to complement theorem proving with a preliminary phase of conjecture testing. We present a proof theoretical reconstruction of this style of testing for relational specifications (such as those used in the semantics of programming languages) and employ the Foundational Proof Certificate framework to aid in describing test generators. We do this by presenting certain kinds of " proof outlines " that can be used to describe the shape and size of the generators for the conditional part of a proposed property. Then the testing phase is reduced to standard logic programming search. After illustrating our techniques on simple, first-order (algebraic) data structures, we lift it to data structures containing bindings using λ-tree syntax. The λProlog programming language is capable of performing both the generation and checking of tests. We validate this approach by tackling benchmarks in the metatheory of programming languages coming from related tools such as PLT-Redex.
Fichier principal
Vignette du fichier
lfmtp17.pdf (630.08 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

hal-01646788 , version 1 (23-11-2017)

Identifiers

  • HAL Id : hal-01646788 , version 1

Cite

Roberto Blanco, Dale Miller, Alberto Momigliano. Property-Based Testing via Proof Reconstruction Work-in-progress. LFMTP 17: Logical Frameworks and Meta-Languages: Theory and Practice, Sep 2017, Oxford, United Kingdom. ⟨hal-01646788⟩
156 View
45 Download

Share

Gmail Facebook Twitter LinkedIn More