The Algebra of DAGs Marcelo Fiore Computer Laboratory University - - PowerPoint PPT Presentation

the algebra of dags
SMART_READER_LITE
LIVE PREVIEW

The Algebra of DAGs Marcelo Fiore Computer Laboratory University - - PowerPoint PPT Presentation

The Algebra of DAGs Marcelo Fiore Computer Laboratory University of Cambridge Samson@60 28.V.2013 Joint work with Marco Devesas Campos A Question of Robin Milner A Question of Robin Milner On the generalization from tree structure . . .


slide-1
SLIDE 1

The Algebra of DAGs

Marcelo Fiore

Computer Laboratory University of Cambridge

Samson@60 28.V.2013 Joint work with Marco Devesas Campos

slide-2
SLIDE 2

A Question of Robin Milner

slide-3
SLIDE 3

A Question of Robin Milner

On the generalization from tree structure . . .

  • . . . to dag structure.
slide-4
SLIDE 4

Axioms for DAG structure

[Gibbons]

Problem: Give an algebraic characterisation of the symmetric monoidal category Dag with

  • bjects: finite ordinals, and

morphisms: finite interfaced dags.

3

slide-5
SLIDE 5

1 1 2 1 2

4

slide-6
SLIDE 6

Composition: 1 k l 1 2 a b c d 1 2 1 k l a b c d

4-a

slide-7
SLIDE 7

The Landscape of Algebraic Structures

Rel

  • MatN
  • MatZ
  • Perm
  • Fun
  • POrd

Dag DagN DagZ

N

PermN Forest

slide-8
SLIDE 8

The Mathematical Setting

[Lawvere, MacLane]

Symmetric Monoidal Equational Presentations

6

slide-9
SLIDE 9

The Mathematical Setting

[Lawvere, MacLane]

Symmetric Monoidal Equational Presentations Examples:

  • 1. Commutative monoids

Operators η : 0 → 1 , ∇ : 2 → 1 Equations ∇(x0, η) ≡ x0 , x0 ≡ ∇(η, x0) ∇(x0, ∇(x1, x2)) ≡ ∇(∇(x0, x1), x2) , ∇(x0, x1) ≡ ∇(x1, x0)

6-a

slide-10
SLIDE 10
  • 2. Commutative comonoids

Operators ǫ : 1 → 0 , ∆ : 1 → 2 Equations 1

id1

  • id1
  • 1

2

1+ǫ

  • ǫ+1

1

1

  • 2

1+∆

  • 2

∆+1

3

2

σ1,1

  • 1

  • 2
slide-11
SLIDE 11

PROduct and Permutation categories Definition: A PROP is a symmetric strict monoidal category with underlying monoid structure on objects given by finite

  • rdinals under addition.

Examples:

  • 1. Dag
  • 2. The free PROP P[E] on a symmetric monoidal equational

presentation E.

8

slide-12
SLIDE 12

P[E] may be constructed syntactically, with morphisms given by equivalence classes of expressions generated by idn : n → n f : ℓ → m , g : m → n f ; g : ℓ → n f1 : m1 → n1 , f2 : m2 → n2 f1 + f2 : m1 + m2 → n1 + n2 σm,n : m + n → n + m

  • : n → m an operator
  • : n → m

under the congruence determined by the laws of symmetric strict monoidal categories together with the identities of the equational presentation E.

slide-13
SLIDE 13

Algebraic Characterization of DAG Structure

Theorem: For D the symmetric monoidal equational presentation

  • f a node together with that of degenerate commutative bialgebras,

P[D] ∼ = Dag .

slide-14
SLIDE 14

Free PROPs

  • 1. The free PROP P[∅] on the empty equational presentation is

the free symmetric strict monoidal category on an object,

  • viz. the category Perm of finite ordinals and permutations.

4

  • 1
  • 2
  • 3
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • =

4 1 2 3 1 2 3

11

slide-15
SLIDE 15
  • 2. The free PROP P[•] on the equational presentation of a node
  • : 1 → 1 is the free symmetric strict monoidal category on the

additive monoid of natural numbers

12

slide-16
SLIDE 16
  • 2. The free PROP P[•] on the equational presentation of a node
  • : 1 → 1 is the free symmetric strict monoidal category on the

additive monoid of natural numbers, viz. the category PermN

  • f finite ordinals and N-labelled permutations.

4

  • m0
  • 1
  • m1
  • 2
  • m2
  • 3
  • m3
  • m0+n0
  • 1
  • m1+n2
  • 2
  • m2+n3
  • 3
  • m3+n1
  • 4
  • n0
  • 1
  • n1
  • 2
  • n2
  • 3
  • n3
  • =

4 1 2 3 1 2 3

12-a

slide-17
SLIDE 17
  • 3. The free PROP P[ComMon] on the equational presentation of

commutative monoids is the free cocartesian category on an

  • bject, i.e. the category Fun of finite ordinals and functions.

13

slide-18
SLIDE 18
  • 3. The free PROP P[ComMon] on the equational presentation of

