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

Multi-property solving #30

Open
agacek opened this issue Mar 3, 2016 · 2 comments
Open

Multi-property solving #30

agacek opened this issue Mar 3, 2016 · 2 comments
Assignees

Comments

@agacek
Copy link

agacek commented Mar 3, 2016

Sally seems to process process queries sequentially. For k-induction, it's often beneficial to attack problems simultaneously so that they can be used to strengthen each other. We can simulate this by just conjoining all of our properties, but if any one of them is false then the whole property becomes false.

Something like the "Multi-property incremental verification" from "Incremental verification with mode variable invariants in state machines" by Kahsai, et al. would be very useful.

@dddejan
Copy link
Member

dddejan commented Mar 3, 2016

This can be done with not too much work, depending on the engine used.

There is a question of how to interact with the user in this case, with the user potentially being another program, e.g. how to report that a specific property is valid or a counter-example is found.

Do you have any problems you can share for the multi-property checking?

@dddejan dddejan changed the title Feature request: Parallel property solving Multi-property solving Mar 3, 2016
@dddejan dddejan self-assigned this Mar 3, 2016
@agacek
Copy link
Author

agacek commented Mar 4, 2016

Here's an example of a multi-property file where lemmas are needed to prove a property:

https://gist.github.com/agacek/ad0b3513b0e78b47995b

Here lemmaA is hard to prove on its own, but easy if you conjoin it with lemmaB (or lemmaC even). Moreover, the ok1 property is much easier if conjoined with lemmaA, lemmaB, and lemmaC.

Playing with this file also exposed another strange result in sally. Consider these two queries for the transition system given in the file.

(query T (and (or |lemmaA| |%init|)
          (or |lemmaB| |%init|)))
(query T (or |lemmaA| |%init|))

Using k-induction, the first query is proved instantly. Sally then gets stuck on the second property. But the second property is an immediate consequence of the first. Sally should be using previously proven results as invariants for proving future properties.

I have no strong feelings about the UI / API.

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

2 participants