scispace - formally typeset
Search or ask a question
Journal ArticleDOI

Profunctors, Open Maps and Bisimulation

11 Oct 2004-BRICS Report Series-Vol. 11, Iss: 22
TL;DR: In this paper, it was shown that a colimit preserving functor between presheaf categories (corresponding to a profunctor) preserves open maps and open map bisimulation.
Abstract: This paper studies fundamental connections between profunctors (i.e., distributors, or bimodules), open maps and bisimulation. In particular, it proves that a colimit preserving functor between presheaf categories (corresponding to a profunctor) preserves open maps and open map bisimulation. Consequently, the composition of profunctors preserves open maps as 2-cells. A guiding idea is the view that profunctors, and colimit preserving functors, are linear maps in a model of classical linear logic. But profunctors, and colimit preserving functors, as linear maps, are too restrictive for many applications. This leads to a study of a range of pseudo-comonads and how non-linear maps in their co-Kleisli bicategories preserve open maps and bisimulation. The pseudo-comonads considered are based on finite colimit completion, ``lifting'', and indexed families. The paper includes an appendix summarising the key results on coends, left Kan extensions and the preservation of colimits. One motivation for this work is that it provides a mathematical framework for extending domain theory and denotational semantics of programming languages to the more intricate models, languages and equivalences found in concurrent computation. But the results are likely to have more general applicability because of the ubiquitous nature of profunctors.

Content maybe subject to copyright    Report

BRICS
Basic Research in Computer Science
Profunctors, Open Maps and Bisimulation
Gian Luca Cattani
Glynn Winskel
BRICS Report Series RS-04-22
ISSN 0909-0878 October 2004
BRICS RS-04-22 Cattani & Winskel: Profunctors, Open Maps and Bisimulation

Copyright
c
2004, Gian Luca Cattani & Glynn Winskel.
BRICS, Department of Computer Science
University of Aarhus. All rights reserved.
Reproduction of all or part of this work
is permitted for educational or research use
on condition that this copyright notice is
included in any copy.
See back inner page for a list of recent BRICS Report Series publications.
Copies may be obtained by contacting:
BRICS
Department of Computer Science
University of Aarhus
Ny Munkegade, building 540
DK–8000 Aarhus C
Denmark
Telephone:+45 8942 3360
Telefax: +45 8942 3255
Internet: BRICS@brics.dk
BRICS publications are in general accessible through the World Wide
Web and anonymous FTP through these URLs:
http://www.brics.dk
ftp://ftp.brics.dk
This document in subdirectory RS/04/22/

Profunctors, Open Maps and Bisimulation
Gian Luca Cattani
DS Data Systems S.p.A.,
Via Ugozzolo 121/A,
I-43100 Parma, Italy.
Email: cattanil@dsdata.it.
Glynn Winskel
University of Cambridge Computer Laboratory,
Cambridge CB3 0FD, England.
Email: gw104@cl.cam.ac.uk.
October 2004
Abstract
This paper studies fundamental connections between profunctors (i.e., dis-
tributors, or bimodules), open maps and bisimulation. In particular, it proves
that a colimit preserving functor between presheaf categories (corresponding to
a profunctor) preserves open maps and open map bisimulation. Consequently,
the composition of profunctors preserves open maps as 2-cells. A guiding idea
is the view that profunctors, and colimit preserving functors, are linear maps in
a model of classical linear logic. But profunctors, and colimit preserving func-
tors, as linear maps, are too restrictive for many applications. This leads to a
study of a range of pseudo-comonads and how non-linear maps in their co-Kleisli
bicategories preserve open maps and bisimulation. The pseudo-comonads con-
sidered are based on finite colimit completion, “lifting”, and indexed families.
The paper includes an appendix summarising the key results on coends, left
Kan extensions and the preservation of colimits. One motivation for this work
is that it provides a mathematical framework for extending domain theory and
denotational semantics of programming languages to the more intricate models,
languages and equivalences found in concurrent computation. But the results
are likely to have more general applicability because of the ubiquitous nature of
profunctors.
Contents
1 Introduction 3
2 Presheaves, open maps and bisimulation 6
To appear in Mathematical Structures in Computer Science
1

3 A result on open map preservation 9
4 The bicategory Prof and the 2-category Cocont 14
5 The structure of Prof 17
5.1 Pseudo-productsand-coproducts..................... 17
5.2 Tensor.................................... 18
5.3 Dualiser ................................... 19
5.4 Functionspace ............................... 19
5.5 Linearlogic ................................. 20
6 Open map bisimulation in Prof 21
7Profandω-accessible categories 24
7.1 ω-Accessible categories . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.2 Finite colimit completion . . . . . . . . . . . . . . . . . . . . . . . . . 26
7.2.1 Domaintheoreticanalogies .................... 31
7.3 A failure of open map preservation . . . . . . . . . . . . . . . . . . . . 31
8 Lifting and connected colimits 32
8.1 Lifting.................................... 33
8.2 Connectedcolimitpreservingfunctors .................. 34
8.2.1 Rootedcolimits........................... 37
8.3 Bisimulation................................. 38
9 Pseudo comonads via families 40
9.1 Motivation ................................. 40
9.2 Indexed families . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.3 Pseudo-comonads on Prof ........................ 42
9.4 Onpreservationofbisimulation...................... 43
10 Conclusions 48
A A primer on coends and left Kan extensions 50
A.1 Representations, universality and parametricity . . . . . . . . . . . . . 50
A.2 (Co)Endsandtheirproperties....................... 51
A.2.1 Dinaturaltransformations..................... 51
A.2.2 Coends ............................... 51
A.2.3 Parametricity for coends . . . . . . . . . . . . . . . . . . . . . . 53
A.2.4 The Fubini theorem for coends . . . . . . . . . . . . . . . . . . 54
A.2.5 Ends................................. 55
A.2.6 Endandcoendformulae...................... 55
A.3 Preservationofcolimits .......................... 55
A.4 Kanextensionsandtheirproperties ................... 56
A.4.1 LeftKanextensions ........................ 56
A.4.2 PointwiseleftKanextensions................... 57
A.4.3 LeftKanextensionsalongYoneda ................ 58
A.4.4 Thedensityformulae........................ 59
A.4.5 Afactorisationlemma ....................... 59
2

A.4.6 Extensionsoffunctors ....................... 60
1 Introduction
At first sight, it is perhaps surprising that profunctors,
1
a categorical generalisation
of relations [5, 31], and bisimulation [37, 42], a central equivalence in the study of
processes are intimately related. Briefly, the chain of connections runs:
- Nondeterministic processes can be represented as presheaves. A presheaf over a
category P can be thought of as a form of transition system whose computation
paths have shapes objects in P; the objects of P are paths and the arrows of P
express how one computation path can extend to another. A presheaf category
b
P =[P
op
, Set] is the free colimit completion of P, so its objects, presheaves, as
colimits, are collections of paths identified along subpaths. Familiar models of
processes such as known categories of synchronisation trees and event structures,
and many others, can be realised as presheaf categories P for some suitable choice
of category P [28].
- Bisimulation between processes is caught via spans of open maps.Anopenmap
between presheaves is a generalisation of a functional bismulation between tran-
sition systems (i.e., a bisimulation whose underlying relation on states happens
to be a function). In many, though not all, cases the bisimulation obtained
coincides with familiar definitions [28].
- Profunctors correspond to colimit preserving functors between presheaf cate-
gories, which somewhat remarkably preserve open maps and so bisimulation
(see Theorem 3.3).
The concept of a bisimulation was invented by Milner and Park as a relation
between the states of labelled transition systems to express when two states have
essentially the same communication capabilities [37, 42]. Showing processes bisimilar
(an equivalence given as a maximum fixed point) amounts to exhibiting a bisimulation
(a postfixed point) relating them. This coinductive method comes from a direct
reading of Tarski’s fixed point theorem [50].
Subsequently the idea of bisimulation has been extended and generalised to a
range of languages and models, most often based on a transition system obtained
from an operational semantics. Though a pattern has emerged, bisimulation is most
oftendenedinanad hoc manner for the language at hand, and sometimes can be a
matter of great subtlety [36].
Broadly speaking, there are two lines of development in making the definition of
bisimulation more systematic; so that the variety of bisimulation is determined by
the denotational semantics given to a language. One approach is that based on the
recognition that bisimulation arises from final coalgebras. This line is very fruitful
in a range of categories of process models and domain theories, and often furnishes
useful proof principles of coinduction, echoing the technique promoted by Milner and
Park [25]. The other approach is based on open maps.
Open maps have a prehistory in pure mathematics [27], but first appeared in
computer science in [28]. Their initial role was in giving a unified approach to a
1
Also called distributors and bimodules.
3

