3 COMP 1 5 9 3 Algorithmic Verification Simulation and - - PowerPoint PPT Presentation

3 comp 1 5 9 3 algorithmic verification
SMART_READER_LITE
LIVE PREVIEW

3 COMP 1 5 9 3 Algorithmic Verification Simulation and - - PowerPoint PPT Presentation

<latexit


slide-1
SLIDE 1

Model Equivalence Abstraction and Simulation

COMP 3 9 1 5 3 Algorithmic Verification

<latexit sha1_base64="P4jUJHo6g1yopyZBD74hiv3LdI=">AIZHicjVRb9NIFD6kXEKW6l4QEhoCBalIa4JYJqVcTSF14QRaIFqanQ2D5xRpnYZjxpG6L8Cn7d/oH9EfvEmWPnRgy7juw5/ubMd75zif1Uq8w2m39fqKxcvHT5SvVq7Y9r12/cvLV6+yhLBibAwyDRifnsywy1ivHQKqvxc2pQ9n2Nn/zevtv/dIomU0n80Q5TPOnLKFYdFUhL0JfVyve2j5GKR1b1vqUqsAOD41o7TkI8zqy0WO8orfd8PcAH2826ULGySuoTsfHV2xSjtsVz63fyNeuM9t+/OxiPx38uMxgMmUD6ySkKo6KuFUln76tHVHqnhGqnOdUJRotU/mok7OfqXZLqHbLqSKDGJeJ0ruOqSw/r5xpiJqkMNWMhOW0Skha5STBUMZzeTmKVl0GAaZWxRGX6fzXdQqNPMubgmGEXIgydGeGuqoXqDeH7paiM4bWHNqa8Z5vFikJacWGV9/yGtNWkMq/dJQYZbt9FYgjNMJZO0Yhwvz9+XWerPR5EsG15hrENxHSrlTa0IYQEAhAHxBisGRrkJDR7xg8aEJK2AmMCDNkKd5HGEONzg7IC8lDEtqjZ0RvxwUa07vjzPh0QFE03YZOCnhc+IRkdxjNVxdfzPn+KsaIuZ3GIa1+wdkn1EKX0P86N/H8v+dcTpYUvuRcFOlMGXFZBgsZdWjV9G5Jv3sOyRPJCumUISsgTBOaIy6GoTWvq8u8y3W7Idk/S4Xd6oH3zj+xGeCaVp9ZjIUzeU9YE15rhLqdCal96yI7mrv8op4x50yhJ3Rvu0zBhzqOMyGsLXrH3K9gj1OmVFNdV8gnj+l28Xo8BYJ3cIFdMCKpFm7f5767majRvfyLaT+cVjPjPFz9keJ70IAW2f1p5IwrH5Bnh+5FBX3OVdHq5n6Zz2lxWZ7R0/VYsJ3MacgonoB97lfM/RAcyXkgc7jpzKvfWMoI4ZS7O2SdlnuC8Iw8M54ZzTmNWK/intf5H6JoR9NOxJ0dwgPKuUkdmuXsVM9nmnKlU45mp3WY/OeQJ6oLQtyd6SB7vtaLyvO6WZ7dfM4Rzum5B4/o7dFvlEw8c0SyJUlZyioM+yZFrfMTuSJTeM5mpgbuW+f9/GVbNo62G97zxvMP2+uv3xRfvSrcg4ewQfPyAl7DWziAQwgq/6Ilc2Vp1f+qV6rlXv5K6VC8WZNVi4qvd/AB3w9Tw=</latexit>

Simulation and Bisimulation

  • Dr. Liam O’Connor

CSE, UNSW (for now) Term 1 2020

1

slide-2
SLIDE 2

Model Equivalence Abstraction and Simulation

Model Equivalence

Let A and B be Kripke structures. Question When does A | = ϕ ⇔ B | = ϕ for all LTL formulae ϕ? When A and B have the same behaviours. Why?

Liam: prove it on the board

This is called infinite completed trace equivalence.

2

slide-3
SLIDE 3

Model Equivalence Abstraction and Simulation

Limitations of Traces

∅ paid paid coffee tea ∅ paid coffee tea Traces cannot distinguish these two models!

3

slide-4
SLIDE 4

Model Equivalence Abstraction and Simulation

Model Equivalence

Question When does A | = ϕ ⇔ B | = ϕ for all CTL formulae ϕ? hmm... Is it (only) when A = B (graph isomorphism)? a a a Nope!

4

slide-5
SLIDE 5

Model Equivalence Abstraction and Simulation

Tree Equivalence?

Is it when the two automata have the same computation tree? a b b a b Also no!

5

slide-6
SLIDE 6

Model Equivalence Abstraction and Simulation

Bisimulations

Definition A (strong) bisimulation between two automata A and B is defined as a relation R ⊆ QA × QB which satisfies: If s R t then LA(s) = LB(t) If s R t and s

a

− → s′ (with a ∈ ΣA, s′ ∈ QA) then there exists a t′ ∈ QB such that t

a

− → t′ and s′ R t′. If s R t and t

a

