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

证明相关的逻辑关系用于名称生成

Proof-Relevant Logical Relations for Name Generation

Nick Benton, Martin Hofmann, Vivek Nigam

AI总结:

本文提出用证明相关逻辑关系为带递归的名称生成语言构建直接风格模型,解决动态分配单子构造失效问题,并提供一个易于理解的介绍性场景。

摘要:

Pitts和Stark的$\ u$-演算是研究高阶语言中名称生成的上下文等价性问题的一个典型的全函数语言。为$\ u$-演算构建验证关于名称的基本等价的模型,可以使用函子范畴或名义集合,并采用动态分配单子来模拟可能分配新名称的计算。然而,如果在该语言中加入递归,并尝试将模型从(名义)集合适配到(名义)域,则分配单子的直接风格构造不再有效。此前,这个问题通过使用结合动态分配和连续性的单子来解决,但牺牲了一定的抽象性。本文使用新颖的证明相关逻辑关系框架,提出了一个带有递归的类$\ u$-演算语言的直接风格模型,其中逻辑关系还包含对象(或证明)来展示程序(的语义对应物)的等价性。除了为旧问题提供新的解决方案外,这项工作还提供了一个易于理解的场景来介绍证明相关逻辑关系的使用,避免了将其用于更复杂语言时带来的额外复杂性。

英文摘要:

Pitts and Stark's $ν$-calculus is a paradigmatic total language for studying the problem of contextual equivalence in higher-order languages with name generation. Models for the $ν$-calculus that validate basic equivalences concerning names may be constructed using functor categories or nominal sets, with a dynamic allocation monad used to model computations that may allocate fresh names. If recursion is added to the language and one attempts to adapt the models from (nominal) sets to (nominal) domains, however, the direct-style construction of the allocation monad no longer works. This issue has previously been addressed by using a monad that combines dynamic allocation with continuations, at some cost to abstraction. This paper presents a direct-style model of a $ν$-calculus-like language with recursion using the novel framework of proof-relevant logical relations, in which logical relations also contain objects (or proofs) demonstrating the equivalence of (the semantic counterparts of) programs. Apart from providing a fresh solution to an old problem, this work provides an accessible setting in which to introduce the use of proof-relevant logical relations, free of the additional complexities associated with their use for more sophisticated languages.

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

↑