Extending `z3` with one way functions

2019-08-23 14:24发布

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, then f(x) = f(y)
  • f is a computable Python function that I can provide when x is known
  • if f(x) = y, attempt to resolve by matching f(*y) = f(x) implying x = *y from prior assignments (never attempt to guess x that computes to y)

Are there built in features to support this construct or anything else that may help introduce it?

标签: z3 smt z3py
0条回答
登录 后发表回答