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

Tautologies and BIR variables #77

Open
guancio opened this issue Jun 5, 2019 · 0 comments
Open

Tautologies and BIR variables #77

guancio opened this issue Jun 5, 2019 · 0 comments
Labels

Comments

@guancio
Copy link
Collaborator

guancio commented Jun 5, 2019

The presence of BIR variables in predicates makes a bit complicated the definition of tautologies. The current definition states:

tautology(P) = ! s. init_var(s, vars(P)) ==> eval(s, P) = true

In BIR, we usually say that a precondition P holds iff

hold(s,P) = init_var(s, vars(P)) /\ eval(s, P) = true

There has the problem that tautology(P ==> Q) is not equivalent to

!s. hold(s,P) ==> hold(s,Q)

For example, if Q = (x == x:int32) and P = true then tautology(P==>Q). However, for the states s={} and s1={x:int64}, property P holds while property Q does not hold.

This is problematic for the weakening rule. An option is to require in the weakening rule that tautology(P ==> Q) and vars(Q) \subseteq vars(P)`. However, I'm not totally convinced about this rule.

@didriklundberg didriklundberg changed the title Tautoligies and BIR variables Tautologies and BIR variables Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant