流敏感多态效应的一般方法(扩展版)
A Generic Approach to Flow-Sensitive Polymorphic Effects (Extended Version)
摘要:
效果系统是类型系统的轻量级扩展,可以验证各种重要属性,而开发人员的负担不重。但是,我们对效应系统的一般理解主要限于效应顺序无关紧要的系统。从效果网格的角度来理解这样的系统是理解基本问题的基础,并在设计新的效果系统时提供指导。相比之下,序贯效应系统--效应的顺序很重要--缺乏明确的代数特征。我们推导出一个代数特征的形状事先具体的顺序效应系统。我们提出了一个抽象的多态效应系统与单例效应参数化的效果quantale -代数结构与定义良好的属性,可以模拟一系列现有的顺序敏感的效果系统。我们定义的效果quantales,获得有用的属性,并显示他们如何干净的各种已知的顺序效应系统的模型。我们表明,效果quantales提供了一个免费的,一般的概念迭代的顺序效果,并且对于系统,我们认为派生的迭代同意手动设计的迭代算子在以前的工作。识别和应用正确的代数结构,使我们对阶次敏感效应系统的设计有了微妙的见解,这为设计阶次敏感效应系统的非明显点提供了指导。效果quantales有明确的关系,最近的范畴理论工作的顺序敏感的效果系统,但解释没有求助于范畴理论。此外,我们的派生迭代构造应该推广到这些语义结构,解决该工作的局限性。
英文摘要:
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 lattice 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 a clear algebraic characterization. We derive an algebraic characterization from the shape of prior concrete sequential effect systems. We present an abstract polymorphic effect system with singleton effects parameterized by an effect quantale --- an algebraic structure with well-defined properties that can model a range of existing order-sensitive 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 effect quantales provide a free, general notion of iterating a sequential effect, and that for systems we consider the derived iteration agrees with the manually designed iteration operators in prior work. Identifying and applying the right algebraic structure led us to subtle insights into the design of order-sensitive effect systems, which provides guidance on non-obvious points of designing order-sensitive effect systems. Effect quantales have clear relationships to the recent category theoretic work on order-sensitive effect systems, but are explained without recourse to category theory. In addition, our derived iteration construct should generalize to these semantic structures, addressing limitations of that work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。