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

Logic Error? #3

Closed
aabinks opened this issue Jul 6, 2015 · 2 comments
Closed

Logic Error? #3

aabinks opened this issue Jul 6, 2015 · 2 comments

Comments

@aabinks
Copy link

aabinks commented Jul 6, 2015

Sorry to dredge up an issue, but any insight into the following inconsistency:
th = oops.Theory()
th:add("#_1 a | b |c")
th:add("#_1 ~a")
th:add("#_1 ~b")
print(th:provable("#_1 a|c"))

resolves to "true"

while substituting line 5 for
print(th:provable("#_1 c|a"))
resolves to "false"

@gertvv
Copy link
Owner

gertvv commented Jul 7, 2015

Thanks for reporting this. I can't test right now, but could it be an operator precedence issue?

When you write "#_1 a | b | c" do you mean "#_1 (a | b | c)", or "(#_1 a) | b | c"? If I recall correctly, OOPS will interpret it as the latter. Under that interpretation I think the answers to your queries are correct.

@aabinks
Copy link
Author

aabinks commented Jul 14, 2015

That worked! Many thanks for responding.

@aabinks aabinks closed this as completed Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants