Skip to Main content Skip to Navigation
Conference papers

Mutation Analysis for Coq

Abstract : Mutation analysis, which introduces artificial defects into software systems, is the basis of mutation testing, a technique widely applied to evaluate and enhance the quality of test suites. However, despite the deep analogy between tests and formal proofs, mutation analysis has seldom been considered in the context of deductive verification. We propose mutation proving, a technique for analyzing verification projects that use proof assistants. We implemented our technique for the Coq proof assistant in a tool dubbed MCOQ. MCOQ applies a set of mutation operators to Coq definitions of functions and datatypes, inspired by operators previously proposed for functional programming languages. MCOQ then checks proofs of lemmas affected by operator application. To make our technique feasible in practice, we implemented several optimizations in MCOQ such as parallel proof checking. We applied MCOQ to several medium and large scale Coq projects, and recorded whether proofs passed or failed when applying different mutation operators. We then qualitatively analyzed the mutants, finding many instances of incomplete specifications. For our evaluation, we made several improvements to serialization of Coq files and even discovered a notable bug in Coq itself, all acknowledged by developers. We believe MCOQ can be useful both to proof engineers for improving the quality of their verification projects and to researchers for evaluating proof engineering techniques.
Document type :
Conference papers
Complete list of metadata

Cited literature [61 references]  Display  Hide  Download

https://hal-mines-paristech.archives-ouvertes.fr/hal-02434236
Contributor : Claire Medrala <>
Submitted on : Thursday, January 9, 2020 - 6:20:33 PM
Last modification on : Wednesday, October 14, 2020 - 3:52:19 AM
Long-term archiving on: : Saturday, April 11, 2020 - 11:09:44 AM

File

A-720.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02434236, version 1

Citation

Ahmet Celik, Karl Palmskog, Marinela Parovi, Emilio Jesús Gallego Arias, Milos Gligoric. Mutation Analysis for Coq. 34th International Conference on Automated Software Engineering (ASE 2019, Nov 2019, San Diego, United States. ⟨hal-02434236⟩

Share

Metrics

Record views

64

Files downloads

84