arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.08521cs.PLcs.LO
收藏

经典(共)递归:力学

Classical (Co)Recursion: Mechanics

Paul Downen, Zena M. Ariola

摘要:

在编程理论和实践中,原语递归是一个成熟的、易于理解的主题。然而,它的对偶,原始的共递归,被低估,仍然被视为外来的。我们的目标是把它们都放在平等的基础上,给原始corecursion计算的基础上,给一个终止演算类似于原来的计算基础的递归。我们展示了如何在一个抽象的机器的实现细节加强他们的联系,语法推导corecursion递归通过逻辑对偶。我们还观察到的原始(共)递归组合子的计算复杂性的评价策略的影响:调用的名称允许更有效的递归,但调用的值允许更有效的corecursion。

英文摘要:

Primitive recursion is a mature, well-understood topic in the theory and practice of programming. Yet its dual, primitive corecursion, is underappreciated and still seen as exotic. We aim to put them both on equal footing by giving a foundation for primitive corecursion based on computation, giving a terminating calculus analogous to the original computational foundation of recursion. We show how the implementation details in an abstract machine strengthens their connection, syntactically deriving corecursion from recursion via logical duality. We also observe the impact of evaluation strategy on the computational complexity of primitive (co)recursive combinators: call-by-name allows for more efficient recursion, but call-by-value allows for more efficient corecursion.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