arXiv · 2611.37927
Formalizing a Syntax-Directed Graph Rewriting Language in Rocq
Abstract
Graph rewriting has emerged as a computational paradigm for handling dynamically evolving graph structures, which play an increasingly central role in programming and modeling languages. Whereas most graph rewriting formalisms are based on algebraic graph transformation, LMNtal is a text-based graph rewriting language with syntax-directed semantics, making it accessible to programmers and amenable to standard programming-language techniques; however, a formally certified basis for LMNtal has been missing. In this paper, we formalize the syntax and semantics of LMNtal in the Rocq Proof Assistant, validate the implementation with illustrative examples, and prove several fundamental properties of LMNtal programs, including the admissibility of two structural congruence rules. Building on this formalization, we give the first formal proof that LMNtal's structural congruence coincides with graph isomorphism on the corresponding port graphs, for arbitrary well-formed (not only closed) terms with the same free links and in both directions, depending only on the standard classical-logic axioms of Rocq's standard library.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Naoki Yamamoto, Kazunori Ueda. 2026-11-27. Formalizing a Syntax-Directed Graph Rewriting Language in Rocq. https://arxiv.science/abs/2611.37927
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.