Implementing and reasoning about hash-consed data structures in Coq
Logic in Computer Science
2015-09-28 v4 Data Structures and Algorithms
Abstract
We report on four different approaches to implementing hash-consing in Coq programs. The use cases include execution inside Coq, or execution of the extracted OCaml code. We explore the different trade-offs between faithful use of pristine extracted code, and code that is fine-tuned to make use of OCaml programming constructs not available in Coq. We discuss the possible consequences in terms of performances and guarantees. We use the running example of binary decision diagrams and then demonstrate the generality of our solutions by applying them to other examples of hash-consed data structures.
Cite
@article{arxiv.1311.2959,
title = {Implementing and reasoning about hash-consed data structures in Coq},
author = {Thomas Braibant and Jacques-Henri Jourdan and David Monniaux},
journal= {arXiv preprint arXiv:1311.2959},
year = {2015}
}