问题
I'm looking to use a one-way function in a z3 Python program. I'd like z3 to respect the following properties/tactics:
- if
x = y, thenf(x) = f(y) fis a computable Python function that I can provide whenxis known- if
f(x) = y, attempt to resolve by matchingf(*y) = f(x)implyingx = *yfrom prior assignments (never attempt to guessxthat computes toy)
Are there built in features to support this construct or anything else that may help introduce it?
来源:https://stackoverflow.com/questions/54536062/extending-z3-with-one-way-functions