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

公平异步会话子类型

Fair Asynchronous Session Subtyping

Mario Bravetti, Julien Lange, Gianluigi Zavattaro

AI总结:

本文研究异步会话类型中相对于无限消息消费提前发送消息的问题,提出基于公平合规性和可控性的新型公平异步会话子类型,证明其不可判定性,给出可靠算法及其实证评估。

摘要:

会话类型被广泛用作异步消息传递系统的抽象。这类抽象的精化至关重要,因为它允许在不损害给定组件与系统其余部分兼容性的前提下对其进行改进。在会话类型领域,最通用的精化概念是异步会话子类型,它允许相对于有限数量的消息消费提前发送消息。本文研究了相对于无限数量的消费提前发送消息的可能性:为此,我们提出考虑异步会话类型上的公平合规性,以及将公平精化作为维持该合规性的关系。基于此,我们提出了一种新颖的会话子类型变体,它借鉴了服务契约理论中的可控性概念,是公平精化的可靠刻画。此外,我们证明公平精化和我们提出的新型子类型都是不可判定的。我们还提出了一种可靠算法,能够处理具有潜在无限缓冲特性的示例。最后,我们给出了该算法的实现,并在合成基准上对其进行了实证评估。

英文摘要:

Session types are widely used as abstractions of asynchronous message passing systems. Refinement for such abstractions is crucial as it allows improvements of a given component without compromising its compatibility with the rest of the system. In the context of session types, the most general notion of refinement is asynchronous session subtyping, which allows message emissions to be anticipated w.r.t. a bounded amount of message consumptions. In this paper we investigate the possibility to anticipate emissions w.r.t. an unbounded amount of consumptions: to this aim we propose to consider fair compliance over asynchronous session types and fair refinement as the relation that preserves it. This allows us to propose a novel variant of session subtyping that leverages the notion of controllability from service contract theory and that is a sound characterisation of fair refinement. In addition, we show that both fair refinement and our novel subtyping are undecidable. We also present a sound algorithm which deals with examples that feature potentially unbounded buffering. Finally, we present an implementation of our algorithm and an empirical evaluation of it on synthetic benchmarks.

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

↑