多态迭代序列效应系统
Polymorphic Iterable Sequential Effect Systems
摘要:
效果系统是类型系统的轻量级扩展,可以验证各种重要属性,而开发人员的负担不重。但是,我们对效应系统的一般理解主要限于效应顺序无关紧要的系统。从效应半格的角度来理解这些系统是理解基本问题的基础,并在设计新的效应系统时提供指导。相比之下,序贯效应系统(其中效应的顺序很重要)缺乏关于效应的既定代数结构。我们提出了一个抽象的多态效应系统参数化的效果quantale -代数结构与定义良好的属性,可以模拟一系列现有的顺序效应系统的影响。我们定义的效果quantales,获得有用的属性,并显示他们如何干净的各种已知的顺序效应系统的模型。我们表明,对于大多数的效果quantales,有一个诱导的概念迭代的顺序效果,对于系统,我们认为派生的迭代同意手动设计的迭代算子在以前的工作,这诱导迭代的概念是尽可能精确的定义时。我们还定位效果quantales相对于工作的分类语义的顺序效果系统,澄清这些系统和我们自己的过程中,给一个彻底的调查这些框架之间的区别。我们的派生迭代构造应该推广到这些语义结构,解决该工作的局限性。最后,我们考虑序列效应和Kleene代数之间的关系,后者可以用作前者的实例。
英文摘要:
Effect systems are lightweight extensions to type systems that can verify a wide range of important properties with modest developer burden. But our general understanding of effect systems is limited primarily to systems where the order of effects is irrelevant. Understanding such systems in terms of a semilattice of effects grounds understanding of the essential issues, and provides guidance when designing new effect systems. By contrast, sequential effect systems -- where the order of effects is important -- lack an established algebraic structure on effects. We present an abstract polymorphic effect system parameterized by an effect quantale -- an algebraic structure with well-defined properties that can model the effects of a range of existing sequential effect systems. We define effect quantales, derive useful properties, and show how they cleanly model a variety of known sequential effect systems. We show that for most effect quantales, there is an induced notion of iterating a sequential effect; that for systems we consider the derived iteration agrees with the manually designed iteration operators in prior work; and that this induced notion of iteration is as precise as possible when defined. We also position effect quantales with respect to work on categorical semantics for sequential effect systems, clarifying the distinctions between these systems and our own in the course of giving a thorough survey of these frameworks. Our derived iteration construct should generalize to these semantic structures, addressing limitations of that work. Finally, we consider the relationship between sequential effects and Kleene Algebras, where the latter may be used as instances of the former.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。