A Principled Approach to Concurrency, Nondeterminism, and Asynchrony in Choreographies
Xueying Qin, Marco Peressotti, Fabrizio Montesi
Key points
From the paper's conclusion- We prove EPP sound and complete, establishing strong behavioural equivalence between the semantics of choreographies and their projected networks.
Abstract
Choreographic programming (CP) describes a distributed system as a global program and compiles it into communicating network programs via endpoint projection (EPP). Asynchrony captures the independent progress of communicating processes, while nondeterminism captures the range of behaviours that can arise from their interactions. However, the integration of both features into a theory of CP is absent. We present Nyarlathotep, the first asynchronous nondeterministic CP framework. We define its operational semantics of choreographies and networks using labelled transition systems. Besides asynchrony and choreographic nondeterminism, Nyarlathotep supports expressive features including general branching, out-of-order execution, and general recursion with parameterised procedures that processes can enter independently. We prove EPP sound and complete, establishing strong behavioural equivalence between the semantics of choreographies and their projected networks. We prove that projected networks are communication-safe and deadlock-free. We mechanised all our results in Lean 4.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Two Sides of the Same Proof: Extraction and Projection in Choreographic ProgrammingarXiv · 2026
- On Propositional Dynamic Logic and ConcurrencyACM Transactions on Computational Logic · 2026
- A Complete Axiomatisation of Distribution-Based Branching Bisimilarity for Non-Deterministic and Probabilistic ChoicearXiv · 2026
- On the Expressiveness of Asynchronous Processes with Nested Session TypesarXiv · 2026
- Overview and Roadmap of Team AutomataLogical Methods in Computer Science · 2026
- What is a Good Projection?: Correctness and Separation Results of End-Point ProjectionsarXiv · 2026