计算机科学 > 程序设计语言
[提交于 2010年12月22日]
标题:Termination Casts: A Flexible Approach to Termination with General Recursion
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper proposes a type-and-effect system called Teqt, which distinguishes terminating terms and total functions from possibly diverging terms and partial functions, for a lambda calculus with general recursion and equality types. The central idea is to include a primitive type-form "Terminates t", expressing that term t is terminating; and then allow terms t to be coerced from possibly diverging to total, using a proof of Terminates t. We call such coercions termination casts, and show how to implement terminating recursion using them. For the meta-theory of the system, we describe a translation from Teqt to a logical theory of termination for general recursive, simply typed functions. Every typing judgment of Teqt is translated to a theorem expressing the appropriate termination property of the computational part of the Teqt term.
提交历史
来自:EPTCS[v1] 2010年12月22日 星期三 07:09:39 UTC