A symmetric monoidal and compact closed bicategorical syntax for - - PowerPoint PPT Presentation

a symmetric monoidal and compact closed bicategorical
SMART_READER_LITE
LIVE PREVIEW

A symmetric monoidal and compact closed bicategorical syntax for - - PowerPoint PPT Presentation

A symmetric monoidal and compact closed bicategorical syntax for graphical calculi Daniel Cicala 21 July 2017 University of Califonia at Riverside 1 motivation 2 motivation a question Is there a general framework for systems comprised of


slide-1
SLIDE 1

A symmetric monoidal and compact closed bicategorical syntax for graphical calculi

Daniel Cicala 21 July 2017

University of Califonia at Riverside 1

slide-2
SLIDE 2

motivation

2

slide-3
SLIDE 3

motivation

a question Is there a general framework for systems comprised of

  • pen networks and rewriting?

Loosely, by open network we mean a graphical language with inputs and outputs

3

slide-4
SLIDE 4

motivation

a question Is there a general framework for systems comprised of

  • pen networks and rewriting?

Loosely, by open network we mean a graphical language with inputs and outputs

3

slide-5
SLIDE 5

goals

Today, we will construct such a bicategorical framework — and — illustrate its use on the zx-calculus

4

slide-6
SLIDE 6

modeling open networks & rewrites

5

slide-7
SLIDE 7

modeling open networks

Open networks can be modeled with cospans, eg

inputs

  • utputs

vs

  • In general, for a network G with inputs X and outputs Y

X → G ← Y

6

slide-8
SLIDE 8

modeling open networks

Open networks can be modeled with cospans, eg

inputs

  • utputs

vs

  • In general, for a network G with inputs X and outputs Y

X → G ← Y

6

slide-9
SLIDE 9

modeling open networks

Compatible open networks can be connected, e.g.

inputs

  • utputs

;

inputs

  • utputs

=

inputs

  • utputs

This is made precise with pushouts: (X → G ← Y ); (Y → H ← Z) = (X → G +Y H ← Z) This induces a category with (objects) input and output types (morphisms)

  • pen networks possibly modulo relations.

Can we categorify this with relations as 2-cells?

7

slide-10
SLIDE 10

modeling open networks

Compatible open networks can be connected, e.g.

inputs

  • utputs

;

inputs

  • utputs

=

inputs

  • utputs

This is made precise with pushouts: (X → G ← Y ); (Y → H ← Z) = (X → G +Y H ← Z) This induces a category with (objects) input and output types (morphisms)

  • pen networks possibly modulo relations.

Can we categorify this with relations as 2-cells?

7

slide-11
SLIDE 11

modeling open networks

Compatible open networks can be connected, e.g.

inputs

  • utputs

;

inputs

  • utputs

=

inputs

  • utputs

This is made precise with pushouts: (X → G ← Y ); (Y → H ← Z) = (X → G +Y H ← Z) This induces a category with (objects) input and output types (morphisms)

  • pen networks possibly modulo relations.

Can we categorify this with relations as 2-cells?

7

slide-12
SLIDE 12

modeling open networks

Compatible open networks can be connected, e.g.

inputs

  • utputs

;

inputs

  • utputs

=

inputs

  • utputs

This is made precise with pushouts: (X → G ← Y ); (Y → H ← Z) = (X → G +Y H ← Z) This induces a category with (objects) input and output types (morphisms)

  • pen networks possibly modulo relations.

Can we categorify this with relations as 2-cells?

7

slide-13
SLIDE 13

modeling rewrite rules

Using graph-like structures, we give relations by rewrite rules. In particular, we use double pushout rewriting where a rule L R is given by a span L ← K → R So what we want is rewrite rules (spans) between open networks (cospans). Thus spans of cospans:

8

slide-14
SLIDE 14

modeling rewrite rules

Using graph-like structures, we give relations by rewrite rules. In particular, we use double pushout rewriting where a rule L R is given by a span L ← K → R So what we want is rewrite rules (spans) between open networks (cospans). Thus spans of cospans:

