Similarity quotients as final coalgebras Paul Blain Levy University - - PowerPoint PPT Presentation

similarity quotients as final coalgebras
SMART_READER_LITE
LIVE PREVIEW

Similarity quotients as final coalgebras Paul Blain Levy University - - PowerPoint PPT Presentation

Similarity quotients as final coalgebras Paul Blain Levy University of Birmingham February 3, 2010 Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 1 / 32 Outline Examples 1 General


slide-1
SLIDE 1

Similarity quotients as final coalgebras

Paul Blain Levy

University of Birmingham

February 3, 2010

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 1 / 32

slide-2
SLIDE 2

Outline

1

Examples

2

General Theory

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 2 / 32

slide-3
SLIDE 3

Examples

We study the following examples:

1 bisimilarity 2 bisimilarity and similarity together 3 similarity 4 upper similarity 5 intersection of lower and upper similarity 6 2-nested similarity Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 3 / 32

slide-4
SLIDE 4

Examples

We study the following examples:

1 bisimilarity 2 bisimilarity and similarity together 3 similarity 4 upper similarity 5 intersection of lower and upper similarity 6 2-nested similarity

In each case we see how to use a final coalgebra how to construct a final coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 3 / 32

slide-5
SLIDE 5

Bisimilarity: Using A Final Coalgebra

Fix a countable set Act of labels. Let F : X → Pℵ0(Act × X) on Set. A countably branching Act-labelled transition system is an F-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 4 / 32

slide-6
SLIDE 6

Bisimilarity: Using A Final Coalgebra

Fix a countable set Act of labels. Let F : X → Pℵ0(Act × X) on Set. A countably branching Act-labelled transition system is an F-coalgebra. Let A be a final F-coalgebra, and σB the anamorphism from B.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 4 / 32

slide-7
SLIDE 7

Bisimilarity: Using A Final Coalgebra

Fix a countable set Act of labels. Let F : X → Pℵ0(Act × X) on Set. A countably branching Act-labelled transition system is an F-coalgebra. Let A be a final F-coalgebra, and σB the anamorphism from B.

Theorem: characterizing bisimilarity

b ∈ B is bisimilar to c ∈ C iff σBb = σCc.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 4 / 32

slide-8
SLIDE 8

Bisimilarity: Using A Final Coalgebra

Fix a countable set Act of labels. Let F : X → Pℵ0(Act × X) on Set. A countably branching Act-labelled transition system is an F-coalgebra. Let A be a final F-coalgebra, and σB the anamorphism from B.

Theorem: characterizing bisimilarity

b ∈ B is bisimilar to c ∈ C iff σBb = σCc.

Theorem: no junk

Every element of A is of the form σBb.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 4 / 32

slide-9
SLIDE 9

Bisimilarity: Constructing A Final Coalgebra

Let F : X → Pℵ0(Act × X) on Set. Suppose A is a transition system that is big enough i.e. every b ∈ B is bisimilar to some a ∈ A. Then A modulo bisimilarity (with behaviour map chosen to make A

A/ a homomorphism) is a final F-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 5 / 32

slide-10
SLIDE 10

Bisimilarity: Constructing A Final Coalgebra

Let F : X → Pℵ0(Act × X) on Set. Suppose A is a transition system that is big enough i.e. every b ∈ B is bisimilar to some a ∈ A. Then A modulo bisimilarity (with behaviour map chosen to make A

A/ a homomorphism) is a final F-coalgebra.

Example of a big enough transition system

A

def

= the disjoint union of all transition systems on initial segments of N. It’s big enough because every (B, b) has countably many successors.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 5 / 32

slide-11
SLIDE 11

Bisimilarity: Constructing A Final Coalgebra

Let F : X → Pℵ0(Act × X) on Set. Suppose A is a transition system that is big enough i.e. every b ∈ B is bisimilar to some a ∈ A. Then A modulo bisimilarity (with behaviour map chosen to make A

A/ a homomorphism) is a final F-coalgebra.

Example of a big enough transition system

A

def

