Implementing and reasoning about hash-consed data structures in Coq
Preprint
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.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Floating-point arithmetic in the Coq systemInformation and Computation, 2012
- Correctness of Pointer Manipulating Algorithms Illustrated by a Verified BDD Construction2012
- Extending Coq with Imperative Features and Its Application to SAT VerificationLecture Notes in Computer Science, 2010
- Imperative Functional Programming with Isabelle/HOL2008
- Subset Coercions in CoqLecture Notes in Computer Science, 2006
- Type-safe modular hash-consing2006
- Function memoization and unique object representation for ACL2 functions2006
- Verification of Object-Oriented Software. The KeY Approach2006
- Verification of BDD Normalization2005
- Reflecting BDDs in CoqLecture Notes in Computer Science, 2000