用逻辑关系建模可达性类型
Modeling Reachability Types with Logical Relations
AI总结:
本文提出用逻辑关系为可达性类型建立语义模型,以研究语义类型可靠性、终止性、效应安全性和程序等价性等关键元理论性质。
摘要:
可达性类型是近期提出的一种将Rust风格的内存属性推理引入更高级语言的方法,重点关注高阶函数、参数化类型和共享可变状态——这些特性在Rust当前采用的技术中仅得到部分支持。尽管先前的工作已利用通常的进展与保持语法技术为可达性类型建立了关键的类型可靠性结果,但更强的元理论性质迄今尚未被探索。本文提出了一种使用逻辑关系的可达性类型替代语义模型,提供了一个框架,在其中我们研究感兴趣的关键性质:(1)语义类型可靠性,包括对非语法良类型代码片段;(2)终止性,尤其是在存在高阶状态的情况下;(3)效应安全性,尤其是无可观察突变的缺失;(4)程序等价性,尤其是为并行化或编译器优化而对非干扰表达式进行重排序。
英文摘要:
Reachability types are a recent proposal to bring Rust-style reasoning about memory properties to higher-level languages, with a focus on higher-order functions, parametric types, and shared mutable state -- features that are only partially supported by current techniques as employed in Rust. While prior work has established key type soundness results for reachability types using the usual syntactic techniques of progress and preservation, stronger metatheoretic properties have so far been unexplored. This paper presents an alternative semantic model of reachability types using logical relations, providing a framework in which we study key properties of interest: (1) semantic type soundness, including of not syntactically well-typed code fragments, (2) termination, especially in the presence of higher-order state, (3) effect safety, especially the absence of observable mutation, and, finally, (4) program equivalence, especially reordering of non-interfering expressions for parallelization or compiler optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。