Making Random Judgments: Automatically Generating Well-Typed Terms from the Definition of a Type-System
Paper in proceedings, 2015

This paper presents a generic method for randomly generating well-typed expressions. It starts from a specification of a typing judgment in PLT Redex and uses a specialized solver that employs randomness to find many different valid derivations of the judgment form. Our motivation for building these random terms is to more effectively falsify conjectures as part of the tool-support for semantics models specified in Redex. Accordingly, we evaluate the generator against the other available methods for Redex, as well as the best available custom well-typed term generator. Our results show that our new generator is much more effective than generation techniques that do not explicitly take types into account and is competitive with generation techniques that do, even though they are specialized to particular type-systems and ours is not.

Author

B. Fetscher

Northwestern University

Koen Lindström Claessen

Chalmers, Computer Science and Engineering (Chalmers), Software Technology (Chalmers)

Michal Palka

Chalmers, Computer Science and Engineering (Chalmers), Software Technology (Chalmers)

John Hughes

Chalmers, Computer Science and Engineering (Chalmers), Software Technology (Chalmers)

R. B. Findler

Northwestern University

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)

03029743 (ISSN) 16113349 (eISSN)

Vol. 9032 383-405

Subject Categories

Information Science

DOI

10.1007/978-3-662-46669-8_16

ISBN

978-3-662-46669-8

More information

Latest update

5/28/2018