= the disjoint union of all transition systems on initial segments of N. It’s big enough because every (B, b) has countably many successors. If A isn’t big enough, then A/ is still subfinal, i.e. parallel morphisms to it are equal.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 5 / 32

slide-12
SLIDE 12

Bisimilarity and Similarity: Using A Final Coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) where U Sim(R) V

def

⇔ ∀x ∈ U.∃y ∈ V .u R v.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 6 / 32

slide-13
SLIDE 13

Bisimilarity and Similarity: Using A Final Coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) where U Sim(R) V

def

⇔ ∀x ∈ U.∃y ∈ V .u R v. Let A be a final G-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 6 / 32

slide-14
SLIDE 14

Bisimilarity and Similarity: Using A Final Coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) where U Sim(R) V

def

⇔ ∀x ∈ U.∃y ∈ V .u R v. Let A be a final G-coalgebra. Any transition system B gives a G-coalgebra ∆B, using the discrete order.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 6 / 32

slide-15
SLIDE 15

Bisimilarity and Similarity: Using A Final Coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) where U Sim(R) V

def

⇔ ∀x ∈ U.∃y ∈ V .u R v. Let A be a final G-coalgebra. Any transition system B gives a G-coalgebra ∆B, using the discrete order.

Theorem: characterizing bisimilarity and similarity

b ∈ B is bisimilar to c ∈ C iff σ∆Bb = σ∆Cc. b ∈ B is similar to c ∈ C iff σ∆Bb σ∆Cc

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 6 / 32

slide-16
SLIDE 16

Bisimilarity and Similarity: Using A Final Coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) where U Sim(R) V

def

⇔ ∀x ∈ U.∃y ∈ V .u R v. Let A be a final G-coalgebra. Any transition system B gives a G-coalgebra ∆B, using the discrete order.

Theorem: characterizing bisimilarity and similarity

b ∈ B is bisimilar to c ∈ C iff σ∆Bb = σ∆Cc. b ∈ B is similar to c ∈ C iff σ∆Bb σ∆Cc

Theorem: no junk

Every element of A is of the form σ∆Bb.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 6 / 32

slide-17
SLIDE 17

Bisimilarity and similarity: constructing a final coalgebra (Hughes-Jacobs)

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim())

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 7 / 32

slide-18
SLIDE 18

Bisimilarity and similarity: constructing a final coalgebra (Hughes-Jacobs)

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) Suppose A is a transition system that is big enough i.e. every b ∈ B is bisimilar to some a ∈ A.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 7 / 32

slide-19
SLIDE 19

Bisimilarity and similarity: constructing a final coalgebra (Hughes-Jacobs)

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()) Suppose A is a transition system that is big enough i.e. every b ∈ B is bisimilar to some a ∈ A. Then A modulo bisimilarity, preordered by similarity, is a final G-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 7 / 32

slide-20
SLIDE 20

Quotienting by a preorder

If A is a set with an equivalence relation ∼ then A/∼ is a set consisting of the equivalence classes [a]∼

def

= {x ∈ A | x ∼ a}

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 8 / 32

slide-21
SLIDE 21

Quotienting by a preorder

If A is a set with an equivalence relation ∼ then A/∼ is a set consisting of the equivalence classes [a]∼

def

= {x ∈ A | x ∼ a} More generally if A is a set with a preorder then A/ is a poset consisting of the principal lower sets [a]

def

= {x ∈ A | x a}

  • rdered by inclusion.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 8 / 32

slide-22
SLIDE 22

Quotienting by a preorder

If A is a set with an equivalence relation ∼ then A/∼ is a set consisting of the equivalence classes [a]∼

def

= {x ∈ A | x ∼ a} More generally if A is a set with a preorder then A/ is a poset consisting of the principal lower sets [a]

def

= {x ∈ A | x a}

  • rdered by inclusion.

So Poset is a full reflective subcategory of Preord. Poset

Preord

Q

  • Paul Blain Levy (University of Birmingham)

Similarity quotients as final coalgebras February 3, 2010 8 / 32

slide-23
SLIDE 23

Similarity: using a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 9 / 32

slide-24
SLIDE 24

Similarity: using a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Let A be a final H-coalgebra

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 9 / 32

