Part of a presentation on Coalgebras over Lawvere Metric Spaces

Coalgebras over Sets

Given a functor

T:X→X, the category
Coalg(T)
of
T
-coalgebras
X→TX
has as morphisms
f:(X→ξTX)→(Y→νTY)
the arrows
f:X→Y
such that
Tf∘ξ=ν∘f
.

Intuitively,

T describes the type of possible one-step behaviours of a dynamical system
ξ:X→TX
. In particular, for
X=Set
, we think of
ξ(x)
as the one-step behaviour of the dynamical system in state
x
. Coalgebra morphisms preserve one-step (and hence 'global', 'ongoing') behaviours.

More generally, if

X has a forgetful functor to
Set
it makes sense to speak of 'states'
x∈X
. In such a situation we can define behavioural equivalence as the smallest relation
x∼y

on states that contains pairs

x∼f(x) where
x
ranges over all states of all coalgebras and
f
ranges over all coalgebra morphisms.

A final coalgebra

(Z,ζ) has the property that for every coalgebra
(X,ξ)
there is a unique coalgebra morphism
!:X→Z
.

Fact (Aczel and Mendler, 1989): For

X=Set, if we admit proper classes as carriers, the final coalgebra exists for all functors
T
. Moreover,
x∼y â‡” !(x)=!(y)
.

Intuitively, elements of the final coalgebra classify behaviours of coalgebras. Another way to look at this is to think of final coalgebras as the canonical solutions, up to behavioural equivalence, of the 'domain equation'

X≅TX.

What is the notion of behaviour that can be captured in this way?

Behavioural Equivalence via Bisimulations: The definition of behavioural equivalence quantifies over the proper class of all coalgebras. Importantly, for a large class of functors (including but not limited to the weakly pullback preserving ones) one can give a "local" charactersiation in terms of bisimulations: Two states

x,y are behaviourally equivalent (or bisimilar) iff there is a bisimulation
R
such
xRy
.

We will not dicuss here how to define bisimulation parametrically in

T. Instead, we only recall the well-known case
T=P
:

Example (Aczel, 1988): For

C=Set and
T=P
the powerset functor, and two states
x,y
in two coalgebras
ξ:X→TX
and
ν:Y→TY
, we have that
x∼y
iff there is a relation
R
with
xRy
satisfying
∀x′∈ξ(x).∃y′∈ν(y).x′Ry′ and âˆ€y′∈ν(y).∃x′∈ξ(x).x′Ry′

Activity: Draw pictures of bisimulations. Make examples.

Remark: If you have not seen bisimulations before, the two clauses above should explain the terminology bi-simulation.

Summary: I only presented the most paradigmatic example, but, importantly, the above themes can be developed parametrically in the functor

T:Set→Set.