[Oxford Internship] The Category of Event Structures
My M1 intership has just begun! This time, it’s at Oxford University, under the supervision of Ohad Kammar.
It will revolve around the foundations of concurrency semantics. To be more precise:
different kinds of maps between Glynn Winskel’s event structures give rise to different kinds of concurrency models. These are expressible as monads over event structures with symmetry and rigid maps. The goal will be to describe these monads using algebraic operations and equations.
Just like last year, I’ll try to write about it with blog posts.
To begin with, let’s begin with the main protagonists: event structures.
The Category of Event Structures
Objects
In broad strokes, event structures are a way to represent a set of events (that are part of a given process) depending on one another: events may be caused/cause/conflict with other events.
- An event structure
: -
is given by:
- a poset
of events (where is thought of as the causal dependency relation) such that- for all
, (downward closure) is finite
- for all
- a consistency relation
such that- for all
, is stable under inclusion- if
and then
- for all
- a poset
- Configurations of an event structure
: -
where
and
NB:
1.
This stems from the fact that
- finite by definition of
being an event structure - down-closed, by transitivity of
-
consistent, as
-
and by the third property of
(with ):as a result of which, by a straightforward recurrence (by setting
):so by closure under inclusion:
2.
A finite subset of events is in the consistency relation iff it occurs as a subset of a finite configuration.
-
: if , then , which is:- finite, as it is a finite (
is finite) union of finite (by the event structure definition) sets - down-closed, by transitivity of
-
consistent: like in the first exercise (and since any subset of
is in by closure by inclusion), we can show by recurrence that for all :which implies, by closure under inclusion, that:
- finite, as it is a finite (
-
: owing to the fact that any configuration is consistent.
3.
For all
, we have:
-
: it’s due to the fact that is down-closed, as a configuration. -
: with , it results that , i.e.
Maps
- A map of event structures
: -
is a function
that is- configuration preserving: if
, then - locally injective: for
, if and , then
- configuration preserving: if
- A rigid map of event structures:
-
is a map that is also monotone: if
, then .
4.
For any map
:
- it is a configuration
- for any configuration
such that , as is down-closed
And:
- as
preserves configurations, is also a configuration
so the result follows by minimality of
5.
For any map
:
6.
Any map
is causality reflecting on configurations:
If
As the configuration
and
NB: a map is not necessarily causality reflecting on the whole carrier set, as exemplfied by the following counter-example: if
then the only map
7.
Note that
is
- monotone iff
causality reflecting on configurations iff $∀ x ∈ \Confstar[E], ∀ e∈ x, \, f^{-1}_{ x}[\dc f(e)] ⊆ \dc e$
The proof is straightforward.
8.
Any rigid map
is configuration reflecting on configurations:
Let’s show that any
-
is consistent, as is (and is transitive) -
is down-closed:As
is a configuration, hence down-closed:But
being monotone implies:So
and as taking preimages preserves inclusion and
is injective on the configuration :
9.
Any map
is rigid iff
-
: Let’s assume that is rigid and . Then , where . All that remains to be shown is that is a configuration, which directly results from the previous lemma. -
: it’ll be sufficient to show that for all , . As is a map:So there exists
such that . On top of that, so by injectivity of on the configuration :Therefore:
Well-founded posets
- A well-founded/finitary poset:
-
is a poset in which every element has only a finite number of elements below it.
10.
Let
be a well-founded poset. Then is an event structure.
All the properties to check are trivially true:
-
is indeed a partial order for which all the downard closures are finite (as is well-founded) -
all the singletons are members of
-
is stable under inclusion -
the augmentation property holds, as
is finite provided is.
11.
Let
be well-founded posets, and be any function. Then: is a rigid map iff and is causality reflecting.
-
: if is a rigid map, then it is a map, and it is causality reflecting on configurations as showed previously, and for all : as is monotone as shown previously (since is the smallest configuration containing )
-
: if is causality reflecting and , then: is monotone as for all is configuration preserving, as the image of a finite set is a finite set-
is injective (and hence locally injective): if , then as is causality reflecting: so so
thus
by antisymmetry.
Path lifting property
- The category of paths
: -
- Objects: finite posets (seen as event structures)
- Morphisms: rigid maps
Let
- Comma category
: -
- Objects: pairs
where and is a rigid map - Morphisms:
where is a rigid map and the following triangle commutes:
- Objects: pairs
- A map
satisifies the path lifting property: -
iff any such commuting square where
factors into two commuting triangles:
12.
We can regard
as a sub-category of the comma . Is it full?
It’s not: with
then the following diagram commutes:
so that
13.
A rigid map
satisfies the path lifting property iff:
-
: Let and such that . Then by lifting property, the following square factors into these two triangles (where and are the inclusion maps):By setting
: : since is the image of a finite configuration by a configuration-preserving map-
: as
-
: let such that the following square commutes:Then
and (images of finite configurations by configuration-preserving maps) are such thatso there exists a finite configuration
such that .By local injectivity, the function $f_{ x’}^{ y}: x’ ⟶ y y x’$) is bijective. One can check that its inverse ${f_{x’}^{ y}}^{-1}$ remains a rigid map: - it is injective, thus locally injective.
- it is monotone, since the map
is causality reflecting on configurations (as seen previously) -
it is configuration-preserving, that is:
It amounts to show that
which results from
being configuration-reflecting on the configuration (as it is a rigid map: cf. lemma 8).
So by setting $φ ≝ {f_{ x’}^{ y}}^{-1} \circ q$, the result follows, as
Leave a comment