论文标题
会议煤炭:关于会话类型和通信协议的煤堡观点
Session Coalgebras: A Coalgebraic View on Session Types and Communication Protocols
论文作者
论文摘要
组成方法对于软件系统的开发和验证至关重要。它们允许将大型系统分解为较小的组件,同时可以推理组合系统的行为。对于并发和通信系统,基于行为类型系统的组成技术受到了很多关注。通过将通信协议作为类型抽象,这些类型系统可以静态地检查程序是否会根据某个协议(是否按某个顺序交换预期的消息)与渠道进行交互。在本文中,我们戴上了山地眼镜来研究会话类型,这是一种经过广泛研究的行为类型系统。我们提供了基于会话的并发状态的无语法描述。结果,我们根据规范的共同介绍重新发现了等效性,二元性和亚型关系。反过来,这种共同感应呈现使得可以优雅地得出具有$π$ calculus过程的亚型的可定义类型系统,在该过程中,山地状态将用作通道协议。走完整的圈子,我们在现有的会话类型系统上展示了一个结构,并表明从我们的山地角度产生的关系和类型系统与现有的关系一致。
Compositional methods are central to the development and verification of software systems. They allow to break down large systems into smaller components, while enabling reasoning about the behaviour of the composed system. For concurrent and communicating systems, compositional techniques based on behavioural type systems have received much attention. By abstracting communication protocols as types, these type systems can statically check that programs interact with channels according to a certain protocol, whether the intended messages are exchanged in a certain order. In this paper, we put on our coalgebraic spectacles to investigate session types, a widely studied class of behavioural type systems. We provide a syntax-free description of session-based concurrency as states of coalgebras. As a result, we rediscover type equivalence, duality, and subtyping relations in terms of canonical coinductive presentations. In turn, this coinductive presentation makes it possible to elegantly derive a decidable type system with subtyping for $π$-calculus processes, in which the states of a coalgebra will serve as channel protocols. Going full circle, we exhibit a coalgebra structure on an existing session type system, and show that the relations and type system resulting from our coalgebraic perspective agree with the existing ones.