Boltzmann samplers for random generation of lambda terms - ENS de Lyon - École normale supérieure de Lyon
Pré-Publication, Document De Travail Année : 2014

Boltzmann samplers for random generation of lambda terms

Résumé

Randomly generating structured objects is important in testing and optimizing functional programs, whereas generating random $'l$-terms is more specifically needed for testing and optimizing compilers. For that a tool called QuickCheck has been proposed, but in this tool the control of the random generation is left to the programmer. Ten years ago, a method called Boltzmann samplers has been proposed to generate combinatorial structures. In this paper, we show how Boltzmann samplers can be developed to generate lambda-terms, but also other data structures like trees. These samplers rely on a critical value which parameters the main random selector and which is exhibited here with explanations on how it is computed. Haskell programs are proposed to show how samplers are actually implemented.
Fichier principal
Vignette du fichier
boltzmann.pdf (300.52 Ko) Télécharger le fichier
Vignette du fichier
Orographic_lifting.jpg (906.49 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Format Figure, Image

Dates et versions

ensl-00979074 , version 1 (15-04-2014)
ensl-00979074 , version 2 (28-04-2014)

Identifiants

Citer

Pierre Lescanne. Boltzmann samplers for random generation of lambda terms. 2014. ⟨ensl-00979074v1⟩
254 Consultations
439 Téléchargements

Altmetric

Partager

More