A formulae-as-type notion of control
A formulae-as-type notion of control
复制标题
公式作为类型的控制概念
DOI:
--
复制
发表时间:
1989
期刊:
影响因子:
--
通讯作者:
T. Griffin
中科院分区:
文献类型:
--
作者:
T. Griffin
The programming language Scheme contains the control construct call/cc that allows access to the current continuation (the current control context). This, in effect, provides Scheme with first-class labels and jumps. We show that the well-known formulae-as-types correspondence, which relates a constructive proof of a formula α to a program of type α, can be extended to a typed Idealized Scheme. What is surprising about this correspondence is that it relates classical proofs to typed programs. The existence of computationally interesting “classical programs” —programs of type α, where α holds classically, but not constructively — is illustrated by the definition of conjunctively, disjunctive, and existential types using standard classical definitions. We also prove that all evaluations of typed terms in Idealized Scheme are finite.