slide-25
SLIDE 25

Similarity: using a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Let A be a final H-coalgebra

Theorem: characterizing similarity

b ∈ B is similar to c ∈ C iff σ∆Bb σ∆Cc.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 9 / 32

slide-26
SLIDE 26

Similarity: using a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim()). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Let A be a final H-coalgebra

Theorem: characterizing similarity

b ∈ B is similar to c ∈ C iff σ∆Bb σ∆Cc.

Theorem: no junk

Every element of A is of the form σ∆Bb.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 9 / 32

slide-27
SLIDE 27

Similarity: constructing a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim(() )). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 10 / 32

slide-28
SLIDE 28

Similarity: constructing a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim(() )). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Suppose A is a transition system that is big enough i.e. every b ∈ B is mutually similar to some a ∈ A.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 10 / 32

slide-29
SLIDE 29

Similarity: constructing a final coalgebra

Let G be the endofunctor on Preord mapping (X, ) to (Pℵ0(Act × X), Sim(() )). Let H be the composite Poset

Preord

G

Preord

Q

Poset

Suppose A is a transition system that is big enough i.e. every b ∈ B is mutually similar to some a ∈ A. Then A modulo similarity is a final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 10 / 32

slide-30
SLIDE 30

Lower and Upper Simulations (Ulidowski, Lassen, Pitcher)

A countably branching Act-labelled transition system with divergence is a coalgebra for X → Pℵ0((Act × X)⊥).

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 11 / 32

slide-31
SLIDE 31

Lower and Upper Simulations (Ulidowski, Lassen, Pitcher)

A countably branching Act-labelled transition system with divergence is a coalgebra for X → Pℵ0((Act × X)⊥). We write b ⇑ to mean that b may diverge.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 11 / 32

slide-32
SLIDE 32

Lower and Upper Simulations (Ulidowski, Lassen, Pitcher)

A countably branching Act-labelled transition system with divergence is a coalgebra for X → Pℵ0((Act × X)⊥). We write b ⇑ to mean that b may diverge. Let B and C be two such, and let R ⊆ B × C be a relation.

Lower simulation

R is a lower simulation when, for b R c b a b′ implies there is c′ such that c a c′ and b′ R c′.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 11 / 32

slide-33
SLIDE 33

Lower and Upper Simulations (Ulidowski, Lassen, Pitcher)

A countably branching Act-labelled transition system with divergence is a coalgebra for X → Pℵ0((Act × X)⊥). We write b ⇑ to mean that b may diverge. Let B and C be two such, and let R ⊆ B × C be a relation.

Lower simulation

R is a lower simulation when, for b R c b a b′ implies there is c′ such that c a c′ and b′ R c′.

Upper simulation

R is an upper simulation when, for b R c with b ⇑ c ⇑ c a c′ implies that there is b′ such that b a b′ and b′ Rc′.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 11 / 32

slide-34
SLIDE 34

Lower and Upper Simulations (Ulidowski, Lassen, Pitcher)

A countably branching Act-labelled transition system with divergence is a coalgebra for X → Pℵ0((Act × X)⊥). We write b ⇑ to mean that b may diverge. Let B and C be two such, and let R ⊆ B × C be a relation.

Lower simulation

R is a lower simulation when, for b R c b a b′ implies there is c′ such that c a c′ and b′ R c′.

Upper simulation

R is an upper simulation when, for b R c with b ⇑ c ⇑ c a c′ implies that there is b′ such that b a b′ and b′ Rc′. There are many variants.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 11 / 32

slide-35
SLIDE 35

Upper similarity and final coalgebras

Let G be the endofunctor on Preord mapping (X, ) → (Pℵ0((Act × X)⊥), Upper()). U Upper(R) V

def

⇔ ⊥ ∈ U ⇒ (⊥ ∈ V ∧ ∀y ∈ V . ∃x ∈ U. x R y)

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 12 / 32

slide-36
SLIDE 36

Upper similarity and final coalgebras

Let G be the endofunctor on Preord mapping (X, ) → (Pℵ0((Act × X)⊥), Upper()). U Upper(R) V

