Advanced Logic 201415 Dimitri Hendriks VU University Amsterdam - - PowerPoint PPT Presentation

advanced logic 2014 15
SMART_READER_LITE
LIVE PREVIEW

Advanced Logic 201415 Dimitri Hendriks VU University Amsterdam - - PowerPoint PPT Presentation

Advanced Logic 201415 Dimitri Hendriks VU University Amsterdam Theoretical Computer Science week 2 towards bisimulations what can be expressed by the modal language? when can two pointed models ( M , w ) and ( M , w ) be


slide-1
SLIDE 1

Advanced Logic 2014–15

Dimitri Hendriks

VU University Amsterdam Theoretical Computer Science

week 2

slide-2
SLIDE 2

towards bisimulations

◮ what can be expressed by the modal language? ◮ when can two pointed models (M, w) and (M′, w ′) be

distinguished by the modal language?

◮ when should they be viewed as modally identical? ◮ what is the right semantic equivalence for the basic modal language?

slide-3
SLIDE 3

indistinguishable states

Example

1 2 3 4

◮ states 2 and 4 cannot be distinguished by a modal formula ◮ in other words 2 ϕ if and only if 4 ϕ, for all formulas ϕ ◮ why?

slide-4
SLIDE 4

bisimulations

Definition

Let M = (W , R, V ) and M′ = (W ′, R ′, V ′) be models. A relation Z ⊆ W × W ′ is a bisimulation between M and M′, notation Z : M ↔ M′, if for all pairs (w, w ′) ∈ Z:

◮ (base) w ∈ V (p) if and only if w ′ ∈ V ′(p) ◮ (zig)

if Rwv then for some v ′ ∈ W ′ we have: R ′w ′v ′ and vZv ′

◮ (zag)

if R ′w ′v ′ then for some v ∈ W we have: Rwv and vZv ′ So bisimilar states carry the same atomic information, and whenever it is possible to make a transition in one model, it is possible to make a matching transition in the other.

slide-5
SLIDE 5

bisimulations: base condition

w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′

slide-6
SLIDE 6

bisimulations: base condition

w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) q, ¬r, . . . q, ¬r, . . . if wZw ′ then for all p ∈ Var w ∈ V (p) if and only if w ′ ∈ V ′(p)

slide-7
SLIDE 7

bisimulations: the zig-condition

w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′

slide-8
SLIDE 8

bisimulations: the zig-condition

w w ′ v M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and Rwv

slide-9
SLIDE 9

bisimulations: the zig-condition

w w ′ v ∃v ′ ∈ W ′ v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and Rwv then there exists a point v ′ ∈ W ′

slide-10
SLIDE 10

bisimulations: the zig-condition

w w ′ v ∃v ′ ∈ W ′ v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and Rwv then there exists a point v ′ ∈ W ′ such that R ′w ′v ′

slide-11
SLIDE 11

bisimulations: the zig-condition

w w ′ v ∃v ′ ∈ W ′ v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and Rwv then there exists a point v ′ ∈ W ′ such that R ′w ′v ′ and vZv ′

slide-12
SLIDE 12

bisimulations: the zag-condition

w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′

slide-13
SLIDE 13

bisimulations: the zag-condition

w w ′ v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and R ′w ′v ′

slide-14
SLIDE 14

bisimulations: the zag-condition

w w ′ v ∃v ∈ W v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and R ′w ′v ′ then there exists a point v ∈ W

slide-15
SLIDE 15

bisimulations: the zag-condition

w w ′ v ∃v ∈ W v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and R ′w ′v ′ then there exists a point v ∈ W such that Rwv

slide-16
SLIDE 16

bisimulations: the zag-condition

w w ′ v ∃v ∈ W v ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and R ′w ′v ′ then there exists a point v ∈ W such that Rwv and vZv ′

slide-17
SLIDE 17

bisimilarity

Definition

Two models M and M′ are bisimilar, notation M ↔ M′, if there exists a bisimulation Z such that Z : M ↔ M′. Two pointed models (M, w) and (M′, w ′) are bisimilar, notation: M, w ↔ M′, w ′ or just w ↔ w ′, if Z : M ↔ M′ and wZw ′ for some bisimulation Z.

slide-18
SLIDE 18

bisimilarity

Proposition

↔ as a relation between models, is an equivalence relation:

◮ Id : M ↔ M where Id = { (w, w) | w ∈ W }. ◮ If Z : M ↔ M′, then Z −1 : M′ ↔ M, where

Z −1 = { (w ′, w) | (w, w ′) ∈ Z }.

◮ If Z1 : M1 ↔ M2 and Z2 : M2 ↔ M3 then Z1 ◦ Z2 : M1 ↔ M3

where Z1 ◦ Z2 = { (x, z) | ∃y (xZ1y ∧ yZ2z ) }.

slide-19
SLIDE 19

example of bisimilar states

Example

1 2 3 4 States 2 and 4 are bisimilar, since there are bisimulations relating them, for example: B1 = {(2, 4), (3, 3)} B2 = {(1, 1), (2, 4), (4, 2), (3, 3)} B3 = {(1, 1), (2, 2), (2, 4), (3, 3), (4, 2), (4, 4)}

slide-20
SLIDE 20

bisimulation games

◮ players:

◮ Spoiler S claims (finite) models M, s and N, t to be different ◮ Duplicator D claims they are similar

◮ play consists of a sequence of links, starting with s ⌢ t ◮ at each round with current link m ⌢ n:

◮ if m and n differ in their atoms, S wins ◮ if not, S has to pick either a successor x of m, or a successor y of n ◮ D must respond with a matching transition in the other model:

if S took a step m → x in M, then D must find a step n → y in N if S took a step n → y in N, then D must find a step m → x in M

◮ play continues with x ⌢ y ◮ if a player cannot make a move, (s)he loses

◮ infinite games (where we return to an already visited link) are won

by D

slide-21
SLIDE 21

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q states a and 1 are not bisimilar . . .

slide-22
SLIDE 22

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q for suppose they were. then (a, 1) ∈ Z for some bisimulation Z Z ⊆ {a, b, c, d} × {1, 2, 3, 4, 5}

slide-23
SLIDE 23

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q Z =

  • (a, 1), . . .
slide-24
SLIDE 24

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q Z =

  • (a, 1), (b, 2) . . .

since the step from 1 to 2 has to be matched on the left (zag)

slide-25
SLIDE 25

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q Z =

  • (a, 1), (b, 2), (d, 4) . . .

since the step from b to d has to be matched on the right (zig)

slide-26
SLIDE 26

example of non-bisimilarity

Example

a b c p d q 1 2 4 p 3 5 q but d and 4 disagree on their atomic info: d p whereas 4 p. hence, there cannot be a bisimulation linking a to 1.

slide-27
SLIDE 27

another example of a bisimulation

Example

N = (N, S) F = ({e, o}, R) S = {(n, n + 1) | n ∈ N} R = {(e, o), (o, e)} V (p) = {2n | n ∈ N} U(p) = {e} State 0 of model (N, V ) bisimulates with state e of model (F, U).

slide-28
SLIDE 28

modal equivalence of states

Definition

Let M and M′ be models. A state w of M and a state w ′ of M′ are modally equivalent, notation M, w M′, w ′, if they satisfy the same formulas: M, w M′, w ′ if and only if ∀ϕ (M, w ϕ iff M′, w ′ ϕ)

slide-29
SLIDE 29

invariance: ↔ ⊆

Theorem

Bisimilar states are modally equivalent: (M, w ↔ M′, w ′) = ⇒ (M, w M′, w ′) In other words: modal truth is invariant under bisimulation.

slide-30
SLIDE 30

bounded morphisms: functional frame-bisimulations

Definition

Let F = (W , R) and F ′ = (W ′, R ′) be frames. A function h : W → W ′ is a bounded morphism if it satisfies

◮ for all w, v ∈ W , if Rwv then R ′h(w)h(v) ◮ for all w ∈ W , v ′ ∈ W ′, if R ′h(w)v ′ then there exists v ∈ W such

that h(v) = v ′ and Rwv We write h : F ։ F ′ if h is a surjective bounded morphism from F to F ′ (so when the image of h is the entire domain of F ′). We write F ։ F ′ if h : F ։ F ′ for some h, and call F ′ a bounded morphic image of F. Note that the relation H = {(x, h(x)) | x ∈ W } satisfies the zig and zag conditions of bisimulation.

slide-31
SLIDE 31

surjective bounded morphisms preserve frame validity

Theorem

A bounded morphic image F ′ of F contains the theory of F, i.e., (F ։ F ′) = ⇒ (F ϕ = ⇒ F ′ ϕ)

slide-32
SLIDE 32

application: asymmetry not modally definable

Example

There is no modal formula that characterizes asymmetry (Rxy → ¬Ryx); proof using frames N en F from slide 45:

◮ suppose there was such a formula ϕ ◮ then N ϕ ◮ let h be defined by h(2n) = e and h(2n + 1) = o ◮ then h : N ։ F and so F ϕ ◮ contradiction, as F is not asymmetric ◮ hence ϕ does not exist

In general:

Corollary

Let C be a class of frames, and let F, F ′ be frames. If F ∈ C, F ։ F ′ and F ′ ∈ C, then C cannot be characterized by a modal formula.

slide-33
SLIDE 33

⊆ ↔ ?

What about the other direction: does modal equivalence of states imply that they are bisimilar?