commutative monoids is the free cocartesian category on an

  • bject, i.e. the category Fun of finite ordinals and functions.

4

  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 3
  • 1
  • 2
  • 2

1 =

  • 1

2 3

  • 1

13-a

slide-19
SLIDE 19
  • 4. The free PROP P[ • + ComCoMon ] on the equational

presentation of a node together with that of commutative comonoids is the subcategory Forest of Dag consisting

  • f forests.

[Moerdijk, Milner]

14

slide-20
SLIDE 20

a morphism 4

  • 1
  • 2
  • 3
  • 3
  • 1
  • 2

3

  • 1
  • 2
  • 3
  • 1
  • 2
  • 2
  • 1
  • 2
  • 1

15

slide-21
SLIDE 21

a morphism its forest representation 4

  • 1
  • 2
  • 3
  • 3
  • 1
  • 2

3

  • 1
  • 2
  • 3
  • 1
  • 2
  • 2
  • 1
  • 2
  • 1

1 2 3

  • 1
  • 15-a
slide-22
SLIDE 22

a forest 1 2 3

  • 1
  • 16
slide-23
SLIDE 23

a layered normal form a forest 4 1 2 3

  • 4
  • 1
  • 2
  • 3

3

  • 1
  • 2
  • 3
  • 1
  • 2

3

  • 1
  • 2
  • 2
  • 1
  • 2
  • 1

1 2 3

  • 1
  • 16-a
slide-24
SLIDE 24
  • 5. The free PROP P[ ComBiAlg ] on the equational presentation
  • f commutative bialgebras is the free category with biproducts
  • n an object, viz. the category MatN of finite ordinals and

N-valued matrices.

[MacLane, Pirashvili, Lack]

17

slide-25
SLIDE 25
  • 5. The free PROP P[ ComBiAlg ] on the equational presentation
  • f commutative bialgebras is the free category with biproducts
  • n an object, viz. the category MatN of finite ordinals and

N-valued matrices.

[MacLane, Pirashvili, Lack]

The equational presentation of commutative bialgebras is that

  • f commutative monoids and commutative comonoids where

the comonoid structure is a monoid homomorphism and the comonoid structure is a monoid homomorphism.

17-a

slide-26
SLIDE 26

(a) The commutative bialgebra structure turns the symmetric monoidal structure into biproduct structure.

18

slide-27
SLIDE 27

(a) The commutative bialgebra structure turns the symmetric monoidal structure into biproduct structure. (b) Every morphism m → n has a unique representation as an m × n matrix with entries in the endo-hom on 1.

18-a

slide-28
SLIDE 28

(a) The commutative bialgebra structure turns the symmetric monoidal structure into biproduct structure. (b) Every morphism m → n has a unique representation as an m × n matrix with entries in the endo-hom on 1. (c) The endo-hom on 1 is the multiplicative monoid of natural numbers. n = . . . n − 1

19-b

slide-29
SLIDE 29
  • 6. The free PROP P[ DegComBiAlg ] on the equational

presentation of degenerate commutative bialgebras is the category Rel of finite ordinals and relations. The degeneracy axiom: 2 =

  • 1

= = 1

19

slide-30
SLIDE 30
  • 7. The free PROP P[ • + DegComBiAlg ] on the equational

presentation of a node together with that of degenerate commutative bialgebras is Dag.

slide-31
SLIDE 31
  • 7. The free PROP P[ • + DegComBiAlg ] on the equational

presentation of a node together with that of degenerate commutative bialgebras is Dag. Proof: (a) Define universal topological interpretations [ [D] ]τ of dags D according to topological sortings τ of D.

slide-32
SLIDE 32
  • 7. The free PROP P[ • + DegComBiAlg ] on the equational

presentation of a node together with that of degenerate commutative bialgebras is Dag. Proof: (a) Define universal topological interpretations [ [D] ]τ of dags D according to topological sortings τ of D. (b) Prove the invariance of topological interpretations,

  • viz. that [

[D] ]τ = [ [D] ]τ′ for all topological sortings τ and τ′ of D.

slide-33
SLIDE 33
  • 7. The free PROP P[ • + DegComBiAlg ] on the equational

presentation of a node together with that of degenerate commutative bialgebras is Dag. Proof: (a) Define universal topological interpretations [ [D] ]τ of dags D according to topological sortings τ of D. (b) Prove the invariance of topological interpretations,

  • viz. that [

[D] ]τ = [ [D] ]τ′ for all topological sortings τ and τ′ of D. (c) Establish the compositionality of the interpretation function to obtain an initial-algebra semantics.

slide-34
SLIDE 34
slide-35
SLIDE 35
slide-36
SLIDE 36
slide-37
SLIDE 37
slide-38
SLIDE 38
slide-39
SLIDE 39
slide-40
SLIDE 40
slide-41
SLIDE 41
slide-42
SLIDE 42
slide-43
SLIDE 43
slide-44
SLIDE 44
slide-45
SLIDE 45
slide-46
SLIDE 46