arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19129cs.PL
收藏

用于验证并发编程的依赖会话类型

Dependent Session Types for Verified Concurrent Programming

Boston University(波士顿大学)

Qiancheng Fu, Hongwei Xi, Ankush Das

AI总结:

本文提出TLLC,扩展双层线性依赖类型理论以支持会话并发,实现并发程序与顺序程序的关系验证,并开发了原型编译器。

摘要:

我们提出了TLLC,它扩展了双层线性依赖类型理论(TLL)以支持基于会话的并发。借助Martin-Löf风格的依赖,TLLC的会话类型允许协议指定所通信消息的属性。当与TLL中已有的依赖类型机制结合使用时,依赖会话类型通过将并发程序与其理想化的顺序对应物相关联,促进了一种关系验证形式。为顺序程序证明的正确性属性可以轻松地提升到其相应的并发实现。TLLC使会话类型成为内在验证数据结构(如队列)和并发算法(如map-reduce)正确性的强大工具。为了将会话类型扩展到TLL,我们开发了一种新的直觉主义会话类型公式,我们认为该公式广泛适用于将会话类型集成到TLLC之外的其它类型系统中。我们研究了语言的无理论,证明了其作为项演算和过程演算的可靠性。为了展示TLLC的实用性,我们实现了一个原型编译器,将TLLC程序转换为并发C代码,并进行了广泛评估。

英文摘要:

We present TLLC which extends the Two-Level Linear dependent type theory (TLL) with session-based concurrency. Equipped with Martin-Löf style dependency, the session types of TLLC allow protocols to specify properties of communicated messages. When used in conjunction with the dependent type machinery already present in TLL, dependent session types facilitate a form of relational verification by relating concurrent programs with their idealized sequential counterparts. Correctness properties proven for sequential programs can be easily lifted to their corresponding concurrent implementations. TLLC makes session types a powerful tool for intrinsically verifying the correctness of data structures such as queues and concurrent algorithms such as map-reduce. To extend TLL with session types, we develop a novel formulation of intuitionistic session type which we believe to be widely applicable for integrating session types into other type systems beyond the context of TLLC. We study the meta-theory of our language, proving its soundness as both a term calculus and a process calculus. To demonstrate the practicality of TLLC, we have implemented a prototype compiler that translates TLLC programs into concurrent C code, which has been extensively evaluated.

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

↑