On the Expressiveness of Asynchronous Processes with Nested Session Types
Abstract
Session types are a type-based approach to correct message-passing programs, where types specify protocols for channels and type checking guarantees communication correctness. Traditional session types express regular protocols only, which leaves out many protocols found in practice. Aiming at overcoming this limitation, Nested Session Types (NSTs) can specify nested recursive protocols. NSTs are known to be characterised by one-counter machines and deterministic context-free languages. In this paper, we study the expressiveness of ASP (Asynchronous Session Processes), the process model associated with NSTs as introduced by Das et al. We prove that AST is Turing complete by giving a correct encoding of two-counter machines into typed processes. Our encoding uses a non-trivial state-aware representation of counters and instructions that is neatly governed by NSTs.
Create a lesson
Metadata
- Categories
- cs.PL, cs.LO
- Journal
- EPTCS 458, 2026, pp. 158-177
- Comments
- In Proceedings EXPRESS/SOS 2026, arXiv:2611.38883. A full version of this paper, containing the proofs and appendices, appears as arXiv:2610.32558
Related papers
On the Expressiveness of Asynchronous Processes with Nested Session Types (Extended Version)
Shared title terminologycs.PLSjors Wortelboer, Dan Frumin, Jorge A. Pérez
Model Checking Probabilistic Multiparty Session Types
Shared title terminologycs.PLAleksander Junge, Leo Seojun Lee, Joseph Paulus et al.
A View from the Bridge: Detecting Boundary Type Errors in Native Extensions of Dynamic Languages
Shared title terminologycs.PLThodoris Sotiropoulos, Georgios Alexopoulos, Dimitris Mitropoulos
Verifying Type Soundness for Nontransitive Information Flow Security
Shared title terminologycs.PLChenyi Zhang
An End-to-End Theory for Compositional Symbolic Execution: From Expressive Specifications to SMT (Extended Version)
Shared title terminologycs.PLShivanandan Tamil Kumaran, Andreas Lööw, Philippa Gardner
You Have Mail: Set-Theoretic Types for Actors
Shared title terminologycs.PLGiuseppe Castagna, Luca Padovani, Daniele Varacca et al.