计算机科学 > 程序设计语言
[提交于 2026年11月24日]
标题:Functional Programming with Hypergraph Transformation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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 $\lambda_{GT}$, 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 $\lambda_{GT}$ and implement a prototype interpreter. We develop a core type system for $\lambda_{GT}$, 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.
提交历史
来自:Jin Sano[v1] 2026年11月24日 星期二 02:52:14 UTC (4,156 KB)