− → t′ (with a ∈ ΣB, t′ ∈ QB) then there exists a s′ ∈ QA such that s

a

− → s′ and s′ R t′. Two automata are bisimulation equivalent or bisimilar iff there exists a bisimulation between their initial states. Let’s find bisimulations for the previous examples. Result For two finitely-branching automata A and B, A | = ϕ ⇔ B | = ϕ for all CTL formulae ϕ iff they are bisimilar.

6

slide-7
SLIDE 7

Model Equivalence Abstraction and Simulation

Simulation

Are these bisimilar? red green yellow red ¬red No, but one simulates the other.

7

slide-8
SLIDE 8

Model Equivalence Abstraction and Simulation

Simulation Relations

Definition A simulation of an automaton C by an automaton A is defined as a relation S ⊆ QC × QA which satisfies: If s S t then LC(s) ∩ LA = LA(t) If s S t and s

a

− → s′ (with a ∈ ΣC, s′ ∈ QC) then there exists a t′ ∈ QA such that t

a

− → t′ and s′ R t′. The automaton A is an abstraction of the concrete automaton C iff a A simulates C. This is sometimes written A ⊑ C. Abstraction and Traces If A ⊑ C, then every trace of C restricted to LA is a trace of A. σ1σ2σ3 · · · ∈ Traces(C) ⇒ (σ1 ∩ LA)(σ2 ∩ LA)(σ3 ∩ LA) · · · ∈ Traces(A)

8

slide-9
SLIDE 9

Model Equivalence Abstraction and Simulation

Essential Property of Simulations

Let A be a simulation relation, showing that X ⊑ Y . Then for every run ρ1ρ2ρ3 · · · ∈ Y is a run of X by applying the simulation relation as an abstraction mapping: A(ρ1)A(ρ2)A(ρ3) · · · ∈ X

  • 9
slide-10
SLIDE 10

Model Equivalence Abstraction and Simulation

Comparing Automata

red green yellow red ¬red red ¬red What are the simulations between these?

10

slide-11
SLIDE 11

Model Equivalence Abstraction and Simulation

Reducing State Space

We want abstraction to shrink the state space for model checking. To do this, we need a guarantee that any property we prove about an abstraction applies just as well to the concrete model. Universal Properties Given A ⊑ C, which ϕ satisfy A | = ϕ ⇒ C | = ϕ? red green yellow red ¬red AG AF ¬red? Works! ¬AG AF red? Doesn’t work!

11

slide-12
SLIDE 12

Model Equivalence Abstraction and Simulation

Universal CTL

Negation Normal Form ϕ is in negation normal form (NNF), written ˆ ϕ, if all negations are applied only to atomic props. All formulae have a NNF equivalent. ACTL ϕ is a formula in ACTL, the Universal CTL, iff its negation normal form, ˆ ϕ, does not contain E. Example AGp AG AFp EFp — Nope!

12

slide-13
SLIDE 13

Model Equivalence Abstraction and Simulation

Negation Normal Form

¬AFϕ ≡ EG¬ϕ ¬EFϕ ≡ AG¬ϕ ¬AGϕ ≡ EF¬ϕ ¬EGϕ ≡ AF¬ϕ ¬AXϕ ≡ EX¬ϕ ¬EXϕ ≡ AX¬ϕ ¬E(ϕ U ψ) ≡ A(¬ϕ R ¬ψ) ¬A(ϕ U ψ) ≡ E(¬ϕ R ¬ψ) Release Operator The temporal operator ϕ R ψ says that ψ will not become false unless ϕ happens first. σ | = ϕ R ψ ⇔ ∀n ≥ 0. (∀0 ≤ k < n. σ|k | = ϕ) ⇒ σ|n | = ψ A and E variants in CTL follow the usual pattern.

13

slide-14
SLIDE 14

Model Equivalence Abstraction and Simulation

Bisimulation and simulation

Suppose that A ⊑ B and B ⊑ A. Does that mean A is bisimilar to B? a b c a b b c Nope! This is another equivalence called simulation equivalence. Because of the abstraction result, ACTL is the logic that characterises simulation equivalence.

14

slide-15
SLIDE 15

Model Equivalence Abstraction and Simulation

The Linear-time Branching-time Spectrum

Coarseness of Equivalences Graph isomorphism is finer (distinguishes more models) in than bisimilarity. Bisimilarity is finer than simulation equivalence. Bisimilarity is finer that completed infinite trace equivalence. Partial trace equivalence (sets of finite-length traces) is coarser than all of the above. There are many, many more equivalences. Rob van Glabbeek categorised all of these equivalences and more into the linear-time branching-time spectrum, which is a major focus of his course at this university, COMP6752.

15

slide-16
SLIDE 16

Model Equivalence Abstraction and Simulation

Bibliography

Baier/Katoen, Sections 7.1 (parts), 7.2 (parts), 7.4, 7.5, 7,6, 7.7 Rob van Glabbeek, The Linear-Time Branching-Time Spectrum I, Handbook of Process Algebra p. 3-99, Elsevier. Rob van Glabbeek, COMP6752 course notes.

16