Professional Documents
Culture Documents
• 4 practical exercises
• 4 scheduled 2 hour practical sessions:
− Tuesday 4-6pm, room 379, weeks 3, 4, 6 and 7
− demonstrator: Aistis Simaitis
• Note:
− you will also be expected to complete some of the practical
work outside these hours
− final assignment will include practical (PRISM) exercises
http://www.prismmodelchecker.org/courses/pmc1112/
• Running example
− leader election protocol
• Benefits:
− fully automated process
− high-level languages/formalisms for building models
− visualisation of quantitative results
• Modelling of:
− DTMCs, CTMCs, MDPs + costs/rewards
− probabilistic timed automata (PTAs) (not covered here)
DTMC, MDP
or CTMC
High-level Model
Model
model construction
Model
Result
PRISM
checking
language Property
description
PCTL/CSL/LTL/…
formula
Model construction
Translation Reachability:
High-level from building set Model
model high-level of reachable
language states DTMC, MDP
PRISM or CTMC
language
description matrix graph-based
manipulation algorithm
• For example:
− probabilistic/stochastic process algebras
− stochastic Petri nets
− stochastic activity networks
• Basic components…
• Modules:
− components of system being modelled
− composed in parallel
• Variables
− finite (integer ranges or Booleans)
− local or global
− all variables public: anyone can read, only owner can modify
module M1
x : [0..3] init 0;
[a] x=0 -> (x’=1);
[b] x=1 -> 0.5:(x’=2) + 0.5:(x’=3);
endmodule
module M2
y : [0..3] init 0;
[a] y=0 -> (y’=1);
[b] y=1 -> 0.4:(y’=2) + 0.6:(y’=3);
endmodule
− http://www.prismmodelchecker.org/courses/pmc1112/