String diagrams
from control to concurrency and beyond
Pawel Sobocinski Tallinn University of Technology IFIP WG 2.2 Vienna 24/09/19
Joint work with Filippo Bonchi, Fabio Zanasi and Robin Piedeleu
String diagrams from control to concurrency and beyond Pawel - - PowerPoint PPT Presentation
String diagrams from control to concurrency and beyond Pawel Sobocinski Tallinn University of Technology IFIP WG 2.2 Vienna 24/09/19 Joint work with Filippo Bonchi, Fabio Zanasi and Robin Piedeleu Compositionality Syntax Semantics homomorphic
Pawel Sobocinski Tallinn University of Technology IFIP WG 2.2 Vienna 24/09/19
Joint work with Filippo Bonchi, Fabio Zanasi and Robin Piedeleu
the semantic domain
semantic domain
axiomatisation in the syntax
Syntax Semantics
homomorphic translation
syntax and study formal semantics as a separate subject
CS, control, engineering, science, mathematics, …)
IEEE Control Systems Magazine, 2007.
(b) (a) Tearing Linking Zooming
“Thinking of a dynamical system as a behavior, and of inter-connection as variable sharing, gets the physics right.”
Syntax Semantics = Relations
homomorphic translation
categorical algebra of the symmetric monoidal category Rel×
R ; S = { (x,z) | ∃y. xRy ∧ ySz}
R × R’ = { ((x,x’),(y,y’)) | xRy ∧ x’R’y’ }
categories are baked in to the diagrams
String diagrams Relations
monoidal functor
c ,
d
::= | | | | | | | | | | c
d
| c
d
The intended interpretation is that is addition, the constant zero, copy, discar
String diagrams LinRelQ
monoidal functor Sound and fully complete axiomatisation - the theory of IH (Interacting Hopf algebras)
(Bonchi, S., Zanasi, Interacting Hopf Algebras, 2014)
fractions R(x)
reasoning about signal flow graphs: models of computation that compute solutions of rational functions
importance of the operational view
typically R or Q
n
ε
n
n n n m
n+m
ε
ε
n n n
n
ε
ε n
n n m
m n
c
a
b c0
d
b
c d0
c ; d
a
c c0 ; d0
s
a1
b1 c0
d
a2
b2 d0
c d
a1 a2
b1 b2
d0 d0 (6)
(
x
,m)
n
m (
x
,n)
Bonchi, Piedeleu, Sobocinski and Zanasi. Bialgebraic Semantics for String Diagrams. CONCUR 2019
1-x-x2 x
=
x x x x x x x x
=
x x
=
x
=
x
=
x x x x x x
=
x x
String diagrams f.g. additive relations
monoidal functor
(a’,b’) ∈ R then (a+a’,b+b’) ∈ R
expressed as a sum of basis elements
Dickson’s Lemma
Bonchi, Holland, Piedeleu, S, Zanasi. Diagrammatic algebra: from Linear to Concurrent Systems. PoPL 2019
Same syntax as before, and…. sound and fully complete axiomatisation
account of signal flow graphs
account of Petri nets
2 := x
String diagrams affine relations
monoidal functor Two sound and complete axiomatisations.
Bonchi, Piedeleu, Sobocinski, Zanasi. Graphical Affine Algebra. LiCS 2019
sound and complete diagrammatic proof system for open circuits like:
+ – 12V 8Ω 4Ω 6Ω
1 1 2
I
k
! =
k
7 I
+ – k !
=
k
I
k
! =
k
I ✓ ◆ = I ✓ ◆ =
I ( ) =
> > : B @ C A I ( ) =
I
k x
I
k x
We can then show that
I B @
a b
1 C A =
a b
=
a b
=
b a
=
b a
=
a+b
= I
a+b !
a b
=
a b
=
a b
=
a b
= =
to equations leads to denotations
wheel: the basic operations for composing process are those
some basic interaction of GLA primitives
Fong, Rapisarda and Sobocinski, "A categorical approach to open and interconnected dynamical systems", LICS `16
category theory to concurrency, control, game theory, engineering, machine learning, …