English

Efficient Computation of Graph Overlaps for Rule Composition: Theory and Z3 Prototyping

Logic in Computer Science 2020-12-04 v2

Abstract

Graph transformation theory relies upon the composition of rules to express the effects of sequences of rules. In practice, graphs are often subject to constraints, ruling out many candidates for composed rules. Focusing on the case of sesqui-pushout (SqPO) semantics, we develop a number of alternative strategies for computing compositions, each theoretically and with an implementation via the Python API of the Z3 theorem prover. The strategies comprise a straightforward generate-and-test strategy based on forbidden graph patterns, a variant with a more implicit logical encoding of the negative constraints, and a modular strategy, where the patterns are decomposed as forbidden relation patterns. For a toy model of polymer formation in organic chemistry, we compare the performance of the three strategies in terms of execution times and memory consumption.

Keywords

Cite

@article{arxiv.2003.11010,
  title  = {Efficient Computation of Graph Overlaps for Rule Composition: Theory and Z3 Prototyping},
  author = {Nicolas Behr and Reiko Heckel and Maryam Ghaffari Saadat},
  journal= {arXiv preprint arXiv:2003.11010},
  year   = {2020}
}

Comments

In Proceedings GCM 2020, arXiv:2012.01181

R2 v1 2026-06-23T14:25:51.212Z