def

⇔ ⊥ ∈ U ⇒ (⊥ ∈ V ∧ ∀y ∈ V . ∃x ∈ U. x R y) Let H be the composite Poset

Preord

G

Preord

Q

Poset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 12 / 32

slide-37
SLIDE 37

Upper similarity and final coalgebras

Let G be the endofunctor on Preord mapping (X, ) → (Pℵ0((Act × X)⊥), Upper()). U Upper(R) V

def

⇔ ⊥ ∈ U ⇒ (⊥ ∈ V ∧ ∀y ∈ V . ∃x ∈ U. x R y) Let H be the composite Poset

Preord

G

Preord

Q

Poset

Then a final H-coalgebra characterizes upper similarity, with no junk a big enough transition system with divergence, modulo upper similarity, gives a final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 12 / 32

slide-38
SLIDE 38

Doubly preordered sets

We are going to study the intersection of lower similarity and upper similarity. A doubly preordered set (X, l, u) is a set with two preorders.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 13 / 32

slide-39
SLIDE 39

Doubly preordered sets

We are going to study the intersection of lower similarity and upper similarity. A doubly preordered set (X, l, u) is a set with two preorders. It is antisymmetric when l ∩ u is a partial order

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 13 / 32

slide-40
SLIDE 40

Doubly preordered sets

We are going to study the intersection of lower similarity and upper similarity. A doubly preordered set (X, l, u) is a set with two preorders. It is antisymmetric when l ∩ u is a partial order We obtain categories TwoPoset

TwoPreord

Q

  • Paul Blain Levy (University of Birmingham)

Similarity quotients as final coalgebras February 3, 2010 13 / 32

slide-41
SLIDE 41

Lower similarity ∩ upper similarity

Let G be the endofunctor on TwoPreord mapping (X, l, u) to (Pℵ0((Act × X)⊥), Lower(l), Upper(u))

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 14 / 32

slide-42
SLIDE 42

Lower similarity ∩ upper similarity

Let G be the endofunctor on TwoPreord mapping (X, l, u) to (Pℵ0((Act × X)⊥), Lower(l), Upper(u)) Let H be the composite TwoPoset

TwoPreord

G

TwoPreord

Q

TwoPoset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 14 / 32

slide-43
SLIDE 43

Lower similarity ∩ upper similarity

Let G be the endofunctor on TwoPreord mapping (X, l, u) to (Pℵ0((Act × X)⊥), Lower(l), Upper(u)) Let H be the composite TwoPoset

TwoPreord

G

TwoPreord

Q

TwoPoset

Then a final H-coalgebra characterizes lower and upper similarity, with no junk a big enough transition system with divergence, modulo lower similarity ∩ upper similarity, gives a final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 14 / 32

slide-44
SLIDE 44

2-nested simulation (Groote and Vaandrager)

Let B and C be transition systems. A 2-nested simulation from B to C is a simulation contained in the converse of a simulation. Equivalently a simulation contained in the converse of similarity. Equivalently a simulation contained in mutual similarity.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 15 / 32

slide-45
SLIDE 45

2-nested simulation (Groote and Vaandrager)

Let B and C be transition systems. A 2-nested simulation from B to C is a simulation contained in the converse of a simulation. Equivalently a simulation contained in the converse of similarity. Equivalently a simulation contained in mutual similarity. Corresponds to the bisimulation game where the Opponent can swap sides

  • nly once.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 15 / 32

slide-46
SLIDE 46

2-nested simulation (Groote and Vaandrager)

Let B and C be transition systems. A 2-nested simulation from B to C is a simulation contained in the converse of a simulation. Equivalently a simulation contained in the converse of similarity. Equivalently a simulation contained in mutual similarity. Corresponds to the bisimulation game where the Opponent can swap sides

  • nly once.

Corresponds to modal formulas ✸n and ✸n✷m.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 15 / 32

slide-47
SLIDE 47

2-nested preordered sets

A 2-nested preordered set (X, 1, 2) is a set with two preorders, where 2⊆1.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 16 / 32

slide-48
SLIDE 48

