Efficient Extensional Binary Tries

Andrew W Appel, Xavier Leroy
10/11/2021
cs.LOcs.PL

Official code: xavierleroy/canonical-binary-tries (23 stars, Coq, BSD-3-Clause, last commit 2024-04-17).

Abstract

Lookup tables (finite maps) are a ubiquitous data structure. In pure functional languages they are best represented using trees instead of hash tables.

Show full abstract

In pure functional languages within constructive logic, without a primitive integer type, they are well represented using binary tries instead of search trees. In this work, we introduce canonical binary tries, an improved binary-trie data structure that enjoys a natural extensionality property, quite useful in proofs, and supports sparseness more efficiently. We provide full proofs of correctness in Coq. We provide microbenchmark measurements of canonical binary tries versus several other data structures for finite maps, in a variety of application contexts; as well as measurement of canonical versus original tries in two big, real systems. The application context of data structures contained in theorem statements imposes unusual requirements for which canonical tries are particularly well suited.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Coq development accompanying the paper "Efficient Extensional Binary Tries"

232Coq, MakefileSep 29, 20212 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{appel2021efficient,
  title  = {Efficient Extensional Binary Tries},
  author = {Andrew W Appel and Xavier Leroy},
  year   = {2021},
  eprint = {2110.05063},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.05063}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.05063.svg)](https://codeofpaper.com/paper/2110.05063)

Discussion