On Resolving Non-determinism in Choreographies

Choreographies specify multiparty interactions via message passing. A realization of a choreography is a composition of independent processes that behave as specified by the choreography. Existing relations of correctness/completeness between choreographies and realisations are based on models where choices are non-deterministic. Resolving non-deterministic choices into deterministic choices (e.g., conditional statements) is necessary to correctly characterise the relationship between choreographies and their implementations with concrete programming languages. We introduce a notion of realisability for choreographies --called whole-spectrum implementation-- where choices are still non-deterministic in choreographies, but are deterministic in their implementations. Our notion of whole spectrum implementation rules out deterministic implementations of roles that, no matter which context they are placed in, will never follow one of the branches of a non-deterministic choice. We give a type discipline for checking whole-spectrum implementations. As a case study, we analyse the POP protocol under the lens of whole-spectrum implementation.

READ FULL TEXT
research
11/15/2020

Coming to Terms with Your Choices: An Existential Take on Dependent Types

Type-level programming is an increasingly popular way to obtain addition...
research
08/27/2020

Memoized Pull-Tabbing for Functional Logic Programming

Pull-tabbing is an evaluation technique for functional logic programs wh...
research
04/27/2023

Reasoning about Choreographic Programs

Choreographic programming is a paradigm where a concurrent or distribute...
research
11/14/2021

Prognosis: Closed-Box Analysis of Network Protocol Implementations

We present Prognosis, a framework offering automated closed-box learning...
research
11/09/2017

Non-deterministic Characterisations

In this paper, we extend Jones' result -- that cons-free programming wit...
research
09/08/2021

Study of the Subtyping Machine of Nominal Subtyping with Variance (full version)

This is a study of the computing power of the subtyping machine behind K...
research
09/15/2018

Deterministic Implementations for Reproducibility in Deep Reinforcement Learning

While deep reinforcement learning (DRL) has led to numerous successes in...

Please sign up or login with your details

Forgot password? Click here to reset