arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1507.00385cs.PLcs.SE
收藏

有限细化类型

Bounded Refinement Types

Niki Vazou, Alexander Bakst, Ranjit Jhala

摘要:

我们提出了一个有界量化的概念,并展示了它如何通过使用它来开发类型化的组合子来扩展细化类型的表达能力:(1)关系代数和安全数据库访问,(2)配备有用于分支和循环的组合子的状态Transformer monad内的霍尔逻辑,以及(3)使用上述来实现跟踪能力和资源使用的细化的IO monad。这种表现力的飞跃是通过转换为“ghost”函数实现的,它让我们保留了自动化和可判定的基于SMT的检查和推理,使细化类型在实践中有效。

英文摘要:

We present a notion of bounded quantification for refinement types and show how it expands the expressiveness of refinement typing by using it to develop typed combinators for: (1) relational algebra and safe database access, (2) Floyd-Hoare logic within a state transformer monad equipped with combinators for branching and looping, and (3) using the above to implement a refined IO monad that tracks capabilities and resource usage. This leap in expressiveness comes via a translation to "ghost" functions, which lets us retain the automated and decidable SMT based checking and inference that makes refinement typing effective in practice.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