A Formal Theory of Choreographic Programming

Luís Cruz-Filipe, Fabrizio Montesi, Marco Peressotti [2022].
In CoRR abs/2209.01886.

Abstract
Choreographic programming is a paradigm for writing coordination plans for distributed systems from a global point of view, from which correct-by-construction decentralised implementations can be generated automatically. Theory of choreographies typically includes a number of complex results that are proved by structural induction. The high number of cases and the subtle details in some of these proofs has led to important errors being found in published works. In this work, we formalise the theory of a choreographic programming language in Coq. Our development includes the basic properties of this language, a proof of its Turing completeness, a compilation procedure to a process language, and an operational characterisation of the correctness of this procedure. Our formalisation experience illustrates the benefits of using a theorem prover: we get both an additional degree of confidence from the mechanised proof, and a significant simplification of the underlying theory. Our results offer a foundation for the future formal development of choreographic languages.
Links
doi.org
Additional notes
None
Cite (BibTeX)
Click to expand
@article{DBLP:journals/corr/abs-2209-01886,
  author       = {Lu{\'{\i}}s Cruz{-}Filipe and
                  Fabrizio Montesi and
                  Marco Peressotti},
  title        = {A Formal Theory of Choreographic Programming},
  journal      = {CoRR},
  volume       = {abs/2209.01886},
  year         = {2022},
  url          = {https://doi.org/10.48550/arXiv.2209.01886},
  doi          = {10.48550/ARXIV.2209.01886},
  eprinttype    = {arXiv},
  eprint       = {2209.01886},
  timestamp    = {Mon, 26 Sep 2022 18:12:06 +0200},
  biburl       = {https://dblp.org/rec/journals/corr/abs-2209-01886.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}