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

Rs #3117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Rs #3117

wants to merge 2 commits into from

Conversation

NikolajBjorner
Copy link
Contributor

No description provided.

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
@NikolajBjorner
Copy link
Contributor Author

@c-cube

@NikolajBjorner
Copy link
Contributor Author

from z3 import *
x = Int('x')
p = Lambda([x], x >= 0)
Nat = RefineSort(p)
n, m = Consts('n m', Nat)
s = Solver()
s.add(Relax(n) + Relax(m) < 0)
print(s.check())
#print(s.reason_unknown())
#print(s.model())

@c-cube
Copy link
Contributor

c-cube commented Mar 23, 2020

That looks pretty good. I'll give it a try when I'm less swamped (btw I hope y'all are ok in the WA area…).

I do need this in the OCaml API though :)

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

Successfully merging this pull request may close these issues.

2 participants