Some silly Z3 scripts I wrote
36 points by azhenley 4 days ago | 8 comments
jeremysalwen 6 hours ago
I'm suspicious of the theorem proving example. I thought Z3 could fail to return sat or unsat, but he is assuming that if it's not sat the theorem must be proven
replyymherklotz 5 hours ago
No I think it's fine. On another note, I have proven Fermat's Last Theorem with z3 using this setup :) and it goes faster if you reduce a variable called "timeout" for some reason!
replyhwayne 5 hours ago
...Whoops. Yup, SMT solvers can famously return `unknown` on top of `sat` and `unsat`. Just added a post addendum about the mistake.
replypotato-peeler 8 hours ago
For the curious, solvers like z3 are used in programming languages to verify logic and constraints. Basically it can help find logic issues and bugs during compile time itself, instead of waiting for it to show up in runtime.
replyhttps://en.wikipedia.org/wiki/Satisfiability_modulo_theories...