具有上下文无关会话类型的多态λ演算
Polymorphic Lambda Calculus with Context-Free Session Types
摘要:
上下文无关会话类型为双向通道上的递归结构化通信协议提供了一种类型规则。它们克服了常规会话类型系统对跟踪递归协议的限制。这个扩展使我们能够以完全类型安全的方式实现树结构的序列化和非序列化。我们提出的理论基础的语言FreeST 2,它的特点是上下文无关的会话类型在系统F的线性类型和一种系统来区分消息类型和通道类型的扩展。该系统提出了一些元理论的挑战,我们解决,在多态性的存在下,一个非平凡的等式理论的类型,和类型等价的可判定性收缩。我们还建立了类型保存,进步和错误过程的特征的标准结果。
英文摘要:
Context-free session types provide a typing discipline for recursive structured communication protocols on bidirectional channels. They overcome the restriction of regular session type systems to tail recursive protocols. This extension enables us to implement serialisation and deserialisation of tree structures in a fully type-safe manner. We present the theory underlying the language FreeST 2, which features context-free session types in an extension of System F with linear types and a kind system to distinguish message types and channel types. The system presents some metatheoretical challenges, which we address, contractivity in the presence of polymorphism, a non-trivial equational theory on types, and decidability of type equivalence. We also establish standard results on type preservation, progress, and a characterisation of erroneous processes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。