计算机科学 > 计算机科学中的逻辑
[提交于 2023年2月28日]
标题:Now It Compiles! Certified Automatic Repair of Uncompilable Protocols
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要: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.
提交历史
来自:Luís Cruz-Filipe[v1] 2023年2月28日 星期二 15:02:27 UTC