the microcosm principle and concurrency in coalgebra

28
The Microcosm Principle and Concurrency in Coalgebra Ana Sokolova University of Salzburg, Austria Ichiro Hasuo Kyoto University, Japan PRESTO Promotion Program, Japan Bart Jacobs Radboud University Nijmegen, NL Technical University Eindhoven, NL

Upload: kita

Post on 23-Feb-2016

45 views

Category:

Documents


0 download

DESCRIPTION

The Microcosm Principle and Concurrency in Coalgebra. Ichiro Hasuo Kyoto University, Japan PRESTO Promotion Program, Japan Bart Jacobs Radboud University Nijmegen, NL Technical University Eindhoven, NL. Ana Sokolova University of Salzburg, Austria. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: The Microcosm Principle  and Concurrency in  Coalgebra

The Microcosm Principle and Concurrency in Coalgebra

Ana Sokolova University of Salzburg, Austria

Ichiro Hasuo Kyoto University, Japan PRESTO Promotion Program, Japan

Bart Jacobs Radboud University Nijmegen, NL Technical University Eindhoven, NL

Page 2: The Microcosm Principle  and Concurrency in  Coalgebra

Categorical theory of state-based systems

A short review of coalgebra/coinduction

c a t e g o r i c a l l y

system coalgebra

behavior-preserving

map

morphism of coalgebras

behavior coinduction (via final coalgebra)

in Sets : bisimilarityin Kleisli: trace semantics

[Hasuo,Jacobs,Sokolova LMCS´07]

Theory of coalgebra

Page 3: The Microcosm Principle  and Concurrency in  Coalgebra

Coalgebra example – LTS

C = Sets, F = Pfin( x _)

F-coalgebra = LTS

coalgebra c: X FX

states X = { 1,2,3,4} labels = {a,b}

transitions c(1) = {(a,2), (b,3)}, c(2) = , …

1

2 3

4

a

a

a

b

Page 4: The Microcosm Principle  and Concurrency in  Coalgebra

is everywhere

computer networks multi-core processors

modular, component-based design of complex systems

is hard to get right

exponentially growing complexity need for a compositional verification

Concurrency C || Drunning C and D in parallel

Page 5: The Microcosm Principle  and Concurrency in  Coalgebra

Behavior of C || Dis determined by

behavior of C and behavior of D

Compositionalityaids compositional

verification

Conventional presentation

behav iora l equiva lenceo bisimilarityo trace equivalenceo ...

„bisimilarity is a congruence“

Page 6: The Microcosm Principle  and Concurrency in  Coalgebra

• Final coalgebra semantics asprocess semantics.

• Coalgebraic compositionality

Compositionality in coalgebra

|| : CoalgF x CoalgF CoalgF composing coalgebras/systems

|| : Z x Z Z composing behavior

Page 7: The Microcosm Principle  and Concurrency in  Coalgebra

the microcosm principlewith

o operations binary ||

o equationse.g. assoc. of ||

algebraic theoryX 2 C outer interpretation

inner interpretation

Nested algebraic structures:

Page 8: The Microcosm Principle  and Concurrency in  Coalgebra

We name this principle the microcosm principle, after the theory, common in pre-modern correlative cosmologies, that every feature of the microcosm (e.g. the human soul) corresponds to some feature of the macrocosm.

John Baez & James DolanHigher-Dimensional Algebra III:

n-Categories and the Algebra of OpetopesAdv. Math. 1998

Microcosm in macrocosm

Page 9: The Microcosm Principle  and Concurrency in  Coalgebra

The microcosm principle: you may have seen it

monoid in a monoidal category

inner depends on outer

Page 10: The Microcosm Principle  and Concurrency in  Coalgebra

Formalizing the microcosm principle

What do we mean by “microcosm principle”?

mathematical definition of such nested models?

algebraic theory as Lawvere theory

outer modelas prod.-pres. functor

inner modelas lax natural trans.

Page 11: The Microcosm Principle  and Concurrency in  Coalgebra

Outline

microcosm for concurrency(|| and ||)

2-categorical formulation

generic compositionality

theorem

for arbitrary algebraic

theory

parallel composition

via sync nat. trans.

Page 12: The Microcosm Principle  and Concurrency in  Coalgebra

Parallel composition of coalgebrasvia sync

Part 1

