Domain-Aware Session Types (Extended Version)

07/02/2019
by   Luís Caires, et al.
0

We develop a generalization of existing Curry-Howard interpretations of (binary) session types by relying on an extension of linear logic with features from hybrid logic, in particular modal worlds that indicate domains. These worlds govern domain migration, subject to a parametric accessibility relation familiar from the Kripke semantics of modal logic. The result is an expressive new typed process framework for domain-aware, message-passing concurrency. Its logical foundations ensure that well-typed processes enjoy session fidelity, global progress, and termination. Typing also ensures that processes only communicate with accessible domains and so respect the accessibility relation. Remarkably, our domain-aware framework can specify scenarios in which domain information is available only at runtime; flexible accessibility relations can be cleanly defined and statically enforced. As a specific application, we introduce domain-aware multiparty session types, in which global protocols can express arbitrarily nested sub-protocols via domain migration. We develop a precise analysis of these multiparty protocols by reduction to our binary domain-aware framework: complex domain-aware protocols can be reasoned about at the right level of abstraction, ensuring also the principled transfer of key correctness properties from the binary to the multiparty setting.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/22/2021

A Decentralized Analysis of Multiparty Protocols

Protocols provide the unifying glue in concurrent and distributed softwa...
research
10/13/2020

Nested Session Types

Session types statically describe communication protocols between concur...
research
01/12/2023

A Minimal Formulation of Session Types

Session types are a type-based approach to the verification of message-p...
research
04/02/2019

A Message-Passing Interpretation of Adjoint Logic

We present a system of session types based on adjoint logic which genera...
research
04/17/2018

Parallel Complexity Analysis with Temporal Session Types

We study the problem of parametric parallel complexity analysis of concu...
research
11/18/2020

Probabilistic Resource-Aware Session Types

Session types guarantee that message-passing processes adhere to predefi...
research
04/29/2021

Session Logical Relations for Noninterference

Information flow control type systems statically restrict the propagatio...

Please sign up or login with your details

Forgot password? Click here to reset