Author:
BENDKOWSKI MACIEJ,GRYGIEL KATARZYNA,TARAU PAUL
Abstract
AbstractA natural approach to software quality assurance consists in writing unit tests securing programmer-declared code invariants. Throughout the literature, a great body of work has been devoted to tools and techniques automating this labour-intensive process. A prominent example is the successful use of randomness, in particular, random typable λ-terms, in testing functional programming compilers such as the Glasgow Haskell Compiler. Unfortunately, due to the intrinsically difficult combinatorial structure of typable λ-terms, no effective uniform sampling method is known, setting it as a fundamental open problem in the random software testing approach. In this paper, we combine the framework of Boltzmann samplers, a powerful technique of random combinatorial structure generation, with today's Prolog systems offering a synergy between logic variables, unification with occurs check and efficient backtracking. This allows us to develop a novel sampling mechanism able to construct uniformly random closed simply typed λ-terms of up size 120. We apply our techniques to the generation of uniformly random closed simply typed normal forms and design a parallel execution mechanism pushing forward the achievable term size to 140.
Publisher
Cambridge University Press (CUP)
Subject
Artificial Intelligence,Computational Theory and Mathematics,Hardware and Architecture,Theoretical Computer Science,Software
Reference20 articles.
1. Tarau P. 2015a. On logic programming representations of lambda terms: de Bruijn indices, compression, type inference, combinatorial generation, normalization. In Proc. 7th International Symposium on Practical Aspects of Declarative Languages PADL'15, E. Pontelli and T. C. Son , Eds. Lecture Notes in Computer Science, vol. 8131. Springer, Portland, Oregon, USA, 115–131.
2. Sloane N. J. A. 2014. The on-line encyclopedia of integer sequences. URL: https://oeis.org/. [Accessed on August 6, 2017].
3. Asymptotically almost all λ-terms are strongly normalizing
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献