Fabrizio Montesi
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Fabrizio Montesi has a total of 92 co-authors. Here are the top co-authors by number of shared publications:
- Marco Peressotti
FORM, University of Southern Denmark, Odense, Denmark
24 shared publications - Saverio Giallorenzo
University of Bologna
21 shared publications - Luís Cruz-Filipe
Department of Mathematics and Computer Science, University of Southern Denmark, Odense, Denmark
16 shared publications Claudio Guidi
ItalianaSoftware
12 shared publications- Ivan Lanese
University of Bologna & Inria - Université Côte d’Azur
10 shared publications Luís Cruz-Filipe
Department of Mathematics and Computer Science University of Southern Denmark
9 shared publications
Latest Publications
- Open Access
- 24 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computational Logic
- Vol. 28 (1) , 1-33
On Propositional Dynamic Logic and Concurrency
Dynamic logic is a powerful approach to reasoning about programs and their executions, obtained by extending classical logic with modalities that can express program executions as formulas. However, the use of dynamic logic in the setting of concurrency has proved problematic because of the challenge of capturing interleaving. This challenge stems from the fact that, traditionally, programs are represented by their sets of traces. These sets are then expressed as elements of a Kleene algebra, for which it is not possible to decide equality in the presence of the commutations required to model interleaving. In this work, we generalise propositional dynamic logic (PDL) to a logic framework we call operational propositional dynamic logic (OPDL), which departs from tradition by distinguishing programs from their traces. Traces are generated by an arbitrary operational semantics that we take as a parameter, making our approach applicable to different program syntaxes and semantics. To develop our framework, we provide the first proof of cut-elimination for a finitely branching non-wellfounded sequent calculus for PDL. Thanks to this result, we can effortlessly prove adequacy for PDL and extend these results to OPDL. We conclude by discussing OPDL for two representative cases of concurrency: the Calculus of Communicating Systems (CCS), where interleaving is obtained by parallel composition, and Choreographic Programming, where interleaving is obtained by out-of-order execution.
- 24 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computational Logic
- Vol. 28 (1) , 1-33
Open AccessOn Propositional Dynamic Logic and Concurrency
Dynamic logic is a powerful approach to reasoning about programs and their executions, obtained by extending classical logic with modalities that can express program executions as formulas. However, the use of dynamic logic in the setting of concurrency has proved problematic because of the challenge of capturing interleaving. This challenge stems from the fact that, traditionally, programs are represented by their sets of traces. These sets are then expressed as elements of a Kleene algebra, for which it is not possible to decide equality in the presence of the commutations required to model interleaving. In this work, we generalise propositional dynamic logic (PDL) to a logic framework we call operational propositional dynamic logic (OPDL), which departs from tradition by distinguishing programs from their traces. Traces are generated by an arbitrary operational semantics that we take as a parameter, making our approach applicable to different program syntaxes and semantics. To develop our framework, we provide the first proof of cut-elimination for a finitely branching non-wellfounded sequent calculus for PDL. Thanks to this result, we can effortlessly prove adequacy for PDL and extend these results to OPDL. We conclude by discussing OPDL for two representative cases of concurrency: the Calculus of Communicating Systems (CCS), where interleaving is obtained by parallel composition, and Choreographic Programming, where interleaving is obtained by out-of-order execution.
- Open Access
- 24 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computational Logic
- Vol. 28 (1) , 1-61
π LL: Reconciling Linear Logic, the π -calculus and their Metatheory
The Curry–Howard correspondence between natural deduction and the \(\lambda\) -calculus has been a tremendous source of inspiration for typed functional languages. Initiated by Abramsky [1994], the Proofs as Processes agenda seeks a similar foundation for typed concurrent languages, in terms in 1994 of a connection between linear logic [Girard, 1987] and the \(\pi\) -calculus [Milner et al., 1992]. Recent advances established solid correspondences at the levels of types and syntax. Linear propositions correspond to session types [Caires and Pfenning, 2010; Wadler, 2014]—types that prescribe the observable communication behaviour of processes [Honda, 1993]—and the fundamental operators of the \(\pi\) -calculus correspond to rules in linear logic formulated with hypersequents [Carbone et al., 2018; Kokke et al., 2019; Montesi and Peressotti, 2018]. But at the level of semantics and metatheory, the situation remains unclear. The semantics and behavioural theory from previous work do not respect the prefix operator of the \(\pi\) -calculus. The operational semantics of session types has not been reconstructed yet, and as a consequence the hallmark result of session types (session fidelity) has not been formulated and proven for Proofs as Processes. In this article, we carefully evolve the design of Proofs as Processes by applying a dialgebraic view of LTSs and their homomorphisms to the proof theory of linear logic [Ciancia, 2013]. The resulting calculus, called \(\pi\) LL, ties previous loose ends and further exhibits a comprehensive metatheory that connects the proof theory of linear logic to the behavioural theory of the \(\pi\) -calculus. Our development clarifies the properties guaranteed by linear logic on the observable behaviour of processes. It also includes a new principle for reasoning about the internal work performed by processes, which we use to establish the first deadlock-freedom and productivity results for processes with observable actions typed with linear logic.- 24 November 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computational Logic
- Vol. 28 (1) , 1-61
Open Accessπ LL: Reconciling Linear Logic, the π -calculus and their Metatheory
The Curry–Howard correspondence between natural deduction and the \(\lambda\) -calculus has been a tremendous source of inspiration for typed functional languages. Initiated by Abramsky [1994], the Proofs as Processes agenda seeks a similar foundation for typed concurrent languages, in terms in 1994 of a connection between linear logic [Girard, 1987] and the \(\pi\) -calculus [Milner et al., 1992]. Recent advances established solid correspondences at the levels of types and syntax. Linear propositions correspond to session types [Caires and Pfenning, 2010; Wadler, 2014]—types that prescribe the observable communication behaviour of processes [Honda, 1993]—and the fundamental operators of the \(\pi\) -calculus correspond to rules in linear logic formulated with hypersequents [Carbone et al., 2018; Kokke et al., 2019; Montesi and Peressotti, 2018]. But at the level of semantics and metatheory, the situation remains unclear. The semantics and behavioural theory from previous work do not respect the prefix operator of the \(\pi\) -calculus. The operational semantics of session types has not been reconstructed yet, and as a consequence the hallmark result of session types (session fidelity) has not been formulated and proven for Proofs as Processes. In this article, we carefully evolve the design of Proofs as Processes by applying a dialgebraic view of LTSs and their homomorphisms to the proof theory of linear logic [Ciancia, 2013]. The resulting calculus, called \(\pi\) LL, ties previous loose ends and further exhibits a comprehensive metatheory that connects the proof theory of linear logic to the behavioural theory of the \(\pi\) -calculus. Our development clarifies the properties guaranteed by linear logic on the observable behaviour of processes. It also includes a new principle for reasoning about the internal work performed by processes, which we use to establish the first deadlock-freedom and productivity results for processes with observable actions typed with linear logic. - Open Access
- 14 May 2026
- Published by Elsevier in Information and Software Technology
- Vol. 197
Choreography-defined networks: Concepts and a case study on AI-based attack detection
- 14 May 2026
- Published by Elsevier in Information and Software Technology
- Vol. 197
Open AccessChoreography-defined networks: Concepts and a case study on AI-based attack detection
- Open Access
Hennessy-Milner Logic in CSLib, the Lean Computer Science Library
We present a library-level formalisation of Hennessy-Milner Logic (HML) - a foundational logic for labelled transition systems (LTSs) - for the Lean Computer Science Library (CSLib). Our development includes the syntax, satisfaction relation, and denotational semantics of HML, as well as a complete metatheory including the Hennessy-Milner theorem - bisimilarity coincides with theory equivalence for image-finite LTSs. Our development emphasises generality and reusability: it is parametric over arbitrary LTSs, definitions integrate with CSLib's infrastructure (such as the formalisation of bisimilarity), and proofs leverage Lean's automation (notably the grind tactic). All code is publicly available in CSLib and can be readily applied to systems that use its LTS API.
Open AccessHennessy-Milner Logic in CSLib, the Lean Computer Science Library
We present a library-level formalisation of Hennessy-Milner Logic (HML) - a foundational logic for labelled transition systems (LTSs) - for the Lean Computer Science Library (CSLib). Our development includes the syntax, satisfaction relation, and denotational semantics of HML, as well as a complete metatheory including the Hennessy-Milner theorem - bisimilarity coincides with theory equivalence for image-finite LTSs. Our development emphasises generality and reusability: it is parametric over arbitrary LTSs, definitions integrate with CSLib's infrastructure (such as the formalisation of bisimilarity), and proofs leverage Lean's automation (notably the grind tactic). All code is publicly available in CSLib and can be readily applied to systems that use its LTS API.
- Open Access
Computer Science as Infrastructure: the Spine of the Lean Computer Science Library (CSLib)
Following in the footsteps of the success of Mathlib - the centralised library of formalised mathematics in Lean - CSLib is a rapidly-growing centralised library of formalised computer science and software. In this paper, we present its founding technical principles, operation, abstractions, and semantic framework. We contribute reusable semantic interfaces (reduction and labelled transition systems), proof automation, CI/testing support for maintaining automation and compatibility with Mathlib, and the first substantial developments of languages and models.
Open AccessComputer Science as Infrastructure: the Spine of the Lean Computer Science Library (CSLib)
Following in the footsteps of the success of Mathlib - the centralised library of formalised mathematics in Lean - CSLib is a rapidly-growing centralised library of formalised computer science and software. In this paper, we present its founding technical principles, operation, abstractions, and semantic framework. We contribute reusable semantic interfaces (reduction and labelled transition systems), proof automation, CI/testing support for maintaining automation and compatibility with Mathlib, and the first substantial developments of languages and models.
- Open Access
- 5 August 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (ICFP) , 947-973
Relax! The Semilenient Core of Choreographic Programming (Functional Pearl)
The past few years have seen a surge of interest in choreographic programming, a programming paradigm for concurrent and distributed systems. The paradigm allows programmers to implement a distributed interaction protocol with a single high-level program, called a choreography , and then mechanically project it into correct implementations of its participating processes. A choreography can be expressed as a λ-term parameterized by constructors for creating data “at” a process and for communicating data between processes. Through this lens, recent work has shown how one can add choreographies to mainstream languages like Java, or even embed choreographies as a DSL in languages like Haskell and Rust. These new choreographic languages allow programmers to write in applicative style (like in functional programming) and write higher-order choreographies for better modularity. But the semantics of functional choreographic languages is not well-understood. Whereas typical λ-calculi can have their operational semantics defined with just a few rules, existing models for choreographic λ-calculi have dozens of complex rules and no clear or agreed-upon evaluation strategy . We show that functional choreographic programming is simple. Beginning with the Chorλ model from previous work, we strip away inessential features to produce a “core” model called λ χ . We discover that underneath Chorλ’s apparently ad-hoc semantics lies a close connection to non-strict λ-calculi; we call the resulting evaluation strategy semilenient . Then, inspired by previous non-strict calculi, we develop a notion of choreographic evaluation contexts and a special commute rule to simplify and explain the unusual semantics of functional choreographic languages. The extra structure leads us to a presentation of λ χ with just ten rules, and a discovery of three missing rules in previous presentations of Chorλ. We also show how the extra structure comes with nice properties, which we use to simplify the correspondence proof between choreographies and their projections. Our model serves as both a principled foundation for functional choreographic languages and a good entry point for newcomers.
- 5 August 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (ICFP) , 947-973
Open AccessRelax! The Semilenient Core of Choreographic Programming (Functional Pearl)
The past few years have seen a surge of interest in choreographic programming, a programming paradigm for concurrent and distributed systems. The paradigm allows programmers to implement a distributed interaction protocol with a single high-level program, called a choreography , and then mechanically project it into correct implementations of its participating processes. A choreography can be expressed as a λ-term parameterized by constructors for creating data “at” a process and for communicating data between processes. Through this lens, recent work has shown how one can add choreographies to mainstream languages like Java, or even embed choreographies as a DSL in languages like Haskell and Rust. These new choreographic languages allow programmers to write in applicative style (like in functional programming) and write higher-order choreographies for better modularity. But the semantics of functional choreographic languages is not well-understood. Whereas typical λ-calculi can have their operational semantics defined with just a few rules, existing models for choreographic λ-calculi have dozens of complex rules and no clear or agreed-upon evaluation strategy . We show that functional choreographic programming is simple. Beginning with the Chorλ model from previous work, we strip away inessential features to produce a “core” model called λ χ . We discover that underneath Chorλ’s apparently ad-hoc semantics lies a close connection to non-strict λ-calculi; we call the resulting evaluation strategy semilenient . Then, inspired by previous non-strict calculi, we develop a notion of choreographic evaluation contexts and a special commute rule to simplify and explain the unusual semantics of functional choreographic languages. The extra structure leads us to a presentation of λ χ with just ten rules, and a discovery of three missing rules in previous presentations of Chorλ. We also show how the extra structure comes with nice properties, which we use to simplify the correspondence proof between choreographies and their projections. Our model serves as both a principled foundation for functional choreographic languages and a good entry point for newcomers.
- Open Access
- 10 June 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (PLDI) , 945-969
CRGC: Fault-Recovering Actor Garbage Collection in Pekko
Actors are lightweight reactive processes that communicate by asynchronous message-passing. Actors address common problems like concurrency control and fault tolerance, but resource management remains challenging: in all four of the most popular actor frameworks (Pekko, Akka, Erlang, and Elixir) programmers must explicitly kill actors to free up resources. To simplify resource management, researchers have devised actor garbage collectors (actor GCs) that monitor the application and detect when actors are safe to kill. However, existing actor GCs are impractical for distributed systems where the network is unreliable and nodes can fail. The simplest actor GCs do not collect cyclic garbage, whereas more sophisticated actor GCs are not fault-recovering : dropped messages and crashed nodes can cause actors to become garbage that never gets collected. We present Conflict-free Replicated Garbage Collection (CRGC): the first fault-recovering cyclic actor GC. In CRGC, actors and nodes record information locally and broadcast updates to the garbage collectors running on each node. CRGC does not require locks, explicit memory barriers, or any assumptions about message delivery order, except for reliable FIFO channels from actors to their local garbage collector. Moreover, CRGC is simple: we concisely present its operational semantics, which has been formalized in TLA + , and prove both soundness (non-garbage actors are never killed) and completeness (all garbage actors are eventually killed, under reasonable assumptions). We also present a preliminary implementation in Apache Pekko and measure its performance using two actor benchmark suites. Our results show the performance overhead of CRGC is competitive with simpler approaches like weighted reference counting, while also being much more powerful.
- 10 June 2025
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (PLDI) , 945-969
Open AccessCRGC: Fault-Recovering Actor Garbage Collection in Pekko
Actors are lightweight reactive processes that communicate by asynchronous message-passing. Actors address common problems like concurrency control and fault tolerance, but resource management remains challenging: in all four of the most popular actor frameworks (Pekko, Akka, Erlang, and Elixir) programmers must explicitly kill actors to free up resources. To simplify resource management, researchers have devised actor garbage collectors (actor GCs) that monitor the application and detect when actors are safe to kill. However, existing actor GCs are impractical for distributed systems where the network is unreliable and nodes can fail. The simplest actor GCs do not collect cyclic garbage, whereas more sophisticated actor GCs are not fault-recovering : dropped messages and crashed nodes can cause actors to become garbage that never gets collected. We present Conflict-free Replicated Garbage Collection (CRGC): the first fault-recovering cyclic actor GC. In CRGC, actors and nodes record information locally and broadcast updates to the garbage collectors running on each node. CRGC does not require locks, explicit memory barriers, or any assumptions about message delivery order, except for reliable FIFO channels from actors to their local garbage collector. Moreover, CRGC is simple: we concisely present its operational semantics, which has been formalized in TLA + , and prove both soundness (non-garbage actors are never killed) and completeness (all garbage actors are eventually killed, under reasonable assumptions). We also present a preliminary implementation in Apache Pekko and measure its performance using two actor benchmark suites. Our results show the performance overhead of CRGC is competitive with simpler approaches like weighted reference counting, while also being much more powerful.
- Open Access
- 1 May 2025
- Published by Springer Nature
- p. 23-55
Formulas as Processes, Deadlock-Freedom as Choreographies
We introduce a novel approach to studying properties of processes in the $$\pi $$ -calculus based on a processes-as-formulas interpretation, by establishing a correspondence between specific sequent calculus derivations and computation trees in the reduction semantics of the recursion-free $$\pi $$ -calculus. Our method provides a simple logical characterisation of deadlock-freedom for the recursion- and race-free fragment of the $$\pi $$ -calculus, supporting key features such as cyclic dependencies and an independence of the name restriction and parallel operators. Based on this technique, we establish a strong completeness result for a nontrivial choreographic language: all deadlock-free and race-free finite $$\pi $$ -calculus processes composed in parallel at the top level can be faithfully represented by a choreography. With these results, we show how the computation-as-derivation paradigm extends the reach of logical methods for the study of concurrency, by bridging gaps between logic, the expressiveness of the $$\pi $$ -calculus, and the expressiveness of choreographic languages.- 1 May 2025
- Published by Springer Nature
- p. 23-55
Open AccessFormulas as Processes, Deadlock-Freedom as Choreographies
We introduce a novel approach to studying properties of processes in the $$\pi $$ -calculus based on a processes-as-formulas interpretation, by establishing a correspondence between specific sequent calculus derivations and computation trees in the reduction semantics of the recursion-free $$\pi $$ -calculus. Our method provides a simple logical characterisation of deadlock-freedom for the recursion- and race-free fragment of the $$\pi $$ -calculus, supporting key features such as cyclic dependencies and an independence of the name restriction and parallel operators. Based on this technique, we establish a strong completeness result for a nontrivial choreographic language: all deadlock-free and race-free finite $$\pi $$ -calculus processes composed in parallel at the top level can be faithfully represented by a choreography. With these results, we show how the computation-as-derivation paradigm extends the reach of logical methods for the study of concurrency, by bridging gaps between logic, the expressiveness of the $$\pi $$ -calculus, and the expressiveness of choreographic languages. - 21 February 2025
- Published by Springer Nature
- p. 181-196
A Conceptual Framework for API Refactoring in Service-Oriented Architectures
- 21 February 2025
- Published by Springer Nature
- p. 181-196
A Conceptual Framework for API Refactoring in Service-Oriented Architectures
- Open Access
- 24 December 2024
- Published by PeerJ in PeerJ Computer Science
- Vol. 10, e1907
A model for correlation-based choreographic programming
Choreographies provide a clear way to specify the intended communication behaviour of concurrent and distributed systems. Previous theoretical work investigated the translation of choreographies into (models of) programs based on message passing. However, existing theories still present a gap between how they model communications—using channel names à la CCS or $\pi$-calculus—and implementations—which use lower-level mechanisms for message routing. We start bridging this gap with a new formal framework called Applied Choreographies. In Applied Choreographies, developers write choreographies in a familiar syntax (from previous work) and reason about their behaviour through simple, abstract name-based communication semantics. The framework offers state-of-the-art features of choreographic models, e.g., modular programming supported via choreographic types. To provide its correctness guarantee, Applied Choreographies comes with a compilation procedure that transforms a choreography into a low-level, implementation-adherent calculus of Service-Oriented Computing (SOC). To manage the complexity of the compilation, we divide its formalisation and proof into three stages, respectively dealing with: (a) the translation of name-based communications into their SOC equivalents, namely, using correlation mechanisms based on message data; (b) the projection of the given choreography into a composition of partial, single-participant choreographies (towards their translation into SOC processes); (c) the translation of partial choreographies and the distribution of global, choreography-level state into local SOC processes. We provide behavioural correspondence results for each stage. Thus, given a choreography specification, we guarantee to synthesise its faithful service-oriented implementation.
- 24 December 2024
- Published by PeerJ in PeerJ Computer Science
- Vol. 10, e1907
Open AccessA model for correlation-based choreographic programming
Choreographies provide a clear way to specify the intended communication behaviour of concurrent and distributed systems. Previous theoretical work investigated the translation of choreographies into (models of) programs based on message passing. However, existing theories still present a gap between how they model communications—using channel names à la CCS or $\pi$-calculus—and implementations—which use lower-level mechanisms for message routing. We start bridging this gap with a new formal framework called Applied Choreographies. In Applied Choreographies, developers write choreographies in a familiar syntax (from previous work) and reason about their behaviour through simple, abstract name-based communication semantics. The framework offers state-of-the-art features of choreographic models, e.g., modular programming supported via choreographic types. To provide its correctness guarantee, Applied Choreographies comes with a compilation procedure that transforms a choreography into a low-level, implementation-adherent calculus of Service-Oriented Computing (SOC). To manage the complexity of the compilation, we divide its formalisation and proof into three stages, respectively dealing with: (a) the translation of name-based communications into their SOC equivalents, namely, using correlation mechanisms based on message data; (b) the projection of the given choreography into a composition of partial, single-participant choreographies (towards their translation into SOC processes); (c) the translation of partial choreographies and the distribution of global, choreography-level state into local SOC processes. We provide behavioural correspondence results for each stage. Thus, given a choreography specification, we guarantee to synthesise its faithful service-oriented implementation.