Diagram Rewriting: Examples and Theory Yves Lafont CNRS Institut - - PowerPoint PPT Presentation

diagram rewriting examples and theory
SMART_READER_LITE
LIVE PREVIEW

Diagram Rewriting: Examples and Theory Yves Lafont CNRS Institut - - PowerPoint PPT Presentation

Diagram Rewriting: Examples and Theory Yves Lafont CNRS Institut de Mathmatiques de Luminy Universit de la Mditerrane (Aix-Marseille 2) Hagenberg, 14 July 2008 Introduction Planar diagrams are 2-dimensional words. Terms can


slide-1
SLIDE 1

Diagram Rewriting: Examples and Theory

Yves Lafont CNRS – Institut de Mathématiques de Luminy Université de la Méditerranée (Aix-Marseille 2) Hagenberg, 14 July 2008

slide-2
SLIDE 2

Introduction

◮ Planar diagrams are 2-dimensional words. ◮ Terms can be encoded as diagrams (Burroni 91). ◮ Diagrams are related to proof nets / interaction nets. ◮ A word reduction can be seen as a planar diagram. ◮ Many other examples (braids, knots, circuits, . . . ).

slide-3
SLIDE 3

Planar diagrams

Inputs/outputs:

φ

Sequential and parallel composition:

φ ψ ψ φ

Laws of associativity, units, and interchange:

= φ ψ φ ψ φ ψ =

slide-4
SLIDE 4

Classification of interpretations

Basic case (control flow): + (disjoint union) f : p → q (p = {1, . . . , p} = 1 + · · · + 1) Classical case (data flow): × (Cartesian product) f : Bp → Bq (B = {0, 1} = 1 + 1, Bp = B × · · · × B) Linear case: ⊕ (direct sum) f : Zp

2 → Zq 2

(Z2 = {0, 1}, Zp

2 = Z2 ⊕ · · · ⊕ Z2)

Quantum case: ⊗ (tensor product) f : B⊗p → B⊗q (B = C2 = C ⊕ C, B⊗p = B ⊗ · · · ⊗ B)

slide-5
SLIDE 5

Example 1: S (finite permutations)

Generator: Relations:

= =

Theorem:

◮ Any finite permutation is a product of transpositions:

· · · · · ·

◮ Two diagrams define the same permutation if and only if

they are equivalent modulo the above relations.

slide-6
SLIDE 6

Canonical forms

Grammar for canonical forms:

is void or · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

  • r

is

Lemma:

◮ Any permutation corresponds to a unique canonical form. ◮ Any diagram reduces to a canonical form by these rules:

slide-7
SLIDE 7

Proof of the lemma

By double induction on the width (wires) and the size (gates). There are four cases:

· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

slide-8
SLIDE 8

Diagrams versus words

Theorem: The symmetric group Sn is presented by the generators σi (for 1 ≤ i < n) and the following relations: σ2

i = 1,

σiσi+1σi = σi+1σiσi+1, σiσj = σjσi (for i+1 < j). Diagrammatic interpretation of relation σ2

i = 1:

= · · · · · · · · · · · ·

Diagrammatic interpretation of relation σiσj = σjσi:

= · · · · · · · · · · · · · · · · · ·

slide-9
SLIDE 9

Rewriting

Theorem: This rewrite system is noetherian and confluent.

◮ Termination is straightforward. ◮ Confluence follows from the previous results.

What are the critical peaks?

slide-10
SLIDE 10

Confluence

Confluence of critical peaks:

slide-11
SLIDE 11

Global conflicts

Here, there is one global conflict:

φ · · · · · · · · · · · · · · · · · · · · ·

  • r

where φ is

It suffices indeed to consider the case where φ is canonical:

· · · φ · · · · · · ψ · · · · · · · · · · · · φ · · · · · · · · · φ′ · · · · · · ∗ ∗ φ′ · · · · · · φ′ φ

slide-12
SLIDE 12

Example 2: F (finite maps)

Generators: Relations:

= = = = = = =

slide-13
SLIDE 13

Rewrite rules for F

Termination is proved by using some polynomial interpretation.

slide-14
SLIDE 14

The 68 critical peaks for F

slide-15
SLIDE 15

Example 3: Fop (theory of structural gates)

Generators: Relations:

= = = = = = =

slide-16
SLIDE 16

Terms versus diagrams

Theorem (Burroni 91): Any finite equational theory yields a finite presentation. Theorem (Lafont 95): Any finite convergent left linear term rewrite system yields a finite convergent diagram rewrite system. The non linear case is more difficult because of critical peaks.

slide-17
SLIDE 17

Example 4: L(Z2) (linear boolean maps)

Generators:

y x+y x y y x x x x x x

Reversible gates:

x+y y x+y x x y x y y x+y x x+y x y x y

Decomposition:

= = = =

slide-18
SLIDE 18

Rewrite rules for L(Z2)

slide-19
SLIDE 19

Example 5: GL(Z2) (linear boolean permutations)

Generators: Relations:

= = = = = =

Rules:

slide-20
SLIDE 20

References

◮ Albert Burroni, Higher dimensional word problem (TCS

1993)

◮ Yves Lafont, Towards an algebraic theory of Boolean

circuits (JPAA 2003)

◮ Yves Guiraud, Termination Orders for 3-Dimensional

Rewriting (JPAA 2006)

◮ Yves Lafont & Pierre Rannou, Diagram rewriting for

  • rthogonal matrices: a study of critical peaks (RTA 2008)