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

比树更复杂的类型检查数据结构

Type checking data structures more complex than trees

Jin Sano, Naoki Yamamoto, Kazunori Ueda

摘要:

图是一个广义的概念,它包含比树更复杂的数据结构,如差异列表、双向链表、跳表和叶链接树。通常,这些结构是通过对堆的破坏性分配来处理的,这与纯函数式编程风格相反,并且使验证变得困难。我们提出了一个新的纯函数式语言,$λ_{GT}$,处理图作为不可变的,一流的数据结构与模式匹配机制的基础上图变换和开发了一个新的类型系统,$F_{GT}$,语言。我们的方法是相反的指针操作程序的分析使用分离逻辑,形状分析等,在(i)我们不考虑破坏性的操作,但模式匹配提供的新的更高层次的语言,抽象的指针和堆了图形,(ii)我们追求什么属性可以建立自动使用一个相当简单的类型框架。

英文摘要:

Graphs are a generalized concept that encompasses more complex data structures than trees, such as difference lists, doubly-linked lists, skip lists, and leaf-linked trees. Normally, these structures are handled with destructive assignments to heaps, which is opposed to a purely functional programming style and makes verification difficult. We propose a new purely functional language, $λ_{GT}$, that handles graphs as immutable, first-class data structures with a pattern matching mechanism based on Graph Transformation and developed a new type system, $F_{GT}$, for the language. Our approach is in contrast with the analysis of pointer manipulation programs using separation logic, shape analysis, etc. in that (i) we do not consider destructive operations but pattern matchings over graphs provided by the new higher-level language that abstract pointers and heaps away and that (ii) we pursue what properties can be established automatically using a rather simple typing framework.

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

↑