Efficient Extensional Binary Tries - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2021

Efficient Extensional Binary Tries

Résumé

Lookup tables (finite maps) are a ubiquitous data structure. In pure functional languages they are best represented using trees instead of hash tables. 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 a big, real system. The application context of data structures contained in theorem statements imposes unusual requirements for which canonical tries are particularly well suited.
Fichier principal
Vignette du fichier
extensional.pdf (280.93 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03372247 , version 1 (10-10-2021)
hal-03372247 , version 2 (24-05-2022)
hal-03372247 , version 3 (21-09-2022)
hal-03372247 , version 4 (04-09-2023)

Identifiants

Citer

Andrew W Appel, Xavier Leroy. Efficient Extensional Binary Tries. 2021. ⟨hal-03372247v1⟩
317 Consultations
282 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More