We introduce monoidal streams. Monoidal streams are a generalization of causal stream functions, which can be defined in cartesian monoidal categories, to arbitrary symmetric monoidal categories. In the same way that streams provide semantics to dataflow programming with pure functions, monoidal streams provide semantics to dataflow programming with theories of processes represented by a symmetric monoidal category. Monoidal streams also form a feedback monoidal category. In the same way that we can use a coinductive stream calculus to reason about signal flow graphs, we can use coinductive string diagrams to reason about feedback monoidal categories. As an example, we study syntax for a stochastic dataflow language, with semantics in stochastic monoidal streams.
翻译:我们引入单潮流。 单潮流是因果流函数的概括化, 可以用碳酸盐单潮的类别来定义, 任意的对称单潮类。 同样, 一潮流为纯功能的数据流编程提供语义, 单潮流为数据流编程提供语义, 以对称单潮类为代表的流程理论。 一潮流也形成反馈单潮类。 同样的, 我们可以用硬币流微积分来解释信号流图, 我们可以用硬币串列图来解释反馈单潮类。 作为一个例子, 我们研究一种对称数据流语言的语义, 并在随机单潮流中使用语义。