2-nested preordered sets

A 2-nested preordered set (X, 1, 2) is a set with two preorders, where 2⊆1. It is antisymmetric when 2 is a partial order.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 16 / 32

slide-49
SLIDE 49

2-nested preordered sets

A 2-nested preordered set (X, 1, 2) is a set with two preorders, where 2⊆1. It is antisymmetric when 2 is a partial order. We obtain categories NestPoset

NestPreord

Q

  • Paul Blain Levy (University of Birmingham)

Similarity quotients as final coalgebras February 3, 2010 16 / 32

slide-50
SLIDE 50

2-nested simulation and final coalgebras

Let G be the endofunctor on NestPreord mapping (X, 1, 2) to (Pℵ0((Act × X)⊥), OpSim(1), OpSim(1) ∩ Sim(2))

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 17 / 32

slide-51
SLIDE 51

2-nested simulation and final coalgebras

Let G be the endofunctor on NestPreord mapping (X, 1, 2) to (Pℵ0((Act × X)⊥), OpSim(1), OpSim(1) ∩ Sim(2)) Let H be the composite NestPoset

NestPreord

G

NestPreord

Q

NestPoset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 17 / 32

slide-52
SLIDE 52

2-nested simulation and final coalgebras

Let G be the endofunctor on NestPreord mapping (X, 1, 2) to (Pℵ0((Act × X)⊥), OpSim(1), OpSim(1) ∩ Sim(2)) Let H be the composite NestPoset

NestPreord

G

NestPreord

Q

NestPoset

Then a final H-coalgebra characterizes (the converse of) similarity and 2-nested similarity, with no junk a big enough transition system, modulo 2-nested similarity, gives a final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 17 / 32

slide-53
SLIDE 53

Proving these results simultaneously

Instead of having to prove all these results separately, we want general theorems that they are all instances of.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 18 / 32

slide-54
SLIDE 54

Proving these results simultaneously

Instead of having to prove all these results separately, we want general theorems that they are all instances of. What is the data for our theorems?

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 18 / 32

slide-55
SLIDE 55

The two categories

We want two categories with the same objects: a regular category C of functions a category A of quasi-relations

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 19 / 32

slide-56
SLIDE 56

The two categories

We want two categories with the same objects: a regular category C of functions a category A of quasi-relations

Examples with C = Set

A quasi-relation A

R

B is

1 a relation 2 a pair of relations (Rl, Ru) 3 a pair of relations (R1, R2) with R2 ⊆ R1. Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 19 / 32

slide-57
SLIDE 57

The two categories

We want two categories with the same objects: a regular category C of functions a category A of quasi-relations

Examples with C = Set

A quasi-relation A

R

B is

1 a relation 2 a pair of relations (Rl, Ru) 3 a pair of relations (R1, R2) with R2 ⊆ R1.

We write P(X) for the quasi-predicates on X, given by a regular fibration

  • n C, then define

A(X, Y )

def

= P(X × Y )

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 19 / 32

slide-58
SLIDE 58

Quasi-preorders

A quasi-preorder on X is a quasi-endorelation that is reflexive and transitive.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 20 / 32

slide-59
SLIDE 59

Quasi-preorders

A quasi-preorder on X is a quasi-endorelation that is reflexive and transitive. is antisymmetric when, for each object Y , the induced preorder on C(Y , X) is antisymmetric. (For well-pointed C: when the preorder on C(1, X) is antisymmetric.)

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 20 / 32

slide-60
SLIDE 60

Quasi-preorders

A quasi-preorder on X is a quasi-endorelation that is reflexive and transitive. is antisymmetric when, for each object Y , the induced preorder on C(Y , X) is antisymmetric. (For well-pointed C: when the preorder on C(1, X) is antisymmetric.) We assume that a preordered object (X, ) can be quotiented augmented by an arbitrary X

R

  • X .

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 20 / 32

slide-61
SLIDE 61

Quasi-preorders

A quasi-preorder on X is a quasi-endorelation that is reflexive and transitive. is antisymmetric when, for each object Y , the induced preorder on C(Y , X) is antisymmetric. (For well-pointed C: when the preorder on C(1, X) is antisymmetric.) We assume that a preordered object (X, ) can be quotiented augmented by an arbitrary X

