Graph rewriting language LMNtal formalized and proven equivalent to graph isomorphism
Formalizing a Syntax-Directed Graph Rewriting Language in Rocq
Summary
Graphs are used to represent complex structures in programming, and rewriting graphs lets programs change and evolve those structures. LMNtal is a programming language that rewrites graphs using syntax rules, helping programmers work with changing graphs more naturally, but until now, its formal mathematical basis was missing. The paper’s authors provide a formal description and proofs for LMNtal’s syntax and behavior in a proof assistant, including a proof that LMNtal’s structural rules match exactly the standard notion of graph equivalence known as graph isomorphism. This work gives a solid foundation for understanding and verifying programs written in LMNtal.
What this means in practice
- •For programming language designers: Use the formalized LMNtal definitions and proofs to base new or extended graph rewriting languages on a verified semantics foundation.
- •For software verification engineers: Incorporate LMNtal’s formal semantics into verification tools to better prove correctness of programs that manipulate graph-based data.
A theory result. No direct application yet.