English

Stream programs are monoid homomorphisms with state

Programming Languages 2025-07-16 v1 Distributed, Parallel, and Cluster Computing

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.

Keywords

Cite

@article{arxiv.2507.10799,
  title  = {Stream programs are monoid homomorphisms with state},
  author = {Tyler Hou and Michael Arntzenius and Max Willsey},
  journal= {arXiv preprint arXiv:2507.10799},
  year   = {2025}
}
R2 v1 2026-07-01T04:01:15.830Z