Extending `z3` with one way functions

喜夏-厌秋 提交于 2019-12-13 04:39:44

问题


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?

来源:https://stackoverflow.com/questions/54536062/extending-z3-with-one-way-functions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!