使用高阶合约对会话类型建模
Using higher-order contracts to model session types
摘要:
会话类型用于描述和构造分布式系统中独立进程之间的交互。为了正确地构造进程之间的责任委托,需要更高阶的类型。在本文中,我们表明,高阶Web服务合同可以用来提供一个完全抽象的递归高阶会话类型的模型。该模型是集合论的,在这个意义上,一个合同的意义是根据它所遵守的一组合同来给出的。完全抽象的证明依赖于一个新的契约补集的概念。这反过来又产生了一个替代的类型二重性通常用于系统中的类型检查会话类型。我们相信,补语的概念更忠实地抓住了类型二元性背后的行为直觉。
英文摘要:
Session types are used to describe and structure interactions between independent processes in distributed systems. Higher-order types are needed in order to properly structure delegation of responsibility between processes. In this paper we show that higher-order web-service contracts can be used to provide a fully-abstract model of recursive higher-order session types. The model is set-theoretic, in the sense that the meaning of a contract is given in terms of the set of contracts with which it complies. The proof of full-abstraction depends on a novel notion of the complement of a contract. This in turn gives rise to an alternative to the type duality commonly used in systems for type-checking session types. We believe that the notion of complement captures more faithfully the behavioural intuition underlying type duality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。