final coalgebras from corecursive algebras
play

Final coalgebras from corecursive algebras Paul Blain Levy - PowerPoint PPT Presentation

Final coalgebras from corecursive algebras Paul Blain Levy University of Birmingham July 13, 2015 Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 1 / 26 Outline The problem 1 Solving the


  1. Final coalgebras from corecursive algebras Paul Blain Levy University of Birmingham July 13, 2015 Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 1 / 26

  2. Outline The problem 1 Solving the problem 2 Modal logic on a dual adjunction 3 Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 2 / 26

  3. Transition systems Let A be a set of labels. An image-countable A -labelled transition system consists of a set X a function X → ( P c X ) A This is a coalgebra for the endofunctor on Set B : X �→ ( P c X ) A How can we construct a final coalgebra? Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 3 / 26

  4. Strongly extensional quotient of an all-encompassing coalgebra Let P be an all-encompassing B -coalgebra: every element of every B -coalgebra is bisimilar to some element of P . Then the strongly extensional quotient (quotient by bisimilarity) of P is a final coalgebra. Examples of all-encompassing coalgebras, for A = 1 (Large) The sum of all coalgebras. The sum of all coalgebras carried by a subset of N . The set of non-well-founded terms for a constant and an ω -ary operation. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 4 / 26

  5. Hennessy-Milner logic With countable conjunctions, non-bisimilar states can be distinguished. � φ ::= φ i | ¬ φ | [ a ] φ ( I countable) i ∈ I It’s sufficient to take the ✸ -layered formulas. � � φ ::= � a � ( φ i ∧ ¬ φ j ) i ∈ I j ∈ J Semantics in a colagebra ( X , ζ ) u | = � a � ( � i ∈ I φ i ∧ � j ∈ J ¬ φ j ) ⇐ ⇒ ∃ x ∈ ( ζ ( u )) a . ( ∀ i ∈ I . x | = φ i ∧ ∀ j ∈ J . x �| = ψ j ) Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 5 / 26

  6. Formulas and states For a state x , write � x � = { φ | x | = φ } . For a formula φ , write [ [ φ ] ] X ,ζ = { x ∈ X | x | = φ } . Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 6 / 26

  7. Formulas and states For a state x , write � x � = { φ | x | = φ } . For a formula φ , write [ [ φ ] ] X ,ζ = { x ∈ X | x | = φ } . Theorem x ≃ y iff � x � = � y � ( ⇐ ) is soundness. ( ⇒ ) is expressivity. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 6 / 26

  8. Final coalgebra from modal logic Theorem x ∼ y iff � x � = � y � Gives a final coalgebra whose states are sets of formulas. Take { � x � | ( X , ζ ) a T -coalgebra, x ∈ X } . F � − � � FM ζ � FX The structure at � x � applies X (Goldblatt; Kupke and Leal) Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 7 / 26

  9. The Problem { [ [ x ] ] X ,ζ | ( X , ζ ) a T -coalgebra, x ∈ X } This is very similar to quotienting by bisimilarity. It is constructed out of general coalgebras. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 8 / 26

  10. The Problem { [ [ x ] ] X ,ζ | ( X , ζ ) a T -coalgebra, x ∈ X } This is very similar to quotienting by bisimilarity. It is constructed out of general coalgebras. Our question Can we build a final coalgebra purely from the logic, without reference to other coalgebras? We need to say when a set of formulas is of the form [ [ x ] ] X ,ζ . Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 8 / 26

  11. The image-finite case The functor is B : X �→ ( P f X ) A . Build the canonical model, consisting of sets of formulas deductively closed in the modal logic K. This is a transition system. The hereditarily image-finite elements form a final coalgebra. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 9 / 26

  12. The image-finite case The functor is B : X �→ ( P f X ) A . Build the canonical model, consisting of sets of formulas deductively closed in the modal logic K. This is a transition system. The hereditarily image-finite elements form a final coalgebra. But what about the image-countable case? Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 9 / 26

  13. Starting-point: a B -algebra The carrier is the set Form of theories, i.e. sets of ✸ -layered formulas. The structure α : B Form → Form is given as follows. For M ∈ B Form, the formula � a � ( � i ∈ I φ i ∧ � j ∈ J ¬ ψ j ) is in α M when there exists M ∈ M a such that ∀ i ∈ I . φ i ∈ M and ∀ j ∈ J . ψ j �∈ M . Think of M as describing the semantics of the successors of a node x , then α M is the semantics of x . Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 10 / 26

  14. Properties of the B -algebra The B -algebra we have just seen is corecursive injectively structured. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 11 / 26

  15. � � � Corecursive algebra A map from a B -coalgebra to a B -algebra Bf � BY BX ζ θ X Y f Think: to recursively define f ( x ), first parse x into parts, apply f to each part, then combine the results. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 12 / 26

  16. � � � Corecursive algebra A map from a B -coalgebra to a B -algebra Bf � BY BX ζ θ X Y f Think: to recursively define f ( x ), first parse x into parts, apply f to each part, then combine the results. A coalgebra is recursive when there’s a unique map to every algebra. Corresponds to well-foundedness. (Taylor) An algebra is corecursive when there’s a unique map from every coalgebra. Our algebra of fomulas sets is corecursive. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 12 / 26

  17. Co-founded elements of an algebra Let S be a signature, i.e. a set of operations each with an arity. Let ( Y , . . . ) be an S -algebra. An element of Y is co-founded when it is of the form c ( y i | i ∈ ar( c )) with each y i co-founded. This is a coinductive definition. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 13 / 26

  18. Co-founded elements of an algebra Let S be a signature, i.e. a set of operations each with an arity. Let ( Y , . . . ) be an S -algebra. An element of Y is co-founded when it is of the form c ( y i | i ∈ ar( c )) with each y i co-founded. This is a coinductive definition. We shall generalize this to B -coalgebras where B is an endofunctor on Set preserving injections. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 13 / 26

  19. � � � The co-founded part of an algebra Starting with a B -algebra ( Y , θ ), we define a monotone endofunction p on P Y . For U ∈ P Y with inclusion i U : U → Y , we have Bi U BU BY r U �� θ � Y p ( U ) i p ( U ) Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 14 / 26

  20. � � � The co-founded part of an algebra Starting with a B -algebra ( Y , θ ), we define a monotone endofunction p on P Y . For U ∈ P Y with inclusion i U : U → Y , we have Bi U BU BY r U �� θ � Y p ( U ) i p ( U ) This is a monotone endofunction on P Y . A prefixpoint of p is a subalgebra of ( Y , θ ). The greatest postfixpoint ν p is called the co-founded part of ( Y , θ ). It is a surjectively structured algebra, in fact the coreflection of ( Y , θ ) into surjectively structured algebras. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 14 / 26

  21. Facts about the co-founded part Claim The (co-founded part) − 1 of our algebra is a final coalgebra, and the least subalgebra is an initial algebra. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 15 / 26

  22. Facts about the co-founded part Claim The (co-founded part) − 1 of our algebra is a final coalgebra, and the least subalgebra is an initial algebra. The co-founded part of a corecursive algebra ( Y , θ ) is corecursive. If ( Y , θ ) is injectively structured, the co-founded part is injectively and surjectively structured, hence bijectively structured. Any isomorphically structured corecursive algebra gives us a final coalgebra. If ( Y , θ ) is injectively structured, then its least subalgebra is an initial algebra. (Ad´ amek and Trnkov´ a) Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 15 / 26

  23. The recipe Let B be an endofunctor on Set preserving injections. Take an injectively structured, corecursive B -algebra. Its (co-founded part) − 1 is a final B -coalgebra, and its least subalgebra is an initial B -algebra. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 16 / 26

  24. Modal logics in general We can improve and generalize this recipe using Klin’s framework of expressive modal logic on a dual adjunction. Paul Blain Levy (University of Birmingham) Final coalgebras from corecursive algebras July 13, 2015 17 / 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend