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 条
  • [1] Generating Well-Typed Terms That Are Not "Useless"
    Frank, Justin
    Quiring, Benjamin
    Lampropoulos, Leonidas
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (POPL): : 2318 - 2339
  • [2] Dynamic Editors for Well-Typed Expressions
    Koopman, Pieter
    Michels, Steffen
    Plasmeijer, Rinus
    TRENDS IN FUNCTIONAL PROGRAMMING (TFP 2021), 2021, 12834 : 44 - 66
  • [3] Well-typed logic programs are not wrong
    Deransart, P
    Smaus, JG
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2001, 2024 : 280 - 295
  • [4] Well-Typed Music Does Not Sound Wrong
    Szamozvancev, Dmitrij
    Gale, Michael B.
    ACM SIGPLAN NOTICES, 2017, 52 (10) : 99 - 104
  • [5] Well-Typed Programs Can't Be Blamed
    Wadler, Philip
    Findler, Robert Bruce
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5502 : 1 - +
  • [6] Meta-programming with Well-typed Code Analysis
    Lopez, Michael
    Dos Reis, Gabriel
    30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 2119 - 2121
  • [7] Making Random Judgments: Automatically Generating Well-Typed Terms from the Definition of a Type-System
    Fetscher, Burke
    Claessen, Koen
    Palka, Michal
    Hughes, John
    Findler, Robert Bruce
    PROGRAMMING LANGUAGES AND SYSTEMS, 2015, 9032 : 383 - 405
  • [8] A SEMANTIC CHARACTERIZATION OF THE WELL-TYPED FORMULAS OF LAMBDA-CALCULUS
    FORSTER, T
    THEORETICAL COMPUTER SCIENCE, 1993, 110 (02) : 405 - 418
  • [9] Generating Random Well-Typed Featherweight Java Programs Using QuickCheck
    Da Silva Feitosa, Samuel
    Ribeiro, Rodrigo Geraldo
    Rauber Du Bois, Andre
    Electronic Notes in Theoretical Computer Science, 2019, 342 : 3 - 20
  • [10] Generating Random Well-Typed Featherweight Java']Java Programs Using QuickCheck
    Feitosa, Samuel da Silva
    Ribeiro, Rodrigo Geraldo
    Du Bois, Andre Rauber
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2019, 342 : 3 - 20