arXiv:2610.29736cs.LOOct 2026

Manuscript Offprint

arXiv:2610.29736

Two Sides of the Same Proof: Extraction and Projection in Choreographic Programming

Matteo Acclavio, Giulia Manara, Fabrizio Montesi, Marco Peressotti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

MATTEO ACCLAVIO, GIULIA MANARA, FABRIZIO MONTESI, and MARCO PERESSOTTI,

FORM, University of Southern Denmark, Denmark

A new approach to the theory of choreographic languages has recently been proposed, based on the interpretation of choreographies with finite behaviors as proofs in an extension of linear logic. This paper further develops this approach to cyclic proofs to be capable of representing infinite behaviors, and prove a completeness result for choreographies with respect to the class of lock-free networks.

We show that in a choreographies-as-proofs correspondence, the proof equivalence induced by rule permutations corresponds to bisimilarity, and that, under adequate assumption on the procedure definitions, the proof search procedure has a finite search space, and can be used to extract a choreography from a network.

CCS Concepts: • Theory of computation → Process calculi; Linear logic; Operational semantics.

ACM Reference Format:

Matteo Acclavio, Giulia Manara, Fabrizio Montesi, and, Marco Peressotti. 2018. Two Sides of the Same Proof: Extraction and Projection in Choreographic Programming. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 32 pages. https://doi.org/XXXXXXX.XXXXXXX

1 Introduction

Choreographic programming (CP) is a programming paradigm for concurrent and distributed systems, where the programmer specifies a global description of the system, called choreography, and then the compiler produces a network of local programs that implement the choreography using a procedure called endpoint projection (EPP) [37, 38]. Correctness of EPP establishes a behavioral equivalence, usually in terms of strong bisimulation, between choreographies and their compiled networks produced by EPP. The advantage of CP is that global descriptions of the system avoids the occurrence of communication problems, such as deadlocks and race conditions, and therefore a network obtained through EPP is guaranteed to be free from such errors.

The theory of CP revolves around two central notions: realisability and expressivity.

• Realisability regards the question of which choreographies can be implemented by networks. This question is usually answered constructively by designing EPP procedures that, given a choreography, produce a network behaviorally equivalent of the choreography.

• Expressivity regards the question of which networks can be specified by choreographic languages. A constructive way to answer this question is to design extraction procedures that,

Authors' Contact Information: Matteo Acclavio; Giulia Manara; Fabrizio Montesi; Marco Peressotti,

FORM, University of Southern Denmark, Odense, Denmark.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

Conference acronym 'XX, Woodstock, NY

© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM ISBN 978-1-4503-XXXX-X/2018/06

https://doi.org/XXXXXXX.XXXXXXX

Acclavio et al.

Figure

Fig. 1. Realisability and expressivity of choreographies and networks.

given a network satisfying certain properties, produce a choreography behaviorally equivalent to the network.

Ideally, these two directions should form two facets of the same underlying correspondence. The diagram in fig. 1 summarises this relationship: realisable choreographies correspond to expressible networks via behavioural equivalence, the classes of projectable choreographies and projected networks identify the fragments connected by projection and the classes of extracted choreographies and extractable networks identify the fragments connected by extraction, respectively.

Most work on choreographic programming has focused on the first question. This is partly because endpoint projection gives a concrete compilation problem with immediate practical relevance, and partly because it is technically more tractable. The tractability stems from the fundamental difference the information directly available in networks and choreographies: at the network level, the overall behavior of the system emerges from local programs that describe the behavior of each endpoint separately, whereas at the choreographic level the overall behavior is explicit, with choreographic programs directly describing the intended communications and the recursive structure of infinite behaviors. Extraction therefore faces the more challenging task of reconstructing emergent global behavior from distributed local code, a notoriously difficult problem [30].

The few works that approach the expressivity question in CP [12, 16, 26] (or in the adjacent field of Multiparty Session Types [29]) provide extraction procedures and establish their correctness with ad hoc arguments, without a direct correspondence with projection. This leaves open a central question: what is the precise relationship between realisability and expressivity, that is, between networks that realise choreographies and networks expressible as choreographies, or, dually, between realisable choreographies and choreographies that express networks?

Acclavio et al. [2] made a first step towards answering the question by introducing a new perspective, called choreographies-as-proofs, which replaces algorithmic constructs used in previous attempts by proof-theoretic ones. As the name suggests, this approach is based on the interpretation of choreographies as proofs in an extension of linear logic, using a process-as-formulas interpretation of processes, similar what studied in [10, 25, 32, 33, 35, 41, 42], where the behavior of a process is represented as a formula in linear logic, and the operational semantics of processes is represented as a proof system for the formulas, following the logic-programming paradigm. The core outcome of this approach is the possibility to establish a correspondence between some special representations of the LTSs of a network, called execution trees, and derivations in a sequent calculus extending multiplicative additive (first-order) linear logic. Then, the extraction of a choreography from a network is obtained by performing a proof search with some restrictions on the search space, and the choreography naturally emerges from the structure of the proof. However, the results are limited to choreographies with finite behaviors.

References (21)