A sound and complete axiomatization of delimited continuations
A sound and complete axiomatization of delimited continuations
复制标题
定界延续的健全且完整的公理化
DOI:
10.1145/944705.944722
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
Masahito Hasegawa
中科院分区:
文献类型:
--
作者:
Yukiyoshi Kameyama;Masahito Hasegawa
The shift and reset operators, proposed by Danvy and Filinski, are powerful control primitives for capturing delimited continuations. Delimited continuation is a similar concept as the standard (unlimited) continuation, but it represents part of the rest of the computation, rather than the whole rest of computation. In the literature, the semantics of shift and reset has been given by a CPS-translation only. This paper gives a direct axiomatization of calculus with shift and reset, namely, we introduce a set of equations, and prove that it is sound and complete with respect to the CPS-translation. We also introduce a calculus with control operators which is as expressive as the calculus with shift and reset, has a sound and complete axiomatization, and is conservative over Sabry and Felleisen's theory for first-class continuations.