Multiparty Session Types Meet Communicating Automata [chapter]

Pierre-Malo Deniélou, Nobuko Yoshida
2012 Lecture Notes in Computer Science  
Communicating finite state machines (CFSMs) represent processes which communicate by asynchronous exchanges of messages via FIFO channels. Their major impact has been in characterising essential properties of communications such as freedom from deadlock and communication error, and buffer boundedness. CFSMs are known to be computationally hard: most of these properties are undecidable even in restricted cases. At the same time, multiparty session types are a recent typed framework whose main
more » ... ture is its ability to efficiently enforce these properties for mobile processes and programming languages. This paper ties the links between the two frameworks to achieve a two-fold goal. On one hand, we present a generalised variant of multiparty session types that have a direct semantical correspondence to CFSMs. Our calculus can treat expressive forking, merging and joining protocols that are absent from existing session frameworks, and our typing system can ensure properties such as safety, boundedness and liveness on distributed processes by a polynomial time type checking. On the other hand, multiparty session types allow us to identify a new class of CF-SMs that automatically enjoy the aforementioned properties, generalising Gouda et al's work [12] (for two machines) to an arbitrary number of machines. H. Seidl (Ed.): ESOP 2012, LNCS 7211, pp. 194-213, 2012. c Springer-Verlag Berlin Heidelberg 2012 1. A simple one-message (Msg of type nat) is exchanged between Alice and Bob. 2. A protocol with a simple choice between messages Book and Film.
doi:10.1007/978-3-642-28869-2_10 fatcat:b5gr7ngjxnadpkncmfbputuafu