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.
CITATION STYLE
Braibant, T., Jourdan, J. H., & Monniaux, D. (2014). Implementing and Reasoning About Hash-consed Data Structures in Coq. Journal of Automated Reasoning, 53(3), 271–304. https://doi.org/10.1007/s10817-014-9306-0
Mendeley helps you to discover research relevant for your work.