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

final coalgebras from corecursive algebras
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 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

slide-2
SLIDE 2

Outline

1

The problem

2

Solving the problem

3

Modal logic on a dual adjunction

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

slide-3
SLIDE 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 → (PcX)A This is a coalgebra for the endofunctor on Set B : X → (PcX)A How can we construct a final coalgebra?

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

slide-4
SLIDE 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

  • peration.

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

slide-5
SLIDE 5

Hennessy-Milner logic

With countable conjunctions, non-bisimilar states can be distinguished. φ ::=

  • i∈I

φi | ¬φ | [a]φ (I countable) It’s sufficient to take the ✸-layered formulas. φ ::= a (

  • i∈I

φi ∧

  • j∈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

slide-6
SLIDE 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

slide-7
SLIDE 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

slide-8
SLIDE 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}. The structure at x applies X

ζ

FX

F− FM

(Goldblatt; Kupke and Leal)

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

slide-9
SLIDE 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

slide-10
SLIDE 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

slide-11
SLIDE 11

The image-finite case

The functor is B : X → (PfX)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

slide-12
SLIDE 12

The image-finite case

The functor is B : X → (PfX)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

slide-13
SLIDE 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 ∈ Ma 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

slide-14
SLIDE 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

slide-15
SLIDE 15

Corecursive algebra

A map from a B-coalgebra to a B-algebra BX

Bf

BY

θ

  • X

f

  • ζ
  • Y

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

slide-16
SLIDE 16

Corecursive algebra

A map from a B-coalgebra to a B-algebra BX

Bf

BY

θ

  • X

f

  • ζ
  • Y

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

slide-17
SLIDE 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(yi | i ∈ ar(c)) with each yi co-founded. This is a coinductive definition.

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

slide-18
SLIDE 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(yi | i ∈ ar(c)) with each yi 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

slide-19
SLIDE 19

The co-founded part of an algebra

Starting with a B-algebra (Y , θ), we define a monotone endofunction p on PY . For U ∈ PY with inclusion iU : U → Y , we have BU

BiU

  • rU

BY

θ

  • p(U)
  • ip(U)

Y

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

slide-20
SLIDE 20

The co-founded part of an algebra

Starting with a B-algebra (Y , θ), we define a monotone endofunction p on PY . For U ∈ PY with inclusion iU : U → Y , we have BU

BiU

  • rU

BY

θ

  • p(U)
  • ip(U)

Y

This is a monotone endofunction on PY . 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

slide-21
SLIDE 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

slide-22
SLIDE 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

slide-23
SLIDE 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

slide-24
SLIDE 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

slide-25
SLIDE 25

Adjunctions and bimodules

What is an adjunction between C and D

  • p?

Definition of dual adjunction

Functors O∗ : C

  • p → D and O∗ : D
  • p → C, and

C(X, O∗Φ) ∼ = D(Φ, O∗X) natural in X ∈ C

  • p, Φ ∈ D.

Alternative definition of dual adjunction

A functor O : C

  • p × D
  • p → Set (aka bimodule, profunctor), and

C(X, O∗Φ) ∼ = O(X, Φ) ∼ = D(Φ, O∗X) natural in X ∈ C

  • p, Φ ∈ D.

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

slide-26
SLIDE 26

Dual adjunction for satisfaction relations

Consider this dual adjunction between Set and Set. Set(X, PΦ) ∼ = Rel(X, Φ) ∼ = Set(Φ, PX) Suppose X carries a coalgebra and Φ is the set of formulas. − ↔ | = ↔ [ [−] ]

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

slide-27
SLIDE 27

Dual adjunction for satisfaction relations

Consider this dual adjunction between Set and Set. Set(X, PΦ) ∼ = Rel(X, Φ) ∼ = Set(Φ, PX) Suppose X carries a coalgebra and Φ is the set of formulas. − ↔ | = ↔ [ [−] ]

Intuitions

