会话的大协奏曲:会话的公平终止
Concerto Grosso for Sessions: Fair Termination of Sessions
AI总结:
本文在 Agda 中机械化推理系统元理论,研究会话类型通信中的公平终止及其与无锁性的关系。
摘要:
会话是消息传递系统中的一个基本概念。会话是各方之间通信的抽象概念,其中每一方都拥有一个端点。会话类型是分配给端点的类型,用于静态和动态地强制保证通信的某些期望属性,例如无死锁。并发系统的属性通常分为安全性和活性属性,根据其所属类别,会使用不同的(对偶的)技术来定义某个属性。然而,存在一些需要混合这两种技术的属性,而在证明助手(proof assistant,例如 Agda、Coq 等)中,定义这些属性的挑战会进一步加剧;证明助手是允许用户形式化刻画并证明定理的工具。具体而言,我们在 Agda 中机械化了推理系统的元理论。在基于会话的语境中可以研究的有趣属性里,我们研究公平终止,即那些会话在公平性假设下始终能够最终到达成功终止的属性。公平终止蕴含许多理想且众所周知的属性,例如无锁(lock freedom)。此外,一个无锁会话并不意味着其他会话也是无锁的。另一方面,如果我们考察一个会话,并假设所有其他会话都公平终止,那么我们可以得出结论:被分析的这个会话也公平终止。
英文摘要:
Sessions are a fundamental notion in message-passing systems. A session is an abstract notion of communication between parties where each one owns an endpoint. Session types are types that are assigned to the endpoints and that are used to statically and dynamically enforce some desired properties of the communications, such as the absence of deadlocks. Properties of concurrent systems are usually divided in safety and liveness ones and depending on the class it belongs to, a property is defined using different (dual) techniques. However, there exist some properties that require to mix both techniques and the challenges in defining them are exacerbated in proof assistants (e.g. Agda, Coq, . . . ), that is, tools that allow users to formally characterize and prove theorems. In particular, we mechanize the meta-theory of inference systems in Agda. Among the interesting properties that can be studied in the session-based context, we study fair termination which is the property of those sessions that can always eventually reach successful termination under a fairness assumption. Fair termination implies many desirable and well known properties, such as lock freedom. Moreover, a lock free session does not imply that other sessions are lock free as well. On the other hand, if we consider a session and we assume that all the other ones are fairly terminating, we can conclude that the one under analysis is fairly terminating as well.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。