幂单子与非秩效应张量
Powermonads and Tensors of Unranked Effects
摘要:
在语义学和编程实践中,代数概念,如单子,或基本上等价的(大)Lawvere理论是一个建立良好的工具,用于建模通用的副作用。在这方面的一个重要问题是这种代数效应的组合机制,它允许程序设计语言和验证逻辑的模块化设计。最基本的组合运算符是和和张量:效应和只是它们的非相互作用的并集,而张量强制效应的交换。然而,对于具有无界元性的效应,例如连续性或无界非决定性,这些组合是否在所有情况下实际存在并不是先验清楚的。在这里,我们介绍了类的一致的影响,其中包括无界的非决定性和延续,并证明了张量总是存在的,如果一个组件的影响是一致的,从而特别是改进以前的结果张量与延续。然后,我们更详细地处理的情况下,非确定性,并给出了一个顺序理论表征的影响,张量与非确定性是保守的,从而使非确定性参数,如通用版本的Fischer-Ladner编码的控制算子。
英文摘要:
In semantics and in programming practice, algebraic concepts such as monads or, essentially equivalently, (large) Lawvere theories are a well-established tool for modelling generic side-effects. An important issue in this context are combination mechanisms for such algebraic effects, which allow for the modular design of programming languages and verification logics. The most basic combination operators are sum and tensor: while the sum of effects is just their non-interacting union, the tensor imposes commutation of effects. However, for effects with unbounded arity, such as continuations or unbounded nondeterminism, it is not a priori clear whether these combinations actually exist in all cases. Here, we introduce the class of uniform effects, which includes unbounded nondeterminism and continuations, and prove that the tensor does always exist if one of the component effects is uniform, thus in particular improving on previous results on tensoring with continuations. We then treat the case of nondeterminism in more detail, and give an order-theoretic characterization of effects for which tensoring with nondeterminism is conservative, thus enabling nondeterministic arguments such as a generic version of the Fischer-Ladner encoding of control operators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。