Page 13: The Microcosm Principle  and Concurrency in  Coalgebra

Parallel composition of coalgebras

Theorem

­­­: CoalgF x CoalgF CoalgF

­­­: C x C C

liftingF with

syncsyncX,Y : FX ­ FY F(X ­ Y)

Aim

bifunctor CoalgF x CoalgF CoalgF

usually denoted by ­­­(tensor)

Page 14: The Microcosm Principle  and Concurrency in  Coalgebra

Parallel composition via sync

­­on the base category

different sync

different ­

syncX,Y : FX ­ FY F(X ­ Y)

Page 15: The Microcosm Principle  and Concurrency in  Coalgebra

CSP-style (Hoare)

CCS-style (Milner)Assuming

Examples of sync : FX ­ FY F(X ­ Y)

C = Sets, F = Pfin( x _)F-coalgebra = LTS

x : Sets x Sets Sets

­­­: CoalgF x CoalgF CoalgF

liftingF with

sync

Page 16: The Microcosm Principle  and Concurrency in  Coalgebra

|| “composition of states/behavior” arises by coinduction

Inner compositionAim

Page 17: The Microcosm Principle  and Concurrency in  Coalgebra

for ­­by and || by

Compositionality theoremTheorem

­­­: CoalgF x CoalgF CoalgF

­­­: C x C Clifting

F with sync

Assumptions: ­ ,­sync, final exists

Page 18: The Microcosm Principle  and Concurrency in  Coalgebra

Equational properties

associative­­­: CoalgF x CoalgF CoalgF

associative

­­­: C x C C

lifting

F with “associative“ sync

commutativity?

arbitrary algebraic theory?

Page 19: The Microcosm Principle  and Concurrency in  Coalgebra

2-categorical formulation ofthe microcosm principle

Part 2

for arbitrary algebraic theory

Page 20: The Microcosm Principle  and Concurrency in  Coalgebra

Lawvere theory L

A Lawvere theory L is a small categoryo with objects natural numbers o that has finite products

Definition

a category representing an algebraic theory

Page 21: The Microcosm Principle  and Concurrency in  Coalgebra

Lawvere theorya l ge b ra i c t h e o r y a s c a te g o r y L

operations as arrows

equations as commuting diagrams

m (binary)e (nullary)

assoc. of munit law

other arrows:o projectionso composed terms

Page 22: The Microcosm Principle  and Concurrency in  Coalgebra

Models for a Lawvere theory L

a set with L-structure, L-setStandard: set-theoretic model

(product-preserving)

binary op. on X

X 2 C what about nested models?

Page 23: The Microcosm Principle  and Concurrency in  Coalgebra

Outer model: L-category

o a category with L-structure, L-categoryouter model

(product-preserving)

Page 24: The Microcosm Principle  and Concurrency in  Coalgebra

Given an L-category C, an L-object X in it is a lax natural transformationcompatible with products.

Inner model: L-objectDefinition

components lax naturality

X: carrier obj.

inner alg. str. by

mediating 2-cells

Page 25: The Microcosm Principle  and Concurrency in  Coalgebra

Resultslax L-functor = F with sync

CoalgF is an L-category

L-category C

liftinglax L-

functor F

The final object of an L-category is an L-object

lax L-functor?

lax natur. trans.

lax naturality?

Theorem

TheoremEquations are built in!

Page 26: The Microcosm Principle  and Concurrency in  Coalgebra

In a situation

Compositionality theorem

The final object of an L-category is an

L-object

Assumptions: C is an L-category, F is lax L-functor, final exists

by coinduction

The behaviour functor beh is a strict L-functor

CoalgF is an L-category

L-category C

liftinglax L-

functor F

Theorem

Page 27: The Microcosm Principle  and Concurrency in  Coalgebra

Related and future work: bialgebras

Bialgebraic structures

[Turi-Plotkin, Bartels, Klin, …] algebraic structures on coalgebras

In the current work

Equations, not only operations ,are an integral partThe algebraic structures are nested, higher dimensional

Missing

Full GSOS expressivity

Page 28: The Microcosm Principle  and Concurrency in  Coalgebra

Conclusion

o operations o equations

algebraic theoryX 2 C

inner interpretation

outer interpretation

Microcosm principle

2-categorical formulation

Concurrency in coalgebra as motivation and CS

example