Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diverging behavior due to terminal state detection #604

Open
AlexBork opened this issue Aug 28, 2024 · 0 comments
Open

Diverging behavior due to terminal state detection #604

AlexBork opened this issue Aug 28, 2024 · 0 comments

Comments

@AlexBork
Copy link
Contributor

The detection of terminal states in the model building leads to unexpected, diverging behavior.
Consider for example the following MDP

mdp

module model
    s : [0..4] init 0;
    
    [a] s=0 -> 0.5 : (s'=1)+ 0.5 : (s'=2) ;
    [a] s=1 -> 1 : (s'=3);
    [a] s=2 -> 1 : (s'=3);

    [a] s=3 -> 1 : (s'=4);
    [a] s=4 -> 1 : true;
    [b] true -> 1 : true;

endmodule

label "bad" = s=1;

For property Pmax=? [(!(s = 1)) U (s=3)], the resulting MDP has 4 states, while for property Pmax=? [(! "bad") U (s=3)] it has 5. This is due to the states (s=1) and (s=3) being detected as terminal in the former case but not the latter, causing (s=4) to be explored in the latter case.

In particular, in function getTerminalStatesFromFormula in src/storm/builder/TerminalStatesGetter.cpp, the formula (! "bad") is not detected to be atomic while (!(s = 1)) is. This can be confusing as such cases can result in large differences in model size while semantically the formulae are equivalent.

@AlexBork AlexBork changed the title Diverging behavior due to terminal state handling Diverging behavior due to terminal state detection Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant