arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1907.01318cs.LO
收藏

域感知会话类型(扩展版)

Domain-Aware Session Types (Extended Version)

Luís Caires, Jorge A. Pérez, Frank Pfenning, Bernardo Toninho

摘要:

我们开发了一个泛化现有的Curry-Howard解释(二进制)会话类型依赖于线性逻辑的扩展与混合逻辑的功能,特别是模态世界,表明域。这些世界支配着域迁移,服从于模态逻辑的Kripke语义中熟悉的参数可访问性关系。其结果是一个富有表现力的新型流程框架,用于域感知、消息传递并发。它的逻辑基础确保良好类型的进程享有会话保真度、全局进展和终止。类型化还确保进程只与可访问域通信,因此尊重可访问性关系。值得注意的是,我们的域感知框架可以指定的情况下,域信息仅在运行时可用,灵活的可访问性关系可以干净地定义和静态执行。作为一个具体的应用,我们引入了域感知的多方会话类型,其中全局协议可以通过域迁移来表示任意嵌套的子协议。我们开发了一个精确的分析,这些多方协议减少到我们的二进制域感知框架:复杂的域感知协议可以推理在正确的抽象层次,也确保了原则性转移的关键正确性属性从二进制到多方设置。

英文摘要:

We develop a generalization of existing Curry-Howard interpretations of (binary) session types by relying on an extension of linear logic with features from hybrid logic, in particular modal worlds that indicate domains. These worlds govern domain migration, subject to a parametric accessibility relation familiar from the Kripke semantics of modal logic. The result is an expressive new typed process framework for domain-aware, message-passing concurrency. Its logical foundations ensure that well-typed processes enjoy session fidelity, global progress, and termination. Typing also ensures that processes only communicate with accessible domains and so respect the accessibility relation. Remarkably, our domain-aware framework can specify scenarios in which domain information is available only at runtime; flexible accessibility relations can be cleanly defined and statically enforced. As a specific application, we introduce domain-aware multiparty session types, in which global protocols can express arbitrarily nested sub-protocols via domain migration. We develop a precise analysis of these multiparty protocols by reduction to our binary domain-aware framework: complex domain-aware protocols can be reasoned about at the right level of abstraction, ensuring also the principled transfer of key correctness properties from the binary to the multiparty setting.

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

↑