You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
288 B
18 lines
288 B
// Simple MDPs from Lec 12 of Probabilistic Model Checking
|
|
|
|
mdp
|
|
|
|
module M
|
|
|
|
s:[0..3];
|
|
|
|
[] s=0 -> 1:(s'=1);
|
|
[] s=1 -> 0.7:(s'=0) + 0.3:(s'=1);
|
|
[] s=1 -> 0.5:(s'=2) + 0.5:(s'=3);
|
|
[] s=2 -> 1:(s'=2);
|
|
[] s=3 -> 1:(s'=3);
|
|
|
|
endmodule
|
|
|
|
label "heads" = s=2;
|
|
label "tails" = s=3;
|