Affiliation:
1. Delft University of Technology, Netherlands
2. Utrecht University, Netherlands
Abstract
How can we enumerate the inhabitants of an algebraic datatype? This paper explores a
datatype generic
solution that works for all
regular types
and
indexed families
. The enumerators presented here are provably both
complete
and
unique
—they will eventually produce every value exactly once—and
fair
—they avoid bias when composing enumerators. Finally, these enumerators memoise previously enumerated values whenever possible, thereby avoiding repeatedly recomputing recursive results.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference30 articles.
1. Universes for Generic Programs and Proofs in Dependent Type Theory;Benke Marcin;Nord. J. Comput.,2003
2. Idris
3. The New Quickcheck for Isabelle
4. Smart Testing of Functional Programs in Isabelle
5. The gentle art of levitation
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献