An object X ∈ C is a set of states. An object Φ ∈ D is a set of formulas. O(X, Φ) is the set of satisfaction relations. O∗X is the set of predicates on X. O∗Φ is the set of theories of Φ.

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

slide-28
SLIDE 28

Syntax of a modal logic

The syntax is represented by an endofunctor L on D. LΦ is the set of single-layer formulas with atoms in Φ.

Example: ✸-layered formulas

D is Set. LΦ is the set of formulas a (

  • i∈I

φi ∧

  • j∈J

¬ψj) (φi, ψj ∈ Φ) More concisely LΦ = A × PcΦ × PcΦ. The set of formulas form an initial L-algebra.

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

slide-29
SLIDE 29

Semantics of a modal logic

LΦ is the set of single-layer formula with atoms in Φ. BX is the set of single-step behaviours ending in a state in X.

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

slide-30
SLIDE 30

Semantics of a modal logic

LΦ is the set of single-layer formula with atoms in Φ. BX is the set of single-step behaviours ending in a state in X. The semantics is given by a map ρX,Φ : O(X, Φ) → O(BX, LΦ) natural in X ∈ C

  • p, Φ ∈ D
  • p

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

slide-31
SLIDE 31

Semantics of a modal logic

LΦ is the set of single-layer formula with atoms in Φ. BX is the set of single-step behaviours ending in a state in X. The semantics is given by a map ρX,Φ : O(X, Φ) → O(BX, LΦ) natural in X ∈ C

  • p, Φ ∈ D
  • p

Example: ✸-layered formulas

s(ρX,Φ(| =))a (

i∈I φi ∧ j∈J ¬ψj)

⇐ ⇒ ∃x ∈ sa. (∀i ∈ I.x | = φi ∧ ∀j ∈ J. x | = ψj)

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

slide-32
SLIDE 32

Putting it together

Given an endofunctor B on C, a modal logic consists of a dual adjunction (D, O) to C (syntax) an endofunctor L on D (semantics) a natural transformation ρX,Φ : O(X, Φ) → O(BX, LΦ)

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

slide-33
SLIDE 33

Mates of the semantics

The semantics can be expressed in terms of O∗: ρX

: LO∗X → O∗BX And it can be expressed in terms of O∗: ρ∗

Φ : BO∗Φ → O∗LΦ

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

slide-34
SLIDE 34

Mates of the semantics

The semantics can be expressed in terms of O∗: ρX

: LO∗X → O∗BX And it can be expressed in terms of O∗: ρ∗

Φ : BO∗Φ → O∗LΦ

Expressiveness (Klin)

Suppose C = Set, and B preserves injections. The modal logic is expressive when ρ∗

Φ is injective for all Φ.

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

slide-35
SLIDE 35

Improved recipe

Let B be an endofunctor on Set preserving injections. Let (D, O, L, ρ) be an expressive modal logic, with an initial L-algebra. Then the B-algebra BO∗µL → O∗LµL ∼ = O∗µL is corecursive and injectively structured.

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

slide-36
SLIDE 36

Improved recipe

Let B be an endofunctor on Set preserving injections. Let (D, O, L, ρ) be an expressive modal logic, with an initial L-algebra. Then the B-algebra BO∗µL → O∗LµL ∼ = O∗µL is corecursive and injectively structured. So its (coinductive 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 24 / 26

slide-37
SLIDE 37

In the paper

Generalizing from Set to other categories with a suitable factorization system e.g. Poset and Set

  • p.

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

slide-38
SLIDE 38

Conclusion

We can construct a final coalgebra purely from a modal logic.

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

slide-39
SLIDE 39

Conclusion

We can construct a final coalgebra purely from a modal logic.

Question

The coinductive part is a greatest postfixpoint. At what ordinal is it reached?

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

slide-40
SLIDE 40

Conclusion

We can construct a final coalgebra purely from a modal logic.

Question

The coinductive part is a greatest postfixpoint. At what ordinal is it reached? If B preserves arbitrary intersections, it’s ω.

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