Citations
More filters
Journal ArticleDOI
28 May 2004
TL;DR: The domain theory can be generalised to presheaf models, providing a more refined treatment of nondeterministic branching, and a discussion of a broader programme of research, towards a fully fledged domain theory for concurrency.
Abstract: A simple domain theory for concurrency is presented. Based on a categorical model of linear logic and associated comonads, it highlights the role of linearity in concurrent computation. Two choices of comonad yield two expressive metalanguages for higher-order processes, both arising from canonical constructions in the model. Their denotational semantics are fully abstract with respect to contextual equivalence. One language derives from an exponential of linear logic; it supports a straightforward operational semantics with simple proofs of soundness and adequacy. The other choice of comonad yields a model of affine-linear logic, and a process language with a tensor operation to be understood as a parallel composition of independent processes. The domain theory can be generalised to presheaf models, providing a more refined treatment of nondeterministic branching. The article concludes with a discussion of a broader programme of research, towards a fully fledged domain theory for concurrency.

46 citations


Cites background from "Profunctors, Open Maps and Bisimula..."

  • ...(The mathematics for this enterprise is developed in [15]....

    [...]

  • ...The study of presheaf models for concurrency has drawn attention to a 2categorical model of linear logic and associated pseudo-comonads [15]....

    [...]

  • ...There is a category analogous to Aff based on presheaves rather than path sets; its maps preserve connected colimits in presheaf categories [40, 15]....

    [...]

  • ...The presheaf semantics helps expose a range of possible pseudo comonads with which to interpret !P [15, 40]....

    [...]

Book ChapterDOI
04 Apr 2005
TL;DR: This talk will consider the line of research involving denotational models of the pi calculus and algebraic theories with variable-binding operators, indicating how the abstract mathematical structure underlying these models fits with that of Joyal's combinatorial species of structures.
Abstract: The general aim of this talk is to advocate a combinatorial perspective, together with its methods, in the investigation and study of models of computation structures. This, of course, should be taken in conjunction with the well-established views and methods stemming from algebra, category theory, domain theory, logic, type theory, etc. In support of this proposal I will show how such an approach leads to interesting connections between various areas of computer science and mathematics; concentrating on one such example in some detail. Specifically, I will consider the line of my research involving denotational models of the pi calculus and algebraic theories with variable-binding operators, indicating how the abstract mathematical structure underlying these models fits with that of Joyal's combinatorial species of structures. This analysis suggests both the unification and generalisation of models, and in the latter vein I will introduce generalised species of structures and their calculus. These generalised species encompass and generalise various of the notions of species used in combinatorics. Furthermore, they have a rich mathematical structure (akin to models of Girard's linear logic) that can be described purely within Lawvere's generalised logic. Indeed, I will present and treat the cartesian closed structure, the linear structure, the differential structure, etc. of generalised species axiomatically in this mathematical framework. As an upshot, I will observe that the setting allows for interpretations of computational calculi (like the lambda calculus, both typed and untyped; the recently introduced differential lambda calculus of Ehrhard and Regnier; etc) that can be directly seen as translations into a more basic elementary calculus of interacting agents that compute by communicating and operating upon structured data.

41 citations

Journal ArticleDOI
TL;DR: It is shown that open-map bisimulations within a range of presheaf models are congruences for a general process language, in which CCS and related languages are easily encoded.

13 citations

Book ChapterDOI
03 Sep 2003
TL;DR: A fully abstract denotational semantics for the higher-order process language HOPLA is presented, which characterises contextual and logical equivalence, the latter linking up with simulation.
Abstract: A fully abstract denotational semantics for the higher-order process language HOPLA is presented. It characterises contextual and logical equivalence, the latter linking up with simulation. The semantics is a clean, domain-theoretic description of processes as downwards-closed sets of computation paths: the operations of HOPLA arise as syntactic encodings of canonical constructions on such sets; full abstraction is a direct consequence of expressiveness with respect to computation paths; and simple proofs of soundness and adequacy shows correspondence between the denotational and operational semantics.

12 citations

Proceedings ArticleDOI
26 Jun 2005
TL;DR: A path-based domain theory for higher-order processes is extended to allow name generation consisting of path orders with join-preserving functions between their domains of path sets and the functor category [I, Lin], where I consists of finite sets of names and injections.
Abstract: A path-based domain theory for higher-order processes is extended to allow name generation. The original domain theory is built around the monoidal-closed category Lin consisting of path orders with join-preserving functions between their domains of path sets. Name generation is adjoined by forming the functor category [I, Lin], where I consists of finite sets of names and injections. The functor category [I, Lin] is no longer monoidal-closed w.r.t. the tensor inherited pointwise from Lin. However, conditions are given under which function spaces exist. The conditions are preserved by a rich discipline of linear types, including those of new-HOPLA, a recent powerful language for higher-order processes with name generation.

6 citations