arXiv · 2507.10799
Stream programs are monoid homomorphisms with state
Abstract
We define a broad class of deterministic stream functions and show they can be implemented as homomorphisms into a "state" monoid. The homomorphism laws are simpler than the conditions of previous semantic frameworks for stream program optimization, yet retain support for rich equational reasoning over expressive dataflow programs, including sequential composition, parallel composition, and feedback. We demonstrate this using examples of partitioned database joins, stratified negation, and a simplified model of TCP.
Explore related subjects
Keep this discovery
Tyler Hou, Michael Arntzenius, Max Willsey. 2025-07-14. Stream programs are monoid homomorphisms with state. https://arxiv.org/abs/2507.10799
Cite the original work for its findings. Save a collection to share your selection of sources.