Inspired by the seminal work of Hyland, Plotkin, and Power on the combination of algebraic computational effects via sum and tensor, we develop an analogous theory for the combination of quantitative algebraic effects. Quantitative algebraic effects are monadic computational effects on categories of metric spaces, which, moreover, admit an algebraic presentation in the form of quantitative equational theories, a logical framework introduced by Mardare, Panangaden, and Plotkin that generalises equational logic to account for a concept of approximate equality. As our main result, we show that the sum and tensor of two quantitative equational theories correspond to the categorical sum (i.e., coproduct) and tensor, respectively, of their effects qua monads. We further give a theory of quantitative effect transformers based on these two operations, essentially providing quantitive analogues to the following monad transformers due to Moggi: exception, resumption, reader, and writer transformers. Finally, as an application we provide the first quantitative algebraic axiomatizations to the following coalgebraic structures: Markov processes, labelled Markov processes, Mealy machines, and Markov decision processes, each endowed with their respective bisimilarity metrics. Apart from the intrinsic interest in these axiomatizations, it is pleasing they have been obtained as the composition, via sum and tensor, of simpler quantitative equational theories.
翻译:在Hyland、Plotkin和Polotkin关于通过总和和加压结合代数计算效应的开创性工作启发下,我们为定量代数效应的组合发展了一种类似的理论。定量代数效应是测量空间类别中的元数计算效应。此外,我们还采纳了以定量等式理论为形式的代数表达法,这是Mardare、Panangaden和Plotkin提出的一个逻辑框架,概括了公式逻辑,以说明近似平等的概念。我们的主要结果是,我们展示了两种定量等式理论的总和和强,分别对应其效果的绝对和(即,共产物)和变压。我们进一步给出了基于这两种操作的定量变压论理论,主要为Moggi的以下的Monad变压器提供了定量类比喻:例外、恢复、阅读器和作家变压器。最后,作为应用,我们提供了第一个定量的定量等数数学变法和两个定量等式理论理论的组合和格数性理论的组合(即共同产品)和结构中的马可类变压式过程,这些是各自为正数的马可比数式的马氏结构。