8

slide-15
SLIDE 15

modeling rewrite rules

Using graph-like structures, we give relations by rewrite rules. In particular, we use double pushout rewriting where a rule L R is given by a span L ← K → R So what we want is rewrite rules (spans) between open networks (cospans). Thus spans of cospans:

8

slide-16
SLIDE 16

combining open networks & rewrite rules

9

slide-17
SLIDE 17

combining open networks & rewrite rules

The components we are working with are

  • inputs and outputs
  • open networks, i.e. cospans between inputs and outputs
  • rewrites of open networks, i.e. spans of cospans

Did we just describe a bicategory?

10

slide-18
SLIDE 18

combining open networks & rewrite rules

The components we are working with are

  • inputs and outputs
  • open networks, i.e. cospans between inputs and outputs
  • rewrites of open networks, i.e. spans of cospans

Did we just describe a bicategory?

10

slide-19
SLIDE 19

combining open networks & rewrite rules

Theorem (C.) Let T be a topos. There is a bicategory MonicSp(Csp(T)) with (0-cells) objects of T (1-cells) cospans in T (2-cells) monic spans of cospans in T up to isomorphism

θ

The hypothesis are used in the interchange rule. DPO rewriting often assumes monic span legs

11

slide-20
SLIDE 20

combining open networks & rewrite rules

Theorem (C.) Let T be a topos. There is a bicategory MonicSp(Csp(T)) with (0-cells) objects of T (1-cells) cospans in T (2-cells) monic spans of cospans in T up to isomorphism

θ

The hypothesis are used in the interchange rule. DPO rewriting often assumes monic span legs

11

slide-21
SLIDE 21

combining open networks & rewrite rules

Theorem (C.) Let T be a topos. There is a bicategory MonicSp(Csp(T)) with (0-cells) objects of T (1-cells) cospans in T (2-cells) monic spans of cospans in T up to isomorphism

θ

The hypothesis are used in the interchange rule. DPO rewriting often assumes monic span legs

11

slide-22
SLIDE 22

combining open networks & rewrite rules

In case monic span legs are too strict... Theorem (C.) Let C be a category with finite limits and colimits. There is a bicategory Sp(Csp(C)) with (0-cells) objects of C, (1-cells) cospans in C, (2-cells) spans of cospans in C, up to sharing a domain and codomain.

12

slide-23
SLIDE 23

combining open networks & rewrite rules

In case monic span legs are too strict... Theorem (C.) Let C be a category with finite limits and colimits. There is a bicategory Sp(Csp(C)) with (0-cells) objects of C, (1-cells) cospans in C, (2-cells) spans of cospans in C, up to sharing a domain and codomain.

12

slide-24
SLIDE 24

combining open networks & rewrite rules

Theorem (C. & Courser) Consider the topos T and the finitely complete and cocomplete category C to be symmetric monoical via + and 0. Then the bicategories MonicSp(Csp(T)) and Sp(Csp(C)) are symmetric monoidal and compact closed (´ a la Mike Stay).

13

slide-25
SLIDE 25

combining open networks & rewrite rules

MonicSp(Csp(T)) and Sp(Csp(C)) are too big! We need to pare them down Let’s illustrate this process with the zx-calculus

14

slide-26
SLIDE 26

combining open networks & rewrite rules

MonicSp(Csp(T)) and Sp(Csp(C)) are too big! We need to pare them down Let’s illustrate this process with the zx-calculus

14

slide-27
SLIDE 27

the zx-calculus

15

slide-28
SLIDE 28

the zx-calculus – generators

The zx-calculus1 is a syntax used in categorical quantum mechanics. It models certain quantum processes It is generated by the diagrams

α . . . . . . m n β . . . . . . m n

1B Coecke & R Duncan (2011) Interacting quantum observables: categorical

algebra and diagrammatics. New J. Phys., 13 (4), 043016.

16

slide-29
SLIDE 29

