There exists a broad family of multiparty sessions in which the progress of one session participant is not unconditional, but depends on the choices performed by other participants. These sessions fall outside the scope of currently available session type systems that guarantee progress. In this work we propose the first type system ensuring that well-typed multiparty sessions, including those exhibiting the aforementioned dependencies, fairly terminate. Fair termination is termination under a fairness assumption that disregards those interactions deemed unfair and therefore unrealistic. Fair termination, combined with the usual safety properties ensured within sessions, not only is desirable per se, but it entails progress and enables a compositional form of static analysis such that the well-typed composition of fairly terminating sessions results in a fairly terminating program.
翻译:广泛存在多党制会议,其中一名与会者的进度不是无条件的,而是取决于其他与会者作出的选择。这些会议不属于保证进展的现有届会类型系统的范围。在这项工作中,我们提出第一种类型制度,确保类型良好的多党会议,包括展示上述依赖关系的会议,公平终止。公平终止是指在公平假设下终止,而无视这些互动被视为不公平,因此不现实。公平终止,加上会议期间确保的通常安全性,不仅本身是可取的,而且需要取得进展,并能够形成一种静态分析的形式,使公平终止会议的结构能够导致公平的终止方案。