Universal Coalgebra

Universal Coalgebra

Universal Coalgebra Enric Cosme Ll´opez Master research supervised by Ramon Jansana Barcelona, February 2012 1 of 47 Contents 0. Introduction 1. Coalgebras for an endofunctor 2. Coalgebra Homomorphisms 3. Bisimulations 4. Subcoalgebras 5. Quotients 6. Isomorphism Theorems 7. Simple Coalgebras 8. Final Coalgebras 2 of 47 It suffices to: • Model systems. • Construct morphisms between systems. • Detect behavioural equivalent states. • Simplify systems. • Define new concepts and operators via coinduction. 0. Introduction Universal Coalgebra is a theory of Systems 3 of 47 0. Introduction Universal Coalgebra is a theory of Systems It suffices to: • Model systems. • Construct morphisms between systems. • Detect behavioural equivalent states. • Simplify systems. • Define new concepts and operators via coinduction. 3 of 47 1. Coalgebra Definition Given a category X, called the base category, and an endofunctor F : X ! X, a F -coalgebra (or F -system) consists of a pair (X ; α), where X is an object of X and α : X ! FX an arrow in X. We call X the base and α the structure map of the coalgebra. 4 of 47 1. Example: Graphs Definition A graph is an ordered pair G = (V ; E) comprising a set V of vertices together with a set E ⊆ [V ]2 called edges. Example 0 V = 5 1 2 3 E = ff0; 2g; f0; 3g; f1; 4g; f2; 3g; f2; 4gg 4 5 of 47 1. Example: Posets Definition A partially ordered set (or poset) is a pair P = (P; ≤) where P is a set and ≤ is an order over P. Example To each p 2 P we can 0 associate two subsets of P: 1 2 Its downset # p = fq 2 P : q ≤ pg Its upset " p = fq 2 P : p ≤ qg 3 4 5 6 of 47 2. Coalgebra Homomorphisms Definition Let X be any category. Let F be an endofunctor over X. Let (X ; α) and (Y ; β) be two F -coalgebras. A F -coalgebra homomorphism, f :(X ; α) ! (Y ; β) is an arrow f : X ! Y in X such that the following diagram commutes: f X Y α β FX FY Ff 7 of 47 2. Example: P-Coalgebra Homomorphisms Remark Given a P-coalgebra (X ; α), we can write it as (X ; Rα) with Rα ⊆ X × X and x1Rαx2 , x2 2 α(x1). Notice that Rα can also play the role of α by setting Rαx1 = fx2 2 X : x1Rαx2g = α(x1). Proposition Let (X ; Rα) and (Y ; Rβ) be two P-coalgebras. A function f : X ! Y is a P-coalgebra homomorphism if and only if: • x1Rαx2 =) f (x1)Rβf (x2) • f (x1)Rβy =) 9x2 2 X (x1Rαx2 and f (x2) = y) 8 of 47 3. Bisimulation Definition Let F be any endofunctor over Set. Let (X ; α), (Y ; β) be two F -coalgebras. A subset Z ⊆ X × Y of the cartesian product of X and Y is called a F -bisimulation if there exists a structure map γ : Z ! FZ such that the projections from Z to X and Y are F -coalgebra homomorphisms. Z π1 π2 X 9 γ Y α FZ β F π F π FX 1 2 FY 9 of 47 3. Bisimulation Definition • We will denote by B(X ; Y ) to the set of all bisimulations between X and Y . • If (X ; α) = (Y ; β), then (Z; γ) is called a bisimulation on (X ; α). We will write B(X ) instead of B(X ; X ). A bisimulation equivalence is a bisimulation that is also an equivalence relation. • Two states x 2 X , y 2 Y are called bisimilar if there exists a bisimulation Z with hx; yi 2 Z. Example The empty set, ; ⊆ X × Y , is always a bisimulation. ; 2 B(X ; Y ). 10 of 47 3. Basic Properties Properties Let (X ; α), (Y ; β) and (W ; δ) be three F -coalgebras. • f : X ! Y is a F -coalgebra homomorphism iff G(f ) 2 B(X ; Y ). G(f ) = fhx; f (x)i : x 2 X g • If Z 2 B(X ; Y ) then Z −1 2 B(Y ; X ). Z −1 = fhy; xi : hx; yi 2 Zg 11 of 47 3. Basic Properties Theorem Let (X ; α) and (Y ; β) be two F -coalgebras and let fZj : j 2 Jg be a family of B(X ; Y ). Then the union of the family is also a bisimulation between X and Y . Corollary B(X ; Y ) is a complete lattice for the inclusion order, with least upper bound and greatest lower bound given by: _ [ Zj = Zj j2J j2J ^ [ \ Zj = fZ : Z 2 B(X ; Y ) and Z ⊆ Zj g j2J j2J 12 of 47 3. Example: Kripke Models Definition Given a set of atomic propositions Prop and an arbitrary set A, the set of all multimodal formulas ML is defined inductively by: p 2Prop ) p 2 ML ? 2 ML '; 2 ML ) ' ! 2 ML ' 2 ML, a 2 A ) a' 2 ML As usual, >, :, ^, _, can be defined from ?, !. The modal operator ♦a for each a 2 A is defined as :a:. 13 of 47 3. Example: Kripke Models Definition A Kripke Model is a triple X = (X ; (Ra)a2A; V ) consisting on a set X , a relation Ra ⊆ X × X for each a 2 A and a valuation V : X !P(Prop). Elements of X are called states. Ra is called the accesibility relation according to a. As usual we think of V as a mapping assigning to each possible state the set of atomics propositions holding in x. Remark For A = 1 we reduce that construction for the case of the usual modal logic. We think of A as a set of agents and of a' as 'agent a knows ''. Atomic propositions describe the facts agents can know. 14 of 47 3. Example: Kripke Models Example fp qg 0 fp r sg 1 fqg 2 3 fq rg 4 5 fp q rg fr sg 15 of 47 3. Example: Kripke Models Definition Given a Kripke Model X = (X ; (Ra)a2A; V ) and x 2 X we define: (X; x) j= p , p 2 V (x) (X; x) 6j= ? (X; x) j= ' ! , if (X; x) j= ' then (X; x) j= (X; x) j= a' , 8y 2 X such that xRay then (X; y) j= ' When the model X is clear from the context, we will write x j= ' instead of (X; x) j= '. We say that ' holds in a model X, written X j= ' if and only if 8x 2 X x j= '. Finally, ' is valid, written j= ' if and only if ' holds in all models. 16 of 47 Theorem (Hennesy and Milner) Let K be the class of image-finite Kripke Models, i.e., for all X = (X ; (Ra)a2A; V ) 2 K and each x 2 X , the set fy : xRayg is finite for each a 2 A. Then in the class K, the converse hold: For all ' 2 ML (x j= ' , x0 j= ') ) x; x0 are bisimilar 3. Example: Kripke Models Theorem Given two Kripke Models X = (X ; (Ra)a2A; V ), 0 0 0 0 0 0 X = (X ; (Ra)a2A; V ) and x 2 X and x 2 X . x; x0 are bisimilar ) for all ' 2 ML (x j= ' , x0 j= ') 17 of 47 3. Example: Kripke Models Theorem Given two Kripke Models X = (X ; (Ra)a2A; V ), 0 0 0 0 0 0 X = (X ; (Ra)a2A; V ) and x 2 X and x 2 X . x; x0 are bisimilar ) for all ' 2 ML (x j= ' , x0 j= ') Theorem (Hennesy and Milner) Let K be the class of image-finite Kripke Models, i.e., for all X = (X ; (Ra)a2A; V ) 2 K and each x 2 X , the set fy : xRayg is finite for each a 2 A. Then in the class K, the converse hold: For all ' 2 ML (x j= ' , x0 j= ') ) x; x0 are bisimilar 17 of 47 3. Pullbacks Definition A weak pullback of two mappings f : X ! Z and g : Y ! Z in the category Set is a triple (P; πX ; πY ) such that P is a set, πX : P ! X and πY : P ! Y are such that: • f πX = g πY 0 0 0 0 0 0 0 • For each triple (P ; πX ; πY ) with πX : P ! X and πY : P ! Y 0 0 0 0 and f πX = gπY , there is a mediating mapping p : P ! P such 0 0 0 0 that πX p = πX and πY p = πY Note that the mediating mapping p0 need not to be unique; adding this requirement to the definition it would give the more familiar, and stronger, notion of pullback. 18 of 47 3. Pullbacks P0 0 p0 0 πX πY P πX πY X Y f g Z 19 of 47 Proposition All endofunctors inductively defined upon: • The Identity Functor I • The Constant Functor C preserve • The Coproduct Functor q weak • The Product Functor × pullbacks. • The Exponent Functor (·)C • The Power Set Functor P 3. Pullbacks Definition Let F be an endofunctor over Set. We say that it preserves (weak) pullbacks, written pwp, if for any (weak) pullback (P; πX ; πY ) of (f ; g), the triple (FP; F πX ; F πY ) is a (weak) pullback of (Ff ; Fg). 20 of 47 3. Pullbacks Definition Let F be an endofunctor over Set. We say that it preserves (weak) pullbacks, written pwp, if for any (weak) pullback (P; πX ; πY ) of (f ; g), the triple (FP; F πX ; F πY ) is a (weak) pullback of (Ff ; Fg). Proposition All endofunctors inductively defined upon: • The Identity Functor I • The Constant Functor C preserve • The Coproduct Functor q weak • The Product Functor × pullbacks.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    62 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us