the zx-calculus – generators

and the relations

α β . . . . . . . . . . . . . . . m m′ n n′ = α + β . . . . . . m + m′ n + n′

= = =

π

. . .

m π π

. . .

m

= = =

π α −α π

=

α . . . . . . m n α . . . . . . m n

= =

How can we realize these as

  • pen graph-like structures?

17

slide-30
SLIDE 30

the zx-calculus – generators

and the relations

α β . . . . . . . . . . . . . . . m m′ n n′ = α + β . . . . . . m + m′ n + n′

= = =

π

. . .

m π π

. . .

m

= = =

π α −α π

=

α . . . . . . m n α . . . . . . m n

= =

How can we realize these as

  • pen graph-like structures?

17

slide-31
SLIDE 31

the zx-calculus – coloring the nodes

We want directed graphs with colored nodes. To this end, we define a graph Szx

α β α, β ∈ [−π, π)

The generating zx-diagrams are almost graphs over Szx

a b

a, b →

a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

α a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

β a b c

a, c → b →

a

a →

But these still lack inputs and outputs!

18

slide-32
SLIDE 32

the zx-calculus – coloring the nodes

We want directed graphs with colored nodes. To this end, we define a graph Szx

α β α, β ∈ [−π, π)

The generating zx-diagrams are almost graphs over Szx

a b

a, b →

a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

α a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

β a b c

a, c → b →

a

a →

But these still lack inputs and outputs!

18

slide-33
SLIDE 33

the zx-calculus – coloring the nodes

We want directed graphs with colored nodes. To this end, we define a graph Szx

α β α, β ∈ [−π, π)

The generating zx-diagrams are almost graphs over Szx

a b

a, b →

a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

α a ℓ1 ℓm . . . r1 rn . . .

ℓk, rk → a →

β a b c

a, c → b →

a

a →

But these still lack inputs and outputs!

18

slide-34
SLIDE 34

the zx-calculus – constructing inputs and outputs

Define a functor N : FinSet → Graph ↓ Szx by sending a set x to the edgeless graph with node set x equipped with the map constant over the node

  • f

α β α, β ∈ [−π, π)

19

slide-35
SLIDE 35

the zx-calculus – constructing inputs and outputs

Rewrite is the SMCC sub-bicategory of Sp(Csp(Graph ↓ Szx)) Rewrite conceit (0-cells) N(x) input/output type (1-cells) N(x) → G ← N(y)

  • pen graphs over Szx

(2-cells) all DPO rewrite rules Rewrite is still too big. What is it good for? – an ambient space in which to generate SMCC bicategories – To categorify the zx-calculus, we will translate

  • zx-diagrams into open graphs over Szx
  • relations into DPO rewrite rules

20

slide-36
SLIDE 36

the zx-calculus – constructing inputs and outputs

Rewrite is the SMCC sub-bicategory of Sp(Csp(Graph ↓ Szx)) Rewrite conceit (0-cells) N(x) input/output type (1-cells) N(x) → G ← N(y)

  • pen graphs over Szx

(2-cells) all DPO rewrite rules Rewrite is still too big. What is it good for? – an ambient space in which to generate SMCC bicategories – To categorify the zx-calculus, we will translate

  • zx-diagrams into open graphs over Szx
  • relations into DPO rewrite rules

20

slide-37
SLIDE 37

the zx-calculus – constructing inputs and outputs

Rewrite is the SMCC sub-bicategory of Sp(Csp(Graph ↓ Szx)) Rewrite conceit (0-cells) N(x) input/output type (1-cells) N(x) → G ← N(y)

  • pen graphs over Szx

(2-cells) all DPO rewrite rules Rewrite is still too big. What is it good for? – an ambient space in which to generate SMCC bicategories – To categorify the zx-calculus, we will translate

  • zx-diagrams into open graphs over Szx
  • relations into DPO rewrite rules

20

slide-38
SLIDE 38

the zx-calculus – constructing inputs and outputs