R

  • X .

We obtain an adjunction QPoset

QPreord

Q

  • Paul Blain Levy (University of Birmingham)

Similarity quotients as final coalgebras February 3, 2010 20 / 32

slide-62
SLIDE 62

Relational extension

We require an endofunctor F on C, expressing the behaviour

Examples with C = Set

X → Pℵ0(Act × X) X → Pℵ0((Act × X)⊥)

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 21 / 32

slide-63
SLIDE 63

Relational extension

We require an endofunctor F on C, expressing the behaviour

Examples with C = Set

X → Pℵ0(Act × X) X → Pℵ0((Act × X)⊥) And we need Γ mapping a quasi-relation X

R

  • Y to FX

ΓR

FY .

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 21 / 32

slide-64
SLIDE 64

Relational extension

We require an endofunctor F on C, expressing the behaviour

Examples with C = Set

X → Pℵ0(Act × X) X → Pℵ0((Act × X)⊥) And we need Γ mapping a quasi-relation X

R

  • Y to FX

ΓR

FY .

Γ is a relational extension of F.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 21 / 32

slide-65
SLIDE 65

Properties of relational extension (1)

Monotonicity

X

R,R′

Y

R ⊆ R′ ⇒ ΓR ⊆ ΓR′

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 22 / 32

slide-66
SLIDE 66

Properties of relational extension (1)

Monotonicity

X

R,R′

Y

R ⊆ R′ ⇒ ΓR ⊆ ΓR′

Stability (Hughes and Jacobs)

X ′

f

X

R

  • Y ′

g

Y

Γ((f × g)−1R) = (Ff × Fg)−1R

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 22 / 32

slide-67
SLIDE 67

Properties of relational extension (2)

Lax functoriality

idΓX ⊆ ΓidX (ΓR); (ΓS) ⊆ Γ(R; S) X

R

Y

S

Z

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 23 / 32

slide-68
SLIDE 68

Properties of relational extension (2)

Lax functoriality

idΓX ⊆ ΓidX (ΓR); (ΓS) ⊆ Γ(R; S) X

R

Y

S

Z

Hesselink and Thijs required strict preservation of binary composition, lax preservation of identities.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 23 / 32

slide-69
SLIDE 69

Properties of relational extension (2)

Lax functoriality

idΓX ⊆ ΓidX (ΓR); (ΓS) ⊆ Γ(R; S) X

R

Y

S

Z

Hesselink and Thijs required strict preservation of binary composition, lax preservation of identities. But that excludes the case of 2-nested simulation.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 23 / 32

slide-70
SLIDE 70

Simulation on transition systems

Let (A, ζ) and (B, ζ′) be F-coalgebras (“transition systems”). A simulation from (A, ζ) to (B, ζ′) is a quasi-relation A

R

  • B such

that R ⊆ (ζ × ζ′)−1ΓR.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 24 / 32

slide-71
SLIDE 71

Simulation on transition systems

Let (A, ζ) and (B, ζ′) be F-coalgebras (“transition systems”). A simulation from (A, ζ) to (B, ζ′) is a quasi-relation A

R

  • B such

that R ⊆ (ζ × ζ′)−1ΓR. This property is preserved by composition (and identity), and by pullback.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 24 / 32

slide-72
SLIDE 72

Ordered Coalgebras

We define a functor G on QPreord, mapping (X, ) → (FX, Γ ).

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 25 / 32

slide-73
SLIDE 73

Ordered Coalgebras

We define a functor G on QPreord, mapping (X, ) → (FX, Γ ). Then an endofunctor H on QPoset, given by QPoset

QPreord

G

QPreord

Q

QPoset

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 25 / 32

slide-74
SLIDE 74

Ordered Coalgebras

We define a functor G on QPreord, mapping (X, ) → (FX, Γ ). Then an endofunctor H on QPoset, given by QPoset

QPreord

G

QPreord

Q

QPoset

