Mechanizing Choreographic Programs and Hoare Logic with State Transformers
Timon BöhlerSimon DanielDRDavid RichterPWPascal Weisenburger
Mira Mezini Timon Böhler
Simon Daniel
DRDavid Richter
PWPascal Weisenburger

Mira Mezini
+5
This paper mechanizes a choreographic programming language in Lean, using state transformers (each process is a function from its initial state to a final state and a communication trace) to model local computations. This approach reduces the mechanization effort around binding and substitution, focusing on distributed aspects. The language supports point-to-point communication, broadcasting, recursion, and local stateful methods. The mechanization proves soundness and completeness of endpoint projection, deadlock freedom and confluence, and verifies a Hoare logic for choreographies.

arXiv ·
· August 17, 2026