pith. sign in

arxiv: 2506.20356 · v4 · pith:OCKPM3YZnew · submitted 2025-06-25 · 💻 cs.PL

Deadlock-free Context-free Session Types

classification 💻 cs.PL
keywords programssessiontypescontext-freedeadlockconcurrentfreedomnever
0
0 comments X
read the original abstract

We tackle the problem of statically ensuring that message-passing programs never run into deadlocks. We focus on concurrent functional programs governed by context-free session types, which can express rich tree-like structures not expressible in standard session types. We propose a new type system based on context-free session types: it enforces both protocol conformance and deadlock freedom, also for programs implementing cyclic communication topologies with recursion and polymorphism. We show how the priority-based approach to deadlock freedom can be extended to this expressive setting. We prove that well-typed concurrent programs respect their protocols and never deadlock.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.