Rewrite is the SMCC sub-bicategory of Sp(Csp(Graph ↓ Szx)) Rewrite conceit (0-cells) N(x) input/output type (1-cells) N(x) → G ← N(y)

  • pen graphs over Szx

(2-cells) all DPO rewrite rules Rewrite is still too big. What is it good for? – an ambient space in which to generate SMCC bicategories – To categorify the zx-calculus, we will translate

  • zx-diagrams into open graphs over Szx
  • relations into DPO rewrite rules

20

slide-39
SLIDE 39

the zx-calculus – translating to Rewrite

Translate zx-diagrams into 1-cells of Rewrite

. . . . . . →

a1 an

. . .

a1 an b1 bm c

. . . . . .

b1 bm

. . . ak → bk → c →

  • ver Szx via

etc.

21

slide-40
SLIDE 40

the zx-calculus – translating to Rewrite

Translate zx-relations into 2-cells of Rewrite

= →

a1 a2 a3 a4 b1 b2 b3 b4 a1 a2 a3 a4 b1 b2 b3 b4 c1 c2 a1 a2 a3 a4 b1 b2 b3 b4 a1 a2 a3 a4 b1 b2 b3 b4 c1

  • ver Szx via

ak → bk → ck →

etc.

22

slide-41
SLIDE 41

the zx-calculus – translating to Rewrite

To force the wire to act like the identity, we add the 2-cell

a b a b a b ab

  • ver Szx via

a → b →

These 1-cells and 2-cells generate an SMCC sub-bicategory zx

  • f Rewrite.

23

slide-42
SLIDE 42

the zx-calculus – translating to Rewrite

To force the wire to act like the identity, we add the 2-cell

a b a b a b ab

  • ver Szx via

a → b →

These 1-cells and 2-cells generate an SMCC sub-bicategory zx

  • f Rewrite.

23

slide-43
SLIDE 43

the zx-calculus – a bicategory

Denote by zx the category with (objects) N (morphisms) zx-diagrams modulo zx-relations Theorem (C.) Let ||zx|| be the category with (objects) the 0-cells of zx (morphisms) the 1-cells of zx up to the 2-cells Then ||zx|| is equivalent to zx This equivalence is witnessed by the functor described in the above translation process.

24

slide-44
SLIDE 44

the zx-calculus – a bicategory

Denote by zx the category with (objects) N (morphisms) zx-diagrams modulo zx-relations Theorem (C.) Let ||zx|| be the category with (objects) the 0-cells of zx (morphisms) the 1-cells of zx up to the 2-cells Then ||zx|| is equivalent to zx This equivalence is witnessed by the functor described in the above translation process.

24

slide-45
SLIDE 45

the zx-calculus – a bicategory

Denote by zx the category with (objects) N (morphisms) zx-diagrams modulo zx-relations Theorem (C.) Let ||zx|| be the category with (objects) the 0-cells of zx (morphisms) the 1-cells of zx up to the 2-cells Then ||zx|| is equivalent to zx This equivalence is witnessed by the functor described in the above translation process.

24

slide-46
SLIDE 46

in conclusion

25

slide-47
SLIDE 47

conclusion

The benefits of this framework is...

  • this process is sufficiently general to work with other

graphical languages

  • it gives a syntax that is bicategorical with symmetric

monoidal and compact closed structure

  • it should be straightforward, in concept, to include iterated

rewrites

26

slide-48
SLIDE 48

conclusion

The benefits of this framework is...

  • this process is sufficiently general to work with other

graphical languages

  • it gives a syntax that is bicategorical with symmetric

monoidal and compact closed structure

  • it should be straightforward, in concept, to include iterated

rewrites

26

slide-49
SLIDE 49

conclusion

The benefits of this framework is...

  • this process is sufficiently general to work with other

graphical languages

  • it gives a syntax that is bicategorical with symmetric

monoidal and compact closed structure

  • it should be straightforward, in concept, to include iterated

rewrites

26

slide-50
SLIDE 50

thank you

27