The functor ∆ : coalg(F) − → coalg(H) maps (X, ζ) to (X, (=X))

ζ

(FX, Γ(=FX))

p

Q(FX, Γ(=FX))

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 25 / 32

slide-75
SLIDE 75

Ordered Coalgebras

We define a functor G on QPreord, mapping (X, ) → (FX, Γ ). Then an endofunctor H on QPoset, given by QPoset

QPreord

G

QPreord

Q

QPoset

The functor ∆ : coalg(F) − → coalg(H) maps (X, ζ) to (X, (=X))

ζ

(FX, Γ(=FX))

p

Q(FX, Γ(=FX))

So H-coalgebras are a generalization of “transition systems” (F-coalgebras).

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 25 / 32

slide-76
SLIDE 76

Ordered Coalgebras

We define a functor G on QPreord, mapping (X, ) → (FX, Γ ). Then an endofunctor H on QPoset, given by QPoset

QPreord

G

QPreord

Q

QPoset

The functor ∆ : coalg(F) − → coalg(H) maps (X, ζ) to (X, (=X))

ζ

(FX, Γ(=FX))

p

Q(FX, Γ(=FX))

So H-coalgebras are a generalization of “transition systems” (F-coalgebras). We can define a notion of simulation on these too.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 25 / 32

slide-77
SLIDE 77

Using A Final Coalgebra: The Greatest Simulation

Suppose we have a final H-coalgebra (X, (), ζ).

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 26 / 32

slide-78
SLIDE 78

Using A Final Coalgebra: The Greatest Simulation

Suppose we have a final H-coalgebra (X, (), ζ). Let A and B be H-coalgebras, with anamorphisms a and b respectively.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 26 / 32

slide-79
SLIDE 79

Using A Final Coalgebra: The Greatest Simulation

Suppose we have a final H-coalgebra (X, (), ζ). Let A and B be H-coalgebras, with anamorphisms a and b respectively. Then (a × b)−1() is the greatest simulation from A to B.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 26 / 32

slide-80
SLIDE 80

Using A Final Coalgebra: No junk

Some categories have the property that all regular epimorphisms split. Example Set (Axiom of Choice) Example SetI for any set I Non-example Set·→·

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 27 / 32

slide-81
SLIDE 81

Using A Final Coalgebra: No junk

Some categories have the property that all regular epimorphisms split. Example Set (Axiom of Choice) Example SetI for any set I Non-example Set·→· Let C have this property. Again, let A = (X, (), ζ) be a final coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 27 / 32

slide-82
SLIDE 82

Using A Final Coalgebra: No junk

Some categories have the property that all regular epimorphisms split. Example Set (Axiom of Choice) Example SetI for any set I Non-example Set·→· Let C have this property. Again, let A = (X, (), ζ) be a final coalgebra.

No junk theorem, formal version

There is X

ξ

FX such that the anamorphism ∆(X, ξ)

a

A is just

idX.

No junk theorem, informal version

Every element of A is the anamorphic image of some node of an ordinary transition system.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 27 / 32

slide-83
SLIDE 83

Quotienting By Similarity

Let A = (X, (), ζ) be an H-coalgebra. Suppose there is a greatest simulation from A to A. Let’s take the quotient Q(X, ).

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 28 / 32

slide-84
SLIDE 84

Quotienting By Similarity

Let A = (X, (), ζ) be an H-coalgebra. Suppose there is a greatest simulation from A to A. Let’s take the quotient Q(X, ). We want a coalgebra QA = (Q(X, ), ξ) such that A

p(X,)

QA is a

coalgebra morphism. Fortunately there is a unique such ξ.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 28 / 32

slide-85
SLIDE 85

Quotienting By Similarity

Let A = (X, (), ζ) be an H-coalgebra. Suppose there is a greatest simulation from A to A. Let’s take the quotient Q(X, ). We want a coalgebra QA = (Q(X, ), ξ) such that A

p(X,)

QA is a

coalgebra morphism. Fortunately there is a unique such ξ. And QA is a sub-final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 28 / 32

slide-86
SLIDE 86

Safe morphisms

