@inproceedings{1fa2cf751c4e4fdfa51d5eff89c9d931,
title = "Now It Compiles! Certified Automatic Repair of Uncompilable Protocols",
abstract = "Choreographic programming is a paradigm where developers write the global specification (called choreography) of a communicating system, and then a correct-by-construction distributed implementation is compiled automatically. Unfortunately, it is possible to write choreographies that cannot be compiled, because of issues related to an agreement property known as knowledge of choice. This forces programmers to reason manually about implementation details that may be orthogonal to the protocol that they are writing. Amendment is an automatic procedure for repairing uncompilable choreographies. We present a formalisation of amendment from the literature, built upon an existing formalisation of choreographic programming. However, in the process of formalising the expected properties of this procedure, we discovered a subtle counterexample that invalidates the original published and peer-reviewed pen-and-paper theory. We discuss how using a theorem prover led us to both finding the issue, and stating and proving a correct formulation of the properties of amendment.",
keywords = "choreographic programming, compilation, program repair, theorem proving",
author = "Lu{\'i}s Cruz-Filipe and Fabrizio Montesi",
note = "Funding Information: Funding This work was partially supported by Villum Fonden, grants no. 29518 and 50079, and the Independent Research Fund Denmark, grant no. 0135-00219. Publisher Copyright: {\textcopyright} Lu{\'i}s Cruz-Filipe and Fabrizio Montesi; licensed under Creative Commons License CC-BY 4.0 14th International Conference on Interactive Theorem Proving (ITP 2023); 14th International Conference on Interactive Theorem Proving, ITP 2023 ; Conference date: 31-07-2023 Through 04-08-2023",
year = "2023",
month = jul,
doi = "10.4230/LIPIcs.ITP.2023.11",
language = "English",
volume = "268",
series = "Leibniz International Proceedings in Informatics, LIPIcs",
publisher = "Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing",
editor = "Adam Naumowicz and Rene Thiemann",
booktitle = "14th International Conference on Interactive Theorem Proving, ITP 2023",
}