Computations in Graph Rewriting: Inductive Types and Pullbacks in DPO Approach
نویسندگان
چکیده
Graph grammars have been introduced in the late 1970s [1], then they have been significantly improved up to the 2000s [2]. A lot of significant results are due to H. Ehrig and his colleagues who have conceived an algebraic approach to graph rewriting by the means of category theory [1]. It opened the way to computations with attributes. In this approach, when dealing with model transformations, the transformation process can be viewed as split into two parts: a first one considers the skeleton of the models, i.e., graphs without attributes which can be processed by a double pushout in a graph category, and a second one devoted to computations with attributes. To deal with this part, Ehrig suggests another formalism : the theory of algebraic data types [3]. Our goal when designing the Double Pushout-Pullback approach (abbreviated DPOPB) considered in this paper was on one hand to take advantage of the double pushout approach to implement the rewriting of the structural part of the graphs, and on the other hand to unify in a single formalism (type theory) the attribute computations that occur in graph transformations. Generally, to remain in a unique formalism simplifies the implementations and leads to a more robust software. Moreover, we had in mind to furnish a formalism able to facilitate proofs of properties occurring during transformations such as invariant or preor postconditions preservation. Thus, the main idea of the DPoPb approach is the use of a single formalism for attributed graph rewriting. The power of computations with inductive types is greater due to the presence of functional arguments. The formalism also permits to carry on proofs on transformations.
منابع مشابه
Typed lambda-terms in categorical attributed graph transformation
This paper deals with model transformation based on attributed graph rewriting. Our contribution investigates a single pushout approach for applying the rewrite rules. The computation of graph attributes is obtained through the use of typed λ -calculus with inductive types. In this paper we present solutions to cope with single pushout construction for the graph structure and the computations f...
متن کاملDeriving Bisimulation Congruences in the DPO Approach to Graph Rewriting
Motivated by recent work on the derivation of labelled transitions and bisimulation congruences from unlabelled reaction rules, we show how to solve this problem in the DPO (double-pushout) approach to graph rewriting. Unlike in previous approaches, we consider graphs as objects, instead of arrows, of the category under consideration. This allows us to present a very simple way of deriving labe...
متن کاملComposition and Decomposition of DPO Transformations with Borrowed Context
Double-pushout (DPO) transformations with borrowed context extend the standard DPO approach by allowing part of the graph needed in a transformation to be borrowed from the environment. The bisimilarity based on the observation of borrowed contexts is a congruence, thus facilitating system analysis. In this paper, focusing on the situation in which the states of a global system are built out of...
متن کاملParallel and Sequential Independence for Borrowed Contexts
Parallel and sequential independence are central concepts in the concurrency theory of the double pushout (dpo) approach to graph rewriting. However, so far those same notions were missing for dpo rewriting extended with borrowed contexts (dpobc), a formalism used for equipping dpo derivations with labels and introduced for modeling open systems that interact with the environment. In this work ...
متن کاملDPO rewriting and abstract semantics via opfibrations
The classical DPO graph rewriting construction is re-expressed using the oppbration approach introduced originally for term graph rewriting. Using a skeleton category of graphs, a base of canonical graphs-in-context, with DPO rules as arrows, and with categories of redexes over each object in the base, yields a category of rewrites via the discrete Grothendieck construction. The various possibl...
متن کامل