nLab
simulation

Simulations

Idea

A simulation is a morphism of coalgebras for an endofunctor.

Definition

Let C be a category, and let F:CC be an endofunctor. Recall that a coalgebra of F is an object X of C equipped with a morphism θ:XF(X).

Definition

Given two coalgebras X,X of F, a simulation of X in X is a morphism s:XX in C such that F(s)θ=θs. That is, this diagram commutes:

X θ F(X) s F(s) X θ F(X)\array { X & \overset{\theta}\to & F(X) \\ \llap{s}\downarrow & & \downarrow\rlap{F(s)} \\ X' & \underset{\theta'}\to & F(X') }

The terminology comes from computer science, and we should probably explain what it’s about.

Examples

Relations

Consider the category of sets and the (covariant) power set functor 𝒫. A coalgebra of 𝒫 is a set X equipped with a function θ:X𝒫(X), which is the same thing as a binary relation on X. To fix the notation, we write ab (a precedes b) if aθ(b).

Then in concrete terms, a simulation of X in X is a function s:XX such that

  • s(a)s(b) whenever ab, and
  • t=s(a) for some ab whenever ts(b).

Simulations are commonly used as morphisms between sets equipped with well-founded or extensional relations. In particular, between well-ordered sets (sets equipped with relations that are both well-founded and extensional, as well as transitive), a simulation (if it exists) is unique, and we recover the usual ordered class of ordinal numbers as a thin category.

Open maps in algebraic set theory

In their book Algebraic Set Theory, Joyal and Moerdijk present the notion of a pretopos equipped with a class of open maps. As they remark, every presheaf category carries a canonical class of open maps. We reformulate their notion of canonical open map for an example of primary interest to them, the category of forests, in coalgebraic terms.

The category of forests? is by definition the category of presheaves over the first infinite ordinal ω. Concretely, a forest F is a diagram of sets and functions

F n+1F nF 1F 0.\ldots \to F_{n+1} \to F_n \to \ldots \to F_1 \to F_0.

If yF n+1 maps to xF n, we call y a predecessor of x.

The successor map s:ωω induces a pullback functor

s *=Set s op:Set ω opSet ω op.s^\ast = Set^{s^{op}}: Set^{\omega^{op}} \to Set^{\omega^{op}}.

Let P be the covariant power-object functor on the presheaf topos. Each forest F carries a canonical coalgebra structure over the endofunctor Ps *. Namely, the structure is a presheaf map θ FPs *F that corresponds to the subobject

RF×s *FR \hookrightarrow F \times s^\ast F

where the subset R n is the set of pairs (x,y)F n×F n+1 such that y is an immediate predecessor of x.

If ϕ:FG is a map of forests, in other words if the functions ϕ n:F nG n collectively preserve the predecessor relation, then we have an inclusion

F ϕ G θ F θ G Ps *F Ps *ϕ Ps *G\array{ F & \stackrel{\phi}{\to} & G \\ ^\mathllap{\theta_F} \downarrow & \leq & \downarrow^\mathrlap{\theta_G} \\ P s^\ast F & \underset{P s^\ast \phi}{\to} & P s^\ast G }

where comes from the internal poset structure of Ps *G. If this inclusion is an equality; in other words, if ϕ is a coalgebra map or simulation over Ps *, then we also say (following Joyal and Moerdijk) that ϕ is open. Alternatively, we could say that ϕ is open if the maps ϕ n collectively preserve and reflect the predecessor relation.

Pursuing this more concretely: the composite θ Gϕ corresponds to the subobject S of F×s *G occurring in the pullback

S R G F×s *G ϕ×1 G×s *G\array{ S & \to & R_G \\ \downarrow & & \downarrow \\ F \times s^\ast G & \underset{\phi \times 1}{\to} & G \times s^\ast G }

so that S nF n×G n+1 consists of pairs (x,y) such that y is a predecessor of ϕ n(x) in G. The composite Ps *(ϕ)θ F corresponds to the subobject S of F×s *G occurring in an image factorization

R F S F×s *F 1×s *ϕ F×s *G\array{ R_F & \twoheadrightarrow & S' \\ \downarrow & & \downarrow \\ F \times s^\ast F & \underset{1 \times s^\ast \phi}{\to} & F \times s^\ast G }

so that (taking advantage of the fact that image factorizations in a presheaf topos are computed objectwise) S nF n×G n+1 consists of pairs (x,y) such that y=ϕ n+1y for some predecessor y of x in F. The equality of subobjects S=S matches the notion of open map given in Algebraic Set Theory.

Remark: Joyal and Moerdijk actually refine this idea as follows. Instead of taking forests to be set-valued presheaves, they take them to be presheaves over ω valued in a given pretopos C equipped with a class of small maps (which are defined axiomatically). Then, a small forest is a diagram in C of the form

F n+1F nF 1F 0\ldots \to F_{n+1} \to F_n \to \ldots \to F_1 \to F_0

where each map F n+1F n and F 01 is small. On the other hand, the small map axioms guarantee that small subobjects are representable by a functor P small:CC. This induces a functor P small:C ω opC ω op on the category of forests, and analogous to what we described above, a small forest can be construed in terms of a coalgebra structure FP small(s *F).

Revised on January 18, 2012 14:59:18 by Todd Trimble (74.88.146.52)