A Formalization of the Correctness of the Floodsub Protocol
Abstract
Floodsub is a simple, robust and popular peer-to-peer publish/subscribe (pubsub) protocol, where nodes can arbitrarily leave or join the network, subscribe to or unsubscribe from topics and forward newly received messages to all of their neighbors, except the sender or the originating peer. To show the correctness of Floodsub, we propose its specification: Broadcastsub, in which implementation details like network connections and neighbor subscriptions are elided. To show that Floodsub does really implement Broadcastsub, one would have to show that the two systems have related infinite computations. We prove this by reasoning locally about states and their successors using Well-Founded Simulation (WFS). In this paper, we focus on the mechanization of a proof which shows that Floodsub is a simulation refinement of Broadcastsub using WFS. To the best of our knowledge, ours is the first mechanized refinement-based verification of a real world pubsub protocol.
Cite
@article{arxiv.2507.19013,
title = {A Formalization of the Correctness of the Floodsub Protocol},
author = {Ankit Kumar and Panagiotis Manolios},
journal= {arXiv preprint arXiv:2507.19013},
year = {2025}
}
Comments
In Proceedings ACL2 2025, arXiv:2507.18567