graph rewriting with cloning
play

Graph rewriting with cloning Dominique Duval based on work with - PowerPoint PPT Presentation

Graph rewriting with cloning Dominique Duval based on work with Rachid Echahed and Fr ed eric Prost LJK-LIG, University of Grenoble February 28., 2012 Grenoble ANR CLIMT Outline Graph transformation Algebraic graph


  1. Graph rewriting with cloning Dominique Duval based on work with Rachid Echahed and Fr´ ed´ eric Prost LJK-LIG, University of Grenoble February 28., 2012 – Grenoble – ANR CLIMT

  2. Outline Graph transformation Algebraic graph transformation Double-pushout (DPO) Sesqui-pushout (SqPO) Polarized sesqui-pushout (PSqPO)

  3. � � � � � � � � � � � � Graph rewriting L , R , G , H are graphs. For each rewrite rule: L R and each matching: L ⊆ G a rewrite step builds H by replacing the occurrence of L in G by some occurrence of R in H : R ⊆ H

  4. � � � � � � � � � � � � � � � � � � Example: term rewriting g f � � � ��� � � a c b r r � � � ��� � � � � � � � � � g f f f � � � � � � � � � a a c a b

  5. Some questions: 1. What is a graph? 2. What is a rule? 3. What does replacing mean? 4. Is there a rule G � H ? In this talk: 1. A graph is a directed multigraph. 2. A rule is a span L ← K → R . 3. Several answers for replacing: DPO, SqPO, PSqPO. 4. G � H is a rule G ← D → H .

  6. � � � � � � Subgraph classifier: What does replacing mean? L , R are graphs. e L � e R � n L n R L = R = L ⊆ G . e L � e ′ � n ′ n L G = R ⊆ H , after rewriting. e R � e ′ � n ′ ?? H = n R ?? ??

  7. � � � � � � � � � � � � � � � � � � � � � � Example: What does replacing mean? g f � � � ��� � � a c b or or. . . ? r r r g g f � � � � � ��� � ��� � � � � a c c a b b

  8. Outline Graph transformation Algebraic graph transformation Double-pushout (DPO) Sesqui-pushout (SqPO) Polarized sesqui-pushout (PSqPO)

  9. Algebraic graph transformation Algebraic graph rewriting is based on category theory especially on pushouts: ◮ Single-pushout: SPO ◮ Double-pushout: DPO ◮ Sesqui-pushout: SqPO By: H. Ehrig, U. Montanari, M. L¨ owe, A. Corradini, B. K¨ onig, L. Ribeiro, S. Lack, T. Heindel, P. Sobocinski, . . .

  10. � � � � � � � � � � � � Pushouts Union ⊆ � Y X ∩ Y ⊆ ⊆ � � � � � � � � � X X ∪ Y ⊆ Pushout: a kind of generalized union (“amalgamated sum”) � Y W X � � � � � � � � Z ◮ When a pushout exists, it is unique (up to iso). ◮ Categories Set and Graph have pushouts.

  11. � � PO of graphs There is a GRAPH OF GRAPHS: s V E t ◮ Pushouts of graphs exist and they can be computed pointwise.

  12. � � � � � � � � Example: a PO of graphs f f � � � ��� � � a a c b r r f f � � � ��� � � a a c b

  13. � � � � � � � DPO, SqPO, PSqPO In this talk, every ??PO of graphs looks like: l r � R L K ?? � H G � � � � � � D r 1 l 1

  14. Outline Graph transformation Algebraic graph transformation Double-pushout (DPO) Sesqui-pushout (SqPO) Polarized sesqui-pushout (PSqPO)

  15. � � � � � � � Double-pushout (DPO) The LHS square is a pushout complement (POC) l r � R L K � H G � � � � � � D r 1 l 1 + Easy to understand: symmetric + Easy to define + Sound categorical base: adhesive categories

  16. � � � � � � � � � � � � � � Example: DPO f f f � � � ��� � � a a a c b r r r f f f � � � ��� � � a a a c b

  17. Adhesive categories ◮ Definition of adhesive categories involves Van Kampen squares. . . ◮ Categories Set and Graph are adhesive. In an adhesive category: ◮ pushouts of monos are monos ◮ pushouts along monos are pullbacks ◮ pushout complements of monos are unique (if they exist)

  18. � � � � � � � � Example: no POC f f a r no POC f a

  19. Outline Graph transformation Algebraic graph transformation Double-pushout (DPO) Sesqui-pushout (SqPO) Polarized sesqui-pushout (PSqPO)

  20. � � � � � � � � Sesqui-pushout (SqPO) The LHS square is a final pullback complement (FPBC) l r L K R � H � � � � � � G D r 1 l 1 + FPBC of graphs exist and are unique (up to iso) + PBCs are more general than POCs

  21. � � � � � � � � � � � � Pullbacks Intersection ⊆ X ∩ Y � � � � � � � � Y ⊆ ⊆ � Z X ⊆ Pullback: a kind of generalized intersection (“fibered product”) � � � � � � � � W Y � Z X ◮ When a pullback exists, it is unique (up to iso). ◮ Categories Set and Graph have pullbacks.

  22. � � � � � � � � � Example: a FPBC f f a r r f f a

  23. � � � � � � � � � � � � � � � Example: a SqPO f f f � � � ��� � � a c b r r r f f f � � � ��� � � a c b

  24. � � � � � � � � � � � � � � � � � Example: cloning and deleting nodes with a SqPO Goal: cloning and deleting some nodes and their incident edges. Node f is clone twice. Node a is deleted. f 1 f 2 f 1 f 2 f a c b r r r � � � � � � � � � � � � � � � � � � f f 1 f 2 f 1 f 2 a c b

  25. Outline Graph transformation Algebraic graph transformation Double-pushout (DPO) Sesqui-pushout (SqPO) Polarized sesqui-pushout (PSqPO)

  26. � � � � � � Polarized graphs There is a “GRAPH” OF POLARIZED GRAPHS: V + s + V E V − t − ◮ Pushouts of polarized graphs exist. n �→ n ± Graph → PolGraph n ± , n + , n − , n �→ n PolGraph → Graph Graph is a reflective subcategory of PolGraph .

  27. � � � � � � � � L , K are polarized graphs. e L n L ± n K , 1+ L = K = e K � n K , 2 − L ⊆ G . e L e ′ � n ′± G = n L ± K ⊆ D . n K , 1+ D = e ′ e K � � n ′± n K , 2 −

  28. � � � � � � � � Polarized sesqui-pushout (PSqPO) The LHS square is a final pullback complement of polarized graphs l r L K R � H � � � � � � G D r 1 l 1 + FPBC of polarized graphs exist and are unique (up to iso) + polarization allows more flexible cloning !!! In fact, only the interface is polarized!

  29. � � � � � � � � � � � � � � � � � � � � � � Example: PSqPO f 1+ f 2 − f 1 f 2 f a a c a ± b r r ± r � � � � � � � � � � � � � � � f f 1 f 2 f 1+ f 2 − � � � � � c � � a � a b a ±

  30. � � � � � � � “ if ...then...else... ” “Destructive” rules: p = m m : if m − � � � � � � � � � � � � � p q n : true p ± “Non-destructive” rules: p = m m : if m − � � ����� � � � � n : true p q n : true q n ± : true p ± q ±

  31. Conclusion + SqPO and PSqPO exist and are unique (up to iso) + SqPO and PSqPO are more general than DPO - SqPO is not easy to define - PSqPO is still less easy to define CLIMT: ◮ A better understanding of PSqPO ◮ . . . via a better understanding of SqPO? ◮ for various applications of “polarized” cloning ◮ . . . involving some “complexified” graphs in the interface?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend