SLIDE 1 Advanced Logic 2014–15
Dimitri Hendriks
VU University Amsterdam Theoretical Computer Science
week 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 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 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
bisimulations: base condition
w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′
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
bisimulations: the zig-condition
w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′
SLIDE 8
bisimulations: the zig-condition
w w ′ v M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′ and Rwv
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
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
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
bisimulations: the zag-condition
w w ′ M = (W , R, V ) M′ = (W ′, R ′, V ′) if wZw ′
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
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
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
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
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 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
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 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
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
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 example of non-bisimilarity
Example
a b c p d q 1 2 4 p 3 5 q Z =
SLIDE 24 example of non-bisimilarity
Example
a b c p d q 1 2 4 p 3 5 q Z =
since the step from 1 to 2 has to be matched on the left (zag)
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
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
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
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
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 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
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 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
⊆ ↔ ?
What about the other direction: does modal equivalence of states imply that they are bisimilar?