会话类型的一种极简表述:协同工作中的 Trios 会话
A Minimal Formulation of Session Types: The Sessions of Trios in Concert
AI总结:
本文提出极少使用序列化的极简会话类型片段,借助受 trios 启发的编译将标准会话类型进程转换为行为等价的极简类型进程,证明进程内序列化已足以编码类型序列化。
摘要:
会话类型是一种基于类型的消息传递程序验证方法。它们规定了对确保程序正确性至关重要的通信结构;通过依赖序列化构造,会话类型能够精确描述通过通道进行通信动作的预期顺序。在本文中,我们研究了一个极少使用序列化的会话类型片段;我们将其称为极简会话类型。在一个具有会话和高阶并发的核心进程演算语境下,我们建立了两项技术结果。首先,我们证明了每个可使用标准会话类型进行类型化的进程 P,都可以被编译为一个可使用极简会话类型进行类型化的进程 D(P)。其次,我们证明了 P 与 D(P) 在行为上等价。这些结果表明,在进程和会话类型中同时具备序列化是便利的,但真正不可或缺的只有进程中的序列化,因为它能够正确地编码类型中的序列化。我们的研究发展受到 Parrow 关于使用 trios(即恰好具有三个嵌套前缀的进程)对无类型进程进行行为保持分解的工作启发。通过将 Parrow 的方法引入类型化进程领域,我们的发展揭示了一种概念上简洁的会话类型表述,并由静态和动态正确性结果提供支持。
英文摘要:
Session types are a type-based approach to the verification of message-passing programs. They specify communication structures essential to enforcing program correctness; by relying on sequencing constructs, a session type can precisely describe the intended order of communication actions through a channel. In this paper we study a fragment of session types that makes a very limited use of sequencing; we call it minimal session types. In the context of a core process calculus with sessions and higher-order concurrency, we establish two technical results. First, we prove that every process P typable with standard session types can be compiled down into a process D(P) typable with minimal session types. Second, we prove that P and D(P) are behaviorally equivalent. These results show that having sequencing in both processes and session types is convenient, but that only sequencing in processes is truly indispensable, as it can correctly codify sequencing in types. Our developments draw inspiration from work by Parrow on behavior-preserving decompositions of untyped processes using trios, i.e., processes with exactly three nested prefixes. By casting Parrow's approach in the realm of typed processes, our developments reveal a conceptually simple formulation of session types, supported by static and dynamic correctness results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。