逻辑步索引逻辑关系
Logical Step-Indexed Logical Relations
摘要:
Appel和McAllester的“step-indexed”逻辑关系已被证明是一种简单而有效的技术,用于推理具有语义上有趣的类型(如通用递归类型和通用引用类型)的语言中的程序。然而,使用步骤索引模型的证明通常涉及繁琐,容易出错和证明模糊的步骤索引算法,因此重要的是要开发干净,高级,等式证明原则,避免提及步骤索引。在本文中,我们展示了如何以一种抽象而优雅的方式推理二进制步进索引逻辑关系。具体来说,我们定义了一个逻辑LSLR,它的灵感来自于Plotkin和Abadi的参数化逻辑,但也支持递归定义的关系,通过模态“后来”的运营商从Appel,Melliès,Richards,和Quillon的“非常模态模型”的文件。我们在LSLR编码的逻辑关系的推理相关的程序调用的值系统F扩展一般递归类型。利用这种逻辑关系,我们得到了一组有用的规则,我们可以证明上下文等价和近似结果,而不计步骤。
英文摘要:
Appel and McAllester's "step-indexed" logical relations have proven to be a simple and effective technique for reasoning about programs in languages with semantically interesting types, such as general recursive types and general reference types. However, proofs using step-indexed models typically involve tedious, error-prone, and proof-obscuring step-index arithmetic, so it is important to develop clean, high-level, equational proof principles that avoid mention of step indices. In this paper, we show how to reason about binary step-indexed logical relations in an abstract and elegant way. Specifically, we define a logic LSLR, which is inspired by Plotkin and Abadi's logic for parametricity, but also supports recursively defined relations by means of the modal "later" operator from Appel, Melliès, Richards, and Vouillon's "very modal model" paper. We encode in LSLR a logical relation for reasoning relationally about programs in call-by-value System F extended with general recursive types. Using this logical relation, we derive a set of useful rules with which we can prove contextual equivalence and approximation results without counting steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。