Journal of Information Processing
Online ISSN : 1882-6652
ISSN-L : 1882-6652
 
Type Checking Data Structures More Complex than Trees
Jin SanoNaoki YamamotoKazunori Ueda
著者情報
ジャーナル フリー

2023 年 31 巻 p. 112-130

詳細
抄録

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, FGT, 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.

著者関連情報
© 2023 by the Information Processing Society of Japan
前の記事 次の記事
feedback
Top