arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1409.3313cs.LOcs.PL
收藏

连续微积分的一个类型系统

A type system for Continuation Calculus

Herman Geuvers, Wouter Geraedts, Bram Geron, Judith van Stegeren

摘要:

由Geron和Geuvers提出的连续演算(CC)是函数计算的一个简单的基础模型。它与λ演算和项重写密切相关,但它没有变量绑定,也没有模式匹配。它是图灵完备的,求值是确定性的。通过选择适当的函数定义,可以使用“按值调用”和“按名称调用”计算这样的概念:例如,有一个按值调用和一个按名称调用的加法函数。在本文中,我们使用类型扩展CC,以便能够以规范的方式定义数据类型,并通过迭代定义这些数据类型的函数。数据类型定义遵循所谓的数据“Scott编码”,而不是更熟悉的“Church编码”。迭代方案有两种:按值调用和按名称调用迭代方案。按值调用变体是按名称调用迭代的双重否定变体。双重否定转换允许在按名称调用和按值调用之间移动。

英文摘要:

Continuation Calculus (CC), introduced by Geron and Geuvers, is a simple foundational model for functional computation. It is closely related to lambda calculus and term rewriting, but it has no variable binding and no pattern matching. It is Turing complete and evaluation is deterministic. Notions like "call-by-value" and "call-by-name" computation are available by choosing appropriate function definitions: e.g. there is a call-by-value and a call-by-name addition function. In the present paper we extend CC with types, to be able to define data types in a canonical way, and functions over these data types, defined by iteration. Data type definitions follow the so-called "Scott encoding" of data, as opposed to the more familiar "Church encoding". The iteration scheme comes in two flavors: a call-by-value and a call-by-name iteration scheme. The call-by-value variant is a double negation variant of call-by-name iteration. The double negation translation allows to move between call-by-name and call-by-value.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