...
【24h】

A relational modal logic for higher-order stateful ADTs

机译:高阶有状态ADT的关系模态逻辑

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

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 McAllester’s idea of step-indexing has been used recently to develop syntactic Kripke logical relations for MLlike 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, G?del-L?b logic, S4 modal logic, and relational separation logic. Our model of LADR is based on Ahmed, Dreyer, and Rossberg’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和McAllester的分步索引概念被用于为混合功能和命令形式的数据抽象的ML语言开发语法Kripke逻辑关系。但是,尽管分步索引模型是功能强大的工具,但直接进行推理非常麻烦,因为人们被迫从事繁琐的分步索引算法以得出甚至简单的结果。在本文中,我们针对存在类型抽象,通用递归类型和高阶可变状态的情况下的高阶程序的方程推理提出了一种逻辑LADR。 LADR展示了Plotkin-Abadi逻辑,G?del-L?b逻辑,S4模态逻辑和关系分离逻辑等功能的新颖综合。我们的LADR模型基于Ahmed,Dreyer和Rossberg最先进的逐步索引Kripke逻辑关系,该关系旨在方便证明“依赖状态”的ADT的表示独立性。 LADR使人们能够在更高层次上表达此类证明,而无需计算步骤或对可能世界的微妙,逐步分层构造进行推理。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号