SLIDE 1
The Algebra of DAGs Marcelo Fiore Computer Laboratory University - - PowerPoint PPT Presentation
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 2
SLIDE 3
A Question of Robin Milner
On the generalization from tree structure . . .
- . . . to dag structure.
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
1 1 2 1 2
4
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
The Landscape of Algebraic Structures
Rel
- MatN
- MatZ
- Perm
- Fun
- POrd
Dag DagN DagZ
N
PermN Forest
SLIDE 8
The Mathematical Setting
[Lawvere, MacLane]
Symmetric Monoidal Equational Presentations
6
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
- 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
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
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
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
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
- 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
- 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
- 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
- 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
- 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
a morphism 4
- 1
- 2
- 3
- 3
- 1
- 2
3
- 1
- 2
- 3
- 1
- 2
- 2
- 1
- 2
- 1
15
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
a forest 1 2 3
- 1
- 16
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
- 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
- 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
(a) The commutative bialgebra structure turns the symmetric monoidal structure into biproduct structure.
18
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
(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
- 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
- 7. The free PROP P[ • + DegComBiAlg ] on the equational
presentation of a node together with that of degenerate commutative bialgebras is Dag.
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
- 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
- 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 35
SLIDE 36
SLIDE 37
SLIDE 38
SLIDE 39
SLIDE 40
SLIDE 41
SLIDE 42
SLIDE 43
SLIDE 44
SLIDE 45
SLIDE 46