Skip to main content
QUICK REVIEW

[Paper Review] Termination of Graph Transformation Systems Using Weighted Subgraph Counting

Roy Overbeek, Jörg Endrullis|arXiv (Cornell University)|Mar 14, 2023
Model-Driven Software Engineering TechniquesComputer Science54 references7 citations
TL;DR

This paper introduces a novel, categorical termination method for graph transformation systems using weighted subgraph counting in rm-adhesive quasitoposes. It enables termination proofs for non-linear rules across multiple formalisms—PBPO+, SqPO, DPO, and AGREE—by defining a decreasing measure via weighted morphisms, with an implemented REPL for interactive relative termination proofs.

ABSTRACT

This is a Scala implementation of a termination method for PBPO+ graph transformation systems, described in: R. Overbeek & J. Endrullis. Termination of Graph Transformation Systems Using Weighted Subgraph Counting. arXiv, 2023. url Context The algebraic approach to graph transformation uses category theory to define graph transformation systems. PBPO+ (Overbeek et al., 2023) is a recent proposal that unifies several existing approaches in the setting of quasitoposes. Roughly speaking, a quasitopos is a category that is set-like in a variety of ways (e.g., in the way unions behave), and it contains many graph categories of interest. A fundamental question for graph transformation, and computational models in general, is when and how one can decide whether a given system terminates, i.e., whether it admits only finite computations on arbitrary input. Criteria for graph transformation are sparse, and usually defined for specific graph notions. The method proposed in (Overbeek & Endrullis, 2023) is instead defined more abstractly for more general categories; more precisely, the rm-adhesive quasitoposes. When implementing such a categorically formulated method, one may wonder how many of the categorical constructions can carry over into program code. Computational category theory tries to implement the categorical constructions as faithfully as possible. This repository follows the computational category theory philosophy. Performance considerations have been considered to a limited extent only. Code outline The source directory is structured as follows: Directory categorytheory contains all basic definitions related to general categories, as well as more specialized classes of categories such as presheaf categories and quasitoposes. Directory labeledgraph contains a definition of the category of labeled graphs, which is an instance of a topos, and thus of an rm-adhesive quasitopos. Directory rewriting contains definitions and examples of PBPO+ rules (as well as DPO rules). Directory termination implements the termination method, as well as formatting functions. Directory repl, parsing, and util speak for themselves. Usage This is a normal sbt project. You can compile code with sbt compile, and run it with sbt run. When run, the graphTT REPL starts. For an explanation of this REPL, see the research paper cited above.

Motivation & Objective

  • To develop a general, categorical termination method applicable across diverse algebraic graph transformation frameworks.
  • To extend termination analysis to non-linear (duplicating) rules in graph rewriting systems.
  • To unify termination proofs across PBPO+, SqPO, DPO, and AGREE by encoding them into PBPO+ within quasitopos categories.
  • To implement a practical tool with a REPL for interactive, guided relative termination proofs.
  • To improve upon prior work by simplifying conditions and including full proofs and new material not previously available.

Proposed method

  • The method defines a termination measure by summing weighted morphisms (T → G) targeting each graph G, where weights are drawn from a class of morphisms (e.g., mono, rm, iso).
  • It constructs a decreasing measure using pullbacks and pushouts to simulate rewrite steps in PBPO+ rules via adherence morphisms.
  • The method operates in rm-adhesive quasitoposes, ensuring well-definedness and generality across categories including graph categories and toposes.
  • It leverages a categorical encoding of SqPO, DPO, and AGREE rules into PBPO+ to extend applicability beyond PBPO+ alone.
  • The implementation uses a Scala library with a REPL to explore and validate relative termination proofs interactively.
  • It checks conditions of Theorem 4.23 using finite hom-sets and computable pullbacks/pushouts, ensuring decidability of the rewrite relation.

Experimental results

Research questions

  • RQ1Can a single, categorical termination method be applied uniformly across multiple algebraic graph transformation frameworks like PBPO+, SqPO, DPO, and AGREE?
  • RQ2How can non-linear (duplicating) rules be handled in termination analysis using a general, category-theoretic approach?
  • RQ3What conditions ensure the existence of a decreasing measure based on weighted subgraph counting in rm-adhesive quasitoposes?
  • RQ4How can the method be implemented efficiently with interactive support for proof exploration?
  • RQ5What improvements can be made to handle rule equivalence and antipatterns in termination proofs?

Key findings

  • The method is the first to provide a uniform, categorical termination technique applicable across PBPO+, SqPO, DPO, and AGREE in rm-adhesive quasitoposes.
  • The approach supports non-linear rules, extending the scope of existing termination methods that often restrict to linear or left-linear systems.
  • The implementation includes a REPL that enables interactive, guided exploration of relative termination proofs using the categorytheory library.
  • The method is decidable in categories like FinSet and functor categories [I, FinSet] when hom-sets are finite and constructions are computable.
  • The paper improves on prior work by replacing complex factorization conditions with a simpler, weaker condition (Definition 4.16), which is related to standard factorization systems (Proposition 4.18).
  • Full proofs, previously omitted due to space, are now included, along with new material from the first author’s PhD thesis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.