计算机科学 > 程序设计语言
[提交于 2019年4月15日 (v1),最后修订于 2019年10月15日 (此版本, v3)]
标题:Specifying Concurrent Programs in Separation Logic: Morphisms and Simulations
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In addition to pre- and postconditions, program specifications in recent separation logics for concurrency have employed an algebraic structure of resources---a form of state transition system---to describe the state-based program invariants that must be preserved, and to record the permissible atomic changes to program state. In this paper we introduce a novel notion of resource morphism, i.e. structure-preserving function on resources, and show how to effectively integrate it into separation logic, using an associated notion of morphism-specific simulation. We apply morphisms and simulations to programs verified under one resource, to compositionally adapt them to operate under another resource, thus facilitating proof reuse.