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

使用结构视图机械化会话类型:在没有线性性的情况下强制线性

Mechanizing Session-Types using a Structural View: Enforcing Linearity without Linearity

Chuta Sano, Ryan Kavanagh, Brigitte Pientka

AI总结:

本文提出将线性性条件局部化为类型判断中的附加谓词,从而用结构化类型上下文替代线性上下文来机械化会话类型系统,并在 Beluga 中验证了其可行性与有效性。

摘要:

会话类型采用线性类型系统,确保通信通道不能被隐式复制或丢弃。因此,这些系统的许多机械化工作需要建模通道上下文,并仔细确保它们以线性方式处理通道。我们展示了一种技术,将线性性条件局部化为嵌入在类型判断中的附加谓词,这使我们能够使用结构化类型上下文而不是线性上下文。当利用(弱)高阶抽象语法来处理通道移动性和会话类型系统中出现的复杂绑定结构时,这种技术尤其相关。遵循这种方法,我们在证明助手 Beluga 中机械化了一个基于经典线性逻辑的会话类型系统及其类型保持证明,Beluga 使用逻辑框架 LF 作为其编码语言。我们还证明了我们编码的充分性。这表明了我们的方法在建模诸如会话类型语言之类的子结构系统时的可处理性和有效性。

英文摘要:

Session types employ a linear type system that ensures that communication channels cannot be implicitly copied or discarded. As a result, many mechanizations of these systems require modeling channel contexts and carefully ensuring that they treat channels linearly. We demonstrate a technique that localizes linearity conditions as additional predicates embedded within type judgments, which allows us to use structural typing contexts instead of linear ones. This technique is especially relevant when leveraging (weak) higher-order abstract syntax to handle channel mobility and the intricate binding structures that arise in session-typed systems. Following this approach, we mechanize a session-typed system based on classical linear logic and its type preservation proof in the proof assistant Beluga, which uses the logical framework LF as its encoding language. We also prove adequacy for our encoding. This shows the tractability and effectiveness of our approach in modelling substructural systems such as session-typed languages.

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

↑