Papers for

distributed software engineers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Good projections improve safety and flexibility of distributed programs

What is a Good Projection?: Correctness and Separation Results of End-Point Projections

Abstract: \emph{Multiparty session types} (MPST) is a type discipline for ensuring distributed programs are implemented correctly \emph{by construction}. MPST starts by specifying a choreographic protocol as a \emph{global type} and \emph{projects} it onto each participant, generating \emph{local types} with a guarantee of type soundness and deadlock-freedom. A central issue of MPST is that its type soundness is fragile, as it must be proven each time with respect to a chosen projection algorithm under specific semantics with a specific program correctness goal. To overcome this problem, we propose general criteria for a \emph{good projection} -- a set of requirements for projection algorithms by which type soundness, deadlock-freedom and liveness of distributed programs are \emph{automatically} derived. Using the criteria, we prove that 8 distinct projections in the literature are good under both synchronous and asynchronous semantics, and that 4 are incorrect, failing type soundness. We extend the good projection criteria to mixed choice global types and asynchronous communication optimisations, proposing new ``good projection'' algorithms. We apply properties of good projections to prove \emph{separation} and \emph{expressiveness} results over the projection algorithms and MPST typing systems. Having a generalised typing system that is robust with respect to the good projection criteria, we provide an implementation with mixed choice global types that is \emph{modular} with respect to a chosen projection algorithm and desired program properties. Our separation results help programmers make informed trade-offs between complexity and expressiveness when choosing projection algorithms, and our theory ensures their chosen algorithms are correctly applied.

Tue 20 OctProgramming LanguagesLogic in Computer Science
The gist
Distributed programs involve multiple participants working together, but making sure they do so correctly and without getting stuck is hard. The authors study a method called multiparty session types that breaks down a global plan into smaller parts for each participant. They identify general rules for these breakdowns, called good projections, that guarantee the program runs safely and smoothly. They analyze various existing methods, find which ones work and which don't, and offer new ones that handle harder cases. This helps programmers pick the best approach for their needs and ensures their systems behave correctly.
Open → 2610.28525v1

TLA Plus specs translated into Verus for checking temporal logic proofs

TLA-Verus: Generating and Solving Temporal Proof Obligations with LLM Agents

Abstract: The TLA+ (temporal logic of actions) formal specification toolkit has seen widespread adoption in modeling modern distributed software systems including databases, storage systems, ledgers and coordination protocols. This popularity is despite its two significant limitations for software verification: Firstly, TLA+ offers no way to detect drift between software implementation and mathematical specification; secondly, TLC and TLAPS cannot provide satisfactory proofs of arbitrary temporal logic properties. We take a step towards addressing these shortcomings by translating TLA+ specifications into Verus, an auto-active verifier built for Rust, via both a deterministic transpiler and an agentic translator. We demonstrate that our LLM-based pipeline is able to generate proof obligations from TLA+ specifications at scale, and to produce fully machine checkable proofs of both safety and liveness properties. Since temporal logic reasoning in Verus is a largely new task for LLMs, our work yields a valuable evaluation dataset, which we use to map out current generation model capabilities in Verus theorem proving.

Sat 10 OctMachine Learning
The gist
It can be hard to check if a software design matches its real working code and if it behaves correctly over time in tricky ways. The authors converted designs written in TLA+, a tool used to describe complex software systems, into Verus, a program that can check Rust code proofs. They used AI language models to help translate and create proofs about these designs, showing it can handle important safety and ongoing correctness properties. This work also creates a useful dataset to see how well AI models can deal with these new kinds of logic proofs.
Open → 2610.14923v1