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

抽象效果与证明相关的逻辑关系

Abstract Effects and Proof-Relevant Logical Relations

Nick Benton, Martin Hofmann, Vivek Nigam

摘要:

我们引入一种新的变体的逻辑关系,映射类型不仅是部分等价关系的价值观,因为通常这样做,而是证明相关的概括,即setoids。setoid的对象建立了值存在于语义类型中,而它的态射被理解为语义等价的证明。向证明相关性的过渡解决了传统克里普克逻辑关系中对未来世界使用存在量化所引起的两个众所周知的问题:可容许性失败和虚假的函数依赖。我们说明了新的格式与两个应用程序:一个直接风格的验证皮茨和斯塔克的等价“新”和指称语义的区域为基础的效果系统,支持类型抽象的意义上,只有外部可见的效果需要跟踪;不可观察的内部修改,如重组的搜索树或懒惰的初始化,可以算作“纯”或“只读”。这种“虚构的纯粹性”使模块的客户能够比传统效果系统更好地验证基于效果的程序等效性。

英文摘要:

We introduce a novel variant of logical relations that maps types not merely to partial equivalence relations on values, as is commonly done, but rather to a proof-relevant generalisation thereof, namely setoids. The objects of a setoid establish that values inhabit semantic types, whilst its morphisms are understood as proofs of semantic equivalence. The transition to proof-relevance solves two well-known problems caused by the use of existential quantification over future worlds in traditional Kripke logical relations: failure of admissibility, and spurious functional dependencies. We illustrate the novel format with two applications: a direct-style validation of Pitts and Stark's equivalences for "new" and a denotational semantics for a region-based effect system that supports type abstraction in the sense that only externally visible effects need to be tracked; non-observable internal modifications, such as the reorganisation of a search tree or lazy initialisation, can count as `pure' or `read only'. This `fictional purity' allows clients of a module soundly to validate more effect-based program equivalences than would be possible with traditional effect systems.

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

↑