English

Compositional Design, Implementation, and Verification of Swarms (Technical Report)

Distributed, Parallel, and Cluster Computing 2026-04-20 v1

Abstract

Swarm protocols are a recently introduced formalism for specifying, implementing, and verifying peer-to-peer systems called swarms. A swarm consists of distributed agents called machines that communicate by asynchronous event propagation. Following a local-first model, each machine can progress without requiring continuous connectivity to other machines. Existing models of swarms are not compositional, making the modular development of large and complex swarm applications as well as the reuse of code difficult. We address these issues by presenting novel theory and techniques for the compositional specification, verification, and implementation of swarms. These results enable the correct compositional reuse of pre-existing swarm protocols and machine implementations. We implement these contributions in a companion software artifact which enables the automatic integration of independently designed and verified swarm components.

Keywords

Cite

@article{arxiv.2604.16097,
  title  = {Compositional Design, Implementation, and Verification of Swarms (Technical Report)},
  author = {Florian Furbach and Lucas Clorius and Roland Kuhn and Hernán Melgratti and Alceste Scalas and Emilio Tuosto},
  journal= {arXiv preprint arXiv:2604.16097},
  year   = {2026}
}

Comments

43 pages, 15 figures, Related version accepted at ECOOP 2026 conference

R2 v1 2026-07-01T12:14:28.029Z