Am I using Z3Py correctly? I'm concerned at how similar the proofs look #7450
Unanswered
LivInTheLookingGlass
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I currently have a repo with a bunch of different definitions of the same sequence. I've been trying to use Z3 to help prove that they all produce the same sequence, but I'm having a problem. All of the proofs it produces are eerily similar, with only a few exceptions.
I have no idea if I'm using this tool correctly, and I would love it if someone could help me figure that out. My workflow essentially is as follows:
to_z3()
in the appropriate module, which constructs aRecFunction
that encodes the series generatorn
is an index in the sequence ands_ref
is the base I'm outputting the sequence in:solver.add(ForAll(n, Implies(n >= 0, T1(n) == T2(n))))
solver.add(ForAll(n, Implies(And(n >= 0, n < s_ref), And(T1(n) == n, T2(n) == n))))
solver.add(T1(s_ref) == 1, T2(s_ref) == 1)
solver.proof()
Is this reasonable/correct usage?
Beta Was this translation helpful? Give feedback.
All reactions