The reviewed record of science sign in
Pith

arxiv: 2209.05149 · v1 · pith:MCSOU3QX · submitted 2022-09-12 · cs.PL

Type checking data structures more complex than trees

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:MCSOU3QXrecord.jsonopen to challenge →

classification cs.PL
keywords structuresdatagraphslanguageliststreesanalysiscomplex
0
0 comments X
read the original abstract

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, $\lambda_{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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.