计算机科学 > 计算机科学中的逻辑
[提交于 2010年12月22日]
标题:Beating the Productivity Checker Using Embedded Languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Some total languages, like Agda and Coq, allow the use of guarded corecursion to construct infinite values and proofs. Guarded corecursion is a form of recursion in which arbitrary recursive calls are allowed, as long as they are guarded by a coinductive constructor. Guardedness ensures that programs are productive, i.e. that every finite prefix of an infinite value can be computed in finite time. However, many productive programs are not guarded, and it can be nontrivial to put them in guarded form. This paper gives a method for turning a productive program into a guarded program. The method amounts to defining a problem-specific language as a data type, writing the program in the problem-specific language, and writing a guarded interpreter for this language.
提交历史
来自:EPTCS[v1] 2010年12月22日 星期三 07:09:30 UTC