Probabilistic Model Checking MEFISTO- 11/2003 Igor Melatti, Finite - - PowerPoint PPT Presentation

probabilistic model checking
SMART_READER_LITE
LIVE PREVIEW

Probabilistic Model Checking MEFISTO- 11/2003 Igor Melatti, Finite - - PowerPoint PPT Presentation

MEFISTO- 11/2003 Finite Horizon Analysis of Markov Chains with the Mur Verifier Giuseppe Della Penna Benedetto Intrigila Igor Melatti Dip. di Informatica, Universit` a di L Aquila Enrico Tronci Marisa Venturini Zilli Dip. di


slide-1
SLIDE 1

MEFISTO- 11/2003

Finite Horizon Analysis of Markov Chains with the Murϕ Verifier

Giuseppe Della Penna Benedetto Intrigila Igor Melatti

  • Dip. di Informatica, Universit`

a di L ’Aquila Enrico Tronci Marisa Venturini Zilli

  • Dip. di Informatica, Universit`

a di Roma “La Sapienza”

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –1–

slide-2
SLIDE 2

MEFISTO- 11/2003

Probabilistic Model Checking

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2–

slide-3
SLIDE 3

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-a–

slide-4
SLIDE 4

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-b–

slide-5
SLIDE 5

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property
  • PCTL: Probabilistic CTL

– A → P≥α[true UB] – A → P>α[true U ≤kB]

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-c–

slide-6
SLIDE 6

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property
  • PCTL: Probabilistic CTL

– A → P≥α[true UB] – A → P>α[true U ≤kB]

  • Very few available probabilistic model checkers

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-d–

slide-7
SLIDE 7

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property
  • PCTL: Probabilistic CTL

– A → P≥α[true UB] – A → P>α[true U ≤kB]

  • Very few available probabilistic model checkers

– PRISM

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-e–

slide-8
SLIDE 8

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property
  • PCTL: Probabilistic CTL

– A → P≥α[true UB] – A → P>α[true U ≤kB]

  • Very few available probabilistic model checkers

– PRISM – Two Towers

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-f–

slide-9
SLIDE 9

MEFISTO- 11/2003

Probabilistic Model Checking

  • Markov Chain analysis
  • Given the description of a Markov Chain, it verifies a PCTL property
  • PCTL: Probabilistic CTL

– A → P≥α[true UB] – A → P>α[true U ≤kB]

  • Very few available probabilistic model checkers

– PRISM – Two Towers – FHP-Murϕ (new)

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –2-g–

slide-10
SLIDE 10

MEFISTO- 11/2003

PRISM PRISM Probabilistic Symbolic Model Checker

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –3–

slide-11
SLIDE 11

MEFISTO- 11/2003

PRISM PRISM Probabilistic Symbolic Model Checker

  • State-of-the-art probabilistic model checker

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –3-a–

slide-12
SLIDE 12

MEFISTO- 11/2003

PRISM PRISM Probabilistic Symbolic Model Checker

  • State-of-the-art probabilistic model checker
  • Implicit verification algorithm (MTBDD-based)

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –3-b–

slide-13
SLIDE 13

MEFISTO- 11/2003

PRISM PRISM Probabilistic Symbolic Model Checker

  • State-of-the-art probabilistic model checker
  • Implicit verification algorithm (MTBDD-based)
  • It allows to verify three types of Markov Chains:

DTMC, with PCTL are the “classic” ones, here we will deal with these

  • nly

MDP, with PCTL non-determinism added CTMC, with CSL continuous time managed

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –3-c–

slide-14
SLIDE 14

MEFISTO- 11/2003

PRISM PRISM Probabilistic Symbolic Model Checker

  • State-of-the-art probabilistic model checker
  • Implicit verification algorithm (MTBDD-based)
  • It allows to verify three types of Markov Chains:

DTMC, with PCTL are the “classic” ones, here we will deal with these

  • nly

MDP, with PCTL non-determinism added CTMC, with CSL continuous time managed

  • Three verification modalities:

– totally MTBDD-based (calculating fix points) – algebraic (on the Markov Chain transition matrix) – an hybrid modality between the two previous ones

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –3-d–

slide-15
SLIDE 15

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4–

slide-16
SLIDE 16

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-a–

slide-17
SLIDE 17

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

– symbolic and explicit verification are not comparable in non-probabilistic model checking

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-b–

slide-18
SLIDE 18

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

– symbolic and explicit verification are not comparable in non-probabilistic model checking – we will show that this holds also for probabilistic model checking

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-c–

slide-19
SLIDE 19

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

– symbolic and explicit verification are not comparable in non-probabilistic model checking – we will show that this holds also for probabilistic model checking

  • Murϕ modified in the input language and in the verification algorithm

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-d–

slide-20
SLIDE 20

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

– symbolic and explicit verification are not comparable in non-probabilistic model checking – we will show that this holds also for probabilistic model checking

  • Murϕ modified in the input language and in the verification algorithm
  • Specialized in verifying a particular type of PCTL properties

– P≤α[true U ≤kφ] ≡ Pr((∃i ≤ k φ(π(i))) | π ∈ Path(M)) ≤ α – φ is a boolean function defined on states

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-e–

slide-21
SLIDE 21

MEFISTO- 11/2003

FHP-Murϕ

  • FiniteHorizonProbabilistic-Murϕ
  • Explicit probabilistic model checker

– symbolic and explicit verification are not comparable in non-probabilistic model checking – we will show that this holds also for probabilistic model checking

  • Murϕ modified in the input language and in the verification algorithm
  • Specialized in verifying a particular type of PCTL properties

– P≤α[true U ≤kφ] ≡ Pr((∃i ≤ k φ(π(i))) | π ∈ Path(M)) ≤ α – φ is a boolean function defined on states – If φ models an error, we are asking if the error probability is acceptable

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –4-f–

slide-22
SLIDE 22

MEFISTO- 11/2003

FHP-Murϕ’s input language

  • We added finite precision real numbers and probabilities:

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –5–

slide-23
SLIDE 23

MEFISTO- 11/2003

FHP-Murϕ’s input language

  • We added finite precision real numbers and probabilities:

– on the initial states (initial probability distribution)

∗ n initial states with probability p1, . . . , pn ∗ n

i=1 pi = 1 has always to hold

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –5-a–

slide-24
SLIDE 24

MEFISTO- 11/2003

FHP-Murϕ’s input language

  • We added finite precision real numbers and probabilities:

– on the initial states (initial probability distribution)

∗ n initial states with probability p1, . . . , pn ∗ n

i=1 pi = 1 has always to hold

– on the rules (they now define a Markov Chain transition function)

∗ s1, . . . , sn successor states of s with probability p1, . . . , pn ∗

n

i=1 pi = 1 has always to hold

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –5-b–

slide-25
SLIDE 25

MEFISTO- 11/2003

FHP-Murϕ’s input language

  • We added finite precision real numbers and probabilities:

– on the initial states (initial probability distribution)

∗ n initial states with probability p1, . . . , pn ∗ n

i=1 pi = 1 has always to hold

– on the rules (they now define a Markov Chain transition function)

∗ s1, . . . , sn successor states of s with probability p1, . . . , pn ∗

n

i=1 pi = 1 has always to hold

– on the invariant to be verified

∗ property to be verified: is the probability of the event “an error state

(i.e., not satisfying the invariant) is reachable within a given number of steps” less than a given α?

∗ i.e., does Pr(∃i ≤ k : φ(π(i))|π is a Markov Chain path) ≤ α

hold?

∗ equivalent to the PCTL formula P≤α[true U ≤kφ]

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –5-c–

slide-26
SLIDE 26

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –6–

slide-27
SLIDE 27

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –6-a–

slide-28
SLIDE 28

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0
  • ErrProb is incremented whenever a state s is reached such that φ holds

in s

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –6-b–

slide-29
SLIDE 29

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0
  • ErrProb is incremented whenever a state s is reached such that φ holds

in s

s0 s1 s2 s3 ρ σ π τ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –6-c–

slide-30
SLIDE 30

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0
  • ErrProb is incremented whenever a state s is reached such that φ holds

in s

s0 s1 s2 s3 ErrProb=ErrProb+P(σ) ρ σ π τ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –7–

slide-31
SLIDE 31

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0
  • ErrProb is incremented whenever a state s is reached such that φ holds

in s

s0 s1 s2 s3 ErrProb=ErrProb+P(σ)+P(π) ρ σ π τ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –8–

slide-32
SLIDE 32

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • Let ErrProb be the probability of [true U ≤kφ]
  • Initially, ErrProb = 0
  • ErrProb is incremented whenever a state s is reached such that φ holds

in s

s0 s1 s2 s3 ErrProb=ErrProb+P(ρ) ErrProb=ErrProb+P(σ)+P(π) ρ σ π τ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –9–

slide-33
SLIDE 33

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10–

slide-34
SLIDE 34

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-a–

slide-35
SLIDE 35

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-b–

slide-36
SLIDE 36

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

– The initial states are reached with a given probability

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-c–

slide-37
SLIDE 37

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

– The initial states are reached with a given probability – If s is reached with probability p, and s goes to t with probability q, then

t is reached with probability pq

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-d–

slide-38
SLIDE 38

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

– The initial states are reached with a given probability – If s is reached with probability p, and s goes to t with probability q, then

t is reached with probability pq

– The additive property for ErrProb holds for every reachable state

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-e–

slide-39
SLIDE 39

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

– The initial states are reached with a given probability – If s is reached with probability p, and s goes to t with probability q, then

t is reached with probability pq

– The additive property for ErrProb holds for every reachable state

  • The reachability analysis is stopped after the k-th step

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-f–

slide-40
SLIDE 40

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

  • ErrProb = ErrProb + p where p is the probability to reach s from the

initial states – If there are m paths to s, p is the sum of the probabilities of these m paths

  • Already visited states are not to be discarded, since they can be reached

via different paths

  • It is necessary to compute paths probabilities

– The initial states are reached with a given probability – If s is reached with probability p, and s goes to t with probability q, then

t is reached with probability pq

– The additive property for ErrProb holds for every reachable state

  • The reachability analysis is stopped after the k-th step
  • States that satisfy φ are not expanded

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –10-g–

slide-41
SLIDE 41

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

s13 s12 s11 s10 s9 s8 s7 s6 s5 s2 s3 s4 s1

Uniform probability

s2, s6, s3, s13

are the states in which φ holds (error states)

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –11–

slide-42
SLIDE 42

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

s13 s12 s11 s10 s9 s8 s7 s6 s5 s2 s3 s4 s1

Uniform probability

s2, s6, s3, s13

are the states in which φ holds (error states)

P [ true U ≤2φ] = 1

3 1 3 + 1 3 1 3 + 1 3 1 3 + 1 3 1 2 + 1 3 1 2 + 1 3 1 4 = 3 4

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –12–

slide-43
SLIDE 43

MEFISTO- 11/2003

FHP-Murϕ’s verification algorithm

s13 s2 s3 s6 s9 s13 s2 s3 s3 s2 s12 s11 s10 s8 s7 s5 s1 s4 s4 s12 s11 s10 s1

If s is such that φ(s) holds then the Markov Chain starting from s is forced to cycle on s

P [ true U ≤2φ] = 1

31 + 1 31 + 1 3 1 4 = 3 4 again

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –13–

slide-44
SLIDE 44

MEFISTO- 11/2003

FHP-Murϕ’s BFS

. . . Queue s , q s’, q’ rear front

s: state to be expanded q: probability of reaching s in l − 1 levels s′ next state to be expanded

State explosion virtually never occurs: if the queue grows too much, disk storage is used

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –14–

slide-45
SLIDE 45

MEFISTO- 11/2003

FHP-Murϕ’s BFS

. . . Queue s , q s’, q’ rear front . . . . .

pn

s

p1 sn s1

s: state to be expanded p1, . . . , pn: rules whose probability is strictly positive in s ∀i. pi ∈ [0, 1]

n

i=1 pi = 1

   Conditions to have a Markov Chain

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –15–

slide-46
SLIDE 46

MEFISTO- 11/2003

FHP-Murϕ’s BFS

. . . . . . Cache Queue front s , q s’, q’ rear . . . . .

pn

s

p1 sn s1 ek e1 Cache: limits the number of states enqueued more than once

∀i. ei is empty or stores a pair (state, probability) sφ

1, . . . , sφ m, pφ 1, . , pφ m states among the si in which φ holds (error states)

and their transition probabilities

s¬φ

1 , . . . , s¬φ n−m, p¬φ 1 , . , p¬φ n−m “correct” states (all the other ones) and their

transition probabilities

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –16–

slide-47
SLIDE 47

MEFISTO- 11/2003

FHP-Murϕ’s BFS

. . . . . . Cache Queue front s , q s’, q’ rear . . . . .

pn

s

p1 sn s1 ek e1

1, . . . , sφ n−m update ErrProb+ = i pφ i q

At the end of the s expansion ∀i. ∃ji : eji = (s¬φ

i , qi)

∀i. qi =

  

p¬φ

i q

if s¬φ

i

was not in the Cache

p¬φ

i q + Cache[h(s¬φ i )].prob

  • therwise

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –17–

slide-48
SLIDE 48

MEFISTO- 11/2003

FHP-Murϕ’s BFS

. . . . . . . . . Cache Queue rear s , q s’, q’ . . . . .

pn

s

p1 s1 sn ek e1 er1 erh

front

swap All non-empty cache entries (eri) are enqueued All cache entries will now result empty

s′

next state to be expanded after the enqueue of s¬φ

m

BFS levels as before; each level changing is always preceeded by a swap

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –18–

slide-49
SLIDE 49

MEFISTO- 11/2003

Experimental results

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –19–

slide-50
SLIDE 50

MEFISTO- 11/2003

Experimental results Probabilistic dining philosophers Pnueli-Zuck (PZ) and Lehmann-Rabin (LR) protocols

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –19-a–

slide-51
SLIDE 51

MEFISTO- 11/2003

Experimental results Probabilistic dining philosophers Pnueli-Zuck (PZ) and Lehmann-Rabin (LR) protocols PZ is there a positive probability that a philosopher

  • become hungry
  • choose the left fork first

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –19-b–

slide-52
SLIDE 52

MEFISTO- 11/2003

Experimental results Probabilistic dining philosophers Pnueli-Zuck (PZ) and Lehmann-Rabin (LR) protocols PZ is there a positive probability that a philosopher

  • become hungry
  • choose the left fork first

LR the same as PZ, but

  • is there a positive probability that a philosopher puts down the left fork

first

  • no philosopher will never wait more than a fixed number (N) of actions

made by the other philosopher before making an action himself

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –19-c–

slide-53
SLIDE 53

MEFISTO- 11/2003

Experimental results Probabilistic dining philosophers Pnueli-Zuck (PZ) and Lehmann-Rabin (LR) protocols PZ is there a positive probability that a philosopher

  • become hungry
  • choose the left fork first

LR the same as PZ, but

  • is there a positive probability that a philosopher puts down the left fork

first

  • no philosopher will never wait more than a fixed number (N) of actions

made by the other philosopher before making an action himself Hybrid systems Verification of a turbogas control system, assuming a probability distribution on the user demand

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –19-d–

slide-54
SLIDE 54

MEFISTO- 11/2003

Experimental results: PZ protocol

NPHIL MAX WAIT

Probability Murϕ Memory (MB) PRISM Memory (MB) Murϕ Time PRISM Time 3 3 7.335194164e-05 200 0.9057 51.970 s 1.487 s 3 4 6.883132778e-10 200 1.6844 52.610 s 2.507 s 4 3 1.88985976e-06 200 28.1066 4 min 28.72 s 4 4 2.910383046e-12 200 66.2659 4 min 1 min 5 3 9.164495139e-08 200 916.8246 23 min 17 min 5 4 4.194304e-14 200 N/A 23 min N/A 8 3 1.210429649e-10 1000 N/A 2 1

2 days

N/A

P≤1.0[true U ≤20a philosopher has waited for MAX WAIT transitions]

Results on a 2-processors (both INTEL Pentium III 500Mhz) computer with 2GB of RAM

NPHIL: number of philosophers MAX WAIT: max waiting time for every philosopher

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –20–

slide-55
SLIDE 55

MEFISTO- 11/2003

Experimental results: an explanation

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21–

slide-56
SLIDE 56

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-a–

slide-57
SLIDE 57

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-b–

slide-58
SLIDE 58

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification Termination is not all, also time is important

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-c–

slide-59
SLIDE 59

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification Termination is not all, also time is important

  • PRISM, if terminates, terminates faster than FHP-Murϕ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-d–

slide-60
SLIDE 60

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification Termination is not all, also time is important

  • PRISM, if terminates, terminates faster than FHP-Murϕ
  • FHP-Murϕ virtually always terminates (thanks to the disk storage of the

queue), but it could require too much time

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-e–

slide-61
SLIDE 61

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification Termination is not all, also time is important

  • PRISM, if terminates, terminates faster than FHP-Murϕ
  • FHP-Murϕ virtually always terminates (thanks to the disk storage of the

queue), but it could require too much time – if the horizon is too much long, the verification will take a great amount

  • f time

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-f–

slide-62
SLIDE 62

MEFISTO- 11/2003

Experimental results: an explanation Implicit vs Explicit sometimes the former performs better than the latter, sometimes not Probabilistic verification We showed that this holds for probabilistic verification Termination is not all, also time is important

  • PRISM, if terminates, terminates faster than FHP-Murϕ
  • FHP-Murϕ virtually always terminates (thanks to the disk storage of the

queue), but it could require too much time – if the horizon is too much long, the verification will take a great amount

  • f time

– PRISM execution time is not dependent from the horizon

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –21-g–

slide-63
SLIDE 63

MEFISTO- 11/2003

PRISM or FHP-Murϕ?

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22–

slide-64
SLIDE 64

MEFISTO- 11/2003

PRISM or FHP-Murϕ? Not comparable There are cases in which Murϕ is better, other in which PRISM is

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22-a–

slide-65
SLIDE 65

MEFISTO- 11/2003

PRISM or FHP-Murϕ? Not comparable There are cases in which Murϕ is better, other in which PRISM is PCTL formulas Only of a certain type in FHP-Murϕ

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22-b–

slide-66
SLIDE 66

MEFISTO- 11/2003

PRISM or FHP-Murϕ? Not comparable There are cases in which Murϕ is better, other in which PRISM is PCTL formulas Only of a certain type in FHP-Murϕ FHP-Murϕ better when

  • the transition function is based on (complex) mathematical operations
  • the horizon is not too long

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22-c–

slide-67
SLIDE 67

MEFISTO- 11/2003

PRISM or FHP-Murϕ? Not comparable There are cases in which Murϕ is better, other in which PRISM is PCTL formulas Only of a certain type in FHP-Murϕ FHP-Murϕ better when

  • the transition function is based on (complex) mathematical operations
  • the horizon is not too long

PRISM better in the other cases

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22-d–

slide-68
SLIDE 68

MEFISTO- 11/2003

PRISM or FHP-Murϕ? Not comparable There are cases in which Murϕ is better, other in which PRISM is PCTL formulas Only of a certain type in FHP-Murϕ FHP-Murϕ better when

  • the transition function is based on (complex) mathematical operations
  • the horizon is not too long

PRISM better in the other cases FHP-Murϕ is however a probabilistic model checker to be taken into account

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –22-e–

slide-69
SLIDE 69

MEFISTO- 11/2003

Future works More features for FHP-Murϕ and then comparison with PRISM

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –23–

slide-70
SLIDE 70

MEFISTO- 11/2003

Future works More features for FHP-Murϕ and then comparison with PRISM

  • Handling of PCTL formulas like A → P⊲

⊳α[true U ≤kφ]

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –23-a–

slide-71
SLIDE 71

MEFISTO- 11/2003

Future works More features for FHP-Murϕ and then comparison with PRISM

  • Handling of PCTL formulas like A → P⊲

⊳α[true U ≤kφ]

  • Infinite horizon

– Some precomputations will be necessary in these two cases

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –23-b–

slide-72
SLIDE 72

MEFISTO- 11/2003

Future works More features for FHP-Murϕ and then comparison with PRISM

  • Handling of PCTL formulas like A → P⊲

⊳α[true U ≤kφ]

  • Infinite horizon

– Some precomputations will be necessary in these two cases

  • Continuous Markov Chains

– Approximable to Discrete Time Markov Chain with an exponential distribution – The smaller the sampling step

∗ the lowest the approximation error ∗ the higher the execution time

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –23-c–

slide-73
SLIDE 73

MEFISTO- 11/2003

Publications

  • G. Della Penna, B. Intrigila, I. Melatti, E. Tronci, and M. V. Zilli Finite Horizon Verification of

Markov Chains with the Murϕ Verifier, CHARME, L ’Aquila, 2003

  • G. Della Penna, B. Intrigila, I. Melatti, E. Tronci, and M. V. Zilli Integrating RAM and Disk

based Verification within the Murϕ Verifier, CHARME, L ’Aquila, 2003

  • G. Della Penna, B. Intrigila, I. Melatti, E. Tronci, and M. V. Zilli Finite Horizon Verification of

Stochastic Process with the Murϕ Verifier, ICTCS, Bertinoro (FC), 2003

  • G. Della Penna, B. Intrigila, I. Melatti, M. Minichino, E. Ciancamerla, A. Parisse, E. Tronci,

and M. V. Zilli Automatic Verification of a Turbogas Control System with the Murϕ Verifier, HSCC, Prague, 2003

  • G. Della Penna, B. Intrigila, E. Tronci, and M. Venturini Zilli Exploiting Transition Locality in

the Disk based Murϕ Verifier, FMCAD, Portland 2002

  • E. Tronci, G. Della Penna, B. Intrigila, and M. Venturini Zilli Exploiting Transition Locality in

Automatic Verification, CHARME, Edinburgh 2001

  • http://www.dsi.uniroma1.it/∼tronci/cached.murphi.html
  • http://vv.cs.byu.edu/mug (Murϕ users group)

Igor Melatti, Finite Horizon Analysis of Markov Chains with the Murϕ Verifier –24–