Linearly-Used Continuations in the Enriched Effect Calculus
Linearly-Used Continuations in the Enriched Effect Calculus
复制标题
丰富效应微积分中线性使用的延拓
DOI:
10.1007/978-3-642-12032-9_3
复制
发表时间:
2010
期刊:
影响因子:
--
通讯作者:
A. Simpson
中科院分区:
文献类型:
--
作者:
J. Egger;R. E. Møgelberg;A. Simpson
The enriched effect calculus is an extension of Moggi's computational metalanguage with a selection of primitives from linear logic. In this paper, we present an extended case study within the enriched effect calculus: the linear usage of continuations. We show that established call-by-value and call-by name linearly-used CPS translations are uniformly captured by a single generic translation of the enriched effect calculus into itself. As a main syntactic theorem, we prove that the generic translation is involutive up to isomorphism. As corollaries, we obtain full completeness results for the original call-by-value and call-by-name translations. The main syntactic theorem is proved using a category-theoretic semantics for the enriched effect calculus. We show that models are closed under a natural dual model construction. The canonical linearly-used CPS translation then arises as the unique (up to isomorphism) map from the syntactic initial model to its own dual. This map is an equivalence of models. Thus the initial model is self-dual.