Typed Non-determinism in Concurrent Calculi: The Eager Way
Bas van den Heuvel, Daniele Nantes-Sobrinho, Joseph W. N. Paulus, Jorge A. Pérez
TL;DR
This work introduces an eagerly committing semantics for a session-typed π-calculus with non-deterministic choice, aligning non-determinism with linear resource control. It extends prior lazy-semantics foundations by providing a simpler operational model for reductions while preserving type preservation and deadlock-freedom under the eager rules. The paper also develops a resource λ-calculus with unrestricted resources (λ_C) and proves subject reduction/expansion within an intersection-type framework, then encodes λ_C into the eagerly semantics of ${\mathsf{s}\pi^{!}}$ and analyzes static and dynamic correctness. A comparative study between lazy and eager semantics via behavioral equivalences demonstrates both the strengths and limitations of each approach, highlighting that eager semantics can yield looser dynamic correspondences but offers simpler reasoning and practical expressivity. Overall, the work advances resource-sensitive concurrency by providing a clearer eager framework that remains faithful to session-type discipline and supports meaningful translations from resource-aware λ-calculi.
Abstract
We consider the problem of designing typed concurrent calculi with non-deterministic choice in which types leverage linearity for controlling resources, thereby ensuring strong correctness properties for processes. This problem is constrained by the delicate tension between non-determinism and linearity. Prior work developed a session-typed π-calculus with standard non-deterministic choice; well-typed processes enjoy type preservation and deadlock-freedom. Central to this typed calculus is a lazy semantics that gradually discards branches in choices. This lazy semantics, however, is complex: various technical elements are needed to describe the non-deterministic behavior of typed processes. This paper develops an entirely new approach, based on an eager semantics, which more directly represents choices and commitment. We present a π-calculus in which non-deterministic choices are governed by this eager semantics and session types. We establish its key correctness properties, including deadlock-freedom, and demonstrate its expressivity by correctly translating a typed resource λ-calculus.
