最小会话类型(扩展版)
Minimal Session Types (Extended Version)
摘要:
会话类型是验证消息传递程序的一种基于类型的方法。它们已经被作为pi演算和Java等语言的类型系统进行了大量的研究。会话类型指定应通过通道交换什么以及何时交换。会话类型语言的核心是类型和进程中的构造,它们指定协议中的排序。这里我们研究最小会话类型,没有排序的会话类型。这可以说是会话类型的最简单形式。通过依赖于一个核心的进程演算会话和高阶并发(抽象传递),我们证明了每一个进程类型通常(非最小)的会话类型可以编译成一个进程类型与最小的会话类型。这意味着在进程和会话类型中都有顺序结构是多余的;只有进程中的顺序性是必不可少的,因为它可以精确地编码类型中的顺序性。我们的发展从Parrow的工作中汲取灵感,对非类型化过程的行为保持分解。通过铸造Parrow的结果在领域的类型化过程中,我们的结果揭示了一个概念上简单的制定会话类型和一个原则性的途径,会话类型集成到语言中,而无需排序的类型。
英文摘要:
Session types are a type-based approach to the verification of message-passing programs. They have been much studied as type systems for the pi-calculus and for languages such as Java. A session type specifies what and when should be exchanged through a channel. Central to session-typed languages are constructs in types and processes that specify sequencing in protocols. Here we study minimal session types, session types without sequencing. This is arguably the simplest form of session types. By relying on a core process calculus with sessions and higher-order concurrency (abstraction passing), we prove that every process typable with usual (non minimal) session types can be compiled down into a process typed with minimal session types. This means that having sequencing constructs in both processes and session types is redundant; only sequentiality in processes is indispensable, as it can precisely codify sequentiality in types. Our developments draw inspiration from work by Parrow on behavior-preserving decompositions of untyped processes. By casting Parrow's results in the realm of typed processes, our results reveal a conceptually simple formulation of session types and a principled avenue to the integration of session types into languages without sequencing in types.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。