Enumerating Well-Typed Terms Generically

被引:0
|
作者
Yakushev, Alexey Rodriguez [1 ]
Jeuring, Johan [2 ,3 ]
机构
[1] Vector Fabr BV, Paradijslaan 28, NL-5611 KN Eindhoven, Netherlands
[2] Univ Utrecht, Dept Informat & Comp Sci, NL-3508 TB Utrecht, Netherlands
[3] Open Univ Netherlands, Sch Comp Sci, NL-6401 DL Heerlen, Netherlands
关键词
SCRAP;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We use generic programming techniques to generate well-typed lambda terms. We encode well-typed terms by means of generalized algebraic datatypes (GADTs) and existential types. The Spine approach to generic programming supports GADTs, but it does not support the definition of generic producers for existentials. We describe how to extend the Spine approach to support existentials and we use the improved Spine to define a generic enumeration function. We show that the enumeration function can be used to generate the terms of simply typed lambda calculus.
引用
收藏
页码:93 / +
页数:2
相关论文
共 50 条