Affiliation:
1. Radboud University Nijmegen, Netherlands
2. Aarhus University, Denmark
Abstract
We develop an account of dependent session protocols in concurrent separation logic for a functional language with message-passing.
Inspired by minimalistic session calculi,
we present a layered design:
starting from mutable references, we build one-shot channels, session channels, and imperative channels.
Whereas previous work on dependent session protocols in concurrent separation logic required advanced mechanisms such as recursive domain equations and higher-order ghost state,
we only require the most basic mechanisms to verify that our one-shot channels satisfy one-shot protocols,
and subsequently treat their specification as a black box on top of which we define dependent session protocols.
This has a number of advantages in terms of simplicity, elegance, and flexibility:
support for subprotocols and guarded recursion automatically transfers from the one-shot protocols to the dependent session protocols,
and we easily obtain various forms of channel closing.
Because the meta theory of our results is so simple,
we are able to give all definitions as part of this paper,
and mechanize all our results using the Iris framework in less than 1000 lines of Coq.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献