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

块结构与范围挤压:在天真与全知之间

Block structure vs scope extrusion: between innocence and omniscience

Andrzej S. Murawski, Nikos Tzevelekos

摘要:

我们用博弈语义学的方法研究了块结构的语义意义。为此,我们引入了块无辜的战略和块分配存储的按值计算的概念,通过健全性,有限的可定义性和普遍性的结果。这使我们处于一个很好的位置进行比较研究的纯函数计算,计算块存储以及与动态内存分配。例如,我们可以证明,当涉及的项(开或闭)是基类型时,动态变量分配可以完全替换为块分配变量,而当涉及二阶类型时,块分配存储可以替换为纯函数计算。为了进一步说明块结构的限制性,我们证明了一个有限片段的呼叫值的理想化的Algol,它是已知的,允许动态内存分配导致undecidability的可判定性结果。

英文摘要:

We study the semantic meaning of block structure using game semantics. To that end, we introduce the notion of block-innocent strategies and characterise call-by-value computation with block-allocated storage through soundness, finite definability and universality results. This puts us in a good position to conduct a comparative study of purely functional computation, computation with block storage as well as that with dynamic memory allocation. For example, we can show that dynamic variable allocation can be replaced with block-allocated variables exactly when the term involved (open or closed) is of base type and that block-allocated storage can be replaced with purely functional computation when types of order two are involved. To illustrate the restrictive nature of block structure further, we prove a decidability result for a finitary fragment of call-by-value Idealized Algol for which it is known that allowing for dynamic memory allocation leads to undecidability.

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

↑