Let A = (X, (), ζ) and B = (Y , (′), ζ′) be H-coalgebras.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 29 / 32

slide-87
SLIDE 87

Safe morphisms

Let A = (X, (), ζ) and B = (Y , (′), ζ′) be H-coalgebras. A safe morphism A

f

B is a function X

f

Y such that

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 29 / 32

slide-88
SLIDE 88

Safe morphisms

Let A = (X, (), ζ) and B = (Y , (′), ζ′) be H-coalgebras. A safe morphism A

f

B is a function X

f

Y such that

Informal definition

every node of a is mapped to a node that is mutually similar to it.

Formal definition

(=)X ⊆ (X × f )−1(A,B) (=)X ⊆ (f × X)−1(B,A) H-coalgebra morphisms—and in particular F-coalgebra morphisms—are always safe.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 29 / 32

slide-89
SLIDE 89

Safe morphisms

Let A = (X, (), ζ) and B = (Y , (′), ζ′) be H-coalgebras. A safe morphism A

f

B is a function X

f

Y such that

Informal definition

every node of a is mapped to a node that is mutually similar to it.

Formal definition

(=)X ⊆ (X × f )−1(A,B) (=)X ⊆ (f × X)−1(B,A) H-coalgebra morphisms—and in particular F-coalgebra morphisms—are always safe.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 29 / 32

slide-90
SLIDE 90

Constructing A Final Coalgebra

Let A = (X, (), ζ) be an H-coalgebra which is “big enough”:

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 30 / 32

slide-91
SLIDE 91

Constructing A Final Coalgebra

Let A = (X, (), ζ) be an H-coalgebra which is “big enough”: weakly final in the category of H-coalgebras and safe morphisms.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 30 / 32

slide-92
SLIDE 92

Constructing A Final Coalgebra

Let A = (X, (), ζ) be an H-coalgebra which is “big enough”: weakly final in the category of H-coalgebras and safe morphisms. Then QA is final.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 30 / 32

slide-93
SLIDE 93

Constructing A Final Coalgebra from a Transition System

Suppose regular epimorphisms spit in C.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 31 / 32

slide-94
SLIDE 94

Constructing A Final Coalgebra from a Transition System

Suppose regular epimorphisms spit in C. Let A = (X, ζ) be an F-coalgebra which is “big enough”:

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 31 / 32

slide-95
SLIDE 95

Constructing A Final Coalgebra from a Transition System

Suppose regular epimorphisms spit in C. Let A = (X, ζ) be an F-coalgebra which is “big enough”: weakly final in the category of F-coalgebras and safe morphisms.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 31 / 32

slide-96
SLIDE 96

Constructing A Final Coalgebra from a Transition System

Suppose regular epimorphisms spit in C. Let A = (X, ζ) be an F-coalgebra which is “big enough”: weakly final in the category of F-coalgebras and safe morphisms. Then Q∆A is a final H-coalgebra.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 31 / 32

slide-97
SLIDE 97

Conclusions

We have a general theory giving various branching-time relations in terms

  • f final coalgebras, and vice versa.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 32 / 32

slide-98
SLIDE 98

Conclusions

We have a general theory giving various branching-time relations in terms

  • f final coalgebras, and vice versa.

This covers all our examples of endofunctors on Poset, TwoPoset, NestPoset.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 32 / 32

slide-99
SLIDE 99

Conclusions

We have a general theory giving various branching-time relations in terms

  • f final coalgebras, and vice versa.

This covers all our examples of endofunctors on Poset, TwoPoset, NestPoset. To incorporate the examples of endofunctors on Set, we add an extra parameter to the theory.

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 32 / 32

slide-100
SLIDE 100

Conclusions

We have a general theory giving various branching-time relations in terms

  • f final coalgebras, and vice versa.

This covers all our examples of endofunctors on Poset, TwoPoset, NestPoset. To incorporate the examples of endofunctors on Set, we add an extra parameter to the theory. New notion of relational extension that includes 2-nested similarity.

Question

Metric spaces as an example?

Paul Blain Levy (University of Birmingham) Similarity quotients as final coalgebras February 3, 2010 32 / 32