【24h】

A Relational Modal Logic for Higher-Order Stateful ADTs

机译:高阶状态拟设的关系模态逻辑

获取原文
获取外文期刊封面目录资料

摘要

The method of logical relations is a classic technique for proving the equivalence of higher-order programs that implement the same observable behavior but employ different internal data representations. Although it was originally studied for pure, strongly normalizing languages like System F, it has been extended over the past two decades to reason about increasingly realistic languages. In particular, Appel and McAUester's idea of step-indexing has been used recently to develop syntactic Kripke logical relations for ML-like languages that mix functional and imperative forms of data abstraction. However, while step-indexed models are powerful tools, reasoning with them directly is quite painful, as one is forced to engage in tedious step-index arithmetic to derive even simple results. In this paper, we propose a logic LADR for equational reasoning about higher-order programs in the presence of existential type abstraction, general recursive types, and higher-order mutable state. LADR exhibits a novel synthesis of features from Plotkin-Abadi logic, Goedel-Loeb logic, S4 modal logic, and relational separation logic. Our model of LADR is based on Ahmed, Dreyer, and Ross-berg's state-of-the-art step-indexed Kripke logical relation, which was designed to facilitate proofs of representation independence for "state-dependent" ADTs. LADR enables one to express such proofs at a much higher level, without counting steps or reasoning about the subtle, step-stratified construction of possible worlds.
机译:逻辑关系方法是一种用于证明实现相同可观察行为但使用不同的内部数据表示的等价性的经典技术。虽然最初研究了System F这样的纯正,强烈规范化的语言,但它在过去二十年中延伸到越来越现实的语言。特别是,Appel和Mcauester最近已经使用了逐步索引的想法,以便为ML类似的ML的语言开发句法Kripke逻辑关系,这些语言混合功能和命令的数据抽象形式。但是,虽然阶梯索引的模型是强大的工具,但是直接推理它们是非常痛苦的,因为一个人被迫从事繁琐的阶梯指数算法来导出甚至简单的结果。在本文中,我们提出了一个逻辑LADR,用于在存在类型抽象,一般递归类型和高阶变形状态存在下进行高阶节目的等级推理。 Ladr展示了来自Plotkin-Abadi逻辑,Goedel-Loeb逻辑,S4模态逻辑和关系分离逻辑的新颖的合成。我们的Ladr模式基于Ahmed,Dreyer和Ross-Berg的最先进的克里普克逻辑关系,旨在促进“国家依赖”ADTS的代表性独立性。 LADR使一个人能够以更高的水平表达这样的证明,而不计算有关可能的世界的微妙,阶梯分层建设的步骤或推理。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号