一句话:提出公平异步会话子类型,可在无界消费前提前发送,并证明其不可判定、给出可靠算法与实现。
本文研究会话类型中异步消息传递系统的精化关系。已有异步会话子类型只允许相对于有界数量的消息消费提前发送;作者引入公平合规与公平精化,以刻画相对于无界消费提前发送的情形。受服务契约理论中的可控性启发,提出一种新的会话子类型,并证明它可靠地刻画公平精化。文章进一步证明公平精化与该子类型均不可判定,随后给出一个可靠算法,可处理具有潜在无界缓冲的实例,并在合成基准上实现和评估。
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.
@article{paperbot2717,
title = {Fair Asynchronous Session Subtyping},
author = {Mario Bravetti and Julien Lange and Gianluigi Zavattaro},
journal = {Logical Methods in Computer Science},
volume = {Volume 20, Issue 4},
year = {2024},
doi = {10.46298/lmcs-20(4:5)2024}
}