Abstract
Randomized property-based testing has gained much attention recently, but most frameworks stop short at polymorphic properties. Although Bernardy et al. have developed a theory to reduce a wide range of polymorphic properties to monomorphic ones, it relies upon ad-hoc embedding-projection pairs to massage the types into a particular form. This paper skips the embedding-projection pairs and presents a mechanical monomorphization for a general class of polymorphic functions, a step towards automatic testing for polymorphic properties. The calculation of suitable types for monomorphization turns out to be logarithm.
Original language | English (US) |
---|---|
Article number | 3498696 |
Journal | Proceedings of the ACM on Programming Languages |
Volume | 6 |
Issue number | POPL |
DOIs | |
State | Published - Jan 2022 |
Bibliographical note
Publisher Copyright:© 2022 Owner/Author.
Keywords
- logarithm
- parametricity
- polymorphism