Defining and reasoning about recursive functions: a practical tool for the coq proof assistant

  • Authors:
  • Gilles Barthe;Julien Forest;David Pichardie;Vlad Rusu

  • Affiliations:
  • EVEREST Team, INRIA Sophia-Antipolis, France;EVEREST Team, INRIA Sophia-Antipolis, France;EVEREST Team, INRIA Sophia-Antipolis, France;VERTECS Team, IRISA/INRIA Rennes, France

  • Venue:
  • FLOPS'06 Proceedings of the 8th international conference on Functional and Logic Programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a practical tool for defining and proving properties of recursive functions in the Coq proof assistant. The tool generates from pseudo-code the graph of the intended function as an inductive relation. Then it proves that the relation actually represents a function, which is by construction the function that we are trying to define. Then, we generate induction and inversion principles, and a fixpoint equation for proving other properties of the function. Our tool builds upon state-of-the-art techniques for defining recursive functions, and can also be used to generate executable functions from inductive descriptions of their graph. We illustrate the benefits of our tool on two case studies.