Functional Programming with Hypergraph Transformation
Abstract
Complex data structures are difficult to manipulate declaratively while preserving their shape invariants. Functional languages offer pattern matching and strong static guarantees, but their type systems primarily describe tree-shaped data. Graph transformation languages support richer structures, yet their state-oriented models do not integrate naturally with value- and function-based programming. This dissertation introduces , a functional language that integrates port-hypergraph transformation. It represents complex data as port hypergraphs, manipulates them by pattern matching, and uses types to specify global shape invariants. We formalise HyperLMNtal as a term-based graph transformation formalism, then define the syntax and call-by-value semantics of untyped and implement a prototype interpreter. We develop a core type system for , prove its soundness, and relate it to graph-grammar-based typing. We extend the system with linear implication types to describe incomplete graphs arising during pattern matching. The extended system is sound with dynamic pattern-matching checks and is conservative over complete graph types. We also identify a statically safe fragment in which these checks can be eliminated. Finally, we mechanise the definitions and meta-theory in Isabelle/HOL.
Create a lesson
Metadata
- Comments
- 172 pages, PhD thesis
Related papers
Statically Typed Purely Functional Definitional Interpreters for {\it Essentials of Programming Languages}
Shared title terminologycs.PLKwanghoon Choi
Functional Logic Programming: Improving Logic Programs with Ease
Shared title terminologycs.PLMichael Hanus
A Taxonomy of Predicate Transformer Monads for Specifying Monadic Programs
Shared title terminologycs.PLAbigail Pribisova, Yao Li, Cezar-Constantin Andrici et al.
Defining the mathematical family tree with a minimal programming language
Shared title terminologycs.PLMax Tegmark
Tenon: A Unified Programming Framework for Retargetable PIM Compilation
Shared title terminologycs.PLNiansong Zhang, Shiran Guo, Zhiru Zhang
When Is Program Structure Required? Certificate-Grounded Calibration of Program-Induction Difficulty
Shared title terminologycs.PLWenzhang Du