Metraipolis › archive › dc_427fa7c14b47

Mechanizing Choreographic Programs and Hoare Logic with State Transformers — arXiv:2608.16346

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.16346
License (as archived)
CC0-1.0
Archived
2026-10-19T00:50:26.362Z
SHA-256 of the archived text
3fae3176ef72dc913b34a0a0746e3f20e7fb4db5ed07d379263e05849d00b540
Stable URL of this page
https://metraipolis.com/documento/dc_427fa7c14b47

How to cite

Mechanizing Choreographic Programs and Hoare Logic with State Transformers — arXiv:2608.16346 — arXiv (en), https://arxiv.org/abs/2608.16346 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_427fa7c14b47 (Metraipolis archive dc_427fa7c14b47, sha256 3fae3176ef72dc913b34a0a0746e3f20e7fb4db5ed07d379263e05849d00b540)
BibTeX
@misc{dc427fa7c14b47,
  title = {Mechanizing Choreographic Programs and Hoare Logic with State Transformers — arXiv:2608.16346},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.16346},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_427fa7c14b47; sha256 3fae3176ef72dc913b34a0a0746e3f20e7fb4db5ed07d379263e05849d00b540},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.16346. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Choreographic programming is a programming model for developing distributed applications where an entire communication protocol is written as a single program, which a compiler then projects to one process per participant. Choreographic programming abstracts over low-level network communication primitives such as sockets, and provides a high degree of safety guarantees with deadlock freedom ensured by construction. Mechanizing choreographies necessarily deals with both operations specific to distributed programming and standard (local) operations that also occur in non-distributed programs, as well as the typical issues of binding and substitution. We aim to sidestep the latter issues, thereby obtaining a more concise mechanization that focuses on the essential distributed aspects of choreographies. To this end, we use a method recently proposed by Thiemann to elegantly model deadlock-free processes in a dependently typed language: Using state transformers to represent the computations performed by each process. We bring the state transformer model to choreographies, allowing us to reduce the usual mechanization effort around binding and substitution, and to abstract over the details of the "local" aspects of the language. We mechanize in Lean a choreographic language that supports point-to-point communication, broadcasting, recursive procedures, and local stateful methods, allowing each participant to be assigned a different set of methods. We prove soundness and completeness of endpoint projection, establish deadlock freedom for the projected processes, prove confluence, and verify a Hoare logic for choreographies.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-18 in cs.PL).
Categorie arXiv: Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2608.16346 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T23:42:29.856Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-08-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).